MuriloCalegari / mobile-app

Android and iOS apps for SpamExperts users

Home Page:https://spamexperts.com/mobileapp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Climate Issue Count

SpamExperts mobile app

Steps to build the app:

  • install Android SDK for Android platform and XCode for iOS
  • make sure you installed Node.js
  • install Cordova $ sudo npm install -g cordova
  • install Ionic $ sudo npm install -g ionic
  • run the following command in a terminal
$ wget https://raw.githubusercontent.com/SpamExperts/mobile-app/master/src/scripts/buildApp.sh 
$ bash buildApp.sh -p <android | ios> [-s path_to_keystore_file] [-v new_build_no] [-t path_to_local_template] [-d (debug when signed)] [-h (help)]
  • install spamexperts_app.apk on your Android device.
  • To build for iOS open SpamExpertsQuarantine.xcodeproj with XCode and use the Automatic provisioning to sign and build the app.

For development:

  • open a terminal and run the following command:
$ wget https://raw.githubusercontent.com/SpamExperts/mobile-app/master/src/scripts/appDev.sh && bash appDev.sh <android | ios> <proxy_server>
$ # appDev.sh <android | ios> <proxy_server>
  • open spamexperts_mobile_app project folder with your IDE and register the VCS root
  • run $ ionic serve from your command line to open the local server

When working in the development mode a service proxy has to be setup in order to prevent the No 'Access-Control-Allow-Origin' header is present on the requested resource error. There are two gulp tasks that switch this service proxy on and off.

$ gulp add-proxy --server <proxy_server>
$ gulp remove-proxy

On iOS you may need to grant permissions to .npm and .config before running the build or dev script

$ sudo chown -R $USER:$GROUP ~/.npm
$ sudo chown -R $USER:$GROUP ~/.config

For more information visit the Ionic documentation page .

About

Android and iOS apps for SpamExperts users

https://spamexperts.com/mobileapp/

License:GNU General Public License v2.0


Languages

Language:JavaScript 80.7%Language:HTML 9.0%Language:CSS 8.6%Language:Shell 1.7%