Fix pr check

This commit is contained in:
Nullptr 2022-08-24 18:16:35 +08:00
commit 7b6c50d718
No known key found for this signature in database
4 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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)