-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Possible to use env vars in strings.xml for style/item ? #37
Comments
This would be great. Any hints on how to implement this? I could give it a try. |
Its working. Tested for react-native-facebook-login! |
@prtkkmrsngh how'd you get it to work? I'm trying to do the same for |
I'm trying to do this in a dynamic way using this package: <string name="facebook_app_id">appIDhere</string> |
@joncursi edit strings.xml like this <string name="facebook_app_id">@string/FACEBOOK_APP_ID</string> Note: FACEBOOK_APP_ID should be present in .env and if you are using different files for different environment (eg. staging, production) then in them too. |
This is working on my computer but is not working on Bitrise build system
I have aunique
Does anybody here use a build system and had similar problems ? |
Same problem here @alfonsodev Did you find any solution? |
@fforres Yes, in my particular case the problem was that |
Same problem here.Any update? |
Any news on that? |
Try it
|
I am trying to access the string from .env in strings.xml but it shows the error: |
Looks like any access to string xml results on not found only on CI. Also looking for a solution |
this issue happened to me as well but only on CircleCI pipeline, not happening in local, I don't know why |
any update on it? I am also facing the same issue. Locally it works in a perfect way but not on CI. |
@KFrysztak for me the issue is that I'm decrypting the env file in the first job of the NPM packages installation, not in the APK build job, and it turns out that the ENV file does not exist because I need it to persist in the workspace, but this is not wise, I've put the env decryption step in the APK build job, before the step of the assemble release step, and it worked as expected. |
any workaround? |
App works fine when using env vars in AndroidManifest.xml but crashes when using env vars inside strings.xml
Edit: Basically my question is related to react-native-facebook-account-kit
I want to fetch following info from .env
The text was updated successfully, but these errors were encountered: