Skip to content

Commit

Permalink
Merge pull request gree#735 from gree/feature/proguard
Browse files Browse the repository at this point in the history
added proguard settings so that the resulting aar has proguard.txt.
  • Loading branch information
KojiNakamaru authored Sep 14, 2021
2 parents 63ae43e + 123b87a commit 463fe7e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/Android/gradle_build/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ android {
targetSdkVersion 30
versionCode 1
versionName "1.0"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
Expand Down
3 changes: 3 additions & 0 deletions plugins/Android/gradle_build/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-keep class net.gree.unitywebview.** {
*;
}
21 changes: 21 additions & 0 deletions plugins/Android/gradle_build/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# 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 *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

0 comments on commit 463fe7e

Please sign in to comment.