Skip to content

Commit

Permalink
build: internal changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Sep 28, 2024
1 parent 96f869a commit d5300c8
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ android {
versionName = rootProject.extra["versionName"] as String
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { useSupportLibrary = true }

if (splitApks) {
splits {
abi {
isEnable = true
reset()
include("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
isUniversalApk = true
}
}
} else {
ndk { abiFilters.addAll(abiFilterList) }
}
}

room { schemaDirectory("$projectDir/schemas") }
Expand Down Expand Up @@ -99,38 +112,17 @@ android {
flavorDimensions += "publishChannel"

productFlavors {
create("generic") {
dimension = "publishChannel"
splits {
abi {
isEnable = true
reset()
include("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
isUniversalApk = true
}
}
}
create("generic") { dimension = "publishChannel" }

create("githubPreview") {
dimension = "publishChannel"
applicationIdSuffix = ".preview"
resValue("string", "app_name", "Seal Preview")
splits {
abi {
isEnable = true
reset()
//noinspection ChromeOsAbiSupport
include("arm64-v8a")
isUniversalApk = false
}
}
}

create("fdroid") {
dimension = "publishChannel"
versionName = "$versionName-(F-Droid)"
splits { abi { isEnable = false } }
ndk { abiFilters.addAll(abiFilterList) }
}
}

Expand Down

0 comments on commit d5300c8

Please sign in to comment.