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 { productFlavors {
create("open") { create("foss") {
dimension = "open" dimension = "foss"
versionNameSuffix = ".open-source" versionNameSuffix = ".foss"
} }
create("premium") { create("premium") {
dimension = "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()) return if (project(":core").file("src/main/golang/clash/script/script.go").exists())
"premium" "premium"
else else
"open" "foss"
} }

View File

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

View File

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

View File

@ -18,7 +18,10 @@ android {
buildTypes { buildTypes {
named("release") { named("release") {
isMinifyEnabled = false 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 { productFlavors {
create("open") { create("foss") {
dimension = "open" dimension = "foss"
} }
create("premium") { create("premium") {
dimension = "premium" dimension = "premium"