mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Merge branch 'master' of github.com:phonegap/phonegap-android
This commit is contained in:
commit
7108076260
@ -49,7 +49,7 @@ class Classic
|
|||||||
# runs android create project
|
# runs android create project
|
||||||
# TODO need to allow more flexible SDK targetting via config.xml
|
# TODO need to allow more flexible SDK targetting via config.xml
|
||||||
def create_android
|
def create_android
|
||||||
target_id = `android list targets | grep id:`.split("\n").last.match(/\d/).to_a.first
|
target_id = `android list targets | grep id:`.split("\n").last.match(/\d+/).to_a.first
|
||||||
`android create project -t #{ target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }`
|
`android create project -t #{ target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user