proguard-rules.pro 3.0 KB

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