Create a .env
in mobile
(current directory):
API_URI=https://api.auralous.com
WEBSOCKET_URI=wss://api.auralous.com
APP_URI=https://app.auralous.com
SPOTIFY_CLIENT_ID=spotify_client_id
FACEBOOK_APP_ID=
You will need a Spotify Developer to work with Spotify playback.
- Add
auralous://sign-in/spotify/callback
as a Redirect URI. - Fill in the Android Package Name (
com.auralous
) and SHA1 Fingerprint (dev:keytool -list -v -alias androiddebugkey -keystore ./android/app/debug.keystore -storepass android
, prod:keytool -list -v -alias upload -keystore ./android/app/upload-keystore.keystore
) and iOS Bundle ID.
Spotify application should also be installed on the development device.
Start Metro Bundler. This should be run in a separate terminal.
Develop on an Android emulator or physical device.
Develop on an iOS emulator or physical device.
-
Make sure the following have been replaced
PASTE_YOUR_UPLOAD_STORE_PASSWORD
,PASTE_YOUR_UPLOAD_KEY_PASSWORD
(Hint: Use Editor Find and Replace) -
Add the keystore file
upload-keystore.keystore
underandroid/app
-
Run the following:
cd android
./gradlew bundleRelease
The generated AAB can be found under android/app/build/outputs/bundle/release/app.aab
- (Optional) To get the production built APK, you need to run the app using release variant:
npx react-native run-android --variant=release
To debug using adb logcat
:
adb logcat | grep -F "`adb shell ps | grep ngvvo.auralou | tr -s [:space:] ' ' | cut -d' ' -f2`"