File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ new releases of `rustls-platform-verifier` are published. If you only use publis
93
93
These script snippets can be tweaked as best suits your project, but the ` cargo metadata ` invocation must be included so that the Android
94
94
implementation part can be located on disk.
95
95
96
+ If your Android application makes use of Proguard for optimizations, its important to make sure that the Android verifier component isn't optimized
97
+ out because it looks like dead code". Proguard is unable to see any JNI usage, so your rules must manually opt into keeping it. THe following rule
98
+ can do this for you:
99
+ ``` text
100
+ -keep, includedescriptorclasses class org.rustls.platformverifier.** { *; }
101
+ ```
102
+
96
103
#### Crate initialization
97
104
98
105
In order for the crate to call into the JVM, it needs handles from Android. These
You can’t perform that action at this time.
0 commit comments