The example is set up to reference the module using a yarn workspace.
- Install yarn and watchman, if necessary
brew install yarn
brew install watchman
- Install modules
Execute the following command in the root directory
yarn install
- Perform platform-specific setup
-
Run
pod install
inexample/ios
-
Open the
example/ios/AirshipSample.xcworkspace
Project -
Create the
AirshipConfig.plist
file -
Start the webserver in the top-level directory by running
yarn start
-
Build and run the sample in the
example
directory:yarn run:ios
You should now be able to modify the iOS plugin source directly in the sample's workspace.
-
Open
example/android
in Android Studio -
Create the
airshipconfig.properties
file inexample/android/app/src/main/assets
-
If using FCM, add your
google-services.json
file inexample/android/app
-
Start the webserver in the top-level directory by running
yarn start
-
Build and run the sample in the
example
directory:yarn run:android
You should now be able to modify the Android plugin source directly in Android Studio.
- JS unit tests
We have unit tests for the Javascript part of the module. To run the tests, execute the following command in the root directory:
yarn test