Chore: rename flavor 'open' to 'foss'

This commit is contained in:
kr328 2021-05-16 17:55:47 +08:00
parent b470dcc252
commit 45ab647c67
10 changed files with 27 additions and 15 deletions

View File

@ -38,9 +38,9 @@ android {
}
productFlavors {
create("open") {
dimension = "open"
versionNameSuffix = ".open-source"
create("foss") {
dimension = "foss"
versionNameSuffix = ".foss"
}
create("premium") {
dimension = "premium"

View File

@ -13,5 +13,5 @@ val Project.buildFlavor: String
return if (project(":core").file("src/main/golang/clash/script/script.go").exists())
"premium"
else
"open"
"foss"
}

View File

@ -19,7 +19,10 @@ android {
buildTypes {
named("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}

View File

@ -36,7 +36,7 @@ android {
arguments(
"-DGO_SOURCE:STRING=$golangSource",
"-DGO_OUTPUT:STRING=$golangBuild",
"-DFLAVOR_NAME=$buildFlavor"
"-DFLAVOR_NAME=$buildFlavor",
)
}
}
@ -45,13 +45,16 @@ android {
buildTypes {
named("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
productFlavors {
create("open") {
dimension = "open"
create("foss") {
dimension = "foss"
}
create("premium") {
dimension = "premium"

View File

@ -22,13 +22,16 @@ android {
buildTypes {
named("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
productFlavors {
create("open") {
dimension = "open"
create("foss") {
dimension = "foss"
}
create("premium") {
dimension = "premium"

View File

@ -18,7 +18,10 @@ android {
buildTypes {
named("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
}

View File

@ -32,8 +32,8 @@ android {
}
productFlavors {
create("open") {
dimension = "open"
create("foss") {
dimension = "foss"
}
create("premium") {
dimension = "premium"