From ff1bf975a27fae87ed66e716ba3bf0f6fbb22358 Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Sat, 22 Apr 2023 13:49:02 -0400 Subject: [PATCH] (fix) fix Actions builds, again Signed-off-by: androidacy-user --- .github/workflows/build-debug.yml | 4 ++++ app/build.gradle.kts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 049547f..00fa3ab 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -1,3 +1,4 @@ +#file: noinspection SpellCheckingInspection name: Generate APK Debug on: @@ -40,6 +41,9 @@ jobs: - name: Change wrapper permissions run: chmod +x ./gradlew + - name: Gradle Cache + uses: burrunan/gradle-cache-action@v1 + # temporary disabled # - name: Run tests # run: ./gradlew test diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fecae8e..abd78f0 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -186,11 +186,11 @@ android { // If androidacy.properties doesn"t exist, use the fdroid client ID which is limited // to 50 requests per minute if (project.rootProject.file("androidacy.properties").exists()) { - propertiesA.load(project.rootProject.file("androidacy.properties").inputStream()) buildConfigField("String", "ANDROIDACY_CLIENT_ID", "\"" + propertiesA.getProperty("client_id", "dQ1p7X8bF14PVJ7wAU6ORVjPB2IeTinsuAZ8Uos6tQiyUdUyIjSyZSmN54QBbaTy") + "\"") } else { - properties.setProperty("client_id", "\"dQ1p7X8bF14PVJ7wAU6ORVjPB2IeTinsuAZ8Uos6tQiyUdUyIjSyZSmN54QBbaTy\"") + propertiesA.setProperty("client_id", "\"dQ1p7X8bF14PVJ7wAU6ORVjPB2IeTinsuAZ8Uos6tQiyUdUyIjSyZSmN54QBbaTy\"") } + propertiesA.load(project.rootProject.file("androidacy.properties").inputStream()) versionNameSuffix = "-froid" } }