proguard-rules.pro 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. # http://developer.android.com/guide/developing/tools/proguard.html
  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.SDLInputConnection {
  17. void nativeCommitText(java.lang.String, int);
  18. void nativeGenerateScancodeForUnichar(char);
  19. }
  20. -keep,includedescriptorclasses class org.libsdl.app.SDLActivity {
  21. # for some reason these aren't compatible with allowoptimization modifier
  22. boolean supportsRelativeMouse();
  23. void setWindowStyle(boolean);
  24. }
  25. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLActivity {
  26. 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
  27. boolean onNativeSoftReturnKey();
  28. void onNativeKeyboardFocusLost();
  29. boolean isScreenKeyboardShown();
  30. android.util.DisplayMetrics getDisplayDPI();
  31. java.lang.String clipboardGetText();
  32. boolean clipboardHasText();
  33. void clipboardSetText(java.lang.String);
  34. int createCustomCursor(int[], int, int, int, int);
  35. void destroyCustomCursor(int);
  36. android.content.Context getContext();
  37. boolean getManifestEnvironmentVariables();
  38. android.view.Surface getNativeSurface();
  39. void initTouch();
  40. boolean isAndroidTV();
  41. boolean isChromebook();
  42. boolean isDeXMode();
  43. boolean isTablet();
  44. void manualBackButton();
  45. int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]);
  46. void minimizeWindow();
  47. int openURL(java.lang.String);
  48. void requestPermission(java.lang.String, int);
  49. int showToast(java.lang.String, int, int, int, int);
  50. boolean sendMessage(int, int);
  51. boolean setActivityTitle(java.lang.String);
  52. boolean setCustomCursor(int);
  53. void setOrientation(int, int, boolean, java.lang.String);
  54. boolean setRelativeMouseEnabled(boolean);
  55. boolean setSystemCursor(int);
  56. boolean shouldMinimizeOnFocusLoss();
  57. boolean showTextInput(int, int, int, int);
  58. }
  59. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
  60. boolean initialize(boolean, boolean);
  61. boolean openDevice(int);
  62. int sendOutputReport(int, byte[]);
  63. int sendFeatureReport(int, byte[]);
  64. boolean getFeatureReport(int, byte[]);
  65. void closeDevice(int);
  66. }
  67. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
  68. int[] getAudioOutputDevices();
  69. int[] getAudioInputDevices();
  70. int[] audioOpen(int, int, int, int, int);
  71. void audioWriteFloatBuffer(float[]);
  72. void audioWriteShortBuffer(short[]);
  73. void audioWriteByteBuffer(byte[]);
  74. void audioClose();
  75. int[] captureOpen(int, int, int, int, int);
  76. int captureReadFloatBuffer(float[], boolean);
  77. int captureReadShortBuffer(short[], boolean);
  78. int captureReadByteBuffer(byte[], boolean);
  79. void captureClose();
  80. void audioSetThreadPriority(boolean, int);
  81. native int nativeSetupJNI();
  82. native void removeAudioDevice(boolean, int);
  83. native void addAudioDevice(boolean, int);
  84. }
  85. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
  86. void pollInputDevices();
  87. void pollHapticDevices();
  88. void hapticRun(int, float, int);
  89. void hapticStop(int);
  90. }