mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-06 16:01:29 +00:00
android: a note on protect socket usage
This commit is contained in:
1 parent
faa77edfc7
commit
2bedeee96c
1 file changed
+6
@@ -1,5 +1,11 @@
|
||||
/// Example:
|
||||
///
|
||||
/// Note: the protect method could be identified as unused code on the Android
|
||||
/// side and stripped by ProGuard, you may need to add a keep rule to let
|
||||
/// ProGuard knows we need the code, e.g.:
|
||||
///
|
||||
/// -keep class com.leaf.and.aleaf.** { *; }
|
||||
///
|
||||
/// // Sets a callback method to protect sockets.
|
||||
/// //
|
||||
/// // Expects a method with the given name and signature `(I)Z`.
|
||||
|
||||
Reference in new issue
Block a user