Node: v9.2.1 React v16.5.0, React Native: v0.57.1 Java SE 8
- Install React Native https://facebook.github.io/react-native/docs/getting-started.html
- Run
npm i
- iOS (optional) - Install cocoapods if not installed
sudo gem install cocoapods
- iOS - Install pods
cd ios/ && pod install && cd ..
- Replace
IOS_GOOGLE_MAPS_KEY
inios/XenderaTest/AppDelegate.m
with Google maps key for iOS. - Replace
ANDROID_GOOGLE_MAPS_KEY
inandroid/app/src/main/AndroidManifest.xml
with Google maps key for Android.
- Open
ios/XeneraTest.xcworkspace
in the XCode - Select simulator for your target on top of the window
- Press
Run
- Connect your android device
- Now check that your device is properly connecting to ADB, the Android Debug Bridge, by running
adb devices
. Seeing device in the right column means the device is connected. You must have only one device connected at a time. npm run android
- Install XCode and react native dependencies
- Install cocoapods
- Run
cd ios/ && pod install && cd ..
- Open
ios/XeneraTest.xcworkspace
in the XCode and make sure that you have an access to the App Store Dev team - Increment build number
- Select
Generic iOS Device
for the build target - Product -> Archive
- Window -> Organizer -> Upload
- Install Android studio and react native dependencies
- Place the keystore file to the
./android/app
folder. For the testing purposes you can generate it executingkeytool -genkey -v -keystore xendera-test.keystore -alias xendera-test -keyalg RSA -keysize 2048 -validity 10000
- Append this code to the end of the file
~/.gradle/gradle.properties
replacing<password>
with the password to the keystore:
XENDERA_TEST_RELEASE_STORE_FILE=xendera-test.keystore
XENDERA_TEST_RELEASE_KEY_ALIAS=xendera-test
XENDERA_TEST_RELEASE_STORE_PASSWORD=<password>
XENDERA_TEST_RELEASE_KEY_PASSWORD=<password>
- Increment build number in
android/app/build.gradle
- Run
npm run build-android