Fix: Fixed nightly builds to not overlap with other versions
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
2
.github/workflows/nightly-release.yml
vendored
2
.github/workflows/nightly-release.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
|||||||
run: printf "%s" "${{ secrets.WEATHER_PROPERTIES }}" > $GITHUB_WORKSPACE/weather.properties
|
run: printf "%s" "${{ secrets.WEATHER_PROPERTIES }}" > $GITHUB_WORKSPACE/weather.properties
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew clean && ./gradlew assembleWithInternetRelease && ./gradlew assembleWithoutInternetRelease
|
run: ./gradlew clean && ./gradlew assembleWithInternetNightlyRelease && ./gradlew assembleWithoutInternetNightlyRelease
|
||||||
|
|
||||||
- name: Sign APK - WithInternet
|
- name: Sign APK - WithInternet
|
||||||
uses: ilharp/sign-android-release@v1.0.4
|
uses: ilharp/sign-android-release@v1.0.4
|
||||||
|
|||||||
@@ -91,6 +91,34 @@ android {
|
|||||||
value = "\"REMOVE\""
|
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 {
|
composeOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user