GithubHelp home page GithubHelp logo

fs-mobile's Introduction

fs-mobile

Mobile App

getting started

npm install
bower update 
grunt serve

emulate it

  • You need to install the Android SDK Manager. This link explains how to do it best in Ubuntu.

  • After this is done you need to create an AVD. This page explains quite well how to accomplish this. An AVD demands libs for a specific api version. One of the sub entries includes the name ABI which also needs to be installed.

  • You just have to run ionic platform add android, ionic build android, ionic emulate android, once every thing is installed (which takes quite long). I think in our case we should replace ionic with grunt which runs some additional tasks.

  • You can define a specific AVD with --target

  • https://developer.android.com/tools/devices/managing-avds-cmdline.html

  • easiest way to test the app on your mobile phone

  • pluck in your mobile phone to your computer

  • run ionic run android or grunt run android

  • publishing the app: http://ionicframework.com/docs/guide/publishing.html

  • a 'released' apk must be signed even though it is only used for testing purposes! (http://developer.android.com/tools/publishing/app-signing.html)

jsonizer

run grunt jsonizer:defaults to fetch data for offline usage from api

release it

The following steps will create a realeasable apk

First ensure that cordova-plugin-whitelist was added to te application

cordova plugin add cordova-plugin-whitelist 
cordova plugin add cordova-plugin-splashscreen
cordova plugin add cordova-plugin-keyboard
grunt
cordova plugin rm org.apache.cordova.console
cordova build --release android
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <your-keystore>.keystore /home/johannes/Work/js/fs-mobile/platforms/android/build/outputs/apk/android-release-unsigned.apk <key_alias>
zipalign -v 4 /home/johannes/Work/js/fs-mobile/platforms/android/build/outputs/apk/android-release-unsigned.apk FreakstockApp.apk

iOS Quirks

iOS has a mechanism called App Transport Security. It is enabled by default. App Transport Security blocks cleartext HTTP (http://) resource loads since it is defined as insecure. In this project resources need to be loaded as cleartext HTTP. To disable this mechanism the following code needs to be added to Freakstock-Info.plist

<key>NSAppTransportSecurity</key>
<dict>
	<key>NSAllowsArbitraryLoads</key>
	<true/>
</dict>

fs-mobile's People

Contributors

bg63c67 avatar dodophoenix avatar godrockz avatar joker-777 avatar nschwalbe avatar p0g avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.