Drive Mobile
Installation
- Create a
.npmrc
file from the.npmrc.template
example provided in the repo. - Replace
TOKEN
with your own Github Personal Access Token withread:packages
permission ONLY - Use
yarn
to install project dependencies.
Android
We can test the android application in any operating system, although for each one we will have to follow some different steps
Android installation
Ports mapping
In order to connect a real device or an emulator to localhost interface, we have to map used ports in our computer with the device ports.
First list the connected devices:
adb devices
Then use the following command to map DEVICE_ID device PORT to your localhost PORT:
adb -s DEVICE_ID reverse tcp:PORT tcp:PORT
ADB (Android Debug Bridge)
To install the ADB in Mac OS or Linux, execute the following command:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
Dependencies
Opening the project with Android Studio will install the necessary dependencies to start the application.
If you are using Mac OS an receiving the following error when during gradle sync
open -a /Applications/Android\ Studio.app
Run
Configure a virtual device in Android Studio or connect by USB a real device with ADB to run the Android application with the following command:
yarn android
Test Deep Link on Android
adb shell am start -a android.intent.action.VIEW -d "inxt:https://drive.internxt.com"
iOS
You can only test the iOS application on a Mac OS computer.
iOS installation
cd ios
pod deintegrate
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
pod install
If your computer is using M1 Apple chipset, replace the pod install
command with the following:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
Run
yarn ios
Or specify a simulator:
yarn ios --simulator "iPhone X"
Or specify a connected device:
yarn ios --device "My iPhone"