Skip to content

Commit

Permalink
Fix R8 issues temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
fornewid committed Dec 9, 2023
1 parent b8e7337 commit 8cfc90d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
java-version: 17

- name: Build, lint and spotless
run: ./gradlew spotlessCheck dependencyGuard assemble lintDebug --scan
run: ./gradlew spotlessCheck dependencyGuard lintDebug assemble --scan
3 changes: 0 additions & 3 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
-dontwarn org.jetbrains.annotations.**
-keep class kotlin.Metadata { *; }

# For dynamic-features module
-keep class soup.movie.theatermap.** { *; }

# For kotlinx.serialization
-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.SerializationKt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fun Project.configureKotlin() {
freeCompilerArgs = freeCompilerArgs + listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",

// https://github.com/Kotlin/kotlinx.serialization/issues/2145#issuecomment-1653091753
"-Xstring-concat=inline",
)
}
}
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ kapt.include.compile.classpath=false
# Non-transitive R classes is recommended and is faster/smaller
android.nonTransitiveRClass=true

# Default values changed on AGP 8.0
# https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes#default-changes
android.nonFinalResIds=false
android.enableR8.fullMode=false

# Default build features
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.aidl=false
Expand Down

0 comments on commit 8cfc90d

Please sign in to comment.