proguard-rules.pro 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. java.lang.String getPreferredLocales();
  52. java.lang.String formatLocale(java.util.Locale);
  53. }
  54. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
  55. void closeDevice(int);
  56. boolean initialize(boolean, boolean);
  57. boolean openDevice(int);
  58. boolean readReport(int, byte[], boolean);
  59. int writeReport(int, byte[], boolean);
  60. }
  61. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
  62. void registerAudioDeviceCallback();
  63. void unregisterAudioDeviceCallback();
  64. void audioSetThreadPriority(boolean, int);
  65. }
  66. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
  67. void pollInputDevices();
  68. void pollHapticDevices();
  69. void hapticRun(int, float, int);
  70. void hapticRumble(int, float, float, int);
  71. void hapticStop(int);
  72. }