proguard-rules.pro 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.SDLActivity {
  17. void manualBackButton();
  18. boolean setActivityTitle(java.lang.String);
  19. void setWindowStyle(boolean);
  20. void setOrientation(int, int, boolean, java.lang.String);
  21. void minimizeWindow();
  22. boolean shouldMinimizeOnFocusLoss();
  23. boolean isScreenKeyboardShown();
  24. boolean supportsRelativeMouse();
  25. boolean setRelativeMouseEnabled(boolean);
  26. boolean sendMessage(int, int);
  27. android.content.Context getContext();
  28. boolean isAndroidTV();
  29. boolean isTablet();
  30. boolean isChromebook();
  31. boolean isDeXMode();
  32. boolean getManifestEnvironmentVariables();
  33. boolean showTextInput(int, int, int, int);
  34. android.view.Surface getNativeSurface();
  35. void initTouch();
  36. int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]);
  37. boolean clipboardHasText();
  38. java.lang.String clipboardGetText();
  39. void clipboardSetText(java.lang.String);
  40. int createCustomCursor(int[], int, int, int, int);
  41. void destroyCustomCursor(int);
  42. boolean setCustomCursor(int);
  43. boolean setSystemCursor(int);
  44. void requestPermission(java.lang.String, int);
  45. int openURL(java.lang.String);
  46. int showToast(java.lang.String, int, int, int, int);
  47. native java.lang.String nativeGetHint(java.lang.String);
  48. int openFileDescriptor(java.lang.String, java.lang.String);
  49. }
  50. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
  51. boolean initialize(boolean, boolean);
  52. boolean openDevice(int);
  53. int writeReport(int, byte[], boolean);
  54. boolean readReport(int, byte[], boolean);
  55. void closeDevice(int);
  56. }
  57. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
  58. void registerAudioDeviceCallback();
  59. void unregisterAudioDeviceCallback();
  60. int[] audioOpen(int, int, int, int, int);
  61. void audioWriteFloatBuffer(float[]);
  62. void audioWriteShortBuffer(short[]);
  63. void audioWriteByteBuffer(byte[]);
  64. int[] captureOpen(int, int, int, int, int);
  65. int captureReadFloatBuffer(float[], boolean);
  66. int captureReadShortBuffer(short[], boolean);
  67. int captureReadByteBuffer(byte[], boolean);
  68. void audioClose();
  69. void captureClose();
  70. void audioSetThreadPriority(boolean, int);
  71. int nativeSetupJNI();
  72. void removeAudioDevice(boolean, int);
  73. void addAudioDevice(boolean, java.lang.String, int);
  74. }
  75. -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
  76. void pollInputDevices();
  77. void pollHapticDevices();
  78. void hapticRun(int, float, int);
  79. void hapticStop(int);
  80. }