Skip to content

Commit 5972147

Browse files
author
Dave Johnson
committed
undoing those changes for target on joes' recommendation
1 parent 8ec0de4 commit 5972147

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ Getting Started with PhoneGap/Android
1919
1. From the root of this repo run the following command to generate a new PhoneGap/Android app:
2020

2121
<pre>
22-
./droidgap [android_sdk_path] [target] [name] [package_name] [www] [path]
22+
./droidgap [android_sdk_path] [name] [package_name] [www] [path]
2323

2424
android_sdk_path ... The path to your Android SDK install.
25-
target ......................The target version of the Android platform (3, 4, 6, 7, 8 correspond to 1.5, 1.6, 2.0.1, 2.1, 2.2).
2625
name ............... The name of your application.
2726
package_name ....... The name of your package (For example: com.nitobi.demo)
2827
www ................ The path to your www folder. (Wherein your HTML, CSS and JS app is.)

droidgap

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ require 'fileutils'
33

44
# ./droidgap /Users/brianleroux/Code/android-sdk-mac MyApp com.westcoastlogic example /Users/brianleroux/Desktop/MyApp
55
class Build
6-
attr_reader :android_sdk_path, :name, :pkg, :www, :path, :target_id
6+
attr_reader :android_sdk_path, :name, :pkg, :www, :path
77

88
def initialize(*a)
9-
@android_sdk_path, @target, @name, @pkg, @www, @path = a
9+
@android_sdk_path, @name, @pkg, @www, @path = a
1010
@android_dir = File.expand_path(File.dirname(__FILE__))
1111
@framework_dir = File.join(@android_dir, "framework")
1212
end
@@ -44,8 +44,9 @@ class Build
4444
# TODO fix 'android' shell call so that it works on Windows. Can't prepend android command with path to it.
4545
def create_android
4646
android_exec = File.join(@android_sdk_path, "tools", "android");
47+
target_id = 8
4748
puts "Creating Android project for target level #{ target_id }"
48-
`android create project -t #{ @target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }`
49+
`android create project -t #{ target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }`
4950
end
5051

5152
def include_www

0 commit comments

Comments
 (0)