Giter Site home page Giter Site logo

samclayton / ionic-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicopace/ionic-cordova-android-vagrant-docker

3.0 4.0 6.0 20 KB

Ionic Box: The easiest way to get your hybrid development environment up and running. A Vagrant install for Android, Cordova, and Ionic.

Shell 100.00%

ionic-box's Introduction

This is a fork of the original Ionic Box project, aimed at updating package versions and addressing various dependency issues.

I addressed issues with the outdated NodeJS packages in the official mainline Ubuntu repos, as well as a few other issues. These were causing npm dependency problems during and after provisioning. Using VirtualBox as the provider, I tested this on Windows and Mac hosts as capable of vagrant up, generating an app with the tabs template, serving it to the host machine, and packaging an Android build.

This box can be reached at localhost:2222 and authenticated with u/p vagrant/vangrant.

Current versions: OS: Ubuntu 14.04.4 LTS Cordova CLI: 6.0.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Version: 1.2.4 Ionic CLI Version: 1.7.14 Ionic App Lib Version: 0.7.0 Node Version: 4.4.0 npm version: 2.14.20 Java version: 1.7.0_95 adb version: 1.0.35

Ionic Box

Ionic Box is a ready-to-go hybrid development environment for building mobile apps with Ionic, Cordova, and Android. Ionic Box was built to make it easier for developers to build Android versions of their app, and especially for Windows users to get a complete dev environment set up without all the headaches.

For iOS developers, Ionic Box won't do much for you right now unless you are having trouble installing the Android SDK, and Ionic Box cannot be used for iOS development for a variety of legal reasons (however, the ionic package command in beta will soon fix that).

Installation

To install, download and install Vagrant for your platform, then download and install VirtualBox.

Once Vagrant and VirtualBox are installed, you can download the latest release of this GitHub repo, and unzip it. cd into the unzipped folder and run:

$ vagrant up
$ vagrant ssh

The username for vagrant is vagrant and the password is vagrant.

This will download and install the image, and then go through the dependencies and install them one by one. vagrant ssh will connect you to the image and give you a bash prompt. Once everything completes, you'll have a working box to build your apps on Android.

Connected Android Devices

The image also has support for connected USB Android devices. To test whether devices are connected, you can run (from the box):

$ sudo /home/vagrant/android-sdk-linux/platform-tools/adb devices

If that does not work, or shows ????? permissions, then run:

sudo /home/vagrant/android-sdk-linux/platform-tools/adb kill-server
sudo /home/vagrant/android-sdk-linux/platform-tools/adb start-server

ionic-box's People

Contributors

agarzon avatar hujinpu avatar mlynch avatar oliversalzburg avatar samclayton avatar samuelmarks avatar yoneal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ionic-box's Issues

unmet grandchild dependencies via finalhandler and form-data

vagrant@ionic-android:~$ sudo npm -g install ionic
npm http GET https://registry.npmjs.org/ionic
npm http 304 https://registry.npmjs.org/ionic
/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic
npm WARN unmet dependency /usr/local/lib/node_modules/ionic/node_modules/connect/node_modules/finalhandler requires debug@'1.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/local/lib/node_modules/ionic/node_modules/request/node_modules/form-data requires combined-stream@'~0.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined

Other packages with dependency issues:
cheerio
connect
cross-spawn
event-stream
expand-tilde
gulp
glob
readable-stream
vinyl-fs
...

android sdk won't install during vagrant up

Hello,

i got an error during vagrant up, i tried several times without success..

==> default: platform-tool,android-22,android-23,build-tools-22.0.1,extra
==> default: Exception in thread "main"
==> default: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
==> default:
==> default: at org.eclipse.swt.SWT.error(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Display.create(Unknown Source)
==> default:
==> default: at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Display.getDefault(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
==> default:
==> default: at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
==> default:
==> default: at com.android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.createShell(SdkUpdaterWindowImpl2.java:168)
==> default:
==> default: at com.android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.open(SdkUpdaterWindowImpl2.java:137)
==> default:
==> default: at com.android.sdkuilib.repository.SdkUpdaterWindow.open(SdkUpdaterWindow.java:111)
==> default:
==> default: at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:413)
==> default:
==> default: at com.android.sdkmanager.Main.doAction(Main.java:369)
==> default:
==> default: at com.android.sdkmanager.Main.run(Main.java:151)
==> default:
==> default: at com.android.sdkmanager.Main.main(Main.java:117)

i have to vagrant ssh and execute manually this bash part :

expect -c '
set timeout -1   ;
spawn /home/vagrant/android-sdk-linux/tools/android update sdk -u --all --filter platform-tool,android-22,android-23,build-tools-22.0.1
expect { 
    "Do you accept the license" { exp_send "y\r" ; exp_continue }
    eof
}
'

Do you have any idea ?

Thanks !

ps: windows 10, i7, 8go and latest vagrant / virtualbox

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.