Skip to content

Commit

Permalink
fix: r8 release failure (#1098)
Browse files Browse the repository at this point in the history
* fix: r8 causing api calls to fail

* chore: update version code
  • Loading branch information
Chesire authored Oct 10, 2023
1 parent cfee9ee commit 8e07b44
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
applicationId = "com.chesire.nekome"
minSdk = 21
targetSdk = libs.versions.sdk.get().toInt()
versionCode = 23100818 // Date of build formatted as 'yyMMddHH'
versionName = "2.1.0"
versionCode = 23101020 // Date of build formatted as 'yyMMddHH'
versionName = "2.1.1"
testInstrumentationRunner = "com.chesire.nekome.TestRunner"
resourceConfigurations += listOf("en", "ja")
}
Expand Down
9 changes: 9 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@
# https://developer.android.com/guide/navigation/navigation-pass-data#use_keepnames_rules
-keepnames class * extends android.os.Parcelable
-keepnames class * extends java.io.Serializable

# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items).
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response

# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-GB/changelogs/23101020.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix issue with R8 causing api failures
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/23101020.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix issue with R8 causing api failures

0 comments on commit 8e07b44

Please sign in to comment.