Skip to content

Commit

Permalink
feat(build): use a separate private.properties file
Browse files Browse the repository at this point in the history
  • Loading branch information
axiel7 committed Aug 9, 2024
1 parent 4d0d517 commit 6106358
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.iml
.gradle
/local.properties
/private.properties
/.idea/
.DS_Store
/build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6106358

Please sign in to comment.