From f0d1df426f638932ffe40bf81d4c7958346ac431 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Wed, 26 Jun 2013 14:14:40 +0800 Subject: [PATCH] Modify the min sdk version of android platform required in plugin samples. --- plugin/jsbindings/manual/jsb_pluginx_manual_protocols.cpp | 4 ++-- plugin/samples/HelloAds/proj.android/AndroidManifest.xml | 4 ++-- .../HelloAnalytics-JS/proj.android/AndroidManifest.xml | 2 +- .../samples/HelloAnalytics-JS/proj.android/project.properties | 2 +- .../samples/HelloAnalytics/proj.android/AndroidManifest.xml | 2 +- plugin/samples/HelloAnalytics/proj.android/project.properties | 2 +- plugin/samples/HelloIAP-JS/proj.android/AndroidManifest.xml | 2 +- plugin/samples/HelloIAP-JS/proj.android/project.properties | 2 +- plugin/samples/HelloIAP/proj.android/AndroidManifest.xml | 2 +- plugin/samples/HelloIAP/proj.android/project.properties | 2 +- plugin/samples/HelloShare/proj.android/AndroidManifest.xml | 2 +- plugin/samples/HelloShare/proj.android/project.properties | 2 +- plugin/samples/HelloUser/proj.android/AndroidManifest.xml | 4 ++-- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugin/jsbindings/manual/jsb_pluginx_manual_protocols.cpp b/plugin/jsbindings/manual/jsb_pluginx_manual_protocols.cpp index b01c50110b..b2b6fb5281 100644 --- a/plugin/jsbindings/manual/jsb_pluginx_manual_protocols.cpp +++ b/plugin/jsbindings/manual/jsb_pluginx_manual_protocols.cpp @@ -224,9 +224,9 @@ JSBool js_pluginx_PluginProtocol_callStringFuncWithParam(JSContext *cx, uint32_t JSObject *obj = JS_THIS_OBJECT(cx, vp); js_proxy_t *proxy; JS_GET_NATIVE_PROXY(proxy, obj); 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; - jsret = c_string_to_jsval(cx, ret); + jsret = std_string_to_jsval(cx, ret); JS_SET_RVAL(cx, vp, jsret); return JS_TRUE; } diff --git a/plugin/samples/HelloAds/proj.android/AndroidManifest.xml b/plugin/samples/HelloAds/proj.android/AndroidManifest.xml index 851b907ad6..804a1bc20a 100644 --- a/plugin/samples/HelloAds/proj.android/AndroidManifest.xml +++ b/plugin/samples/HelloAds/proj.android/AndroidManifest.xml @@ -1,7 +1,7 @@ - + @@ -18,4 +18,4 @@ - \ No newline at end of file + diff --git a/plugin/samples/HelloAnalytics-JS/proj.android/AndroidManifest.xml b/plugin/samples/HelloAnalytics-JS/proj.android/AndroidManifest.xml index 57119a6dcf..db2ddeda1b 100644 --- a/plugin/samples/HelloAnalytics-JS/proj.android/AndroidManifest.xml +++ b/plugin/samples/HelloAnalytics-JS/proj.android/AndroidManifest.xml @@ -4,7 +4,7 @@ android:versionCode="1" android:versionName="1.0"> - + - + - + - + - + - + @@ -38,4 +38,4 @@ - \ No newline at end of file +