Slug survey collection mobile-app based on Ionic Framework / Angular.
Install the Ionic and Cordova CLI (note: you may need to have root access for this):
npm install -g ionic cordova
This project contains submodules. To clone both the project and submodules, use:
git clone --recurse-submodules https://github.com/gaiaresources/slugwatch
Then install node dependencies:
npm install
Known to work with node 8.x. Untested for later versions.
To run the app in a browser, within the project directory use:
ionic serve
This app was deployed using XCode 9.4 (9F1027a)
Create the XCode project using the command below:
ionic cordova build ios
The XCode project should be located at
platforms/ios/Slug Sleuth.xcodeproj
Fix the XCode project app icons and splash images using the bash script makeIcons.sh
./makeIcons.sh
In Xcode:
- Set the development team to Gaia Resources, from there the ios build command should succeed
- Drag the spash image Default-Portrait.png -> iPad Portrait Without Status Bar iOS 5,6 1x
- Drag the spash image [email protected] -> iPad Portrait Without Status Bar iOS 5,6 2x
- Drag the spash image Default-Landscape.png -> iPad Landscape Without Status Bar iOS 5,6 1x
- Drag the spash image [email protected] -> iPad Landscape Without Status Bar iOS 5,6 2x
Deploy to an iphone using the command:
ionic cordova run ios --device
Log into the Apple Developer Portal and create a Distribution provisioning profile
- https://developer.apple.com/account/#/overview/
- Select application id Slug Sleuth
- au.com.gaiaresources.mksas
- Type is iOS Distribution
- Seletc App Store
- Select certificate Gaia Resources (iOS Distribution)
- Name it Slug Sleuth Dist
Open XCode, in preferences update the profiles, untick Automatic manage siging and select the Slug Sleuth Dist provisioning profile
Create an Archive and select to Slug Sleuth Dist provisioning profile