proguard-rules.pro 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in [sdk]/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # https://developer.android.com/build/shrink-code
  9. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLActivity {
  17. java.lang.String nativeGetHint(java.lang.String); # Java-side doesn't use this, so it gets minified, but C-side still tries to register it
  18. java.lang.String clipboardGetText();
  19. boolean clipboardHasText();
  20. void clipboardSetText(java.lang.String);
  21. int createCustomCursor(int[], int, int, int, int);
  22. void destroyCustomCursor(int);
  23. android.content.Context getContext();
  24. boolean getManifestEnvironmentVariables();
  25. android.view.Surface getNativeSurface();
  26. void initTouch();
  27. boolean isAndroidTV();
  28. boolean isChromebook();
  29. boolean isDeXMode();
  30. boolean isScreenKeyboardShown();
  31. boolean isTablet();
  32. void manualBackButton();
  33. int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]);
  34. void minimizeWindow();
  35. boolean openURL(java.lang.String);
  36. void onNativePen(int, int, int , float , float , float);
  37. void requestPermission(java.lang.String, int);
  38. boolean showToast(java.lang.String, int, int, int, int);
  39. boolean sendMessage(int, int);
  40. boolean setActivityTitle(java.lang.String);
  41. boolean setCustomCursor(int);
  42. void setOrientation(int, int, boolean, java.lang.String);
  43. boolean setRelativeMouseEnabled(boolean);
  44. boolean setSystemCursor(int);
  45. void setWindowStyle(boolean);
  46. boolean shouldMinimizeOnFocusLoss();
  47. boolean showTextInput(int, int, int, int, int);
  48. boolean supportsRelativeMouse();
  49. int openFileDescriptor(java.lang.String, java.lang.String);
  50. boolean showFileDialog(java.lang.String[], boolean, boolean, int);
  51. }
  52. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
  53. void closeDevice(int);
  54. boolean initialize(boolean, boolean);
  55. boolean openDevice(int);
  56. boolean readReport(int, byte[], boolean);
  57. int writeReport(int, byte[], boolean);
  58. }
  59. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
  60. void registerAudioDeviceCallback();
  61. void unregisterAudioDeviceCallback();
  62. void audioSetThreadPriority(boolean, int);
  63. }
  64. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
  65. void pollInputDevices();
  66. void pollHapticDevices();
  67. void hapticRun(int, float, int);
  68. void hapticRumble(int, float, float, int);
  69. void hapticStop(int);
  70. }