Cannot find gradle.properties file in native apk response instructions

I follow the instructions for a signed apk with native response https://facebook.imtqy.com/react-native/docs/signed-apk-android.html

MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=*****
MYAPP_RELEASE_KEY_PASSWORD=*****

However, in the gradle variable configuration step, I cannot find the file ~/.gradle/gradle.propertieson my mac. I see the folder ~/.gradle, but I do not see the file there gradle.properties, should I create it? Alternatively, I see a file /android/gradle.propertiesin my project folder - should gradle variables be updated instead?

Also, should I replace the keyword MYAPPwith the name of my application? If so, where can I find a key that will replace this - is that based on some kind of setup? for example FOOAPP_RELEASE_STORE_FILE...

+4
source share
1 answer

Go ahead and create it in your user folder ~/.gradle/gradle.properties. Gradle can work with global (user variables) or with project ones.

Variable names do not matter, but you must remember that it is correct to use them when storing and reading values.

You also need to create a keystore for your application, as described in React Native - Generated Signed Apk

+1
source

Source: https://habr.com/ru/post/1673001/


All Articles