diff --git a/android/app/build.gradle b/android/app/build.gradle index a8d39ed..6fb76f5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -99,6 +99,12 @@ android { */ + packagingOptions { + // Fixes duplicate libraries build issue, + // when your project uses more than one plugin that depend on C++ libs. + pickFirst 'lib/**/libc++_shared.so' + } + signingConfigs { release { keyAlias keystoreProperties['keyAlias'] @@ -116,6 +122,9 @@ android { minifyEnabled true shrinkResources true debuggable false + proguardFiles getDefaultProguardFile( + 'proguard-android-optimize.txt'), + 'proguard-rules.pro' } } } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..b714dae --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1 @@ +-keep class org.videolan.libvlc.** { *; } \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4e5c213..9506e3a 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,8 @@ + +