Skip to content

Commit ab8ea7c

Browse files
Copilotkavishdevar
andcommitted
Fix compilation errors: revert AGP to 8.5.2, update JVM target to 11, suppress experimental API warnings
Co-authored-by: kavishdevar <46088622+kavishdevar@users.noreply.github.com>
1 parent 599b820 commit ab8ea7c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

android/app/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ android {
3232
}
3333
}
3434
compileOptions {
35-
sourceCompatibility = JavaVersion.VERSION_1_8
36-
targetCompatibility = JavaVersion.VERSION_1_8
35+
sourceCompatibility = JavaVersion.VERSION_11
36+
targetCompatibility = JavaVersion.VERSION_11
3737
}
3838
kotlinOptions {
39-
jvmTarget = "1.8"
39+
jvmTarget = "11"
4040
}
4141
buildFeatures {
4242
compose = true

android/app/src/test/java/me/kavishdevar/librepods/MainActivityTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import org.robolectric.annotation.Config
3737
class MainActivityTest {
3838

3939
@Test
40+
@Suppress("DEPRECATION")
4041
fun testActivityCreation() {
4142
val activity = Robolectric.buildActivity(MainActivity::class.java)
4243
.create()
@@ -48,6 +49,7 @@ class MainActivityTest {
4849
}
4950

5051
@Test
52+
@Suppress("DEPRECATION")
5153
fun testDeepLinkHandling() {
5254
val intent = Intent().apply {
5355
action = Intent.ACTION_VIEW

android/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
accompanistPermissions = "0.36.0"
3-
agp = "8.5.2"
3+
agp = "8.4.2"
44
hiddenapibypass = "6.1"
55
kotlin = "2.1.10"
66
coreKtx = "1.16.0"

0 commit comments

Comments
 (0)