Hey guys, I’m trying out Amper, and when pushing the source code to a GitHub repository, I want to exclude the API Key information.
So, I want to set up the API Key as an environment variable. Is there a good way to do this?
In my previous Android development experience, I used to register keys in the local.properties file and access them via BuildConfig. I’m looking for a similar approach.
youtrack new 1
a
Anton Mefodichev
08/21/2024, 10:54 AM
Hello, @LIKE, I have found the following feature request:
AMPER-847 Inject values / customization into the build with environment variables
cc @zsmb
l
LIKE
08/21/2024, 12:11 PM
Hello, Is there any documentation available regarding the usage of this feature?
z
zsmb
08/21/2024, 6:24 PM
We don't have a publicly supported publication feature yet in the standalone version of Amper, please vote for the ticket linked above / monitor it for updates. If you're using Amper in a Gradle-based project, you can use the same solutions as usual with Gradle.