Skip to content

Commit

Permalink
Merge pull request #10 from itsZECHS/optimize_build
Browse files Browse the repository at this point in the history
Optimize build
  • Loading branch information
itszechs authored Jun 21, 2022
2 parents 950422c + 6e1f666 commit 05d9621
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
21 changes: 19 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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"
Expand Down
16 changes: 15 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,18 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-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.** {
*;
}

0 comments on commit 05d9621

Please sign in to comment.