Skip to content

Commit

Permalink
Merge branch 'development' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
PoopJournal committed Feb 11, 2025
2 parents 4be9e16 + 90fde14 commit e3aaa66
Show file tree
Hide file tree
Showing 195 changed files with 4,082 additions and 4,011 deletions.
44 changes: 44 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java
{
"name": "Java",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update the VARIANT arg to pick a Java version: 8, 11, 17
// Append -bullseye or -buster to pin to an OS version.
// Use the -bullseye variants on local arm64/Apple Silicon.
"VARIANT": "17-bullseye",
// Options
"INSTALL_MAVEN": "true",
"MAVEN_VERSION": "3.8.5",
"INSTALL_GRADLE": "false",
"NODE_VERSION": "lts/*"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"vscjava.vscode-java-pack"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "java -version",

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
26 changes: 18 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: gradle
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: "weekly"
interval: monthly
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- FahadSaleem
assignees:
- FahadSaleem
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added .idea/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/Crazy-Marvin/VacationDays/CI/development)](https://github.com/Crazy-Marvin/VacationDays/actions)
[![License](https://img.shields.io/github/license/Crazy-Marvin/VacationDays.svg)](https://github.com/Crazy-Marvin/VacationDays/blob/trunk/LICENSE)
[![Figma Mockups](https://img.shields.io/badge/Figma-black?logo=figma)](https://www.figma.com/file/9Fk92SQVItIwAjVfsakopo/)
[![Last commit](https://img.shields.io/github/last-commit/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/VacationDays/commits)
[![Releases](https://img.shields.io/github/downloads/Crazy-Marvin/VacationDays/total.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/releases)
[![Latest tag](https://img.shields.io/github/tag/Crazy-Marvin/VacationDays.svg?style=flat)](https://github.com/Crazy-Marvin/VacationDays/tags)
Expand Down
94 changes: 69 additions & 25 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
plugins {
id 'com.android.application'
id 'jacoco'
id 'kotlin-android'
id 'kotlin-kapt'
id 'com.google.dagger.hilt.android'

}

task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {

reports {
xml.enabled = true
html.enabled = true
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
Expand All @@ -23,19 +28,23 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'crea
}

android {
compileSdkVersion 33
lintOptions {
checkReleaseBuilds false
compileSdkVersion 35
androidResources {
generateLocaleConfig true
}
defaultConfig {
applicationId "rocks.poopjournal.vacationdays"
namespace "rocks.poopjournal.vacationdays"
minSdkVersion 21
targetSdkVersion 33
versionCode 10
versionName "10.0"
targetSdkVersion 35
versionCode 11
versionName "11.0"


testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}

testOptions {
Expand All @@ -47,6 +56,13 @@ testOptions {
unitTests.returnDefaultValues = true
}

buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.5.11'
}

buildTypes {
debug {
testCoverageEnabled true
Expand All @@ -57,26 +73,54 @@ testOptions {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
lint {
checkReleaseBuilds false
}
kotlinOptions {
jvmTarget = '17'
}
packaging {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.squareup:android-times-square:1.7.11@aar'
implementation 'com.google.android.material:material:1.7.0'
implementation 'com.github.sundeepk:compact-calendar-view:3.0.0'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.ornach.nobobutton:nobobutton:1.6'
implementation 'com.savvi.datepicker:rangepicker:1.3.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.wdullaer:materialdatetimepicker:4.2.3'
implementation 'com.opencsv:opencsv:5.7.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.compose.material3:material3-android:1.3.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
implementation 'androidx.compose.material3:material3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.material:material'
implementation 'androidx.compose.runtime:runtime'
implementation 'androidx.activity:activity-compose:1.10.0'
implementation platform('androidx.compose:compose-bom:2025.01.00')
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
// Room
implementation 'androidx.room:room-runtime:2.6.1'
annotationProcessor 'androidx.room:room-compiler:2.6.1'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
kapt 'androidx.room:room-compiler:2.6.1'
implementation 'androidx.room:room-ktx:2.6.1'

//Hilt
implementation 'com.google.dagger:hilt-android:2.49'
kapt 'com.google.dagger:hilt-android-compiler:2.49'
implementation 'androidx.hilt:hilt-navigation-compose:1.2.0'

implementation 'com.kizitonwose.calendar:compose:2.5.4'
}
kapt{
correctErrorTypes = true
}
59 changes: 30 additions & 29 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="rocks.poopjournal.vacationdays"
xmlns:tools="http://schemas.android.com/tools">
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />-->
<!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />-->
<!-- <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />-->

<application
tools:replace="android:allowBackup"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@drawable/logo"
android:supportsRtl="true"
android:theme="@style/Theme.MyVacationDays2"
android:dataExtractionRules="@xml/data_extraction_rules">

<activity android:name="rocks.poopjournal.vacationdays.SettingsActivity"></activity>
<activity android:name="rocks.poopjournal.vacationdays.DatePicker" />
<activity android:name="rocks.poopjournal.vacationdays.About" />
<activity android:name="rocks.poopjournal.vacationdays.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="rocks.poopjournal.vacationdays">

<application
android:name=".VacationApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@drawable/logo"
android:supportsRtl="true"
android:theme="@style/Theme.MyVacationDays2"
tools:replace="android:allowBackup">

<activity
android:name=".MainActivity2"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="androidx.appcompat.app.AppLocalesMetadataHolderService" android:enabled="false" android:exported="false">
<meta-data android:name="autoStoreLocales" android:value="true"/>
</service>
</application>

</manifest>
Loading

0 comments on commit e3aaa66

Please sign in to comment.