Permalink
Browse files

Revert Android to 3.0.0

iOS 3.0.1 releasing revert android to 2.1.3 by mistake, so revert android to 3.0.0 again
  • Loading branch information...
shijiewei committed Oct 14, 2017
1 parent 3e5acb6 commit 03cb5566e619bd3f567fd7cd4891ef550899c933
Showing with 1,020 additions and 684 deletions.
  1. +13 −13 Classes/SMSSDK/Android/SMSSDK_android.cpp
  2. +20 −15 Classes/SMSSDK/Android/SMSSDK_android.h
  3. +1 −1 README.md
  4. +1 −1 proj.android-studio/app/AndroidManifest.xml
  5. +2 −2 proj.android-studio/app/build.gradle
  6. +7 −0 proj.android-studio/app/jni/hellocpp/main.cpp
  7. BIN proj.android-studio/app/libs/MobCommons-2016.1201.1839.jar
  8. BIN proj.android-studio/app/libs/MobCommons-2017.0607.1736.jar
  9. BIN proj.android-studio/app/libs/MobTools-2016.1201.1839.jar
  10. BIN proj.android-studio/app/libs/MobTools-2017.0607.1736.jar
  11. BIN proj.android-studio/app/libs/SMSSDK-2.1.3.aar
  12. BIN proj.android-studio/app/libs/SMSSDK-3.0.0.aar
  13. BIN proj.android-studio/app/libs/{SMSSDKGUI-2.1.3.aar → SMSSDKGUI-3.0.0.aar}
  14. +9 −3 proj.android-studio/app/src/cn/smssdk/cocos2dx/SMSSDKBridge.java
  15. +1 −1 proj.android/.classpath
  16. +82 −11 proj.android/.cproject
  17. +8 −1 proj.android/jni/hellocpp/main.cpp
  18. BIN proj.android/libs/MobCommons-2016.1201.1839.jar
  19. BIN proj.android/libs/MobCommons-2017.0607.1736.jar
  20. BIN proj.android/libs/MobTools-2016.1201.1839.jar
  21. BIN proj.android/libs/MobTools-2017.0607.1736.jar
  22. BIN proj.android/libs/SMSSDK-2.1.3.jar
  23. BIN proj.android/libs/SMSSDK-3.0.0.jar
  24. BIN proj.android/libs/armeabi/libMyGame.so
  25. +41 −1 proj.android/res/values-en/smssdk_errors.xml
  26. +41 −0 proj.android/res/values/smssdk_errors.xml
  27. +40 −0 proj.android/res/values/smssdk_ids.xml
  28. +15 −0 proj.android/res/values/smssdk_styles.xml
  29. +7 −4 proj.android/src/cn/smssdk/cocos2dx/SMSSDKBridge.java
  30. +10 −5 proj.android/src/cn/smssdk/gui/CommonDialog.java
  31. +35 −34 proj.android/src/cn/smssdk/gui/ContactDetailPage.java
  32. +4 −2 proj.android/src/cn/smssdk/gui/ContactEntry.java
  33. +4 −2 proj.android/src/cn/smssdk/gui/ContactItemMaker.java
  34. +13 −9 proj.android/src/cn/smssdk/gui/ContactsAdapter.java
  35. +10 −8 proj.android/src/cn/smssdk/gui/ContactsListView.java
  36. +38 −37 proj.android/src/cn/smssdk/gui/ContactsPage.java
  37. +20 −16 proj.android/src/cn/smssdk/gui/CountryAdapter.java
  38. +24 −23 proj.android/src/cn/smssdk/gui/CountryListView.java
  39. +33 −32 proj.android/src/cn/smssdk/gui/CountryPage.java
  40. +26 −25 proj.android/src/cn/smssdk/gui/DefaultContactViewItem.java
  41. +4 −2 proj.android/src/cn/smssdk/gui/GroupListView.java
  42. +84 −88 proj.android/src/cn/smssdk/gui/IdentifyNumPage.java
  43. +50 −53 proj.android/src/cn/smssdk/gui/RegisterPage.java
  44. +16 −13 proj.android/src/cn/smssdk/gui/SMSReceiver.java
  45. +5 −4 proj.android/src/cn/smssdk/gui/SearchEngine.java
  46. +38 −39 proj.android/src/cn/smssdk/gui/SmartVerifyPage.java
  47. +17 −11 proj.android/src/cn/smssdk/gui/layout/BackVerifyDialogLayout.java
  48. +6 −3 proj.android/src/cn/smssdk/gui/layout/BasePageLayout.java
  49. +27 −17 proj.android/src/cn/smssdk/gui/layout/ContactDetailPageLayout.java
  50. +11 −5 proj.android/src/cn/smssdk/gui/layout/ContactListPageLayout.java
  51. +22 −14 proj.android/src/cn/smssdk/gui/layout/ContactsListviewItemLayout.java
  52. +11 −5 proj.android/src/cn/smssdk/gui/layout/CountryListPageLayout.java
  53. +20 −18 proj.android/src/cn/smssdk/gui/layout/DrawableHelper.java
  54. +35 −24 proj.android/src/cn/smssdk/gui/layout/IdentifyNumPageLayout.java
  55. +13 −28 proj.android/src/cn/smssdk/gui/layout/LayoutFactory.java
  56. +11 −7 proj.android/src/cn/smssdk/gui/layout/ListviewTitleLayout.java
  57. +8 −4 proj.android/src/cn/smssdk/gui/layout/ProgressDialogLayout.java
  58. +33 −21 proj.android/src/cn/smssdk/gui/layout/RegisterPageLayout.java
  59. +27 −16 proj.android/src/cn/smssdk/gui/layout/SendMsgDialogLayout.java
  60. +5 −3 proj.android/src/cn/smssdk/gui/layout/SizeHelper.java
  61. +72 −63 proj.android/src/cn/smssdk/gui/layout/TitleLayout.java
@@ -45,16 +45,16 @@ JNIEXPORT void JNICALL Java_cn_smssdk_cocos2dx_SMSSDKBridge_onJavaCallback
dic->release();
}
bool getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode) {
bool SMSSDK_android::getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode) {
return JniHelper::getStaticMethodInfo(mi, "cn/smssdk/cocos2dx/SMSSDKBridge", methodName, paramCode);
}
void releaseMethod(JniMethodInfo &mi) {
void SMSSDK_android::releaseMethod(JniMethodInfo &mi) {
if(mi.classID != NULL)
mi.env->DeleteLocalRef(mi.classID);
}
bool initSDKJNI(string appKey, string appSecret, bool isWarn) {
bool SMSSDK_android::initSDKJNI(string appKey, string appSecret, bool isWarn) {
JniMethodInfo mi;
bool isHave = getMethod(mi, "init", "(Ljava/lang/String;Ljava/lang/String;Z)V");
if (!isHave) {
@@ -70,7 +70,7 @@ bool initSDKJNI(string appKey, string appSecret, bool isWarn) {
return true;
}
bool getCodeJNI(SMSSDKCodeType type, string zone, string phone) {
bool SMSSDK_android::getCodeJNI(SMSSDKCodeType type, string zone, string phone) {
JniMethodInfo mi;
bool isHave;
if(type == TextCode) {
@@ -91,7 +91,7 @@ bool getCodeJNI(SMSSDKCodeType type, string zone, string phone) {
return true;
}
bool commitCodeJNI(string zone, string phone, string code) {
bool SMSSDK_android::commitCodeJNI(string zone, string phone, string code) {
JniMethodInfo mi;
bool isHave = getMethod(mi, "commitCode", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
if (!isHave) {
@@ -107,7 +107,7 @@ bool commitCodeJNI(string zone, string phone, string code) {
return true;
}
bool getSupportedCountriesJNI() {
bool SMSSDK_android::getSupportedCountriesJNI() {
JniMethodInfo mi;
bool isHave = getMethod(mi, "getSupportedCountries", "()V");
if (!isHave) {
@@ -119,7 +119,7 @@ bool getSupportedCountriesJNI() {
return true;
}
bool getFriendsJNI() {
bool SMSSDK_android::getFriendsJNI() {
JniMethodInfo mi;
bool isHave = getMethod(mi, "getFriendsInApp", "()V");
if (!isHave) {
@@ -131,7 +131,7 @@ bool getFriendsJNI() {
return true;
}
bool submitUserInfoJNI(UserInfo &userinfo){
bool SMSSDK_android::submitUserInfoJNI(UserInfo &userinfo){
JniMethodInfo mi;
bool isHave = getMethod(mi, "submitUserInfo", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
if (!isHave) {
@@ -148,7 +148,7 @@ bool submitUserInfoJNI(UserInfo &userinfo){
return true;
}
string getVersionJNI(){
string SMSSDK_android::getVersionJNI(){
JniMethodInfo mi;
bool isHave = getMethod(mi, "getVersion", "()Ljava/lang/String;");
if(!isHave){
@@ -161,7 +161,7 @@ string getVersionJNI(){
}
bool enableWarnJNI(bool isWarn){
bool SMSSDK_android::enableWarnJNI(bool isWarn){
JniMethodInfo mi;
bool isHave = getMethod(mi, "enableWarn", "(Z)V");
if (!isHave) {
@@ -174,7 +174,7 @@ bool enableWarnJNI(bool isWarn){
return true;
}
bool showRegisterPageJNI()
bool SMSSDK_android::showRegisterPageJNI()
{
JniMethodInfo mi;
bool isHave = getMethod(mi, "showRegisterPage", "()V");
@@ -187,7 +187,7 @@ bool showRegisterPageJNI()
return true;
}
bool showContactsPageJNI()
bool SMSSDK_android::showContactsPageJNI()
{
JniMethodInfo mi;
bool isHave = getMethod(mi, "showContactsPage", "()V");
@@ -201,7 +201,7 @@ bool showContactsPageJNI()
return true;
}
void setHandlerAndroid(SMSSDKHandler* handler)
void SMSSDK_android::setHandlerAndroid(SMSSDKHandler* handler)
{
_handler = handler;
}
@@ -29,33 +29,38 @@ extern "C" {
*/
JNIEXPORT void JNICALL Java_cn_smssdk_cocos2dx_SMSSDKBridge_onJavaCallback
(JNIEnv * env, jclass thiz, jstring resp);
namespace smssdk {
class SMSSDK_android
{
public:
static bool getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode);
bool getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode);
static void releaseMethod(JniMethodInfo &mi);
void releaseMethod(JniMethodInfo &mi);
//jni methods
static bool initSDKJNI(string appKey, string appSecret, bool isWarn);
//jni methods
bool initSDKJNI(string appKey, string appSecret, bool isWarn);
static bool getCodeJNI(SMSSDKCodeType codetype,string zone,string phone);
bool getCodeJNI(SMSSDKCodeType codetype,string zone,string phone);
static bool commitCodeJNI(string zone, string phone, string code);
bool commitCodeJNI(string zone, string phone, string code);
static bool getSupportedCountriesJNI();
bool getSupportedCountriesJNI();
static bool getFriendsJNI();
bool getFriendsJNI();
static bool submitUserInfoJNI(UserInfo& userinfo);
bool submitUserInfoJNI(UserInfo& userinfo);
static string getVersionJNI();
string getVersionJNI();
static bool enableWarnJNI(bool isWarn);
bool enableWarnJNI(bool isWarn);
static bool showRegisterPageJNI();
bool showRegisterPageJNI();
static bool showContactsPageJNI();
bool showContactsPageJNI();
void setHandlerAndroid(SMSSDKHandler* handler);
static void setHandlerAndroid(SMSSDKHandler* handler);
};
}
#ifdef __cplusplus
}
View
@@ -3,7 +3,7 @@ SMSSDK for Cocos2d-x
### This is a sample of SMSSDK for Cocos2d-x.
**supported original SMSSDK version:**
- Android - V2.0.0~
- Android - V3.0.0~
- iOS - V3.0.0~
- Cocos2d-x v3.0.0~
@@ -16,7 +16,7 @@
<activity
android:name="org.cocos2dx.cpp.AppActivity"
android:screenOrientation="landscape"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
@@ -63,8 +63,8 @@ repositories {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':libcocos2dx')
compile name:'SMSSDK-2.1.3', ext:'aar'
compile name:'SMSSDKGUI-2.1.3', ext:'aar'
compile name:'SMSSDK-3.0.0', ext:'aar'
compile name:'SMSSDKGUI-3.0.0', ext:'aar'
}
task cleanAssets(type: Delete) {
@@ -9,6 +9,13 @@
using namespace cocos2d;
// Cocos2dx sdk 3.7以下
// void cocos_android_app_init (JNIEnv* env, jobject thiz) {
// LOGD("cocos_android_app_init");
// AppDelegate *pAppDelegate = new AppDelegate();
// }
// Cocos2dx sdk 3.7及以上
void cocos_android_app_init (JNIEnv* env) {
LOGD("cocos_android_app_init");
AppDelegate *pAppDelegate = new AppDelegate();
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,6 +5,8 @@
import android.text.TextUtils;
import android.util.Log;
import com.mob.MobSDK;
import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.plugin.PluginWrapper;
@@ -15,6 +17,7 @@
import cn.smssdk.utils.SPHelper;
public class SMSSDKBridge {
private static final String TAG = SMSSDKBridge.class.getSimpleName();
private static boolean DEBUG = true;
private static Context context;
@@ -27,8 +30,11 @@ public static void init(String appKey, String appSecret, boolean isWarn) {
}
if(Looper.myLooper() == null)
Looper.prepare();
SMSSDK.initSDK(context,appKey,appSecret,isWarn);
EventHandler handler = new EventHandler(){
MobSDK.init(context, appKey, appSecret);
if (isWarn) {
SMSSDK.setAskPermisionOnReadContact(isWarn);
}
EventHandler handler = new EventHandler(){
public void afterEvent(int event, int result, Object data) {
final String resp = JavaTools.javaActionResToCS(event, result, data);
Log.e("COCOS2D",resp);
@@ -74,7 +80,7 @@ public static String getVersion() {
}
public static void enableWarn(boolean isWarn) {
SPHelper.getInstance(context).setWarnWhenReadContact(isWarn);
SPHelper.getInstance().setWarnWhenReadContact(isWarn);
}
public static void showRegisterPage() {
View
@@ -2,8 +2,8 @@
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
View
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?>
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="0.1230402123">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123" moduleId="org.eclipse.cdt.core.settings" name="Release">
@@ -161,6 +159,85 @@
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="0.1230402123.1377291156">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123.1377291156" moduleId="org.eclipse.cdt.core.settings" name="Debug">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildProperties="" description="" id="0.1230402123.1377291156" name="Debug" parent="org.eclipse.cdt.build.core.prefbase.cfg">
<folderInfo id="0.1230402123.1377291156." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.201833538" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.201833538.235980614" name=""/>
<builder arguments="${ProjDirPath}/build_native.py -b debug" buildPath="${ProjDirPath}" command="python" id="org.eclipse.cdt.build.core.settings.default.builder.1949248716" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder">
<outputEntries>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name=""/>
</outputEntries>
</builder>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.813839891" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.766422923" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.658464030" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="${NDK_ROOT}/sources/android/native_app_glue"/>
</option>
<option id="org.eclipse.cdt.build.core.settings.holder.symbols.402466199" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols">
<listOptionValue builtIn="false" value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>
<listOptionValue builtIn="false" value="CC_DLL"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.930232989" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.55647957" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.814113654" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="${NDK_ROOT}/sources/android/native_app_glue"/>
<listOptionValue builtIn="false" value="${NDK_ROOT}/platforms/android-18/arch-arm/usr/include"/>
<listOptionValue builtIn="false" value="${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.8/include"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/2d"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/physics"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/base"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/math/kazmath"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/ui"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/network"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/audio/include"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/cocos/editor-support"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/extensions"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/external"/>
<listOptionValue builtIn="false" value="${ProjDirPath}/../cocos2d/external/chipmunk/include/chipmunk"/>
</option>
<option id="org.eclipse.cdt.build.core.settings.holder.symbols.923561092" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols">
<listOptionValue builtIn="false" value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>
<listOptionValue builtIn="false" value="CC_DLL"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.383151501" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.2139448747" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.715095106" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="${NDK_ROOT}/sources/android/native_app_glue"/>
</option>
<option id="org.eclipse.cdt.build.core.settings.holder.symbols.157274928" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols">
<listOptionValue builtIn="false" value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>
<listOptionValue builtIn="false" value="CC_DLL"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.108662290" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</toolChain>
</folderInfo>
<sourceEntries>
<entry excluding="Classes|cocos2d" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Classes"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="cocos2d"/>
</sourceEntries>
</configuration>
</storageModule>
</cconfiguration>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
@@ -173,13 +250,7 @@
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="MyCppGame.null.31159645" name="MyCppGame"/>
</storageModule>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="Default">
<resource resourceType="PROJECT" workspacePath="/MyCppGame"/>
</configuration>
<configuration configurationName="Debug">
<resource resourceType="PROJECT" workspacePath="/MyCppGame"/>
</configuration>
<storageModule moduleId="refreshScope" versionNumber="1">
<resource resourceType="PROJECT" workspacePath="/MyCppGame"/>
</storageModule>
</cproject>
@@ -9,7 +9,14 @@
using namespace cocos2d;
void cocos_android_app_init (JNIEnv* env, jobject thiz) {
// Cocos2dx sdk 3.7以下
// void cocos_android_app_init (JNIEnv* env, jobject thiz) {
// LOGD("cocos_android_app_init");
// AppDelegate *pAppDelegate = new AppDelegate();
// }
// Cocos2dx sdk 3.7及以上
void cocos_android_app_init (JNIEnv* env) {
LOGD("cocos_android_app_init");
AppDelegate *pAppDelegate = new AppDelegate();
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 03cb556

Please sign in to comment.