Skip to content

Commit 767e4fe

Browse files
authored
Merge pull request #121 from SecUSo/update-dependencies
Update dependencies
2 parents 3eeaa62 + 4c6e532 commit 767e4fe

File tree

7 files changed

+40
-29
lines changed

7 files changed

+40
-29
lines changed

app/build.gradle

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-parcelize'
34

45
android {
5-
compileSdkVersion 33
6-
76
defaultConfig {
87
applicationId "privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist"
98
minSdkVersion 19
10-
targetSdkVersion 33
9+
compileSdk 34
10+
targetSdkVersion 34
1111
versionCode 8
1212
versionName "1.1"
1313
multiDexEnabled true
@@ -23,8 +23,16 @@ android {
2323
}
2424

2525
compileOptions {
26-
sourceCompatibility JavaVersion.VERSION_1_8
27-
targetCompatibility JavaVersion.VERSION_1_8
26+
sourceCompatibility JavaVersion.VERSION_17
27+
targetCompatibility JavaVersion.VERSION_17
28+
}
29+
30+
kotlinOptions {
31+
jvmTarget = JavaVersion.VERSION_17.toString()
32+
}
33+
34+
kotlin {
35+
jvmToolchain {17}
2836
}
2937

3038
testOptions {
@@ -58,10 +66,11 @@ android {
5866
lint {
5967
lintConfig = file("lint.xml")
6068
}
69+
namespace 'privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist'
6170
}
6271

63-
android.applicationVariants.all { variant ->
64-
variant.outputs.all {
72+
android.applicationVariants.configureEach { variant ->
73+
variant.outputs.configureEach {
6574
def appName = "pfa-shopping-list"
6675
outputFileName = appName + "-${variant.name}-v${variant.versionName}.apk"
6776
}
@@ -70,17 +79,16 @@ android.applicationVariants.all { variant ->
7079
dependencies {
7180
implementation fileTree(include: ['*.jar'], dir: 'libs')
7281
// android
73-
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
7482

75-
implementation 'androidx.appcompat:appcompat:1.5.1'
76-
implementation 'com.google.android.material:material:1.6.1'
83+
implementation 'androidx.appcompat:appcompat:1.6.1'
84+
implementation 'com.google.android.material:material:1.11.0'
7785
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
7886
implementation 'androidx.preference:preference-ktx:1.2.1'
79-
implementation 'androidx.recyclerview:recyclerview:1.2.1'
87+
implementation 'androidx.recyclerview:recyclerview:1.3.2'
8088
implementation 'androidx.cardview:cardview:1.0.0'
8189

8290
// tests
83-
testImplementation 'junit:junit:4.12'
91+
testImplementation 'junit:junit:4.13.2'
8492
testImplementation 'org.mockito:mockito-core:2.7.6'
8593
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
8694
androidTestImplementation 'androidx.test:rules:1.6.1'
@@ -104,17 +112,17 @@ dependencies {
104112
// image zoom
105113
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
106114

107-
implementation 'androidx.sqlite:sqlite:2.3.0'
108-
implementation 'androidx.sqlite:sqlite-ktx:2.3.0'
115+
implementation 'androidx.sqlite:sqlite:2.4.0'
116+
implementation 'androidx.sqlite:sqlite-ktx:2.4.0'
109117

110118
// Backup API
111119
implementation project(':backup-api')
112-
def work_version = '2.7.1'
120+
def work_version = '2.9.0'
113121
implementation "androidx.work:work-runtime:$work_version"
114122
implementation "androidx.work:work-runtime-ktx:$work_version"
115123
androidTestImplementation "androidx.work:work-testing:$work_version"
116124

117-
implementation 'androidx.core:core-ktx:1.7.20'
125+
implementation "androidx.core:core-ktx:$kotlin_version"
118126

119127
// Multi-Dex
120128
def multidex_version = "2.0.1"

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<manifest
22
xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist">
3+
xmlns:tools="http://schemas.android.com/tools">
54

65
<uses-permission android:name="android.permission.CAMERA"/>
6+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
77
<uses-feature android:name="android.hardware.camera" android:required="false"/>
88

99
<supports-screens

app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/PFAShoppingListApplication.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class PFAShoppingListApplication : Application(), Configuration.Provider {
3434
}
3535
}
3636

37-
override fun getWorkManagerConfiguration(): Configuration {
38-
return Configuration.Builder().setMinimumLoggingLevel(Log.INFO).build()
39-
}
37+
override val workManagerConfiguration: Configuration
38+
get() = Configuration.Builder().setMinimumLoggingLevel(Log.INFO).build()
4039
}

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildscript {
66
google()
77
}
88

9-
ext.kotlin_version = "1.7.20"
9+
ext.kotlin_version = "1.9.10"
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.3.1'
11+
classpath 'com.android.tools.build:gradle:8.1.4'
1212
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

@@ -25,6 +25,6 @@ allprojects {
2525
}
2626
}
2727

28-
task clean(type: Delete) {
28+
tasks.register('clean', Delete) {
2929
delete rootProject.buildDir
3030
}

gradle.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
19+
android.defaults.buildfeatures.buildconfig=true
1920
android.enableJetifier=true
20-
android.useAndroidX=true
21+
android.nonFinalResIds=false
22+
android.nonTransitiveRClass=false
23+
android.useAndroidX=true
24+
org.gradle.jvmargs=-Xmx1536m
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Jan 13 12:17:28 CET 2023
1+
#Mon Dec 09 15:57:39 CET 2024
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)