-
IOS:
cd/genesis-reactnative
,yarn install
. Install Ruby gem following this instructions -https://rubygems.org/pages/download#formats
. Install Cocoapods using gemsudo gem install cocoapods
. Runpod install
ingenesis-reactnative/ios
. Then copy theAppCenter-Config.plist
file from our private repoapla-reactnative-private/ios/AppCenter-Config.plist
togenesis-reactnative/ios/Apla
. Now you are able to runyarn start -> yarn watch -> react-native run-ios
. -
Android:
cd/genesis-reactnative
,yarn install
. Create avariables.gradle
in/android
folder and copy values from our private repo/apla-reactnative-private/android/variables.gradle
. Also copyrelease.keystore
andgoogle-services.json
from private repoapla-reactnative-private/android
to/android/app
folder. Now you are able to runyarn start -> yarn watch -> react-native run-android
.
-
ANDROID: Create a
variables.gradle
in/android
folder and copy values from/android/variables.gradle.template
.Register in
https://firebase.google.com/
and follow the instructions. Register inhttps://appcenter.ms/
to get theMYAPP_CODEPUSH_KEY
. Go tohttps://facebook.github.io/react-native/docs/signed-apk-android.html
and follow the instructions to getMYAPP_RELEASE_STORE_PASSWORD
andMYAPP_RELEASE_KEY_PASSWORD
. -
IOS: Go to
ios/Apla.xcodeproj/
, find a variableCODEPUSH_KEY = "PUT-YOUR-RELEASE-KEY-HERE";
, orCODEPUSH_KEY = "PUT-YOUR-DEBUG-KEY-HERE";
and change its value to your codepush key.
Run the app for developing yarn start && yarn watch
Now you can run react-native run-ios
or react-native run-android
The app can be opening from link.
apla://code/<public_key;ecosystem>
iOS: xcrun simctl openurl booted "apla://code/3e33978c025c35b104ad6465017eab5ca9c4b5486f50b63b22dc0119dc9f65a8;8872"
Android: adb shell am start -W -a android.intent.action.VIEW -d "apla://apla/code/3e33978c025c35b104ad6465017eab5ca9c4b5486f50b63b22dc0119dc9f65a8;8872"
appcenter apps set-current <Project Name>
appcenter codepush release-react -d <Staging|Production>
appcenter codepush release-react -d <Staging|Production>