diff --git a/app/build.gradle b/app/build.gradle index 9d722e9..2fb6208 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,22 +46,36 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile( 'proguard-android-optimize.txt' ), 'proguard-rules.pro' + signingConfig signingConfigs.release } debug { signingConfig signingConfigs.debug } } + + splits { + abi { + enable true + reset() + include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' + universalApk true + } + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + kotlinOptions { jvmTarget = '1.8' } + buildFeatures { viewBinding true } @@ -71,7 +85,10 @@ dependencies { implementation fileTree(dir: "libs", include: ["extension-*.aar"]) // Exoplayer - implementation "com.google.android.exoplayer:exoplayer:2.18.0" + def exoplayer_version = "2.18.0" + implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version" + implementation "com.google.android.exoplayer:exoplayer-dash:$exoplayer_version" + implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer_version" // Datastore implementation "androidx.datastore:datastore-preferences:1.0.0" diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..e471aa1 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,18 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +# To remove Log messages +-assumenosideeffects class android.util.Log { + public static *** d(...); + public static *** v(...); +} + +# keep data-classes from google.api +-keep class * extends com.google.api.client.json.GenericJson { + *; +} +-keep class com.google.api.services.drive.** { + *; +} \ No newline at end of file