android: a note on protect socket usage

This commit is contained in:
eric committed 2023-03-23 19:07:31 +08:00
1 parent faa77edfc7
commit 2bedeee96c
1 file changed
+6
+6
View File
@@ -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`.