Kotlin / Kotlin/kmp-basic-sample

Keep classed from shared module

Open
#51 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.1k
Forks
204
PR merge metrics
No merged PRs in 30d

Description

I have an enum in shared native code and I am using this enum to pass data between fragments using safe args. To make release build work I have to keep the enum. But if I am just adding -keep to proguard with full qualified package id doesn't work. So, how to keep classed from a shared native module?

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the shared native module, the enum used with Safe Args, and the release-build configuration. Reproduce the release build and determine why the qualified keep rule does not retain the enum; done means the release build succeeds while fragments can still pass the enum value.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.