GithubHelp home page GithubHelp logo

trakout / pam Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 13.87 MB

Shell 0.07% JavaScript 78.03% CoffeeScript 0.06% HTML 0.27% CSS 13.75% C 0.02% Objective-C 4.41% Batchfile 0.07% C++ 2.57% C# 0.25% Java 0.49%

pam's Introduction

To develop

sudo npm install -g cordova sudo npm install -g ionic sudo npm install -g gulp sudo npm install bower install gulp

#this command adds all the plugins and platforms in package.json to the project ionic state reset

#By default the plugin for youtube video plays Android video in landscape mode.

To change this go to /platforms/android/AndroidManifest.xml

remove screenOrientation:Landscape from

Save the file.

FUTURE BUILDS MUST USE 'ionic/cordova compile android' instead of 'ionic/cordova build android'.

This is because the 'build' command fetches the plugin from github and will reset the Androidmanifest.xml according to the plugin.

The 'compile' command simply compiles the current manifest file.

To develop ionic serve

To build (must have Xcode and Android SDK and relevant java files installed already) ionic build ios ionic build android

TROUBLESHOOTING While adding a platform if you notice a bunch of lines like the following:

"cp: no such file or directory: path_to_project/resources/android/splash/drawable-port-xhdpi-screen.png"

you will get the following error when building: "processDebugResources path_to_project/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:25:23-37 : AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon')."

This is because ionic network was down when building. See: http://stackoverflow.com/questions/35969411/ionic-framework-ionic-resources-generating-empty-directories-with-no-icon-and

The solution is to go to your command line and type:

ionic resources

which will generate the relevant resources.

Then you can do ionic build android.

pam's People

Contributors

trakout avatar

Watchers

 avatar  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.