GithubHelp home page GithubHelp logo

isabella232 / playgrounds2-cordova Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nprapps/playgrounds2-cordova

0.0 0.0 0.0 7.26 MB

Attempt at using Cordova to wrap playgrounds; abandoned.

License: Other

JavaScript 41.65% Shell 9.33% Java 0.31% Objective-C 48.17% C 0.25% AppleScript 0.29%

playgrounds2-cordova's Introduction

Copyright 2013 NPR. All rights reserved. No part of these materials may be reproduced, modified, stored in a retrieval system, or retransmitted, in any form or by any means, electronic, mechanical or otherwise, without prior written permission from NPR.

(Want to use this code? Send an email to [email protected]!)

Setup

(This assumes you already have XCode.)

Make yourself a virtualenv:

  • mkvirtualenv --no-site-packages cordova

Install initial dependencies:

  • brew update
  • brew upgrade node
  • brew install android-sdk
  • brew install ios-sim
  • pip install requirements.txt

Setup the Android SDK:

  • Run android
  • Install all the packages under "Tools" and "Android 4.2.2 (API 17)"
  • Run android avd
  • Click over the "Device Definitions tab", select "Nexus One" (or whatever) and click "Create AVD...". Select "Android 4.2.2" for the Target and "ARM" for the CPU. Then click OK.

Install Cordova:

  • sudo npm install -g cordova

Building

Running fab build will build both iOS and Android versions. You can use, e.g. fab build:ios, to just build one or the other.

Running

Run in the Android emulator:

  • fab android

(Note: the first one or two times you run the Android emulator it will go through a initial device setup process and may fail to install the project. Just close the emulator and run it again.)

Run in the iOS emulator:

  • fab ios

(Note: the iOS emulator doesn't work when in a tmux window. You'll have to run it directly from Terminal or iTerm.)

playgrounds2-cordova's People

Contributors

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