mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-14 07:45:06 +12:00
Add proper proguard rules (#412)
* add proper proguard-rules * enable apk optimisations * Android: Remove duplicate proguard rule * derp --------- Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
This commit is contained in:
parent
505abbe532
commit
267b1b3cc8
2 changed files with 16 additions and 13 deletions
|
@ -22,8 +22,8 @@ android {
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
getByName("release") {
|
getByName("release") {
|
||||||
isMinifyEnabled = false
|
isMinifyEnabled = true
|
||||||
isShrinkResources = false
|
isShrinkResources = true
|
||||||
isDebuggable = false
|
isDebuggable = false
|
||||||
signingConfig = signingConfigs.getByName("debug")
|
signingConfig = signingConfigs.getByName("debug")
|
||||||
proguardFiles(
|
proguardFiles(
|
||||||
|
|
23
src/pandroid/app/proguard-rules.pro
vendored
23
src/pandroid/app/proguard-rules.pro
vendored
|
@ -1,16 +1,19 @@
|
||||||
# Add project specific ProGuard rules here.
|
# Pandroid Proguard Rules
|
||||||
# You can control the set of applied configuration files using the
|
|
||||||
# proguardFiles setting in build.gradle.
|
|
||||||
#
|
|
||||||
# For more details, see
|
# For more details, see
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||||
|
|
||||||
# If your project uses WebView with JS, uncomment the following
|
# Keep all JNI and C++ related classes and methods
|
||||||
# and specify the fully qualified class name to the JavaScript interface
|
-keepclasseswithmembernames class * {
|
||||||
# class:
|
native <methods>;
|
||||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
}
|
||||||
# public *;
|
|
||||||
#}
|
# Keep all native libraries and their methods
|
||||||
|
-keep class * {
|
||||||
|
native <methods>;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Keep all classes in the specified package and its subpackages
|
||||||
|
-keep class com.panda3ds.pandroid.** {*;}
|
||||||
|
|
||||||
# Uncomment this to preserve the line number information for
|
# Uncomment this to preserve the line number information for
|
||||||
# debugging stack traces.
|
# debugging stack traces.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue