Permalink
Browse files

3.0.1

  • Loading branch information...
vhbvb committed Jun 26, 2017
1 parent e46f3a0 commit 226191bea3a2fdac0aa2564f822534c19fe3217f
Showing with 3,190 additions and 6,240 deletions.
  1. +2 −2 Classes/AppDelegate.cpp
  2. +5 −5 Classes/HelloWorldScene.cpp
  3. +13 −13 Classes/SMSSDK/Android/SMSSDK_android.cpp
  4. +15 −20 Classes/SMSSDK/Android/SMSSDK_android.h
  5. +11 −11 Classes/SMSSDK/SMSSDK.cpp
  6. +22 −55 Classes/SMSSDK/ios/iOSSMSSDK.mm
  7. +1 −1 README.md
  8. +1 −1 proj.android-studio/app/AndroidManifest.xml
  9. +2 −2 proj.android-studio/app/build.gradle
  10. +0 −7 proj.android-studio/app/jni/hellocpp/main.cpp
  11. BIN proj.android-studio/app/libs/MobCommons-2016.1201.1839.jar
  12. BIN proj.android-studio/app/libs/MobCommons-2017.0607.1736.jar
  13. BIN proj.android-studio/app/libs/MobTools-2016.1201.1839.jar
  14. BIN proj.android-studio/app/libs/MobTools-2017.0607.1736.jar
  15. BIN proj.android-studio/app/libs/SMSSDK-2.1.3.aar
  16. BIN proj.android-studio/app/libs/SMSSDK-3.0.0.aar
  17. BIN proj.android-studio/app/libs/{SMSSDKGUI-3.0.0.aar → SMSSDKGUI-2.1.3.aar}
  18. +3 −9 proj.android-studio/app/src/cn/smssdk/cocos2dx/SMSSDKBridge.java
  19. +1 −1 proj.android/.classpath
  20. +11 −82 proj.android/.cproject
  21. +2 −2 proj.android/AndroidManifest.xml
  22. +1 −8 proj.android/jni/hellocpp/main.cpp
  23. BIN proj.android/libs/MobCommons-2016.1201.1839.jar
  24. BIN proj.android/libs/MobCommons-2017.0607.1736.jar
  25. BIN proj.android/libs/MobTools-2016.1201.1839.jar
  26. BIN proj.android/libs/MobTools-2017.0607.1736.jar
  27. BIN proj.android/libs/SMSSDK-2.1.3.jar
  28. BIN proj.android/libs/SMSSDK-3.0.0.jar
  29. BIN proj.android/libs/armeabi/libMyGame.so
  30. +1 −41 proj.android/res/values-en/smssdk_errors.xml
  31. +0 −41 proj.android/res/values/smssdk_errors.xml
  32. +0 −40 proj.android/res/values/smssdk_ids.xml
  33. +0 −15 proj.android/res/values/smssdk_styles.xml
  34. +4 −7 proj.android/src/cn/smssdk/cocos2dx/SMSSDKBridge.java
  35. +5 −10 proj.android/src/cn/smssdk/gui/CommonDialog.java
  36. +34 −35 proj.android/src/cn/smssdk/gui/ContactDetailPage.java
  37. +2 −4 proj.android/src/cn/smssdk/gui/ContactEntry.java
  38. +2 −4 proj.android/src/cn/smssdk/gui/ContactItemMaker.java
  39. +9 −13 proj.android/src/cn/smssdk/gui/ContactsAdapter.java
  40. +8 −10 proj.android/src/cn/smssdk/gui/ContactsListView.java
  41. +37 −38 proj.android/src/cn/smssdk/gui/ContactsPage.java
  42. +16 −20 proj.android/src/cn/smssdk/gui/CountryAdapter.java
  43. +23 −24 proj.android/src/cn/smssdk/gui/CountryListView.java
  44. +32 −33 proj.android/src/cn/smssdk/gui/CountryPage.java
  45. +25 −26 proj.android/src/cn/smssdk/gui/DefaultContactViewItem.java
  46. +2 −4 proj.android/src/cn/smssdk/gui/GroupListView.java
  47. +88 −84 proj.android/src/cn/smssdk/gui/IdentifyNumPage.java
  48. +53 −50 proj.android/src/cn/smssdk/gui/RegisterPage.java
  49. +13 −16 proj.android/src/cn/smssdk/gui/SMSReceiver.java
  50. +4 −5 proj.android/src/cn/smssdk/gui/SearchEngine.java
  51. +39 −38 proj.android/src/cn/smssdk/gui/SmartVerifyPage.java
  52. +11 −17 proj.android/src/cn/smssdk/gui/layout/BackVerifyDialogLayout.java
  53. +3 −6 proj.android/src/cn/smssdk/gui/layout/BasePageLayout.java
  54. +17 −27 proj.android/src/cn/smssdk/gui/layout/ContactDetailPageLayout.java
  55. +5 −11 proj.android/src/cn/smssdk/gui/layout/ContactListPageLayout.java
  56. +14 −22 proj.android/src/cn/smssdk/gui/layout/ContactsListviewItemLayout.java
  57. +5 −11 proj.android/src/cn/smssdk/gui/layout/CountryListPageLayout.java
  58. +18 −20 proj.android/src/cn/smssdk/gui/layout/DrawableHelper.java
  59. +24 −35 proj.android/src/cn/smssdk/gui/layout/IdentifyNumPageLayout.java
  60. +28 −13 proj.android/src/cn/smssdk/gui/layout/LayoutFactory.java
  61. +7 −11 proj.android/src/cn/smssdk/gui/layout/ListviewTitleLayout.java
  62. +4 −8 proj.android/src/cn/smssdk/gui/layout/ProgressDialogLayout.java
  63. +21 −33 proj.android/src/cn/smssdk/gui/layout/RegisterPageLayout.java
  64. +16 −27 proj.android/src/cn/smssdk/gui/layout/SendMsgDialogLayout.java
  65. +3 −5 proj.android/src/cn/smssdk/gui/layout/SizeHelper.java
  66. +63 −72 proj.android/src/cn/smssdk/gui/layout/TitleLayout.java
  67. +27 −42 proj.ios_mac/MyCppGame.xcodeproj/project.pbxproj
  68. BIN ...CppGame.xcodeproj/project.xcworkspace/xcuserdata/youzu.xcuserdatad/UserInterfaceState.xcuserstate
  69. +12 −0 proj.ios_mac/MyCppGame.xcodeproj/xcuserdata/youzu.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  70. +1 −1 proj.ios_mac/SDK/SMSSDK/SMS_SDK.framework/Headers/SMSSDK+ContactFriends.h
  71. +1 −10 proj.ios_mac/SDK/SMSSDK/SMS_SDK.framework/Headers/SMSSDKResultHanderDef.h
  72. BIN proj.ios_mac/SDK/SMSSDK/SMS_SDK.framework/Info.plist
  73. BIN proj.ios_mac/SDK/SMSSDK/SMS_SDK.framework/SMS_SDK
  74. BIN proj.ios_mac/SMSSDKUI.bundle/button3.png
  75. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/button1.png
  76. BIN proj.ios_mac/SMSSDKUI/SMSSDKUI.bundle/button2.png
  77. BIN proj.ios_mac/{SMSSDKUI.bundle/button2.png → SMSSDKUI/SMSSDKUI.bundle/button3.png}
  78. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/button4.png
  79. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/button_background.png
  80. +11 −37 proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/en.lproj/Localizable.strings
  81. 0 proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/en.lproj/country.plist
  82. BIN proj.ios_mac/SMSSDKUI/SMSSDKUI.bundle/error@3x.png
  83. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/icon.png
  84. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/navigationbar_background.png
  85. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/navigationbar_background@2x.png
  86. BIN proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/sms_ui_default_avatar.png
  87. BIN proj.ios_mac/SMSSDKUI/SMSSDKUI.bundle/success@3x.png
  88. +11 −38 proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/zh-Hans.lproj/Localizable.strings
  89. 0 proj.ios_mac/{ → SMSSDKUI}/SMSSDKUI.bundle/zh-Hans.lproj/country.plist
  90. +356 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI.xcodeproj/project.pbxproj
  91. +1 −1 ...ac/SMSSDKUI/{SMSSDUI.xcodeproj → SMSSDKUI.xcodeproj}/project.xcworkspace/contents.xcworkspacedata
  92. BIN ...MSSDKUI.xcodeproj/project.xcworkspace/xcuserdata/youzu.xcuserdatad/UserInterfaceState.xcuserstate
  93. +14 −14 ...s/SMSSDUI.xcscheme → SMSSDKUI.xcodeproj/xcuserdata/youzu.xcuserdatad/xcschemes/SMSSDKUI.xcscheme}
  94. +4 −2 ...xcuserdatad → SMSSDKUI.xcodeproj/xcuserdata/youzu.xcuserdatad}/xcschemes/xcschememanagement.plist
  95. +33 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Cell/SMSSDKUIContactTableViewCell.h
  96. +149 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Cell/SMSSDKUIContactTableViewCell.m
  97. +15 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUICommitCodeViewController.h
  98. +344 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUICommitCodeViewController.m
  99. +15 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIContactFriendsViewController.h
  100. +276 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIContactFriendsViewController.m
  101. +16 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIGetCodeViewController.h
  102. +207 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIGetCodeViewController.m
  103. +16 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIInviteViewController.h
  104. +157 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIInviteViewController.m
  105. +17 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIZonesViewController.h
  106. +205 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Controllers/SMSSDKUIZonesViewController.m
  107. +11 −25 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMSSDKUI.h
  108. +0 −47 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMSSDKUI.m
  109. +0 −84 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMS_UILib/SMS_HYZBadgeView.h
  110. +0 −276 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMS_UILib/SMS_HYZBadgeView.m
  111. +0 −384 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMS_UILib/SMS_MBProgressHUD.h
  112. +0 −792 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMS_UILib/SMS_MBProgressHUD.m
  113. +0 −43 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMS_UILib/YJLocalCountryData.h
  114. +0 −157 proj.ios_mac/SMSSDKUI/SMSSDKUI/SMS_UILib/YJLocalCountryData.m
  115. +0 −33 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/CustomCell.h
  116. +0 −100 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/CustomCell.m
  117. +0 −17 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/InvitationViewControllerEx.h
  118. +0 −243 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/InvitationViewControllerEx.m
  119. +0 −35 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/Rigister/RegViewController.h
  120. +0 −500 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/Rigister/RegViewController.m
  121. +0 −28 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/Rigister/VerifyViewController.h
  122. +0 −411 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/Rigister/VerifyViewController.m
  123. +0 −31 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSSDKCountryAndAreaCode.h
  124. +0 −13 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSSDKCountryAndAreaCode.m
  125. +0 −49 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSUIContactsFriendsViewController.h
  126. +0 −100 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSUIContactsFriendsViewController.m
  127. +0 −44 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSUIVerificationCodeViewController.h
  128. +0 −123 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSUIVerificationCodeViewController.m
  129. +0 −41 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SMSUIVerificationCodeViewResultDef.h
  130. +0 −39 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SectionsViewController.h
  131. +0 −305 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SectionsViewController.m
  132. +0 −42 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SectionsViewControllerFriends.h
  133. +0 −565 proj.ios_mac/SMSSDKUI/SMSSDKUI/UI/SectionsViewControllerFriends.m
  134. +19 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Util/SMSSDKUIHelper.h
  135. +266 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Util/SMSSDKUIHelper.m
  136. +32 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Util/SMSSDKUIPrefixHeader.pch
  137. +25 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Util/SMSSDKUIProcessHUD.h
  138. +223 −0 proj.ios_mac/SMSSDKUI/SMSSDKUI/Util/SMSSDKUIProcessHUD.m
  139. +0 −371 proj.ios_mac/SMSSDKUI/SMSSDUI.xcodeproj/project.pbxproj
  140. BIN ...I.xcodeproj/project.xcworkspace/xcuserdata/liyuansheng.xcuserdatad/UserInterfaceState.xcuserstate
  141. +0 −80 proj.ios_mac/SMSSDKUI/SMSSDUI.xcodeproj/xcuserdata/youzu.xcuserdatad/xcschemes/SMSSDUI.xcscheme
  142. +0 −22 ...os_mac/SMSSDKUI/SMSSDUI.xcodeproj/xcuserdata/youzu.xcuserdatad/xcschemes/xcschememanagement.plist
View
@@ -90,7 +90,7 @@ void AppDelegate::applicationWillEnterForeground()
void AppDelegate::initSMSSDK()
{
string appKey("moba6b6c6d6");
string appSecret("b89d2427a3bc7ad1aea1e1e8c1d36bf3");
string appKey("f3fc6baa9ac4");
string appSecret("7f3dedcb36d92deebcb373af921d635a");
SMSSDK::init(appKey,appSecret,false);
}
@@ -43,10 +43,10 @@ bool HelloWorld::init()
getVoiceCodeMenu->setPosition(Vec2::ZERO);
this->addChild(getVoiceCodeMenu);
//提交验证码
// //提交验证码
// MenuItemLabel *commitCodeItem = MenuItemLabel::create(LabelTTF::create("Commit Code", "Arial", 10),
// CC_CALLBACK_1(HelloWorld::commitCodeHandler, this));
// commitCodeItem->setPosition(winSize.width/2 , 225);
// commitCodeItem->setPosition(winSize.width/2 , 300);
// auto commitCodeMenu = Menu::create(commitCodeItem,NULL);
// commitCodeMenu->setPosition(Vec2::ZERO);
// this->addChild(commitCodeMenu);
@@ -162,22 +162,22 @@ void HelloWorld::editBoxTextChanged(cocos2d::extension::EditBox *editBox, const
void HelloWorld::getTextCodeHandler(cocos2d::Ref* pSender)
{
string phone("186******");
string phone("18021058213");
string zone("86");
SMSSDK::getCode(TextCode,phone,zone);
}
//
void HelloWorld::getVoiceCodeHandler(cocos2d::Ref* pSender)
{
string phone("186******");
string phone("18021058213");
string zone("86");
SMSSDK::getCode(VoiceCode,phone,zone);
}
void HelloWorld::commitCodeHandler(cocos2d::Ref *pSender)
{
string phone("186******");
string phone("18021058213");
string zone("86");
SMSSDK::commitCode(phone,zone,"6358");
}
@@ -45,16 +45,16 @@ JNIEXPORT void JNICALL Java_cn_smssdk_cocos2dx_SMSSDKBridge_onJavaCallback
dic->release();
}
bool SMSSDK_android::getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode) {
bool getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode) {
return JniHelper::getStaticMethodInfo(mi, "cn/smssdk/cocos2dx/SMSSDKBridge", methodName, paramCode);
}
void SMSSDK_android::releaseMethod(JniMethodInfo &mi) {
void releaseMethod(JniMethodInfo &mi) {
if(mi.classID != NULL)
mi.env->DeleteLocalRef(mi.classID);
}
bool SMSSDK_android::initSDKJNI(string appKey, string appSecret, bool isWarn) {
bool 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 SMSSDK_android::initSDKJNI(string appKey, string appSecret, bool isWarn) {
return true;
}
bool SMSSDK_android::getCodeJNI(SMSSDKCodeType type, string zone, string phone) {
bool getCodeJNI(SMSSDKCodeType type, string zone, string phone) {
JniMethodInfo mi;
bool isHave;
if(type == TextCode) {
@@ -91,7 +91,7 @@ bool SMSSDK_android::getCodeJNI(SMSSDKCodeType type, string zone, string phone)
return true;
}
bool SMSSDK_android::commitCodeJNI(string zone, string phone, string code) {
bool 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 SMSSDK_android::commitCodeJNI(string zone, string phone, string code) {
return true;
}
bool SMSSDK_android::getSupportedCountriesJNI() {
bool getSupportedCountriesJNI() {
JniMethodInfo mi;
bool isHave = getMethod(mi, "getSupportedCountries", "()V");
if (!isHave) {
@@ -119,7 +119,7 @@ bool SMSSDK_android::getSupportedCountriesJNI() {
return true;
}
bool SMSSDK_android::getFriendsJNI() {
bool getFriendsJNI() {
JniMethodInfo mi;
bool isHave = getMethod(mi, "getFriendsInApp", "()V");
if (!isHave) {
@@ -131,7 +131,7 @@ bool SMSSDK_android::getFriendsJNI() {
return true;
}
bool SMSSDK_android::submitUserInfoJNI(UserInfo &userinfo){
bool 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 SMSSDK_android::submitUserInfoJNI(UserInfo &userinfo){
return true;
}
string SMSSDK_android::getVersionJNI(){
string getVersionJNI(){
JniMethodInfo mi;
bool isHave = getMethod(mi, "getVersion", "()Ljava/lang/String;");
if(!isHave){
@@ -161,7 +161,7 @@ string SMSSDK_android::getVersionJNI(){
}
bool SMSSDK_android::enableWarnJNI(bool isWarn){
bool enableWarnJNI(bool isWarn){
JniMethodInfo mi;
bool isHave = getMethod(mi, "enableWarn", "(Z)V");
if (!isHave) {
@@ -174,7 +174,7 @@ bool SMSSDK_android::enableWarnJNI(bool isWarn){
return true;
}
bool SMSSDK_android::showRegisterPageJNI()
bool showRegisterPageJNI()
{
JniMethodInfo mi;
bool isHave = getMethod(mi, "showRegisterPage", "()V");
@@ -187,7 +187,7 @@ bool SMSSDK_android::showRegisterPageJNI()
return true;
}
bool SMSSDK_android::showContactsPageJNI()
bool showContactsPageJNI()
{
JniMethodInfo mi;
bool isHave = getMethod(mi, "showContactsPage", "()V");
@@ -201,7 +201,7 @@ bool SMSSDK_android::showContactsPageJNI()
return true;
}
void SMSSDK_android::setHandlerAndroid(SMSSDKHandler* handler)
void setHandlerAndroid(SMSSDKHandler* handler)
{
_handler = handler;
}
@@ -29,38 +29,33 @@ 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);
static void releaseMethod(JniMethodInfo &mi);
bool getMethod(JniMethodInfo &mi, const char *methodName, const char *paramCode);
//jni methods
static bool initSDKJNI(string appKey, string appSecret, bool isWarn);
void releaseMethod(JniMethodInfo &mi);
static bool getCodeJNI(SMSSDKCodeType codetype,string zone,string phone);
//jni methods
bool initSDKJNI(string appKey, string appSecret, bool isWarn);
static bool commitCodeJNI(string zone, string phone, string code);
bool getCodeJNI(SMSSDKCodeType codetype,string zone,string phone);
static bool getSupportedCountriesJNI();
bool commitCodeJNI(string zone, string phone, string code);
static bool getFriendsJNI();
bool getSupportedCountriesJNI();
static bool submitUserInfoJNI(UserInfo& userinfo);
bool getFriendsJNI();
static string getVersionJNI();
bool submitUserInfoJNI(UserInfo& userinfo);
static bool enableWarnJNI(bool isWarn);
string getVersionJNI();
static bool showRegisterPageJNI();
bool enableWarnJNI(bool isWarn);
static bool showContactsPageJNI();
bool showRegisterPageJNI();
static void setHandlerAndroid(SMSSDKHandler* handler);
};
}
bool showContactsPageJNI();
void setHandlerAndroid(SMSSDKHandler* handler);
#ifdef __cplusplus
}
View
@@ -24,7 +24,7 @@ bool SMSSDK::init(string appKey, string appSecret, bool isWarn)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::initSDKJNI(appKey, appSecret, isWarn);
return initSDKJNI(appKey, appSecret, isWarn);
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -40,7 +40,7 @@ bool SMSSDK::getCode(SMSSDKCodeType codeType, string phone, string zone)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::getCodeJNI(codeType, zone, phone);
return getCodeJNI(codeType, zone, phone);
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -55,7 +55,7 @@ bool SMSSDK::commitCode(string phone, string zone, string code)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::commitCodeJNI(zone, phone, code);
return commitCodeJNI(zone, phone, code);
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -71,7 +71,7 @@ bool SMSSDK::getSupportedCountries()
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::getSupportedCountriesJNI();
return getSupportedCountriesJNI();
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -87,7 +87,7 @@ bool SMSSDK::getFriends()
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::getFriendsJNI();
return getFriendsJNI();
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
//iOS
@@ -103,7 +103,7 @@ bool SMSSDK::submitUserInfo(UserInfo &userinfo)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::submitUserInfoJNI(userinfo);
return submitUserInfoJNI(userinfo);
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
//iOS
@@ -118,7 +118,7 @@ string SMSSDK::getVersion()
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::getVersionJNI();
return getVersionJNI();
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -134,7 +134,7 @@ bool SMSSDK::enableWarn(bool isWarn)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::enableWarnJNI(isWarn);
return enableWarnJNI(isWarn);
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -150,7 +150,7 @@ bool SMSSDK::showRegisterPage(SMSSDKCodeType type)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::showRegisterPageJNI();
return showRegisterPageJNI();
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -166,7 +166,7 @@ bool SMSSDK::showContactsPage()
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Andorid
return SMSSDK_android::showContactsPageJNI();
return showContactsPageJNI();
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
@@ -182,7 +182,7 @@ void SMSSDK::setHandler(SMSSDKHandler* handler)
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//Android
SMSSDK_android::setHandlerAndroid(handler);
setHandlerAndroid(handler);
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
Oops, something went wrong.

0 comments on commit 226191b

Please sign in to comment.