-
Notifications
You must be signed in to change notification settings - Fork 22
Setup Local environment
-
SERVER_URL
- i.e. http://localhost:1338/v1 -
RWALLET_ENV
- whenRWALLET_ENV
is empty, the final server URL will matchSERVER_URL
value. So just leave it empty. -
RWALLET_API_KEY
- if running the server against dev DB, this value should be2d213e2c-fb63-4f94-b990-939a18e7d123
.
When switching environments, app needs to be uninstalled to clear the local storage, until ui issue #647 is done.
This file listen to changes on config.js
file to be reloaded. So upon any changes, modify the config.js
file to apply them. (Could be just adding an empty line or space).
To allow http requests during development, add the following under <key>NSAppTransportSecurity</key>
prop on ios/rwallet/Info.plist
file:
...
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
...
</dict>
...
Add android:usesCleartextTraffic="true"
to the <application
node that starts on line 16 of the file android/app/src/main/AndroidManifest.xml
to allow http communication between the app and your localserver. You can add it at the end, after the android:theme
property, for example.
If you are using a real device (not a emulator) the SERVER_URL
needs to be changed to http://10.0.2.2:1338/
, as ‘localhost’ will refer to the device.