Skip to content

Commit 25905e1

Browse files
Ali Abdelfattahalyezz
Ali Abdelfattah
andauthored
Add Proguard rules for the Android Plugin (#131)
* Add proguard-rules for instabug-flutter package * Update sample app targetSdkVersion to 29 * Format sample app main.dart * Update CHANGELOG.md Co-authored-by: Aly Ezz <[email protected]>
1 parent 54274c9 commit 25905e1

File tree

5 files changed

+196
-181
lines changed

5 files changed

+196
-181
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## master
2+
3+
* Added Proguard rules to protect Flutter bridge class and method names from getting obfuscated when the minifyEnabled flag is set to true.
4+
15
## v9.1.0 (2020-03-19)
26

37
* Bump Native SDKs to v9.1

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ android {
2727
defaultConfig {
2828
minSdkVersion 16
2929
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
30+
consumerProguardFiles 'proguard-rules.txt'
3031
}
3132
lintOptions {
3233
disable 'InvalidPackage'

android/proguard-rules.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-keep class com.instabug.instabugflutter.** {*;}

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ android {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "com.instabug.instabugflutterexample"
3737
minSdkVersion 16
38-
targetSdkVersion 27
38+
targetSdkVersion 29
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
4141
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

0 commit comments

Comments
 (0)