Skip to content

Commit 47197e6

Browse files
committed
feat: apply minifyEnabled in the plugin
1 parent 9be183a commit 47197e6

File tree

5 files changed

+40
-41
lines changed

5 files changed

+40
-41
lines changed

android/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ android {
3434
versionCode 1
3535
versionName "1.0"
3636
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
37-
// now, the rule skips all classes of Capacitor plugin for freeRASP
38-
consumerProguardFiles 'consumer-rules.pro'
3937
}
4038
buildTypes {
4139
release {
42-
minifyEnabled false
40+
minifyEnabled true
4341
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
4442
}
4543
}

android/consumer-rules.pro

Lines changed: 0 additions & 1 deletion
This file was deleted.

android/proguard-rules.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
23+
-dontwarn java.lang.invoke.StringConcatFactory

example/package-lock.json

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "0.0.1",
44
"private": true,
55
"dependencies": {
6-
"@capacitor/android": "5.0.5",
7-
"@capacitor/app": "5.0.3",
8-
"@capacitor/core": "5.0.5",
9-
"@capacitor/haptics": "5.0.4",
10-
"@capacitor/ios": "5.0.5",
11-
"@capacitor/keyboard": "5.0.4",
12-
"@capacitor/status-bar": "5.0.4",
6+
"@capacitor/android": "5.6.0",
7+
"@capacitor/app": "5.0.6",
8+
"@capacitor/core": "5.6.0",
9+
"@capacitor/haptics": "5.0.6",
10+
"@capacitor/ios": "5.6.0",
11+
"@capacitor/keyboard": "5.0.7",
12+
"@capacitor/status-bar": "5.0.6",
1313
"@ionic/react": "^7.0.0",
1414
"@ionic/react-router": "^7.0.0",
1515
"@types/jest": "^26.0.20",

0 commit comments

Comments
 (0)