Modify the min sdk version of android platform required in plugin samples.

This commit is contained in:
zhangbin 2013-06-26 14:14:40 +08:00
parent 3d5494019c
commit f0d1df426f
13 changed files with 16 additions and 16 deletions

View File

@ -224,9 +224,9 @@ JSBool js_pluginx_PluginProtocol_callStringFuncWithParam(JSContext *cx, uint32_t
JSObject *obj = JS_THIS_OBJECT(cx, vp); JSObject *obj = JS_THIS_OBJECT(cx, vp);
js_proxy_t *proxy; JS_GET_NATIVE_PROXY(proxy, obj); js_proxy_t *proxy; JS_GET_NATIVE_PROXY(proxy, obj);
cocos2d::plugin::PluginProtocol* cobj = (cocos2d::plugin::PluginProtocol *)(proxy ? proxy->ptr : NULL); cocos2d::plugin::PluginProtocol* cobj = (cocos2d::plugin::PluginProtocol *)(proxy ? proxy->ptr : NULL);
const char* ret = cobj->callStringFuncWithParam(strName.c_str(), params).c_str(); std::string ret = cobj->callStringFuncWithParam(strName.c_str(), params);
jsval jsret; jsval jsret;
jsret = c_string_to_jsval(cx, ret); jsret = std_string_to_jsval(cx, ret);
JS_SET_RVAL(cx, vp, jsret); JS_SET_RVAL(cx, vp, jsret);
return JS_TRUE; return JS_TRUE;
} }

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.cocos2dx.HelloAds" android:versionCode="1" android:versionName="1.0"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.cocos2dx.HelloAds" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" /> <uses-sdk android:minSdkVersion="9" />
<uses-feature android:glEsVersion="0x00020000" /> <uses-feature android:glEsVersion="0x00020000" />
<application android:icon="@drawable/icon" android:label="@string/app_name"> <application android:icon="@drawable/icon" android:label="@string/app_name">

View File

@ -4,7 +4,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/> <uses-sdk android:minSdkVersion="9"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:debuggable="true" android:debuggable="true"

View File

@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target. # Project target.
target=android-8 target=android-9
android.library.reference.1=../../../../cocos2dx/platform/android/java android.library.reference.1=../../../../cocos2dx/platform/android/java

View File

@ -4,7 +4,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/> <uses-sdk android:minSdkVersion="9"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:debuggable="true" android:debuggable="true"

View File

@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target. # Project target.
target=android-8 target=android-9
android.library.reference.1=../../../../cocos2dx/platform/android/java android.library.reference.1=../../../../cocos2dx/platform/android/java

View File

@ -4,7 +4,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/> <uses-sdk android:minSdkVersion="9"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:debuggable="true" android:debuggable="true"

View File

@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target. # Project target.
target=android-8 target=android-9
android.library.reference.1=../../../../cocos2dx/platform/android/java android.library.reference.1=../../../../cocos2dx/platform/android/java
android.library.reference.2=../../../publish/plugins/nd91/android/DependProject android.library.reference.2=../../../publish/plugins/nd91/android/DependProject

View File

@ -4,7 +4,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/> <uses-sdk android:minSdkVersion="9"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:debuggable="true" android:debuggable="true"

View File

@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target. # Project target.
target=android-8 target=android-9
android.library.reference.1=../../../../cocos2dx/platform/android/java android.library.reference.1=../../../../cocos2dx/platform/android/java
android.library.reference.2=../../../publish/plugins/nd91/android/DependProject android.library.reference.2=../../../publish/plugins/nd91/android/DependProject

View File

@ -4,7 +4,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/> <uses-sdk android:minSdkVersion="9"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:debuggable="true" android:debuggable="true"

View File

@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target. # Project target.
target=android-8 target=android-9
android.library.reference.1=../../../../cocos2dx/platform/android/java android.library.reference.1=../../../../cocos2dx/platform/android/java

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.cocos2dx.HelloUser" android:versionCode="1" android:versionName="1.0"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.cocos2dx.HelloUser" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" /> <uses-sdk android:minSdkVersion="9" />
<uses-feature android:glEsVersion="0x00020000" /> <uses-feature android:glEsVersion="0x00020000" />
<application android:icon="@drawable/icon" android:label="@string/app_name"> <application android:icon="@drawable/icon" android:label="@string/app_name">