Fix pr check
This commit is contained in:
parent
fc5c6417da
commit
7b6c50d718
4 changed files with 8 additions and 2 deletions
1
.github/workflows/PR_check.yml
vendored
1
.github/workflows/PR_check.yml
vendored
|
|
@ -34,7 +34,6 @@ jobs:
|
|||
echo keyAlias="PRCHECKSIGN" >> local.properties
|
||||
echo keyPassword="${PASSWD}" >> local.properties
|
||||
echo fileDir='../android.keystore' >> local.properties
|
||||
echo "${{ secrets.GOOGLE_SERVICES_JSON }}" | base64 --decode > app/google-services.json
|
||||
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x ./gradlew
|
||||
|
|
|
|||
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
|
@ -30,6 +30,7 @@ jobs:
|
|||
- name: Write key
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
echo officialBuild=true >> local.properties
|
||||
echo buildWithGitSuffix=true >> local.properties
|
||||
echo storePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> local.properties
|
||||
echo keyAlias='${{ secrets.ALIAS }}' >> local.properties
|
||||
|
|
|
|||
|
|
@ -3,17 +3,22 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|||
import java.io.PrintStream
|
||||
import java.util.*
|
||||
|
||||
val officialBuild: Boolean by rootProject.extra
|
||||
|
||||
plugins {
|
||||
kotlin("android")
|
||||
kotlin("plugin.serialization")
|
||||
id("com.android.application")
|
||||
id("com.google.devtools.ksp")
|
||||
id("com.google.gms.google-services")
|
||||
id("dev.rikka.tools.materialthemebuilder")
|
||||
id("dev.rikka.tools.refine")
|
||||
id("androidx.navigation.safeargs.kotlin")
|
||||
}
|
||||
|
||||
if (officialBuild) {
|
||||
plugins.apply("com.google.gms.google-services")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.tsng.hidemyapplist"
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ val gitCommitHash = "git rev-parse --verify --short HEAD".execute()
|
|||
|
||||
val localProperties = Properties()
|
||||
localProperties.load(file("local.properties").inputStream())
|
||||
val officialBuild by extra(localProperties.getProperty("officialBuild", "false") == "true")
|
||||
|
||||
tasks.register("clean", Delete::class) {
|
||||
delete(rootProject.buildDir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue