From 610635867651b6028fe8d0b2035977d208e35b07 Mon Sep 17 00:00:00 2001 From: axiel7 Date: Fri, 9 Aug 2024 10:56:56 +0200 Subject: [PATCH] feat(build): use a separate private.properties file --- .github/workflows/build-android.yml | 2 +- .gitignore | 1 + README.md | 2 +- app/build.gradle.kts | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 98bd9125a..5a741dfb2 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -36,7 +36,7 @@ jobs: run: sed -i -e '/isEnable/s/true/false/' app/build.gradle.kts - name: Set MAL Client ID - run: touch local.properties && echo """CLIENT_ID="${{secrets.CLIENT_ID}}"""" > local.properties + run: touch private.properties && echo 'CLIENT_ID="${{secrets.CLIENT_ID}}"' > private.properties - name: Make gradlew executable run: chmod +x ./gradlew diff --git a/.gitignore b/.gitignore index c98bd39ca..d73350954 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.iml .gradle /local.properties +/private.properties /.idea/ .DS_Store /build diff --git a/README.md b/README.md index bf8ddff3d..4425649d8 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Want an AniList version? Check [AniHyou](https://github.com/axiel7/AniHyou-andro * [Coil](https://github.com/coil-kt/coil) # Building -Put the following on your local.properties file: +Put the following in a new ./private.properties file: ```properties CLIENT_ID="your_mal_api_client_id" diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f03f1e18c..f53f0117c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } val properties = Properties() -properties.load(project.rootProject.file("local.properties").reader()) +properties.load(project.rootProject.file("private.properties").reader()) android { compileSdk = 35