Skip to content

Commit

Permalink
Update JNA library text
Browse files Browse the repository at this point in the history
Co-authored-by: Erdem Yerebasmaz <[email protected]>
  • Loading branch information
dangeross and erdemyerebasmaz authored Jun 20, 2024
1 parent 3fdf938 commit fe6036d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/android_troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Starting with this 1.8.20 release, the Kotlin K2 compiler has a preview version

JNA relies on specific class and method names to load native libraries and access native code. If these names are obfuscated or removed, it can cause runtime errors and failures in native library loading.

The JNA library code obfuscation issue may not be apparent until compiled on "release" mode with maximum optimization and minimal footprint size that'll be used when deploying and publishing an application.
The JNA library code obfuscation issue may not be apparent until your application is compiled on `release` mode with maximum optimization and minimal footprint size, that will be used when deploying and publishing an application.

To ensure proper functionality, a Proguard rules needs to be added to explicitly tell R8 compiler to keep certain parts of the JNA library. Here is an example of Proguard rules:
```pro
Expand Down

0 comments on commit fe6036d

Please sign in to comment.