Ionic version of regObs.
These are required to start developing:
- Node.js (0.12.7 and up)
After you have installed node.js, boot up a command prompt and run the following (make sure to use sudo, if you are on mac/linux):
npm install -g gulp bower cordova ionic
- Clone the repo
- Run
npm install
In browser on local machine:
run ionic serve
In Ionic View app on device:
- Run
ionic upload
- Log into your ionic.io accout
- Open ionic view and click download files, and view app
Please note that many plugins is not compatible with Ionic View, so it is not recommended to use this for more then internal testing.
To use the regObs API, you need a valid app token. Request one from the regobs team. When you have a valid app token, create file secret.json
in the folder www/app/json
. The file should have the following format:
{
"apiKey": "your app token here"
}
You need a file called nve.keystore in the root of your project. Ask regObs management to get the keystore file in order to build for Android.
- Install as above on a mac
- The gulp tasks scripts and run-scripts-and-update-config will automatically set version number correct in
/app/json/version.js
andconfig.xml
. The version number is taken frompackage.json
. - The hook
regobs_path_plist.js
will automatically format the Config version number to a numric format when building for ios. ionic build ios
- The resulting Xcode project under platforms/ios can be opened in Xcode
- To run in emulator from command line
ionic emulate ios
- Make sure to have the android sdk installed
ionic platform add android
if not already addedionic build android --release
- Resulting in apk under platforms/android/build/outputs/apk
- navigate to the folder
- Sign apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore nve.keystore .\android-release-unsigned.apk regobs
- Optimize it
{Android SDK location}\android-sdk\build-tools\{version}\zipalign.exe -v 4 .\android-release-unsigned.apk regobs.apk
- Upload resulting regobs.apk via Google Play Developer console
You can read more info on deployment here
Read more about installation and setup here
-
Install taco-remote build on a Mac and run
remotebuild --secure false
. -
Set up Mac IP address and port number in
Visual Studio -> Tools -> Options -> Tools for Apache Cordova -> IOS Configuration
. -
After build you can open xcode project from the cordova/build/tasks/build number directory and debug on device.
-
Archive build and upload to iTunes directly from xcode or use Application Loader.
-
APK's for Android is automatically signed if you have a valid
nve.keystore
file in the root of the project and alsobuild.json
configuration file. -
Add
build.json
to project root directory:{ "android": { "release": { "alias": "regobs", "keystore": "nve.keystore", "keystoreType": "", "password": "[insert keystore password]", "storePassword": "[insert keystore password]" } }, "ios": { "debug": { "developmentTeam": "43L5B5X2PE", "codeSignIdentity": "iPhone Developer" }, "release": { "developmentTeam": "43L5B5X2PE", "codeSignIdentity": "iPhone Developer", "packageType": "app-store" } } }
- Alfa-testers are
iTunes Connect
users set up on theNVE iTunes account
. These users is listed underiTunes Connect Users
inTestFlight
. - Beta testers is external tester that can be added directly to the
External Testers
group inTestFlight
. - Please note that a new version that is uploaded to Beta program (External testers) needs to be reviewed before testing. This normally takes around 24 hours.
- Upload release APK to Alfa to start internal alfa-testing. Only users in test-users list is allowed to download alfa-version from play store.
- To join the Beta program, any user that follows this link can join the test program. The user will see
Beta tester
inGoogle Play
when installing the app.
- Unit tests are set up using karma and jasmine.
- Unit tests are located in the
\tests\unittests
folder. - Karma configuration is in
karma.conf.js
. - Run unit tests by staring gulp task
test
. Code coverage will be generated in thecoverage
folder. - Support for Appium tests is also added, but no tests are yet written. Read more here