Przeglądaj źródła

重新导入ShareSDK

jet 8 lat temu
rodzic
commit
08ab62d0bd
64 zmienionych plików z 851 dodań i 187 usunięć
  1. 289 0
      Assets/Demo.cs
  2. 1 3
      Assets/Demo.cs.meta
  3. 13 9
      Assets/Plugins/Android/ShareSDK/AndroidManifest.xml
  4. BIN
      Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0322.1909.jar
  5. BIN
      Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0531.1145.jar
  6. 4 0
      Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0531.1145.jar.meta
  7. BIN
      Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0322.1909.jar
  8. BIN
      Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0531.1145.jar
  9. 4 0
      Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0531.1145.jar.meta
  10. BIN
      Assets/Plugins/Android/ShareSDK/libs/OneKeyShare.jar
  11. BIN
      Assets/Plugins/Android/ShareSDK/libs/SSDKU3D.jar
  12. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-2.8.2.jar
  13. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-3.0.0.jar
  14. 4 0
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-3.0.0.jar.meta
  15. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-2.8.2.jar
  16. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-3.0.0.jar
  17. 4 0
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-3.0.0.jar.meta
  18. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-2.8.2.jar
  19. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-3.0.0.jar
  20. 4 0
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-3.0.0.jar.meta
  21. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-2.8.2.jar
  22. 0 8
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-2.8.2.jar.meta
  23. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-3.0.0.jar
  24. 4 0
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-3.0.0.jar.meta
  25. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-2.8.2.jar
  26. 0 8
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-2.8.2.jar.meta
  27. BIN
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-3.0.0.jar
  28. 4 0
      Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-3.0.0.jar.meta
  29. 3 0
      Assets/Plugins/Android/ShareSDK/res/values-en/ssdk_strings.xml
  30. 8 1
      Assets/Plugins/Android/ShareSDK/res/values/ssdk_strings.xml
  31. 15 2
      Assets/Plugins/ShareSDK/Android/AndroidImpl.cs
  32. 9 0
      Assets/Plugins/ShareSDK/Editor.meta
  33. 63 0
      Assets/Plugins/ShareSDK/Editor/ShareSDKConfigEditor.cs
  34. 12 0
      Assets/Plugins/ShareSDK/Editor/ShareSDKConfigEditor.cs.meta
  35. 46 46
      Assets/Plugins/ShareSDK/MiniJSON.cs
  36. 10 0
      Assets/Plugins/ShareSDK/MiniJSON.cs.meta
  37. 3 3
      Assets/Plugins/ShareSDK/ShareContent.cs
  38. 1 1
      Assets/Plugins/ShareSDK/ShareSDK.cs
  39. BIN
      Assets/Plugins/ShareSDK/ShareSDKConfig.bin
  40. 2 2
      Assets/Plugins/ShareSDK/ShareSDKConfig.bin.meta
  41. 22 0
      Assets/Plugins/ShareSDK/ShareSDKConfig.cs
  42. 12 0
      Assets/Plugins/ShareSDK/ShareSDKConfig.cs.meta
  43. 2 0
      Assets/Plugins/ShareSDK/ShareSDKImpl.cs
  44. 15 10
      Assets/Plugins/ShareSDK/iOS/iOSImpl.cs
  45. 2 3
      Assets/Plugins/iOS/ShareSDKUnity3DBridge.m
  46. 2 2
      Assets/Script/Tool/Auxiliary.cs
  47. 70 69
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ManagePlatforms/ChosenPlatforms.cs
  48. 2 2
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/SDK.zip.meta
  49. 56 0
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ShareSDK.projmods
  50. 2 2
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ShareSDK.projmods.meta
  51. 27 3
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ShareSDKPostProcessBuild.cs
  52. 22 0
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/LICENSE
  53. 1 3
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/LICENSE.meta
  54. 83 0
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/Readme.mdown
  55. 6 0
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/Readme.mdown.meta
  56. 3 2
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/XCMod.cs
  57. 1 1
      Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/XCProject.cs
  58. BIN
      Assets/ShareSDKiOSAutoPackage/Editor/ShareSDK For Unity3D支持一键打包功能须知.docx
  59. 2 2
      Assets/ShareSDKiOSAutoPackage/Editor/ShareSDK For Unity3D支持一键打包功能须知.docx.meta
  60. BIN
      Assets/test.unity
  61. 6 0
      Assets/test.unity.meta
  62. BIN
      ProjectSettings/GraphicsSettings.asset
  63. BIN
      ProjectSettings/ProjectSettings.asset
  64. 12 5
      ToList.txt

+ 289 - 0
Assets/Demo.cs

@@ -0,0 +1,289 @@
+using UnityEngine;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using cn.sharesdk.unity3d;
+
+public class Demo : MonoBehaviour {
+
+	public GUISkin demoSkin;
+	public ShareSDK ssdk;
+	// Use this for initialization
+	void Start ()
+	{	
+		ssdk = gameObject.GetComponent<ShareSDK>();
+		ssdk.authHandler = OnAuthResultHandler;
+		ssdk.shareHandler = OnShareResultHandler;
+		ssdk.showUserHandler = OnGetUserInfoResultHandler;
+		ssdk.getFriendsHandler = OnGetFriendsResultHandler;
+		ssdk.followFriendHandler = OnFollowFriendResultHandler;
+	}
+
+	// Update is called once per frame
+	void Update () 
+	{
+		if (Input.GetKeyDown(KeyCode.Escape)) {
+			Application.Quit();
+		}
+	}
+	
+	void OnGUI ()
+	{
+
+		GUI.skin = demoSkin;
+		
+		float scale = 1.0f;
+
+		if (Application.platform == RuntimePlatform.IPhonePlayer)
+		{
+			scale = Screen.width / 320;
+		}
+		
+		float btnWidth = 165 * scale;
+		float btnHeight = 30 * scale;
+		float btnTop = 20 * scale;
+		float btnGap = 20 * scale;
+		GUI.skin.button.fontSize = Convert.ToInt32(14 * scale);
+
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 - btnWidth, btnTop, btnWidth, btnHeight), "Authorize"))
+		{
+			print(ssdk == null);
+
+			ssdk.Authorize(PlatformType.QQ);
+		}
+			
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 + btnGap, btnTop, btnWidth, btnHeight), "Get User Info"))
+		{
+			ssdk.GetUserInfo(PlatformType.SinaWeibo);
+		}
+
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 - btnWidth, btnTop, btnWidth, btnHeight), "Show Share Menu"))
+		{
+			ShareContent content = new ShareContent();
+			content.SetText("this is a test string.");
+			content.SetImageUrl("http://ww3.sinaimg.cn/mw690/be159dedgw1evgxdt9h3fj218g0xctod.jpg");
+			content.SetTitle("test title");
+			content.SetTitleUrl("http://www.mob.com");
+			content.SetSite("Mob-ShareSDK");
+			content.SetSiteUrl("http://www.mob.com");
+			content.SetUrl("http://www.mob.com");
+			content.SetComment("test description");
+			content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3");
+			content.SetShareType(ContentType.Image);
+
+			//不同平台分享不同内容
+			ShareContent customizeShareParams = new ShareContent();
+			customizeShareParams.SetText("Sina share content");
+			customizeShareParams.SetImageUrl("http://git.oschina.net/alexyu.yxj/MyTmpFiles/raw/master/kmk_pic_fld/small/107.JPG");
+			customizeShareParams.SetShareType(ContentType.Text);
+			customizeShareParams.SetObjectID("SinaID");
+			content.SetShareContentCustomize(PlatformType.SinaWeibo, customizeShareParams);
+			//优先客户端分享
+			// content.SetEnableClientShare(true);
+			//使用微博高级接口进行本地图片 文字 应用内分享 17年6月30日后需申请高级接口
+			// content.SetEnableAdvancedInterfaceShare(true);
+			//通过分享菜单分享
+			ssdk.ShowPlatformList (null, content, 100, 100);
+		}
+			
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 + btnGap, btnTop, btnWidth, btnHeight), "Show Share View"))
+		{
+			ShareContent content = new ShareContent();
+			content.SetText("this is a test string.");
+			content.SetImageUrl("http://ww3.sinaimg.cn/mw690/be159dedgw1evgxdt9h3fj218g0xctod.jpg");
+			content.SetTitle("test title");
+			content.SetTitleUrl("http://www.mob.com");
+			content.SetSite("Mob-ShareSDK");
+			content.SetSiteUrl("http://www.mob.com");
+			content.SetUrl("http://www.mob.com");
+			content.SetComment("test description");
+			content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3");
+			content.SetShareType(ContentType.Image);
+
+			ssdk.ShowShareContentEditor (PlatformType.SinaWeibo, content);
+		}
+
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 - btnWidth, btnTop, btnWidth, btnHeight), "Share Content"))
+		{
+			ShareContent content = new ShareContent();
+			content.SetText("this is a test string.");
+			content.SetImageUrl("http://ww3.sinaimg.cn/mw690/be159dedgw1evgxdt9h3fj218g0xctod.jpg");
+			content.SetTitle("test title");
+//			content.SetTitleUrl("http://www.mob.com");
+//			content.SetSite("Mob-ShareSDK");
+			// content.SetSiteUrl("http://www.mob.com");
+			content.SetUrl("http://qjsj.youzu.com/jycs/");
+//			content.SetComment("test description");
+//			content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3");
+			content.SetShareType(ContentType.Webpage);
+			ssdk.ShareContent (PlatformType.WeChat, content);
+		}
+			
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 + btnGap, btnTop, btnWidth, btnHeight), "Get Friends SinaWeibo "))
+		{
+			//获取新浪微博好友,第一页,每页15条数据
+			print ("Click Btn Of Get Friends SinaWeibo");
+			ssdk.GetFriendList (PlatformType.SinaWeibo, 15, 0);
+		}
+
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 - btnWidth, btnTop, btnWidth, btnHeight), "Get Token SinaWeibo "))
+		{
+			Hashtable authInfo = ssdk.GetAuthInfo (PlatformType.SinaWeibo);			
+			print ("share result :");
+			print (MiniJSON.jsonEncode(authInfo));
+		}
+			
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 + btnGap , btnTop, btnWidth, btnHeight), "Close SSO Auth"))
+		{
+			ssdk.DisableSSO (true);			
+		}
+
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 - btnWidth, btnTop, btnWidth, btnHeight), "Remove Authorize "))
+		{
+			ssdk.CancelAuthorize (PlatformType.SinaWeibo);			
+		}
+			
+		if (GUI.Button(new Rect((Screen.width - btnGap) / 2 + btnGap, btnTop, btnWidth, btnHeight), "Add Friend "))
+		{
+			//关注新浪微博
+			ssdk.AddFriend (PlatformType.SinaWeibo, "3189087725");			
+		}
+
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnWidth) / 2 , btnTop, btnWidth, btnHeight), "ShareWithContentName"))
+		{
+			Hashtable customFields = new Hashtable ();
+			customFields["imgUrl"] = "http://ww1.sinaimg.cn/mw690/006dJESWgw1f6iyb8bzraj31kw0v67a2.jpg";
+			//根据配置文件分享【本接口功能仅暂时支持iOS】
+			ssdk.ShareWithContentName(PlatformType.SinaWeibo, "ShareSDK", customFields);		
+		}
+
+		btnWidth += 80 * scale;
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnWidth) / 2, btnTop, btnWidth, btnHeight), "ShowShareMenuWithContentName"))
+		{
+			Hashtable customFields = new Hashtable ();
+			customFields["imgUrl"] = "http://ww1.sinaimg.cn/mw690/006dJESWgw1f6iyb8bzraj31kw0v67a2.jpg";
+			//根据配置文件展示分享菜单分享【本接口功能仅暂时支持iOS】
+			ssdk.ShowPlatformListWithContentName ("ShareSDK", customFields, null, 100, 100);
+		}
+
+		btnTop += btnHeight + 20 * scale;
+		if (GUI.Button(new Rect((Screen.width - btnWidth) / 2, btnTop, btnWidth, btnHeight), "ShowShareViewWithContentName"))
+		{
+			Hashtable customFields = new Hashtable ();
+			//根据配置文件展示编辑界面分享【本接口功能仅暂时支持iOS】
+			customFields["imgUrl"] = "http://ww1.sinaimg.cn/mw690/006dJESWgw1f6iyb8bzraj31kw0v67a2.jpg";
+			ssdk.ShowShareContentEditorWithContentName(PlatformType.SinaWeibo, "ShareSDK", customFields);		
+		}
+
+	}
+	
+	void OnAuthResultHandler(int reqID, ResponseState state, PlatformType type, Hashtable result)
+	{
+		if (state == ResponseState.Success)
+		{
+			print ("authorize success !" + "Platform :" + type);
+		}
+		else if (state == ResponseState.Fail)
+		{
+			#if UNITY_ANDROID
+			print ("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+			#elif UNITY_IPHONE
+			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			#endif
+		}
+		else if (state == ResponseState.Cancel) 
+		{
+			print ("cancel !");
+		}
+	}
+	
+	void OnGetUserInfoResultHandler (int reqID, ResponseState state, PlatformType type, Hashtable result)
+	{
+		if (state == ResponseState.Success)
+		{
+			print ("get user info result :");
+			print (MiniJSON.jsonEncode(result));
+			print ("Get userInfo success !Platform :" + type );
+		}
+		else if (state == ResponseState.Fail)
+		{
+			#if UNITY_ANDROID
+			print ("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+			#elif UNITY_IPHONE
+			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			#endif
+		}
+		else if (state == ResponseState.Cancel) 
+		{
+			print ("cancel !");
+		}
+	}
+	
+	void OnShareResultHandler (int reqID, ResponseState state, PlatformType type, Hashtable result)
+	{
+		if (state == ResponseState.Success)
+		{
+			print ("share successfully - share result :");
+			print (MiniJSON.jsonEncode(result));
+		}
+		else if (state == ResponseState.Fail)
+		{
+			#if UNITY_ANDROID
+			print ("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+			#elif UNITY_IPHONE
+			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			#endif
+		}
+		else if (state == ResponseState.Cancel) 
+		{
+			print ("cancel !");
+		}
+	}
+
+	void OnGetFriendsResultHandler (int reqID, ResponseState state, PlatformType type, Hashtable result)
+	{
+		if (state == ResponseState.Success)
+		{			
+			print ("get friend list result :");
+			print (MiniJSON.jsonEncode(result));
+		}
+		else if (state == ResponseState.Fail)
+		{
+			#if UNITY_ANDROID
+			print ("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+			#elif UNITY_IPHONE
+			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			#endif
+		}
+		else if (state == ResponseState.Cancel) 
+		{
+			print ("cancel !");
+		}
+	}
+
+	void OnFollowFriendResultHandler (int reqID, ResponseState state, PlatformType type, Hashtable result)
+	{
+		if (state == ResponseState.Success)
+		{
+			print ("Follow friend successfully !");
+		}
+		else if (state == ResponseState.Fail)
+		{
+			#if UNITY_ANDROID
+			print ("fail! throwable stack = " + result["stack"] + "; error msg = " + result["msg"]);
+			#elif UNITY_IPHONE
+			print ("fail! error code = " + result["error_code"] + "; error msg = " + result["error_msg"]);
+			#endif
+		}
+		else if (state == ResponseState.Cancel) 
+		{
+			print ("cancel !");
+		}
+	}
+}

+ 1 - 3
Assets/Plugins/ShareSDK/ShareMiniJSON.cs.meta → Assets/Demo.cs.meta

@@ -1,7 +1,5 @@
 fileFormatVersion: 2
-guid: 5b92ceb166cf43d4e93a9e3b79cd9f2f
-timeCreated: 1494579327
-licenseType: Pro
+guid: 9304718f8b7db134aa1ff9be7d6e84dc
 MonoImporter:
   serializedVersion: 2
   defaultReferences: []

+ 13 - 9
Assets/Plugins/Android/ShareSDK/AndroidManifest.xml

@@ -8,18 +8,20 @@
     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
-    <!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />-->
-    <!--<uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
-    <!--<uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>-->
-    <!--<uses-permission android:name="android.permission.GET_ACCOUNTS"/>-->
-    <!-- 蓝牙分享所需的权限 -->
-    <!--<uses-permission android:name="android.permission.BLUETOOTH" />
+    <!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
+    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
+    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
+    --><!-- 蓝牙分享所需的权限 --><!--
+    <uses-permission android:name="android.permission.BLUETOOTH" />
     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />-->
     
     <uses-sdk
-        android:minSdkVersion="8"/>
+        android:minSdkVersion="8"
+        android:targetSdkVersion="17" />
 
-    <application>
+    <application
+    	android:name="com.mob.MobApplication">
         <activity
             android:name="com.mob.tools.MobUIShell"
             android:configChanges="keyboardHidden|orientation|screenSize"
@@ -73,7 +75,9 @@
             android:theme="@android:style/Theme.Translucent.NoTitleBar"
             android:configChanges="keyboardHidden|orientation|screenSize"
             android:exported="true"/>
-				
+
+        <meta-data android:name="Mob-AppKey" android:value="mob_a6b6c6d6"/>
+        <meta-data android:name="Mob-AppSecret" android:value="b89d2427a3bc7ad1aea1e1e8c1d36bf3"/>				
     </application>
 
 </manifest>

BIN
Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0322.1909.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0531.1145.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0531.1145.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 3d175b609ca833540a128ba7c3418757
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0322.1909.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0531.1145.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0531.1145.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: d6f20f6ecd7f1d64a903cf0d7ea6d5f1
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/ShareSDK/libs/OneKeyShare.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/SSDKU3D.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-2.8.2.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-3.0.0.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-3.0.0.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 042f59d52839d7744b1ce179fee3e387
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-2.8.2.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-3.0.0.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-3.0.0.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 718a79f11491fd44b98e84c9e212b823
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-2.8.2.jar


BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-3.0.0.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-3.0.0.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: fd260530020799342a0444708849c5b3
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-2.8.2.jar


+ 0 - 8
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-2.8.2.jar.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 4ada6a6c062164c2abb72bbebf2a7a60
-timeCreated: 1492482999
-licenseType: Free
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-3.0.0.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QZone-3.0.0.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 50040c3a1aad4194bae15093f9e36e48
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-2.8.2.jar


+ 0 - 8
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-2.8.2.jar.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: cfa54fbcad1bd44e7b4e6d4849047486
-timeCreated: 1492483000
-licenseType: Free
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-3.0.0.jar


+ 4 - 0
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-SinaWeibo-3.0.0.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 437f8b1c1b85e4048a6edfd1cfc74089
+DefaultImporter:
+  userData: 

+ 3 - 0
Assets/Plugins/Android/ShareSDK/res/values-en/ssdk_strings.xml

@@ -66,6 +66,9 @@
     <string name="ssdk_alipay">Alipay</string>
     <string name="ssdk_alipaymoments">Alipay Moments</string>
     <string name="ssdk_plurk">Plurk</string>
+    <string name="ssdk_dingding">Dingding</string>
+	<string name="ssdk_meipai">Meipai</string>
+	<string name="ssdk_youtube">Youtube</string>
 
 	<string name="ssdk_share_to_qzone">Share To QZone</string>
 	<string name="ssdk_share_to_qq">Share To QQ</string>

+ 8 - 1
Assets/Plugins/Android/ShareSDK/res/values/ssdk_strings.xml

@@ -66,7 +66,9 @@
     <string name="ssdk_alipay">支付宝好友</string>
     <string name="ssdk_alipaymoments">支付宝生活圈</string>
     <string name="ssdk_plurk">Plurk</string>
-
+	<string name="ssdk_youtube">Youtube</string>
+    <string name="ssdk_dingding">钉钉</string>
+	<string name="ssdk_meipai">美拍</string>
 	<string name="ssdk_share_to_qzone">分享到QQ空间</string>
 	<string name="ssdk_share_to_qq">分享到QQ</string>
 	<string name="ssdk_share_to_facebook">分享到Facebook</string>
@@ -75,4 +77,9 @@
 	<string name="ssdk_share_to_googleplus">分享到Google+</string>
 	<string name="ssdk_share_to_qzone_default">来自%s的分享</string>
 	<string name="ssdk_use_login_button">请改用“登录”按钮</string>
+	<string name="ssdk_share_to_youtube">分享到Youtube</string>
+	
+	<string name="ssdk_gender_male">男</string>
+	<string name="ssdk_gender_female">女</string>
+	<string name="ssdk_symbol_ellipsis">...</string>
 </resources>

+ 15 - 2
Assets/Plugins/ShareSDK/Android/AndroidImpl.cs

@@ -11,6 +11,7 @@ namespace cn.sharesdk.unity3d
 
 		public AndroidImpl (GameObject go) 
 		{
+			Debug.Log("AndroidImpl  ===>>>  AndroidImpl" );
 			try{
 				ssdk = new AndroidJavaObject("cn.sharesdk.unity3d.ShareSDKUtils", go.name, "_Callback");
 			} catch(Exception e) {
@@ -20,15 +21,26 @@ namespace cn.sharesdk.unity3d
 
 		public override void InitSDK (String appKey) 
 		{
+			Debug.Log("AndroidImpl  ===>>>  InitSDK === " + appKey);
 			if (ssdk != null) 
 			{			
 				ssdk.Call("initSDK", appKey);
 			}
 		}
 
+		public override void InitSDK (String appKey,String appSecret) 
+		{
+			Debug.Log("AndroidImpl  ===>>>  InitSDK === " + appKey);
+			if (ssdk != null) 
+			{			
+				ssdk.Call("initSDK", appKey,appSecret);
+			}
+		}
+
 		public override void SetPlatformConfig (Hashtable configs) 
 		{
-			String json = ShareMiniJSON.jsonEncode(configs);
+			String json = MiniJSON.jsonEncode(configs);
+			Debug.Log("AndroidImpl  ===>>>  SetPlatformConfig === " + json);
 			if (ssdk != null) 
 			{			
 				ssdk.Call("setPlatformConfig", json);
@@ -104,6 +116,7 @@ namespace cn.sharesdk.unity3d
 
 		public override void ShowShareContentEditor (int reqID, PlatformType platform, ShareContent content) 
 		{
+			Debug.Log("AndroidImpl  ===>>>  OnekeyShare platform ===" + (int)platform );
 			if (ssdk != null) 
 			{
 				ssdk.Call("onekeyShare", reqID, (int)platform, content.GetShareParamsStr());
@@ -134,7 +147,7 @@ namespace cn.sharesdk.unity3d
 			if (ssdk != null) 
 			{
 				String result = ssdk.Call<String>("getAuthInfo", (int)platform);
-				return (Hashtable)ShareMiniJSON.jsonDecode(result);
+				return (Hashtable) MiniJSON.jsonDecode(result);
 			}
 			return new Hashtable ();
 		}

+ 9 - 0
Assets/Plugins/ShareSDK/Editor.meta

@@ -0,0 +1,9 @@
+fileFormatVersion: 2
+guid: b07210448e2704bcb871b667d3cd49a6
+folderAsset: yes
+timeCreated: 1495814218
+licenseType: Free
+DefaultImporter:
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 63 - 0
Assets/Plugins/ShareSDK/Editor/ShareSDKConfigEditor.cs

@@ -0,0 +1,63 @@
+using System;
+using System.IO;
+using System.Collections;
+using System.Runtime.Serialization.Formatters.Binary;
+using UnityEngine;
+using UnityEditor;
+
+
+namespace cn.sharesdk.unity3d
+{
+[CustomEditor(typeof(ShareSDK))]
+[ExecuteInEditMode]
+public class ShareSDKConfigEditor : Editor {
+
+		private ShareSDKConfig config;
+
+		void Awake()
+		{
+			this.config = new ShareSDKConfig ();
+		}
+				
+		public override void OnInspectorGUI()
+		{
+			base.OnInspectorGUI();
+			//var obj = target as ShareSDK;
+			//this.config.appKey = obj.appKey;
+			//this.config.appSecret = obj.appSecret;
+//			this.config.SinaWeibo ["chosen"] = obj.devInfo.sinaweibo.Enable;
+//			this.config.TencentWeibo ["chosen"] = obj.devInfo.tencentweibo.Enable;
+//			this.config.DouBan ["chosen"] = obj.devInfo.douban.Enable;
+//			this.config.QQ["chosen"] = obj.devInfo.qq.Enable;
+//			this.config.WeChat["chosen"] = obj.devInfo.wechat.Enable;
+//			this.config.Renren["chosen"] = obj.devInfo.renren.Enable;
+//			this.config.Kaixin["chosen"] = obj.devInfo.kaiXin.Enable;
+//			this.config.Facebook["chosen"] = obj.devInfo.facebook.Enable;
+//			this.config.Evernote["chosen"] = obj.devInfo.evernote.Enable;
+//			this.config.GooglePlus["chosen"] = obj.devInfo.googlePlus.Enable;
+//			this.config.Instagram["chosen"] = obj.devInfo.instagram.Enable;
+//			this.config.LinkedIn["chosen"] = obj.devInfo.linkedIn.Enable;
+//			this.config.Tumblr["chosen"] = obj.devInfo.tumblr.Enable;
+//			this.config.Mail["chosen"] = obj.devInfo.email.Enable;
+//			this.config.SMS["chosen"] = obj.devInfo.shortMessage.Enable;
+//			this.config.Print["chosen"] = obj.devInfo.shortMessage.Enable;
+			Save ();
+		}
+		private void Save()
+		{
+			try
+			{
+					string filePath = Application.dataPath + "/Plugins/ShareSDK/ShareSDKConfig.bin";
+					BinaryFormatter formatter = new BinaryFormatter();
+					Stream stream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.None);
+					formatter.Serialize(stream, this.config);
+					stream.Flush();
+					stream.Close();
+			}
+			catch (Exception e) 
+			{
+					Debug.Log ("save error:" + e);
+			}
+		}
+	}
+}

+ 12 - 0
Assets/Plugins/ShareSDK/Editor/ShareSDKConfigEditor.cs.meta

@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: 5778eae13659d41e4935afbf227e8e74
+timeCreated: 1495814218
+licenseType: Free
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 46 - 46
Assets/Plugins/ShareSDK/ShareMiniJSON.cs → Assets/Plugins/ShareSDK/MiniJSON.cs

@@ -19,7 +19,7 @@ using System.Collections.Generic;
 /// </summary>
 
 
-public class ShareMiniJSON
+public class MiniJSON
 {
 	private const int TOKEN_NONE = 0;
 	private const int TOKEN_CURLY_OPEN = 1;
@@ -50,19 +50,19 @@ public class ShareMiniJSON
 	public static object jsonDecode( string json )
 	{
 		// save the string for debug information
-		ShareMiniJSON.lastDecode = json;
+		MiniJSON.lastDecode = json;
 
 		if( json != null )
 		{
 			char[] charArray = json.ToCharArray();
 			int index = 0;
 			bool success = true;
-			object value = ShareMiniJSON.parseValue( charArray, ref index, ref success );
+			object value = MiniJSON.parseValue( charArray, ref index, ref success );
 
 			if( success )
-				ShareMiniJSON.lastErrorIndex = -1;
+				MiniJSON.lastErrorIndex = -1;
 			else
-				ShareMiniJSON.lastErrorIndex = index;
+				MiniJSON.lastErrorIndex = index;
 
 			return value;
 		}
@@ -81,7 +81,7 @@ public class ShareMiniJSON
 	public static string jsonEncode( object json )
 	{
 		var builder = new StringBuilder( BUILDER_CAPACITY );
-		var success = ShareMiniJSON.serializeValue( json, builder );
+		var success = MiniJSON.serializeValue( json, builder );
 		
 		return ( success ? builder.ToString() : null );
 	}
@@ -93,7 +93,7 @@ public class ShareMiniJSON
 	/// <returns></returns>
 	public static bool lastDecodeSuccessful()
 	{
-		return ( ShareMiniJSON.lastErrorIndex == -1 );
+		return ( MiniJSON.lastErrorIndex == -1 );
 	}
 
 
@@ -103,7 +103,7 @@ public class ShareMiniJSON
 	/// <returns></returns>
 	public static int getLastErrorIndex()
 	{
-		return ShareMiniJSON.lastErrorIndex;
+		return MiniJSON.lastErrorIndex;
 	}
 
 
@@ -114,21 +114,21 @@ public class ShareMiniJSON
 	/// <returns></returns>
 	public static string getLastErrorSnippet()
 	{
-		if( ShareMiniJSON.lastErrorIndex == -1 )
+		if( MiniJSON.lastErrorIndex == -1 )
 		{
 			return "";
 		}
 		else
 		{
-			int startIndex = ShareMiniJSON.lastErrorIndex - 5;
-			int endIndex = ShareMiniJSON.lastErrorIndex + 15;
+			int startIndex = MiniJSON.lastErrorIndex - 5;
+			int endIndex = MiniJSON.lastErrorIndex + 15;
 			if( startIndex < 0 )
 				startIndex = 0;
 
-			if( endIndex >= ShareMiniJSON.lastDecode.Length )
-				endIndex = ShareMiniJSON.lastDecode.Length - 1;
+			if( endIndex >= MiniJSON.lastDecode.Length )
+				endIndex = MiniJSON.lastDecode.Length - 1;
 
-			return ShareMiniJSON.lastDecode.Substring( startIndex, endIndex - startIndex + 1 );
+			return MiniJSON.lastDecode.Substring( startIndex, endIndex - startIndex + 1 );
 		}
 	}
 
@@ -147,15 +147,15 @@ public class ShareMiniJSON
 		while( !done )
 		{
 			token = lookAhead( json, index );
-			if( token == ShareMiniJSON.TOKEN_NONE )
+			if( token == MiniJSON.TOKEN_NONE )
 			{
 				return null;
 			}
-			else if( token == ShareMiniJSON.TOKEN_COMMA )
+			else if( token == MiniJSON.TOKEN_COMMA )
 			{
 				nextToken( json, ref index );
 			}
-			else if( token == ShareMiniJSON.TOKEN_CURLY_CLOSE )
+			else if( token == MiniJSON.TOKEN_CURLY_CLOSE )
 			{
 				nextToken( json, ref index );
 				return table;
@@ -171,7 +171,7 @@ public class ShareMiniJSON
 
 				// :
 				token = nextToken( json, ref index );
-				if( token != ShareMiniJSON.TOKEN_COLON )
+				if( token != MiniJSON.TOKEN_COLON )
 					return null;
 
 				// value
@@ -199,15 +199,15 @@ public class ShareMiniJSON
 		while( !done )
 		{
 			int token = lookAhead( json, index );
-			if( token == ShareMiniJSON.TOKEN_NONE )
+			if( token == MiniJSON.TOKEN_NONE )
 			{
 				return null;
 			}
-			else if( token == ShareMiniJSON.TOKEN_COMMA )
+			else if( token == MiniJSON.TOKEN_COMMA )
 			{
 				nextToken( json, ref index );
 			}
-			else if( token == ShareMiniJSON.TOKEN_SQUARED_CLOSE )
+			else if( token == MiniJSON.TOKEN_SQUARED_CLOSE )
 			{
 				nextToken( json, ref index );
 				break;
@@ -231,24 +231,24 @@ public class ShareMiniJSON
 	{
 		switch( lookAhead( json, index ) )
 		{
-			case ShareMiniJSON.TOKEN_STRING:
+			case MiniJSON.TOKEN_STRING:
 				return parseString( json, ref index );
-			case ShareMiniJSON.TOKEN_NUMBER:
+			case MiniJSON.TOKEN_NUMBER:
 				return parseNumber( json, ref index );
-			case ShareMiniJSON.TOKEN_CURLY_OPEN:
+			case MiniJSON.TOKEN_CURLY_OPEN:
 				return parseObject( json, ref index );
-			case ShareMiniJSON.TOKEN_SQUARED_OPEN:
+			case MiniJSON.TOKEN_SQUARED_OPEN:
 				return parseArray( json, ref index );
-			case ShareMiniJSON.TOKEN_TRUE:
+			case MiniJSON.TOKEN_TRUE:
 				nextToken( json, ref index );
 				return Boolean.Parse( "TRUE" );
-			case ShareMiniJSON.TOKEN_FALSE:
+			case MiniJSON.TOKEN_FALSE:
 				nextToken( json, ref index );
 				return Boolean.Parse( "FALSE" );
-			case ShareMiniJSON.TOKEN_NULL:
+			case MiniJSON.TOKEN_NULL:
 				nextToken( json, ref index );
 				return null;
-			case ShareMiniJSON.TOKEN_NONE:
+			case MiniJSON.TOKEN_NONE:
 				break;
 		}
 
@@ -402,7 +402,7 @@ public class ShareMiniJSON
 
 		if( index == json.Length )
 		{
-			return ShareMiniJSON.TOKEN_NONE;
+			return MiniJSON.TOKEN_NONE;
 		}
 		
 		char c = json[index];
@@ -410,17 +410,17 @@ public class ShareMiniJSON
 		switch( c )
 		{
 			case '{':
-				return ShareMiniJSON.TOKEN_CURLY_OPEN;
+				return MiniJSON.TOKEN_CURLY_OPEN;
 			case '}':
-				return ShareMiniJSON.TOKEN_CURLY_CLOSE;
+				return MiniJSON.TOKEN_CURLY_CLOSE;
 			case '[':
-				return ShareMiniJSON.TOKEN_SQUARED_OPEN;
+				return MiniJSON.TOKEN_SQUARED_OPEN;
 			case ']':
-				return ShareMiniJSON.TOKEN_SQUARED_CLOSE;
+				return MiniJSON.TOKEN_SQUARED_CLOSE;
 			case ',':
-				return ShareMiniJSON.TOKEN_COMMA;
+				return MiniJSON.TOKEN_COMMA;
 			case '"':
-				return ShareMiniJSON.TOKEN_STRING;
+				return MiniJSON.TOKEN_STRING;
 			case '0':
 			case '1':
 			case '2':
@@ -432,9 +432,9 @@ public class ShareMiniJSON
 			case '8':
 			case '9':
 			case '-': 
-				return ShareMiniJSON.TOKEN_NUMBER;
+				return MiniJSON.TOKEN_NUMBER;
 			case ':':
-				return ShareMiniJSON.TOKEN_COLON;
+				return MiniJSON.TOKEN_COLON;
 		}
 		index--;
 
@@ -450,7 +450,7 @@ public class ShareMiniJSON
 				json[index + 4] == 'e' )
 			{
 				index += 5;
-				return ShareMiniJSON.TOKEN_FALSE;
+				return MiniJSON.TOKEN_FALSE;
 			}
 		}
 
@@ -463,7 +463,7 @@ public class ShareMiniJSON
 				json[index + 3] == 'e' )
 			{
 				index += 4;
-				return ShareMiniJSON.TOKEN_TRUE;
+				return MiniJSON.TOKEN_TRUE;
 			}
 		}
 
@@ -476,11 +476,11 @@ public class ShareMiniJSON
 				json[index + 3] == 'l' )
 			{
 				index += 4;
-				return ShareMiniJSON.TOKEN_NULL;
+				return MiniJSON.TOKEN_NULL;
 			}
 		}
 
-		return ShareMiniJSON.TOKEN_NONE;
+		return MiniJSON.TOKEN_NONE;
 	}
 
 	#endregion
@@ -714,25 +714,25 @@ public static class MiniJsonExtensions
 {
 	public static string toJson( this Hashtable obj )
 	{
-		return ShareMiniJSON.jsonEncode( obj );
+		return MiniJSON.jsonEncode( obj );
 	}
 	
 	
 	public static string toJson( this Dictionary<string,string> obj )
 	{
-		return ShareMiniJSON.jsonEncode( obj );
+		return MiniJSON.jsonEncode( obj );
 	}
 	
 	
 	public static ArrayList arrayListFromJson( this string json )
 	{
-		return ShareMiniJSON.jsonDecode( json ) as ArrayList;
+		return MiniJSON.jsonDecode( json ) as ArrayList;
 	}
 
 
 	public static Hashtable hashtableFromJson( this string json )
 	{
-		return ShareMiniJSON.jsonDecode( json ) as Hashtable;
+		return MiniJSON.jsonDecode( json ) as Hashtable;
 	}
 }
 

+ 10 - 0
Assets/Plugins/ShareSDK/MiniJSON.cs.meta

@@ -0,0 +1,10 @@
+fileFormatVersion: 2
+guid: 292f3332666627041aeee41ac11e4981
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 3 - 3
Assets/Plugins/ShareSDK/ShareContent.cs

@@ -1,4 +1,4 @@
-//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
 //     Runtime Version:4.0.30319.18408
@@ -390,7 +390,7 @@ namespace cn.sharesdk.unity3d
 			if (customizeShareParams.Count > 0) {
 				shareParams["customizeShareParams"] = customizeShareParams;
 			}
-			String jsonStr = ShareMiniJSON.jsonEncode (shareParams);
+			String jsonStr = MiniJSON.jsonEncode (shareParams);
 			Debug.Log("ParseShareParams  ===>>> " + jsonStr );
 			return jsonStr;
 		}
@@ -399,7 +399,7 @@ namespace cn.sharesdk.unity3d
 			if (customizeShareParams.Count > 0) {
 				shareParams["customizeShareParams"] = customizeShareParams;
 			}
-			String jsonStr = ShareMiniJSON.jsonEncode (shareParams);
+			String jsonStr = MiniJSON.jsonEncode (shareParams);
 			Debug.Log("ParseShareParams  ===>>> " + jsonStr );
 			return shareParams;
 		}

+ 1 - 1
Assets/Plugins/ShareSDK/ShareSDK.cs

@@ -109,7 +109,7 @@ namespace cn.sharesdk.unity3d
 				return;
 			}
 			
-			Hashtable res = (Hashtable) ShareMiniJSON.jsonDecode(data);
+			Hashtable res = (Hashtable) MiniJSON.jsonDecode(data);
 			if (res == null || res.Count <= 0) 
 			{
 				return;

BIN
Assets/Plugins/ShareSDK/ShareSDKConfig.bin


+ 2 - 2
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-QQ-2.8.2.jar.meta → Assets/Plugins/ShareSDK/ShareSDKConfig.bin.meta

@@ -1,6 +1,6 @@
 fileFormatVersion: 2
-guid: dcbb409ff3129448695b8d57bf204e92
-timeCreated: 1492483000
+guid: 3a67ea23574974ca1aacef0c26da5e5e
+timeCreated: 1497531812
 licenseType: Free
 DefaultImporter:
   userData: 

+ 22 - 0
Assets/Plugins/ShareSDK/ShareSDKConfig.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Collections;
+using UnityEngine;
+
+namespace cn.sharesdk.unity3d
+{
+		[Serializable]
+		public class ShareSDKConfig
+		{
+				public string appKey;
+				public string appSecret;
+
+				public ShareSDKConfig()
+				{
+						this.appKey = "moba6b6c6d6";
+						this.appSecret = "b89d2427a3bc7ad1aea1e1e8c1d36bf3";
+				}
+		}		
+				
+}
+
+

+ 12 - 0
Assets/Plugins/ShareSDK/ShareSDKConfig.cs.meta

@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: 153c65500f2e44affa69f16c58ad0d27
+timeCreated: 1495809287
+licenseType: Free
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 2 - 0
Assets/Plugins/ShareSDK/ShareSDKImpl.cs

@@ -17,6 +17,8 @@ namespace cn.sharesdk.unity3d{
 		/// </summary>
 		public abstract void InitSDK (String appKey);
 
+		public abstract void InitSDK (String appKey,String screct);
+
 		/// <summary>
 		/// Sets the platform config.
 		/// </summary>

+ 15 - 10
Assets/Plugins/ShareSDK/iOS/iOSImpl.cs

@@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
 
 namespace cn.sharesdk.unity3d
 {
-#if UNITY_IPHONE
+	#if UNITY_IPHONE
 	public class iOSImpl : ShareSDKImpl
 	{
 		[DllImport("__Internal")]
@@ -74,9 +74,14 @@ namespace cn.sharesdk.unity3d
 			_appKey = appKey;
 		}
 
+		public override void InitSDK (String appKey,String appSecret) 
+		{
+			_appKey = appKey;
+		}
+
 		public override void SetPlatformConfig (Hashtable configs) 
 		{
-			String json = ShareMiniJSON.jsonEncode(configs);
+			String json = MiniJSON.jsonEncode(configs);
 			__iosShareSDKRegisterAppAndSetPltformsConfig (_appKey, json);
 		}
 		
@@ -122,7 +127,7 @@ namespace cn.sharesdk.unity3d
 				{
 					platTypesArr.Add((int)type);
 				}
-				platTypesStr = ShareMiniJSON.jsonEncode(platTypesArr.ToArray());
+				platTypesStr = MiniJSON.jsonEncode(platTypesArr.ToArray());
 			}
 			__iosShareSDKOneKeyShare (reqID, platTypesStr, content.GetShareParamsStr(), _callbackObjectName);
 		}
@@ -137,7 +142,7 @@ namespace cn.sharesdk.unity3d
 				{
 					platTypesArr.Add((int)type);
 				}
-				platTypesStr = ShareMiniJSON.jsonEncode(platTypesArr.ToArray());
+				platTypesStr = MiniJSON.jsonEncode(platTypesArr.ToArray());
 			}
 			
 			__iosShareSDKShowShareMenu (reqID, platTypesStr, content.GetShareParamsStr(), x, y, _callbackObjectName);
@@ -151,13 +156,13 @@ namespace cn.sharesdk.unity3d
 
 		public override void ShareWithContentName (int reqId, PlatformType platform, string contentName, Hashtable customFields)
 		{
-			String customFieldsStr = ShareMiniJSON.jsonEncode(customFields);
+			String customFieldsStr = MiniJSON.jsonEncode(customFields);
 			__iosShareSDKShareWithContentName (reqId, (int)platform, contentName, customFieldsStr,  _callbackObjectName);
 		}
 
 		public override void ShowPlatformListWithContentName (int reqId, string contentName, Hashtable customFields, PlatformType[] platforms, int x, int y)
 		{
-			String customFieldsStr = ShareMiniJSON.jsonEncode(customFields);
+			String customFieldsStr = MiniJSON.jsonEncode(customFields);
 			string platTypesStr = null;
 			if (platforms != null)
 			{
@@ -166,7 +171,7 @@ namespace cn.sharesdk.unity3d
 				{
 					platTypesArr.Add((int)type);
 				}
-				platTypesStr = ShareMiniJSON.jsonEncode(platTypesArr.ToArray());
+				platTypesStr = MiniJSON.jsonEncode(platTypesArr.ToArray());
 			}
 		
 			__iosShareSDKShowShareMenuWithContentName (reqId, contentName, customFieldsStr, platTypesStr, x, y, _callbackObjectName);
@@ -174,7 +179,7 @@ namespace cn.sharesdk.unity3d
 
 		public override void ShowShareContentEditorWithContentName (int reqId, PlatformType platform, string contentName, Hashtable customFields)
 		{
-			String customFieldsStr = ShareMiniJSON.jsonEncode(customFields);
+			String customFieldsStr = MiniJSON.jsonEncode(customFields);
 			__iosShareSDKShowShareViewWithContentName (reqId, (int)platform, contentName, customFieldsStr, _callbackObjectName);
 		}
 
@@ -192,7 +197,7 @@ namespace cn.sharesdk.unity3d
 		{
 			//need modify,
 			string credStr = __iosShareSDKGetCredential((int)platform);
-			Hashtable authInfo = (Hashtable)ShareMiniJSON.jsonDecode (credStr);
+			Hashtable authInfo = (Hashtable)MiniJSON.jsonDecode (credStr);
 			return authInfo;
 		}
 		
@@ -204,5 +209,5 @@ namespace cn.sharesdk.unity3d
 		
 		
 	}
-#endif
+	#endif
 }

+ 2 - 3
Assets/Plugins/iOS/ShareSDKUnity3DBridge.m

@@ -2742,7 +2742,7 @@ extern "C" {
     {
         NSMutableArray *activePlatforms = [NSMutableArray array];
         NSMutableDictionary *platformsDict = [NSMutableDictionary dictionary];
-        NSString *appKeyStr = [NSString stringWithCString:appKey encoding:NSUTF8StringEncoding];
+//        NSString *appKeyStr = [NSString stringWithCString:appKey encoding:NSUTF8StringEncoding];
         
         if (configInfo)
         {
@@ -2760,8 +2760,7 @@ extern "C" {
             
             
         }
-        [ShareSDK registerApp:appKeyStr
-              activePlatforms:activePlatforms
+        [ShareSDK registerActivePlatforms:activePlatforms
                      onImport:^(SSDKPlatformType platformType) {
                          switch (platformType)
                          {

+ 2 - 2
Assets/Script/Tool/Auxiliary.cs

@@ -130,12 +130,12 @@ public class Auxiliary : Regist
 
         if (Input.GetKeyDown(KeyCode.X))
         {
-           ManaMiniGame.GameTimer = 45;
+           //ManaMiniGame.GameTimer = 45;
         }
 
         if (Input.GetKeyDown(KeyCode.C))
         {
-            ManaCenter.MiniTimer = 0;
+            //ManaCenter.MiniTimer = 0;
         }
 
         if (Input.GetKeyDown(KeyCode.V))

+ 70 - 69
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ManagePlatforms/ChosenPlatforms.cs

@@ -48,178 +48,179 @@ namespace cn.sharesdk.unity3d.sdkporter
 		{	
 			this.SinaWeibo = new Hashtable ();
 			this.SinaWeibo ["chosen"] = true;
-			this.SinaWeibo ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/SinaWeiboSDK";
-			this.SinaWeibo ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/SinaWeiboConnector.framework";
-			this.SinaWeibo ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/SinaWeibo.js";
+			this.SinaWeibo ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/SinaWeiboSDK";
+			this.SinaWeibo ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/SinaWeiboConnector.framework";
+			this.SinaWeibo ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/SinaWeibo.js";
 
 			this.TencentWeibo = new Hashtable ();
 			this.TencentWeibo ["chosen"] = true;
-			this.TencentWeibo ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/TencentWeibo.js";
+			this.TencentWeibo ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/TencentWeibo.js";
 
 			this.DouBan = new Hashtable ();
 			this.DouBan ["chosen"] = true;
-			this.DouBan ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/DouBan.js";
+			this.DouBan ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/DouBan.js";
 
 			this.QQ = new Hashtable ();
 			this.QQ ["chosen"] = true;
-			this.QQ ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/QQSDK";
-			this.QQ ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/QQConnector.framework";
-			this.QQ ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/QQ.js";
+			this.QQ ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/QQSDK";
+			this.QQ ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/QQConnector.framework";
+			this.QQ ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/QQ.js";
 
 			this.Renren = new Hashtable ();
 			this.Renren ["chosen"] = true;
-			this.Renren ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/RenRenSDK";
-			this.Renren ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/RenrenConnector.framework";
-			this.Renren ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/RenRen.js";
+			this.Renren ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/RenRenSDK";
+			this.Renren ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/RenrenConnector.framework";
+			this.Renren ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/RenRen.js";
 
 			this.Kaixin = new Hashtable ();
 			this.Kaixin ["chosen"] = true;
-			this.Kaixin ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/KaiXin.js";
+			this.Kaixin ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/KaiXin.js";
 
 			this.Facebook = new Hashtable ();
 			this.Facebook ["chosen"] = true;
-			this.Facebook ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/FacebookConnector.framework";
-			this.Facebook ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Facebook.js";
+			this.Facebook ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/FacebookConnector.framework";
+			this.Facebook ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Facebook.js";
 
 			this.Twitter = new Hashtable ();
 			this.Twitter ["chosen"] = true;
 			//v3.6.3
-			this.Twitter ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/TwitterConnector.framework";
-			this.Twitter ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Twitter.js";
+			this.Twitter ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/TwitterConnector.framework";
+			this.Twitter ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Twitter.js";
 
 			this.Evernote = new Hashtable ();
 			this.Evernote ["chosen"] = true;
-			this.Evernote ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/EvernoteConnector.framework";
-			this.Evernote ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Evernote.js";
+			this.Evernote ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/EvernoteConnector.framework";
+			this.Evernote ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Evernote.js";
 
 			this.GooglePlus = new Hashtable ();
 			this.GooglePlus ["chosen"] = true;
-			this.GooglePlus ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/GooglePlusConnector.framework";
-			this.GooglePlus ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/GooglePlus.js";
+			this.GooglePlus ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/GooglePlusConnector.framework";
+			this.GooglePlus ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/GooglePlus.js";
 
 			this.Instagram = new Hashtable ();
 			this.Instagram ["chosen"] = true;
-			this.Instagram ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/InstagramConnector.framework";
-			this.Instagram ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Instagram.js";
+			this.Instagram ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/InstagramConnector.framework";
+			this.Instagram ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Instagram.js";
 
 			this.LinkedIn = new Hashtable ();
 			this.LinkedIn ["chosen"] = true;
-			this.LinkedIn ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/LinkedIn.js";
+			this.LinkedIn ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/LinkedIn.js";
 
 			this.Tumblr = new Hashtable ();
 			this.Tumblr ["chosen"] = true;
-			this.Tumblr ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Tumblr.js";
+			this.Tumblr ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Tumblr.js";
 
 			this.Mail = new Hashtable ();
 			this.Mail ["chosen"] = true;
-			this.Mail ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/MailConnector.framework";
-			this.Mail ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Mail.js";
+			this.Mail ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/MailConnector.framework";
+			this.Mail ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Mail.js";
 
 			this.SMS = new Hashtable ();
 			this.SMS ["chosen"] = true;
-			this.SMS ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/SMSConnector.framework";
-			this.SMS ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/SMS.js";
+			this.SMS ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/SMSConnector.framework";
+			this.SMS ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/SMS.js";
 
 			this.Print = new Hashtable ();
 			this.Print ["chosen"] = true;
-			this.Print ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/PrintConnector.framework";
-			this.Print ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Print.js";
+			this.Print ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/PrintConnector.framework";
+			this.Print ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Print.js";
 
 			this.Copy = new Hashtable ();
 			this.Copy ["chosen"] = true;
-			this.Copy ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/CopyConnector.framework";
-			this.Copy ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Copy.js";
+			this.Copy ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/CopyConnector.framework";
+			this.Copy ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Copy.js";
 
 			this.WeChat = new Hashtable ();
 			this.WeChat ["chosen"] = true;
-			this.WeChat ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/WeChatSDK";
-			this.WeChat ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/WechatConnector.framework";
-			this.WeChat ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/WeChat.js";
+			this.WeChat ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/WeChatSDK";
+			this.WeChat ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/WechatConnector.framework";
+			this.WeChat ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/WeChat.js";
 
 			this.Instapaper = new Hashtable ();
 			this.Instapaper ["chosen"] = true;
-			this.Instapaper ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/InstapaperConnector.framework";
-			this.Instapaper ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Instapaper.js";
+			this.Instapaper ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/InstapaperConnector.framework";
+			this.Instapaper ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Instapaper.js";
 
 			this.Pocket = new Hashtable ();
 			this.Pocket ["chosen"] = true;
-			this.Pocket ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Pocket.js";
+			this.Pocket ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Pocket.js";
 
 			this.YouDaoNote = new Hashtable ();
 			this.YouDaoNote ["chosen"] = true;
-			this.YouDaoNote ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/YouDaoNote.js";
+			this.YouDaoNote ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/YouDaoNote.js";
 
 			this.Pinterest = new Hashtable ();
 			this.Pinterest ["chosen"] = true;
-			this.Pinterest ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Pinterest.js";
+			this.Pinterest ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Pinterest.js";
 
 			this.Flickr = new Hashtable ();
 			this.Flickr ["chosen"] = true;
-			this.Flickr ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Flickr.js";
+			this.Flickr ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Flickr.js";
 
 			this.Dropbox = new Hashtable ();
 			this.Dropbox ["chosen"] = true;
-			this.Dropbox ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Dropbox.js";
+			this.Dropbox ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/DropboxConnector.framework";
+			this.Dropbox ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Dropbox.js";
 
 			this.VKontakte = new Hashtable ();
 			this.VKontakte ["chosen"] = true;
-			this.VKontakte ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/VKontakte.js";
+			this.VKontakte ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/VKontakte.js";
 
 			this.YiXin = new Hashtable ();
 			this.YiXin ["chosen"] = true;
-			this.YiXin ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/YiXinSDK";
-			this.YiXin ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/YiXinConnector.framework";
-			this.YiXin ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/YiXin.js";
+			this.YiXin ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/YiXinSDK";
+			this.YiXin ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/YiXinConnector.framework";
+			this.YiXin ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/YiXin.js";
 
 			this.MingDao = new Hashtable ();
 			this.MingDao ["chosen"] = true;
-			this.MingDao ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/MingDao.js";
+			this.MingDao ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/MingDao.js";
 
 			this.Line = new Hashtable ();
 			this.Line ["chosen"] = true;
-			this.Line ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/LineSDK";
-			this.Line ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/LineConnector.framework";
-			this.Line ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Line.js";
+			this.Line ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/LineSDK";
+			this.Line ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/LineConnector.framework";
+			this.Line ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Line.js";
 
 			this.WhatsApp = new Hashtable ();
 			this.WhatsApp ["chosen"] = true;
-			this.WhatsApp ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/WhatsAppConnector.framework";
-			this.WhatsApp ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/WhatsApp.js";
+			this.WhatsApp ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/WhatsAppConnector.framework";
+			this.WhatsApp ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/WhatsApp.js";
 
 			this.Kakao = new Hashtable ();
 			this.Kakao ["chosen"] = true;
-			this.Kakao ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/KaKaoSDK";
-			this.Kakao ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/KakaoConnector.framework";
-			this.Kakao ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/KaKao.js";
+			this.Kakao ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/KaKaoSDK";
+			this.Kakao ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/KakaoConnector.framework";
+			this.Kakao ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/KaKao.js";
 
 			this.FacebookMessenger = new Hashtable ();
 			this.FacebookMessenger ["chosen"] = true;
-			this.FacebookMessenger ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/FacebookMessengerSDK";
-			this.FacebookMessenger ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/FacebookConnector.framework";
-			this.FacebookMessenger ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/FacebookMessenger.js";
+			this.FacebookMessenger ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/FacebookMessengerSDK";
+			this.FacebookMessenger ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/FacebookConnector.framework";
+			this.FacebookMessenger ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/FacebookMessenger.js";
 
 			this.Alipay = new Hashtable ();
 			this.Alipay ["chosen"] = true;
-			this.Alipay ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/APSocialSDK";
-			this.Alipay ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/AliPayConnector.framework";
-			this.Alipay ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/AliPaySocial.js";
+			this.Alipay ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/APSocialSDK";
+			this.Alipay ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/AliPayConnector.framework";
+			this.Alipay ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/AliPaySocial.js";
 
 			this.DingTalk = new Hashtable ();
 			this.DingTalk ["chosen"] = true;
-			this.DingTalk ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/DingTalkSDK";
-			this.DingTalk ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/DingTalkConnector.framework";
-			this.DingTalk ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/DingTalk.js";
+			this.DingTalk ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/DingTalkSDK";
+			this.DingTalk ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/DingTalkConnector.framework";
+			this.DingTalk ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/DingTalk.js";
 
 			this.Youtube = new Hashtable ();
 			this.Youtube ["chosen"] = true;
-			this.Youtube ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/YouTubeConnector.framework";
-			this.Youtube ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/YouTube.js";
+			this.Youtube ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/YouTubeConnector.framework";
+			this.Youtube ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/YouTube.js";
 
 			this.MeiPai = new Hashtable ();
 			this.MeiPai ["chosen"] = true;
-			this.MeiPai ["sdkPath"] = "/ShareSDK/Support/PlatformSDK/MPShareSDK";
-			this.MeiPai ["connectorPath"] = "/ShareSDK/Support/PlatformConnector/MeiPaiConnector.framework";
-			this.MeiPai ["jsPath"] = "/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/MeiPai.js";
+			this.MeiPai ["sdkPath"] = "/SDK/ShareSDK/Support/PlatformSDK/MPShareSDK";
+			this.MeiPai ["connectorPath"] = "/SDK/ShareSDK/Support/PlatformConnector/MeiPaiConnector.framework";
+			this.MeiPai ["jsPath"] = "/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/MeiPai.js";
 
 		}
 	}

+ 2 - 2
Assets/Plugins/Android/ShareSDK/libs/MobCommons-2017.0322.1909.jar.meta → Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/SDK.zip.meta

@@ -1,6 +1,6 @@
 fileFormatVersion: 2
-guid: 726a90485c44d4d69b299d5d86a69c14
-timeCreated: 1492482999
+guid: 23aeb10c3a0064a629b0c052556ca3b3
+timeCreated: 1495793524
 licenseType: Free
 DefaultImporter:
   userData: 

+ 56 - 0
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ShareSDK.projmods

@@ -0,0 +1,56 @@
+{
+    "group":       "SDK",
+    "libs":        [],
+    "frameworks":  ["ImageIO.framework",
+                    "MessageUI.framework",
+                    "JavaScriptCore.framework",
+                    ],
+    "zips":         ["SDK.zip"],                
+    "headerpaths": [],
+    "librarypaths": [],
+    "files":       ["SDK/ShareSDK/ShareSDK.framework",
+                    "SDK/Required/MOBFoundation.framework",
+                    "SDK/ShareSDK/Support/Required/ShareSDKConnector.framework",
+                    "SDK/ShareSDK/Support/Optional/ShareSDKExtension.framework",
+                    "SDK/ShareSDK/Support/Optional/ShareSDKUI.framework",
+                    "SDK/ShareSDK/Support/Optional/ShareSDKConfigFile.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/AliPayConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/CopyConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/EvernoteConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/FacebookConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/GooglePlusConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/InstagramConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/InstapaperConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/KakaoConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/LineConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/MailConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/PrintConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/QQConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/RenrenConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/SinaWeiboConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/SMSConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/WechatConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/WhatsAppConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/YiXinConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/DingTalkConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/YouTubeConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/MeiPaiConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/TwitterConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformConnector/DropboxConnector.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/FacebookMessengerSDK/FBSDKMessengerShareKit.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/FacebookMessengerSDK/FBSDKCoreKit.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/LineSDK/LineSDK.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/QQSDK/TencentOpenAPI.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/RenRenSDK/RennSDK.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/KaKaoSDK/KakaoOpenSDK.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework",
+                    "SDK/ShareSDK/Support/PlatformSDK/MPShareSDK/MPShareSDK.framework"],
+    "folders":     [],
+    "buildSettings": { 
+        "OTHER_LDFLAGS" : ["-ObjC",
+                           "-lsqlite3.0",
+                           "-lz",
+                           "licucore"]
+    },
+    "excludes":    ["^.*.meta$", "^.*.mdown^", "^.*.pdf$"]
+}

+ 2 - 2
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Facebook-2.8.2.jar.meta → Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ShareSDK.projmods.meta

@@ -1,6 +1,6 @@
 fileFormatVersion: 2
-guid: b0e0658e5a0ad4ce5ac34667b87b4be0
-timeCreated: 1492483000
+guid: cb6cd777710dd4c049fb0c3e4e918148
+timeCreated: 1471246132
 licenseType: Free
 DefaultImporter:
   userData: 

+ 27 - 3
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/ShareSDKPostProcessBuild.cs

@@ -3,8 +3,10 @@ using UnityEditor;
 using UnityEditor.Callbacks;
 using System.Collections;
 using cn.sharesdk.unity3d.sdkporter;
+using cn.sharesdk.unity3d;
 using System.IO;
-
+using System.Runtime.Serialization.Formatters.Binary;
+using System;
 
 public static class ShareSDKPostProcessBuild 
 {
@@ -35,12 +37,10 @@ public static class ShareSDKPostProcessBuild
 		//Finally save the xcode project
 		project.Save();
 	}
-
 	private static void EditInfoPlist(string projPath)
 	{
 
 		XCPlist plist = new XCPlist (projPath);
-
 		//URL Scheme 添加
 		string PlistAdd = @"  
             <key>CFBundleURLTypes</key>
@@ -140,6 +140,30 @@ public static class ShareSDKPostProcessBuild
 		//在plist里面增加一行
 		plist.AddKey(PlistAdd);
 		plist.AddKey (LSAdd);
+
+		 ShareSDKConfig theConfig;
+		 try
+		 {
+		 	string filePath = Application.dataPath + "/Plugins/ShareSDK/ShareSDKConfig.bin";
+		 	BinaryFormatter formatter = new BinaryFormatter();
+		 	Stream destream = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read);
+		 	ShareSDKConfig config = (ShareSDKConfig)formatter.Deserialize(destream);
+		 	destream.Flush();
+		 	destream.Close();
+		 	theConfig = config;
+		 }
+		 catch(Exception)
+		 {
+		 	theConfig = new ShareSDKConfig ();
+		 }
+		
+		string AppKey = @"<key>MOBAppkey</key> <string>" + theConfig.appKey + "</string>";
+		string AppSecret = @"<key>MOBAppSecret</key> <string>" + theConfig.appSecret + "</string>";
+
+		//在plist里面增加一行
+		plist.AddKey(AppKey);
+		plist.AddKey(AppSecret);
+
 		plist.Save();
 	}
 

+ 22 - 0
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/LICENSE

@@ -0,0 +1,22 @@
+Copyright (c) 2012 Daniele Cariola
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.

+ 1 - 3
Assets/Plugins/Android/ShareSDK/libs/ShareSDK-Core-2.8.2.jar.meta → Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/LICENSE.meta

@@ -1,7 +1,5 @@
 fileFormatVersion: 2
-guid: 5b0dffa8026f74d1fbe6943379db205e
-timeCreated: 1494839363
-licenseType: Pro
+guid: efd071e8beb084c7dbc945f03e3e9f6c
 DefaultImporter:
   userData: 
   assetBundleName: 

+ 83 - 0
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/Readme.mdown

@@ -0,0 +1,83 @@
+# XCode Editor for Unity
+
+## OVERVIEW
+
+The purpose of this project is to allow editing an XCode 4 project.
+
+This project is based upon the python project **Mod PBXProj** by Calvin Rien (http://the.darktable.com/). Due to the recent addiction of PostProcessBuild attribute to Unity, I found much useful having a C# version of the library.
+
+
+## INSTALLATION
+
+Clone this repo somewhere under Assets/Editor in your project. If your project is not yet checked into git, then you'll need to do the appropriate setup and add this as a submodule (google: git-submodule).
+
+If you already use git for your project, then just add this as a submodule.
+
+
+## USAGE
+
+You can use the XCProject class in any part of your editor and postprocess code. Taking advantage of the great powers of the new PostProcessBuild attribute, I suggest to use a small cs static class to run through all the projmods files in your asses folder and simply apply them to the newly created xcode project.
+
+```cs
+using UnityEditor;
+
+public static class XCodePostProcess
+{
+    [PostProcessBuild]
+    public static void OnPostProcessBuild( BuildTarget target, string path )
+    {
+        // Create a new project object from build target
+        XCodeEditor.XCProject project = new XCodeEditor.XCProject( targetPath );
+
+        // Find and run through all projmods files to patch the project
+        var files = System.IO.Directory.GetFiles( Application.dataPath, "*.projmods", SearchOption.AllDirectories );
+        foreach( var file in files ) {
+            project.ApplyMod( file );
+        }
+
+        // Finally save the xcode project
+        project.Save();
+    }
+}
+```
+
+The projmods file is a simple text file containing a JSON object. It will be used to pass the parameters to the ApplyMod method. This is the file I use for the GameCenter plugin as a brief example:
+
+```json
+{
+    "group":       "GameCenter",
+    "libs":        [],
+    "frameworks":  ["GameKit.framework"],
+    "headerpaths": ["Editor/iOS/GameCenter/**"],
+    "files":       ["Editor/iOS/GameCenter/GameCenterBinding.m",
+                    "Editor/iOS/GameCenter/GameCenterController.h",
+                    "Editor/iOS/GameCenter/GameCenterController.mm",
+                    "Editor/iOS/GameCenter/GameCenterManager.h",
+                    "Editor/iOS/GameCenter/GameCenterManager.m"],
+    "folders":     [],
+    "excludes":    ["^.*.meta$", "^.*.mdown^", "^.*.pdf$"]
+}
+```
+
+- group: all files and folders will be parented to this group;
+- libs: add libraries to build phase;
+- frameworks: add frameworks to the project;
+- headerpaths: add header paths to build phase;
+- files: add single files to the project;
+- folders: create a subgroup and add all files to the project (recursive);
+- excludes: file mask to exclude;
+
+Note: all paths are relative to projmods location
+
+
+## LICENSE
+
+This code is distributed under the terms and conditions of the MIT license.
+
+Copyright (c) 2012 Daniele Cariola
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 6 - 0
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/Readme.mdown.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: 5a8213bf10e38424b81ce56f7700deba
+DefaultImporter:
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 3 - 2
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/XCMod.cs

@@ -14,7 +14,7 @@ namespace cn.sharesdk.unity3d.sdkporter
 //		private ArrayList files;
 //		private ArrayList folders;
 //		private ArrayList excludes;
-		private Hashtable _datastore = new Hashtable();
+		private Hashtable _datastore;
 		private ArrayList _libs;
 		
 		public string name { get; private set; }
@@ -102,7 +102,8 @@ namespace cn.sharesdk.unity3d.sdkporter
 			name = System.IO.Path.GetFileNameWithoutExtension( filename );
 			path = System.IO.Path.GetDirectoryName( filename );
 			
-			//_datastore = (Hashtable)MiniJSON.jsonDecode( contents );
+			string contents = projectFileInfo.OpenText().ReadToEnd();
+			_datastore = (Hashtable)MiniJSON.jsonDecode( contents );
 		}
 	}
 	

+ 1 - 1
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/XCProject.cs

@@ -1,4 +1,4 @@
-using UnityEngine;
+using UnityEngine;
 using UnityEditor;
 using System.Collections;
 using System.Collections.Generic;

BIN
Assets/ShareSDKiOSAutoPackage/Editor/ShareSDK For Unity3D支持一键打包功能须知.docx


+ 2 - 2
Assets/Plugins/Android/ShareSDK/libs/MobTools-2017.0322.1909.jar.meta → Assets/ShareSDKiOSAutoPackage/Editor/ShareSDK For Unity3D支持一键打包功能须知.docx.meta

@@ -1,6 +1,6 @@
 fileFormatVersion: 2
-guid: 796075f9f05b34213a00b20ed4d8465b
-timeCreated: 1492482999
+guid: 716e2f2e4d52d4313ad86fce04233fd3
+timeCreated: 1471249147
 licenseType: Free
 DefaultImporter:
   userData: 

BIN
Assets/test.unity


+ 6 - 0
Assets/test.unity.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: ba3b4ecb5e369274496c477a1a7104b8
+DefaultImporter:
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
ProjectSettings/GraphicsSettings.asset


BIN
ProjectSettings/ProjectSettings.asset


+ 12 - 5
ToList.txt

@@ -2,19 +2,26 @@
 
 //关闭调试界面
 
-关闭调试按键
+//关闭调试按键
 
 //关闭DebugMode
 
 //注意存档覆盖情况
 
-打包时重新导入配置
+//打包时重新导入配置
 
-打包时重新导入Bundle
+//打包时重新导入Bundle
 
-先开启Service再打包
+//先开启Service再打包
 
-更新版本号
+//更新版本号
+
+
+ShareSDK有些失效了
+
+分享成功后收不到回掉
+
+离线收入收取改为确定
 
 
 监督补上循环特效