Skip to content
Fork of e-mission-phone, the e-mission frontend, for the project FabMob "Traceur de mobilité"
JavaScript CSS HTML Other
Branch: master
Clone or download
Pull request Compare This branch is 95 commits ahead, 8 commits behind e-mission:master.
Latest commit 96228f8 Sep 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Change translate repo Jul 4, 2019
hooks Merge remote-tracking branch 'upstream/master' Jul 4, 2019
resources add config to build app for Store May 3, 2019
scss Add a new ionic starter tabs template, which we will customize shortly Feb 3, 2016
www Add 3 new modes and carbon dataset selection Aug 16, 2019
.bowerrc Add a new ionic starter tabs template, which we will customize shortly Feb 3, 2016
.editorconfig Add a new ionic starter tabs template, which we will customize shortly Feb 3, 2016
.gitignore Change translate repo Jul 4, 2019
LICENSE Finally actually set a license on the phone repo Feb 16, 2018
README.md reference readthedocs Sep 5, 2019
bower.json Fix today button by upgrading to most recent version of the datepicker Aug 6, 2019
build.json Update to latest versions of plugins to fix location toggling Mar 4, 2019
config.cordovabuild-fabmob.xml Add it support and change UI of Profile Jul 9, 2019
config.cordovabuild.xml Change according to e-mission#593 Jul 3, 2019
config.serve.xml Make the setup handle the serve case better May 23, 2018
gulpfile.js.unused Remove the gulpfile until we actually need to use gulp Nov 15, 2016
ionic.config.json Update the resources to allow us to upload the new version to iOS Jan 23, 2018
my.conf.js test suite added Jun 13, 2016
package-lock.json Create hooks to set openid and provider Jun 6, 2019
package.cordovabuild-fabmob.json add config to build app for Store May 3, 2019
package.cordovabuild.json Merge Jun 18, 2019
package.serve.json Remove the `setup` command and simplify `setup-serve` May 23, 2018

README.md

e-mission phone app [Traceur FabMob app]

This is the README for e-mission-phone FabMob

The description and docs of the "Traceur de Mobilités" project for FabMob are here : https://oultim.frama.site/

The full original README for e-mission-phone is here : https://github.com/e-mission/e-mission-phone/blob/master/README.md

See also the traceur phone do here : https://fabmob.readthedocs.io/en/latest/ based on the e-mission doc repo here : https://github.com/e-mission/e-mission-docs/

For end-users:

Please look at the App FAQ on the wiki.

Get the "Traceur de Mobilités" project for FabMob

Clone repository

$ git clone https://github.com/fabmob/e-mission-phone-fabmob.git

Add Upstream repository to syncing forked repository

$ cd e-mission-phone-fabmob

$ git remote -v
	origin	https://github.com/fabmob/e-mission-phone-fabmob.git (fetch)
	origin	https://github.com/fabmob/e-mission-phone-fabmob.git (push)

$ git remote add upstream https://github.com/e-mission/e-mission-phone.git

$ git remote -v
	origin	https://github.com/fabmob/e-mission-phone-fabmob.git (fetch)
	origin	https://github.com/fabmob/e-mission-phone-fabmob.git (push)
	upstream	https://github.com/e-mission/e-mission-phone.git (fetch)
	upstream	https://github.com/e-mission/e-mission-phone.git (push)

$ git fetch upstream

Updating the e-mission-* plugins or adding new plugins

Get e-mission-phone update

$ git pull upstream master

Update and setup FabMob

$ ./bin/fabmob_update.sh

Setup the config

$ ./bin/configure_xml_and_json.js cordovabuild-fabmob

Install all javascript components using bower

$ bower update

Make sure to install the other node modules required for the setup scripts.

npm install

Setup cocoapods. For all versions > 1.9, we need https://cocoapods.org/ support. This is used by the push plugin for the GCM pod, and by the auth plugin to install the GTMOAuth framework. This is a good time to get a cup of your favourite beverage.

$ sudo gem install cocoapods
$ pod setup

Restore cordova platforms and plugins

$ cordova prepare

Installation is now complete. You can view the current state of the application in the emulator

$ cordova emulate ios

OR

$ cordova emulate android

Updating the e-mission-phone and the plugins

ATTENTION : it is NOT sufficient to just pull and get an updated config.xml. You have to ensure that the plugins are updated as well - see (see (#325 comment):https://github.com/e-mission/e-mission-docs/issues/325#issuecomment-477884555)

Note that by default, updating config.xml (such as by pulling these changes) DOES NOT UPDATE cordova plugins (https://stackoverflow.com/questions/40268029/updating-cordova-plugins-according-to-config-xml)

Follow these steps:

bin/configure_xml_and_json.js cordovabuild (if using e-mission-phone as the repo) rm -rf platforms rm -rf plugins cordova platform add android (instead of cordova prepare) cordova plugin list (compare the versions to the ones in config.xml) cordova build android

and similar instructions for iOS if needed.

WARNING: A hook modifies (before the build) the OAuth URI, you will need to create a file secret-cloak.key containing a string with maximum 10 characters without uppercases (you can use random.org to generate it) in the folder resources/fabmob/make/ to avoid multiple apps to listen to the same custom URL (as mentioned here https://github.com/e-mission/e-mission-docs/issues/402#issuecomment-501429914). If there is no secret-cloak.key file, the hook will use just your application name.

You can’t perform that action at this time.