Skip to content

Commit

Permalink
#307: Flavors for FDroid without DEPENDENCY_INFO_BLOCK
Browse files Browse the repository at this point in the history
  • Loading branch information
pyamsoft committed Jun 22, 2024
1 parent 3dfb21d commit a02f641
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ android {
targetSdk = rootProject.extra["targetSdk"] as Int

vectorDrawables.useSupportLibrary = true

}

compileOptions {
Expand Down Expand Up @@ -71,6 +72,31 @@ android {
}
}

// https://developer.android.com/build/build-variants
flavorDimensions += listOf("store")

productFlavors {
create("fdroid") {
dimension = "store"

// https://github.com/pyamsoft/tetherfi/issues/307
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
}

create("google") {
dimension = "store"

// https://github.com/pyamsoft/tetherfi/issues/307
dependenciesInfo {
includeInApk = true
includeInBundle = true
}
}
}

buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
Expand Down

0 comments on commit a02f641

Please sign in to comment.