Skip to content

Commit 04e1994

Browse files
authored
Merge pull request #337 from cbalster/update_target_sdk_and_minor_cleanup
Update target sdk and minor cleanup
2 parents 4d0450a + f0cf052 commit 04e1994

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+144
-53
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/setup-java@v2
2424
with:
2525
distribution: 'zulu'
26-
java-version: 11
26+
java-version: 17
2727

2828
- name: Run Android Linter
2929
run: ./gradlew lint --stacktrace

app/build.gradle

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ android {
2121
}
2222
}
2323

24-
compileSdkVersion 33
24+
compileSdk 33
2525

2626
defaultConfig {
2727
applicationId "de.stephanlindauer.criticalmaps"
2828
minSdkVersion 16
29-
targetSdkVersion 31
29+
targetSdkVersion 33
3030
versionCode 47
3131
versionName "2.8.2"
3232
vectorDrawables.useSupportLibrary = true
@@ -50,6 +50,7 @@ android {
5050
signingConfig signingConfigs.releaseConfig
5151
}
5252
}
53+
5354
packagingOptions {
5455
resources {
5556
excludes += ['META-INF/services/javax.annotation.processing.Processor']
@@ -68,17 +69,18 @@ android {
6869
lint {
6970
warning 'MissingTranslation', 'StringFormatInvalid', 'NewApi', 'InvalidPackage'
7071
}
72+
7173
namespace 'de.stephanlindauer.criticalmaps'
7274
}
7375

7476
dependencies {
7577
implementation 'com.squareup:otto:1.3.8'
7678
implementation 'org.osmdroid:osmdroid-android:6.1.8'
7779
implementation 'com.squareup.picasso:picasso:2.8'
78-
implementation 'androidx.appcompat:appcompat:1.6.0'
79-
implementation 'androidx.annotation:annotation:1.5.0'
80-
implementation 'com.google.android.material:material:1.9.0-alpha01'
81-
implementation 'androidx.exifinterface:exifinterface:1.3.5'
80+
implementation 'androidx.appcompat:appcompat:1.6.1'
81+
implementation 'androidx.annotation:annotation:1.6.0'
82+
implementation 'com.google.android.material:material:1.9.0'
83+
implementation 'androidx.exifinterface:exifinterface:1.3.6'
8284
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
8385
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
8486
implementation 'com.jakewharton.timber:timber:5.0.1'
@@ -90,17 +92,27 @@ dependencies {
9092
implementation "com.google.dagger:dagger:$dagger_version"
9193
annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
9294

93-
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
95+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
9496

9597
errorprone("com.google.errorprone:error_prone_core:2.18.0")
9698

9799
testImplementation 'junit:junit:4.13.2'
98100
testImplementation 'com.google.truth:truth:1.1.3'
99-
testImplementation 'org.mockito:mockito-core:5.1.1'
101+
testImplementation 'org.mockito:mockito-core:5.4.0'
100102

101103
androidTestImplementation 'androidx.test:core:1.5.0'
102104
androidTestImplementation 'androidx.test:runner:1.5.2'
103105
androidTestImplementation 'androidx.test:rules:1.5.0'
104106
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
105107
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
108+
109+
// https://youtrack.jetbrains.com/issue/KT-54136/Duplicated-classes-cause-build-failure-if-a-dependency-to-kotlin-stdlib-specified-in-an-android-project#focus=Comments-27-6583109.0-0
110+
constraints {
111+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
112+
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
113+
}
114+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
115+
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
116+
}
117+
}
106118
}
-11.6 KB
Binary file not shown.
-7.72 KB
Binary file not shown.
-16 KB
Binary file not shown.
-26.5 KB
Binary file not shown.
-32.4 KB
Binary file not shown.

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:tools="http://schemas.android.com/tools"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
34

45
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
56
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
@@ -28,10 +29,12 @@
2829
android:name=".App"
2930
android:allowBackup="true"
3031
android:fullBackupContent="@xml/backup_descriptor"
32+
android:dataExtractionRules="@xml/data_extraction_rules"
3133
android:icon="@mipmap/ic_launcher"
3234
android:label="@string/app_name"
33-
android:roundIcon="@mipmap/ic_launcher"
34-
android:supportsRtl="true">
35+
android:roundIcon="@mipmap/ic_launcher_round"
36+
android:supportsRtl="true"
37+
tools:targetApi="s">
3538

3639
<activity
3740
android:name="de.stephanlindauer.criticalmaps.Main"
38.9 KB
Loading

app/src/main/ic_launcher-web.png

-56.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)