Skip to content

Commit 7c38944

Browse files
authored
Merge pull request #861 from android/fix-retrofit
Fix for Retrofit R8 issue, bump version to 0.1.2
2 parents 6ab175c + 6549444 commit 7c38944

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ plugins {
2929
android {
3030
defaultConfig {
3131
applicationId = "com.google.samples.apps.nowinandroid"
32-
versionCode = 7
33-
versionName = "0.1.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level
32+
versionCode = 8
33+
versionName = "0.1.2" // X.Y.Z; X = Major, Y = minor, Z = Patch level
3434

3535
// Custom test runner to set up Hilt dependency graph
3636
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"

app/proguard-rules.pro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@
77
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
88
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
99
-dontwarn org.openjsse.net.ssl.OpenJSSE
10+
11+
# Fix for Retrofit issue https://github.com/square/retrofit/issues/3751
12+
# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items).
13+
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
14+
-keep,allowobfuscation,allowshrinking class retrofit2.Response
15+
16+
# With R8 full mode generic signatures are stripped for classes that are not
17+
# kept. Suspend functions are wrapped in continuations where the type argument
18+
# is used.
19+
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

0 commit comments

Comments
 (0)