Display Stocks using React Native written in Typescript
- start start react native server
- test run tests
- lint lint code using typescript and eslint
- lint:eslint lint code using eslint
- lint:tsc lint code using typescript
- prettier:write prettify code that have file extension of .js, .jsx, .ts, .tsx and .json
- android:clean clean android builds and caches
- android:debug build android debug APK and launch in simulator or tethered android device
- android:release build android release APK and launch in simulator or tethered android device
- build:android:all build android debug and release APK
- build:android:debug build android debug APK
- build:android:release build android release APK
- fastlane:android:all build android debug and release APK using fastlane
- fastlane:android:debug build android debug APK using fastlane
- fastlane:android:release build android release APK using fastlane
yarn android:clean && yarn android:debug
- clean android caches
- build android debug APK
- launch on simulator or tethered android device
yarn android:clean && yarn android:release
- clean android caches
- build android release APK
- launch on simulator or tethered android device
yarn android:clean && yarn build:android:debug
- clean android caches
- build android debug APK
yarn android:clean && yarn build:android:release
- clean android caches
- build android release APK
Assuming you have environment setup for building the Android APK link using React Native CLI Quickstart
If you wish to build the app, you need .env
file that contains API_KEY, DEV_API_KEY and BUILD_VERSION
obtain the api key from iexcloud
DEV_API_KEY uses iexcloud sandbox API. Sandbox API KEY
create a file in the project root with the filename .env
in the file, write the following
BUILD_VERSION=development
API_KEY=<api key>
DEV_API_KEY=<sandbox api key>
IMPORTANT
DON'T commit .env
to git
Once you have the .env
file setup, run the following command
yarn build:android:debug
You're build android APK is located in <project root>/android/app/build/outputs/apk/debug/
folder
Along with the .env
file, you will also need Android release keystore and gradle variables.
Android keystore will be used for building a release android APK.
Gradle variables are used for storing Android keystore credentials.
Once you have Android release keystore and Gradle variables setup, run the following command
yarn build:android:release
You're build android APK is located in <project root>/android/app/build/outputs/apk/release/
folder
Follow instructions from link to ONLY create the Android release keystore.
NOTE: use different password for alias password and android release keystore password. For better security.
Give the filename release.keystore
and place it in <project root>/android/app/
folder
Gradle variables will contain filename of the Android release keystore, key alias name, key alias password and Android release keystore password
- Android release keystore: filename of the release keystore
- Alias name: alias used for signing
- Alias password: alias password
- Android release keystore password: Android release keystore password
Create a file named release-keystore.properties
and place it in <project root>/android/
folder
in the file, write the following
RELEASE_KEYSTORE=release.keystore
RELEASE_KEY_ALIAS_NAME=<alias name>
RELEASE_KEY_ALIAS_PASSWORD=<alias password>
RELEASE_KEY_STORE_PASSWORD=<android release keystore password>
RELEASE_KEYSTORE
is the filename of the android release keystoreRELEASE_KEY_ALIAS_NAME
is the alias name used when creating the android release keystoreRELEASE_KEY_ALIAS_PASSWORD
is the alias passwordRELEASE_KEY_STORE_PASSWORD
is the android release keystore password
IMPORTANT
DON'T commit release.keystore
and release-keystore.properties
file to git.
Developing
- Redux
- Redux saga
- reselect
- re-reselect
- react-navigation
- axios
- native-base
- redux-persist
- victory-native
- react-native-dotenv
Testing
CI/CD
Miscellaneous