proguard-rules.pro 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 requestPermission(java.lang.String, int);
  37. boolean showToast(java.lang.String, int, int, int, int);
  38. boolean sendMessage(int, int);
  39. boolean setActivityTitle(java.lang.String);
  40. boolean setCustomCursor(int);
  41. void setOrientation(int, int, boolean, java.lang.String);
  42. boolean setRelativeMouseEnabled(boolean);
  43. boolean setSystemCursor(int);
  44. void setWindowStyle(boolean);
  45. boolean shouldMinimizeOnFocusLoss();
  46. boolean showTextInput(int, int, int, int, int);
  47. boolean supportsRelativeMouse();
  48. int openFileDescriptor(java.lang.String, java.lang.String);
  49. boolean showFileDialog(java.lang.String[], boolean, boolean, int);
  50. }
  51. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
  52. void closeDevice(int);
  53. boolean initialize(boolean, boolean);
  54. boolean openDevice(int);
  55. boolean readReport(int, byte[], boolean);
  56. int writeReport(int, byte[], boolean);
  57. }
  58. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
  59. void registerAudioDeviceCallback();
  60. void unregisterAudioDeviceCallback();
  61. void audioSetThreadPriority(boolean, int);
  62. }
  63. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
  64. void pollInputDevices();
  65. void pollHapticDevices();
  66. void hapticRun(int, float, int);
  67. void hapticRumble(int, float, float, int);
  68. void hapticStop(int);
  69. }