Repository navigation
Fixed
Android release builds with minifyEnabled true now work without any ProGuard configuration (#438).
The library now ships its own consumer-rules.pro, which AGP merges into your app automatically. Copying Kakao's documented rules by hand is no longer necessary — and was never sufficient: under R8 full mode (the AGP default since 8.0) those rules leave the release build either failing outright or crashing at login.
Verified against a real R8 full-mode build (AGP 8.12, Kakao SDK 2.24.0) with the consuming app's own proguard-rules.pro left empty:
| consumer rules | result |
|---|---|
| none | :app:minifyReleaseWithR8 fails — Missing classes for bouncycastle / conscrypt / openjsse |
| Kakao's documented set | builds, but R8 strips kotlin.coroutines.Continuation, retrofit2.Response and 8 com.kakao.sdk interfaces |
| 6.0.4 | builds clean, all of the above retained |
Three details differ from the common advice, each checked against the artifacts:
- Retrofit 2.9.0 does ship
META-INF/proguard/retrofit2.pro. It is missing exactly the five rules added in 2.10/2.11 — chiefly the ones preserving the generic return types of annotated service interfaces. Only that delta is backported. - Kakao 2.24.0 serializes with kotlinx.serialization, not Gson. The documented
-keep class * extends com.google.gson.TypeAdapteris a 2.20.x leftover; as a consumer rule it would pin everyTypeAdapterin your app, so it is scoped tocom.kakao.sdk.**. - An enum keep was missing:
GenericEnumSerializerbuilds its name map fromgetEnumConstants(), which ART implements by invoking the enum's staticvalues().
Published package no longer contains the example app. !**/*.d.ts made npm-packlist drop every preceding directory rule, so 6.0.3 shipped 81 KakaoLoginExample/* files including a 600 kB yarn.lock. npm pack: 129 files → 38.
Full Changelog: 6.0.3...6.0.4