Fix: Fixed nightly builds to not overlap with other versions

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-07-09 13:02:33 +01:00
parent 87d2395115
commit e8d6a9abf5
2 changed files with 29 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ jobs:
run: printf "%s" "${{ secrets.WEATHER_PROPERTIES }}" > $GITHUB_WORKSPACE/weather.properties
- name: Build with Gradle
run: ./gradlew clean && ./gradlew assembleWithInternetRelease && ./gradlew assembleWithoutInternetRelease
run: ./gradlew clean && ./gradlew assembleWithInternetNightlyRelease && ./gradlew assembleWithoutInternetNightlyRelease
- name: Sign APK - WithInternet
uses: ilharp/sign-android-release@v1.0.4

View File

@@ -91,6 +91,34 @@ android {
value = "\"REMOVE\""
)
}
create("withInternetNightly") {
dimension = "internet"
applicationIdSuffix = ".nightly"
manifestPlaceholders["internetPermission"] = "android.permission.INTERNET"
val weatherFile = project.rootProject.file("weather.properties")
val properties = Properties()
properties.load(weatherFile.inputStream())
val apiKey = properties.getProperty("WEATHER_API_KEY") ?: ""
buildConfigField(
type = "String",
name = "API_KEY",
value = "\"$apiKey\""
)
resValue("string", "app_name", "Easy Launcher (Nightly)")
}
create("withoutInternetNightly") {
dimension = "internet"
applicationIdSuffix = ".nightly"
manifestPlaceholders["internetPermission"] = "REMOVE"
buildConfigField(
type = "String",
name = "API_KEY",
value = "\"REMOVE\""
)
resValue("string", "app_name", "Easy Launcher (Nightly)")
}
}
composeOptions {