mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
73f62c9da6
* enable Proguard for release build to reduce apk size * add Proguard to default template * consider anysdk at proguard * remove un-used permissions * disbale gfx & renderer binding register
38 lines
1.3 KiB
Prolog
Executable File
38 lines
1.3 KiB
Prolog
Executable File
# Add project specific ProGuard rules here.
|
|
# By default, the flags in this file are appended to flags specified
|
|
# in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt
|
|
# You can edit the include path and order by changing the proguardFiles
|
|
# directive in build.gradle.
|
|
#
|
|
# For more details, see
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
# Add any project specific keep options here:
|
|
|
|
# If your project uses WebView with JS, uncomment the following
|
|
# and specify the fully qualified class name to the JavaScript interface
|
|
# class:
|
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
# public *;
|
|
#}
|
|
|
|
# Proguard Cocos2d-x-lite for release
|
|
-keep public class org.cocos2dx.** { *; }
|
|
-dontwarn org.cocos2dx.**
|
|
|
|
# Proguard Apache HTTP for release
|
|
-keep class org.apache.http.** { *; }
|
|
-dontwarn org.apache.http.**
|
|
|
|
# Proguard Android Webivew for release. you can comment if you are not using a webview
|
|
-keep public class android.net.http.SslError
|
|
-keep public class android.webkit.WebViewClient
|
|
|
|
-dontwarn android.webkit.WebView
|
|
-dontwarn android.net.http.SslError
|
|
-dontwarn android.webkit.WebViewClient
|
|
|
|
# keep anysdk for release. you can comment if you are not using anysdk
|
|
-keep public class com.anysdk.** { *; }
|
|
-dontwarn com.anysdk.**
|