Skip to content

Commit

Permalink
Fix r8 build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Drjacky committed Aug 7, 2023
1 parent 11cc901 commit 6909b49
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-dontwarn com.google.errorprone.annotations.**
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ buildscript {
repositories {
google()
mavenCentral()
maven {
url = uri("https://storage.googleapis.com/r8-releases/raw")
}
}
dependencies {
classpath(app.web.drjackycv.buildsrc.Depends.ClassPaths.r8)
classpath(app.web.drjackycv.buildsrc.Depends.ClassPaths.gradle)
classpath(
kotlin(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ object Depends {

object Versions {
const val appVersionCode = 1_000_000
const val gradleVersion = "8.2.0-alpha14"
const val r8Version = "8.1.56"
const val gradleVersion = "8.2.0-alpha15"
const val androidCompileSdkVersion = 33
const val targetSdkVersion = 33
const val minSdkVersion = 21
Expand Down Expand Up @@ -37,7 +38,7 @@ object Depends {
const val timberVersion = "5.0.1"
const val lottieVersion = "4.2.2"
const val glideVersion = "4.14.2"
const val autoDispose = "2.1.1"
const val autoDispose = "2.2.1"
const val dataStorePreferenceVersion = "1.0.0"
const val coroutinesAndroidVersion = "1.6.4"

Expand All @@ -62,6 +63,7 @@ object Depends {
}

object ClassPaths {
const val r8 = "com.android.tools:r8:${Versions.r8Version}"
const val gradle = "com.android.tools.build:gradle:${Versions.gradleVersion}"
const val kotlin_gradle_plugin = "gradle-plugin"
const val navigation_safe_args_gradle_plugin =
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx1536m -XX:+UseParallelGC
org.gradle.jvmargs=-Xms1536m -Xmx4096m -XX:+UseParallelGC
kotlin.code.style=official
android.useAndroidX=true
#android.enableJetifier=true
Expand All @@ -14,4 +14,5 @@ android.nonFinalResIds=false
#android.enableR8=true
#android.databinding.enableV2=true
#kapt.use.worker.api=false
#kotlin.incremental=false
#kotlin.incremental=false
android.enableR8.fullMode=false

0 comments on commit 6909b49

Please sign in to comment.