Try it out on https://motivepick.com.
- Make sure
react-native
is installed. If it is not, install it withnpm install -g react-native-cli
. See details here. - For Android. As on an Android device
localhost
is mapped to the device itself, first of all you have to changeAPI_URL
in.env.development
to point it to an IP address of your back end. The IP address should also be changed in the OAuth config of your application if you want to use the login. If you run the back end locally, you can find the IP address usingifconfig | grep inet
. It should look something like192.168.0.15
. Then runnpm run android-dev
in the project root directory. Note: before running the above command make sure you either have an Android device connected to your computer or you have a simulator running. - For iOS:
npm i
in the project directorypod install
in theios
directory- Open the project in Xcode. Note: use namely
MotiveMobileApp.xcworkspace
to open the project. - Go to
Product
>Scheme
and selectDevelopment
. - Go to
Product
. ThenClean
. ThenBuild
. - Make sure back end is running (see host and port in
.env.development
). - Press the
Run
button.
To be described.
- Make sure the back end URLs are updated in
.env.development
,.env.production
andconst.js
. - Increase the values of
versionCode
andversionName
in./android/app/build.gradle
. - Specify values for
MOTIVE_RELEASE_STORE_PASSWORD
andMOTIVE_RELEASE_KEY_PASSWORD
in./android/gradle.properties
. If you do not have the signature file, you can use e.g. Android Studio to generate it. - Go to
./android
and run./gradlew clean assembleRelease
- The signed assembly should appear in
./android/app/build/outputs/apk/release
See details here.