mobox 0.0.1.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +8 -0
  2. data/bin/mobox +2 -2
  3. data/lib/mobox/version.rb +1 -1
  4. metadata +1 -1
data/README.md CHANGED
@@ -63,7 +63,15 @@ Running `mobox build:ios:create` will prompt you for a namespace and app name, w
63
63
 
64
64
  #### Android
65
65
 
66
+
66
67
  mobox build:android:create
68
+
69
+ Before you can actually run the app, you must start your emulator (assuming you already set up an AVD with the Android SDK):
70
+
71
+ build/android/cordova/emulate
72
+
73
+ Then you can build the app:
74
+
67
75
  mobox build:android
68
76
 
69
77
  Running `mobox build:android:create` will prompt you for a namespace and app name, which you must fill out in the correct format.
data/bin/mobox CHANGED
@@ -33,8 +33,7 @@ end
33
33
 
34
34
  def make_environment(platform, app_name, app_namespace)
35
35
  executable = MOBOX_ROOT.join('vendor', 'phonegap', 'lib', platform, 'bin', 'create')
36
- FileUtils.mkdir_p platform_build_path(platform)
37
- `#{executable} #{platform_build_path(platform)} #{app_namespace} #{app_name}`
36
+ puts `#{executable} #{platform_build_path(platform)} #{app_namespace} #{app_name}`
38
37
  end
39
38
 
40
39
  def platform_build_path(platform)
@@ -168,6 +167,7 @@ namespace :build do
168
167
  app_namespace = ask_user("Project namespace? [com.example.projectname]: ")
169
168
  app_name = ask_user("Project name? [MyApp]: ")
170
169
  print "Creating iOS build environment... "
170
+ FileUtils.mkdir_p platform_build_path('ios')
171
171
  make_environment('ios', app_name, app_namespace)
172
172
  puts "done."
173
173
  end
@@ -1,3 +1,3 @@
1
1
  module Mobox
2
- VERSION = "0.0.1.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: