Skip to content

Commit

Permalink
build: split apk builds
Browse files Browse the repository at this point in the history
  • Loading branch information
urFate committed Oct 13, 2024
1 parent 2cd6a42 commit bbfc645
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
15 changes: 15 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,35 @@ android {
isDebuggable = true
}
}

splits {
abi {
isEnable = true
isUniversalApk = true

reset()
include("armeabi-v7a", "arm64-v8a", "x86_64")
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
compose = true
buildConfig = true
}

composeOptions {
kotlinCompilerExtensionVersion = "1.5.4"
}

packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies {
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.androidx.test.espresso.core)

implementation(libs.ffmpeg.kit.full)
implementation(libs.ffmpeg.kit.min)

// Room
api(libs.androidx.room.runtime)
Expand Down
5 changes: 2 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
ffmpegKitFull = "6.0-2"
ffmpegKitMin = "6.0-2"
googleServicesVersion = "4.4.2"
kotlin = "2.0.20"
ksp = "2.0.20-1.0.25"
Expand All @@ -13,7 +13,6 @@ androidxLifecycle = "2.8.5"
androidxActivity = "1.9.2"
androidxComposeUi = "1.7.0"
androidxCompose = "2024.09.00"
okhttp = "3.2.0"
orgJetbrainsKotlin = "1.9.23"
androidxGraphics = "1.0.1"
junit = "4.13.2"
Expand Down Expand Up @@ -48,7 +47,7 @@ androidx-compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics", ver
androidx-compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "androidxComposeUi" }
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidxLifecycle" }
androidx-compose-bom = { module = "androidx.compose:compose-bom", version.ref = "androidxCompose" }
ffmpeg-kit-full = { module = "com.arthenica:ffmpeg-kit-full", version.ref = "ffmpegKitFull" }
ffmpeg-kit-min = { module = "com.arthenica:ffmpeg-kit-min", version.ref = "ffmpegKitMin" }
firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx" }
firebase-crashlytics-ktx = { module = "com.google.firebase:firebase-crashlytics-ktx" }
firebase-inappmessaging-display = { module = "com.google.firebase:firebase-inappmessaging-display" }
Expand Down

0 comments on commit bbfc645

Please sign in to comment.