gradle-recipes
secrets-gradle-plugin
gradle-recipes | secrets-gradle-plugin | |
---|---|---|
9 | 3 | |
1,825 | 1,027 | |
0.5% | 1.7% | |
8.7 | 4.7 | |
6 days ago | 3 days ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gradle-recipes
- Custom path for generated aab/apk and mapping.txt
- How many of you are really strong with gradle?
-
Keep API Key Outside of Gradle and Git
That recipe is only adding hardcoded values as build config fields. If you look at https://github.com/android/gradle-recipes/blob/agp-7.0/Kotlin/addCustomResValueFromTask/app/build.gradle.kts for example they create a task which can be cached and runs only when actually needed (if the inputs change for example).
-
Using the new (Android Build Tools 7.0) Variant API to configure variant-specific output APK filename
Here is an example of a tsk that can access APKs. It automatically depends on package task, so when you run it, it will be executed after APKs are created.
-
Is gradle configuration avoidance possible with AGP?
The new variant API allows for delegating more work from configuration to tasks though, including doing things like computing version code/name in tasks. See recipe here.
-
Android Studio Arctic Fox Beta 1 available
https://github.com/android/gradle-recipes/tree/agp-7.0 is kind of old, we're going to update it today.
-
Why would (or wouldn't) you choose build.gradle.kts over build.gradle apart from the reason that it is "Kotlin"?
And we'll be expanding our Gradle recipes too.
secrets-gradle-plugin
-
Simple Google Map App - Jetpack Compose
Secrets Gradle Plugin is basically a library to help you hide your API key without committing it to the version control system.
-
Keep API Key Outside of Gradle and Git
I use this for storing my keys. (Recommended by Google also) https://github.com/google/secrets-gradle-plugin
- Where do you put your secrets (api keys)?
What are some alternatives?
httptoolkit - HTTP Toolkit is a beautiful & open-source tool for debugging, testing and building with HTTP(S) on Windows, Linux & Mac :tada: Open an issue here to give feedback or ask for help.
moko-resources - Resources access for mobile (android & ios) Kotlin Multiplatform development
kotlin - The Kotlin Programming Language.
Gradle buildSrcVersions - Life is too short to google for dependencies and versions
dependency-analysis-gradle-plugin - Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
kotless - Kotlin Serverless Framework
android-maps-compose - Jetpack Compose composables for the Maps SDK for Android
Demo_SimpleGoogleMap - Implement Google Map app using Jetpack Compose components for the Android Maps SDK
Catalog - Generate type-safe, user-friendly extensions to resolve Android resources.