-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflect issue in minified android apk. Add proguard section in README? #106
Comments
Hi @qavan , Just to understand, should we update documentation to reflect usage with android/proguard or do you think there's a need for a fix in the code? Would you be willing to make a PR for the readme? |
Hmm, i think reason not in code. |
Could you make a sample minimal project to reproduce this issue? |
Hi, I have a similar problem with obfuscation from 1.6.0, at this link I provided an example project showing the error |
Thanks @andrea157 . I don't think it's an issue with kotlin-faker, especially seeing that your example does not use kotlin-faker at all. |
Hi @qavan , |
Nice lib, thx!
I received
kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar
error at runtime in minified android build but all my modules includes reflect dependency...Got correct stacktrace only after cleaning ALL caches (in project, in
.gradle
transform and build-caches dirs).Correct stacktrace which helps me fix problem was
Property 'unique' (JVM signature: getUnique()Lio/github/serpro69/kfaker/provider/GameOfThrones;) not resolved in class te1
Adding
-keepclasseswithmembers class io.github.serpro69.**{*;}
in proguard rules and removingandroid.enableR8.fullMode=true
fixed problem.Using non unique getters not receivies exception
The text was updated successfully, but these errors were encountered: