-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Environment variables to build the app from AppCenter #1311
Comments
Hi @jdnichollsc, I think you can achieve it by specifying custom Environment variable with correct deployment key for every branch and then use appcenter-pre-build.sh to write it inside Android or iOS application. Please, let me know if is was helpful for you situation. |
@NickToropov thanks for the response! I already made the following configuration https://github.com/Microsoft/react-native-code-push#multi-deployment-testing Thanks in advance! |
@NickToropov How can I change the build configuration to use Debug for my
Thanks in advance, Nicholls |
Hi @jdnichollsc
If I understood you correctly you just need to create a new shared build scheme Debug: Then go to appcenter.ms, select your application -> Build -> Now you'll be able to build your Please, try this solution and let me know if it was helpful. Also please specify more details/clarifications if I misunderstood you. |
please, clarify if
|
Ohh thanks @NickToropov, the example of the scheme is very important, we need that step from the documentation of Multi-Deployment Testing 👍 |
@jdnichollsc glad to hear that I could help you! :) |
Hello there! I want to change "Shared Scheme" in my app in appcenter.ms How to update this f#$X@ list? @jdnichollsc could you know how it works? |
@MikePodgorniy you need to create the schema from Xcode, publish the changes to the branch and later update the configuration of that branch from appcenter to use that schema :) |
@jdnichollsc you are right, it's easy :D |
@NickToropov sorry, what's the configuration for Staging? I can see the following issue from AppCenter: |
@jdnichollsc You can try looking at this #426 |
thanks @filiphosko. I fixed my issues using this configuration: https://medium.com/@royprashenjeet25/solution-of-appcenter-codepush-multi-deployment-issue-ios-which-i-have-faced-c149813f84dd |
Is there any way to have a shared variable among different configurations? |
Is there any existing documentation for |
I have react native config library setup with dev, qa, staging and production within the react native. How can i integrate this with app center build?
|
Hello guys,
Exist any option to build the app from AppCenter with the correct deployment key depending of the current branch? for example build the app for Staging if the branch is
develop
or build the app for Production if the branch ismaster
Thanks in advance and sorry for the question, I can't see any easy way using environment variables or something like that from the build configuration of AppCenter to do that
Best regards, Nicholls
The text was updated successfully, but these errors were encountered: