Skip to content

Commit

Permalink
fix: proguard for android class
Browse files Browse the repository at this point in the history
-keep class tv.danmaku.ijk.media.player.**{*;} (#98)
  • Loading branch information
huluxia authored and befovy committed Nov 14, 2019
1 parent a989ac0 commit 1f85f28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ android {
release {
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions example/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-keep class tv.danmaku.ijk.media.player.** {
*;
}

0 comments on commit 1f85f28

Please sign in to comment.