Skip to content

gaiaresources/slugwatch

Repository files navigation

Slug Sleuth

Slug survey collection mobile-app based on Ionic Framework / Angular.

Installation

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

Running

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

#android
ionic cordova run android

On Android, it may create a corrupted /platforms/android/app/src/main/AndroidManifest.xml

To fix it, remove <uses-feature android:name="android.hardware.location.gps" /> in AndroidManifest.xml AND remove

{
  "xml": "<uses-feature android:name=\"android.hardware.location.gps\" />",
  "count": 1
}

from /platforms/android/android.json

Apple App Store

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

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

Android REMEMBERs

  • nvm install 10
  • nvm use
  • ionic cordova plugin remove cordova-plugin-file
  • ionic cordova plugin add cordova-plugin-file
  • Manually edit platforms/android/build.gradle to suit SDK requirements
  • Manually edit platforms/android/app/src/main/AndroidManifest.xml to remove duplicate location <uses>

About

Mount Kaputar Snails and Slugs

Resources

Stars

Watchers

Forks

Packages

No packages published