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_KEYinios/XenderaTest/AppDelegate.mwith Google maps key for iOS. - Replace
ANDROID_GOOGLE_MAPS_KEYinandroid/app/src/main/AndroidManifest.xmlwith Google maps key for Android.
- Open
ios/XeneraTest.xcworkspacein 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.xcworkspacein the XCode and make sure that you have an access to the App Store Dev team - Increment build number
- Select
Generic iOS Devicefor the build target - Product -> Archive
- Window -> Organizer -> Upload
- Install Android studio and react native dependencies
- Place the keystore file to the
./android/appfolder. 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.propertiesreplacing<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