forked from github/cordova-android
[CB-4154] Set default Android target to android-17
This is done in the default project.properties file, as well as the create script for new projects.
This commit is contained in:
parent
37c20c3f67
commit
546948cb8c
@ -83,8 +83,8 @@ PACKAGE_AS_PATH=$(echo $PACKAGE | sed 's/\./\//g')
|
|||||||
ACTIVITY_PATH="$PROJECT_PATH"/src/$PACKAGE_AS_PATH/$ACTIVITY.java
|
ACTIVITY_PATH="$PROJECT_PATH"/src/$PACKAGE_AS_PATH/$ACTIVITY.java
|
||||||
MANIFEST_PATH="$PROJECT_PATH"/AndroidManifest.xml
|
MANIFEST_PATH="$PROJECT_PATH"/AndroidManifest.xml
|
||||||
|
|
||||||
TARGET=$("$ANDROID_BIN" list targets | grep id: | tail -1 | cut -f 2 -d ' ' )
|
TARGET=$("$ANDROID_BIN" list targets -c | grep '^android-' | tail -1 )
|
||||||
API_LEVEL=$("$ANDROID_BIN" list target | grep "API level:" | tail -n 1 | cut -f 2 -d ':' | tr -d ' ')
|
API_LEVEL=${TARGET##android-}
|
||||||
|
|
||||||
# check that build targets exist
|
# check that build targets exist
|
||||||
if [ -z "$TARGET" ] || [ -z "$API_LEVEL" ]
|
if [ -z "$TARGET" ] || [ -z "$API_LEVEL" ]
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# Indicates whether an apk should be generated for each density.
|
# Indicates whether an apk should be generated for each density.
|
||||||
split.density=false
|
split.density=false
|
||||||
# Project target.
|
# Project target.
|
||||||
target=Google Inc.:Google APIs:17
|
target=android-17
|
||||||
apk-configurations=
|
apk-configurations=
|
||||||
renderscript.opt.level=O0
|
renderscript.opt.level=O0
|
||||||
android.library=true
|
android.library=true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user