|
@@ -5,16 +5,15 @@ using System;
|
|
|
namespace cn.sharesdk.unity3d
|
|
|
{
|
|
|
public class DevInfoSet
|
|
|
-
|
|
|
{
|
|
|
- //public Facebook facebook;
|
|
|
- //public GooglePlus googlePlus;
|
|
|
- //public SinaWeiboDevInfo sinaweibo;
|
|
|
+ public Facebook facebook = new Facebook();
|
|
|
+ public GooglePlus googlePlus = new GooglePlus();
|
|
|
+ public SinaWeiboDevInfo sinaweibo = new SinaWeiboDevInfo();
|
|
|
|
|
|
public QQ qq = new QQ();
|
|
|
- //public QZone qzone;
|
|
|
- //public WeChat wechat;
|
|
|
- //public WeChatMoments wechatMoments;
|
|
|
+ public QZone qzone = new QZone();
|
|
|
+ public WeChat wechat = new WeChat();
|
|
|
+ public WeChatMoments wechatMoments = new WeChatMoments();
|
|
|
|
|
|
//public TencentWeiboDevInfo tencentweibo;
|
|
|
//public Twitter twitter;
|
|
@@ -69,27 +68,25 @@ namespace cn.sharesdk.unity3d
|
|
|
public bool Enable = true;
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class SinaWeiboDevInfo : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public const int type = (int) PlatformType.SinaWeibo;
|
|
|
public string SortId = "4";
|
|
|
- public string AppKey = "568898243";
|
|
|
- public string AppSecret = "38a4f8204cc784f81f9f0daaf31e02e3";
|
|
|
+ public string AppKey = ShareSDK.SinaAppKey;
|
|
|
+ public string AppSecret = ShareSDK.SinaAppSecrete;
|
|
|
public string RedirectUrl = "http://www.sharesdk.cn";
|
|
|
public bool ShareByAppClient = false;
|
|
|
- #elif UNITY_IPHONE
|
|
|
+#elif UNITY_IPHONE
|
|
|
public const int type = (int) PlatformType.SinaWeibo;
|
|
|
- public string app_key = "568898243";
|
|
|
- public string app_secret = "38a4f8204cc784f81f9f0daaf31e02e3";
|
|
|
+ public string app_key = ShareSDK.SinaAppKey;
|
|
|
+ public string app_secret = ShareSDK.SinaAppSecrete;
|
|
|
public string redirect_uri = "http://www.sharesdk.cn";
|
|
|
public string auth_type = "both"; //can pass "both","sso",or "web"
|
|
|
- #endif
|
|
|
- }
|
|
|
+#endif
|
|
|
+ }
|
|
|
|
|
|
- [Serializable]
|
|
|
- public class TencentWeiboDevInfo : DevInfo
|
|
|
+ public class TencentWeiboDevInfo : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public const int type = (int) PlatformType.TencentWeibo;
|
|
@@ -121,59 +118,55 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class QZone : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "1";
|
|
|
public const int type = (int) PlatformType.QZone;
|
|
|
- public string AppId = "100371282";
|
|
|
- public string AppKey = "ae36f4ee3946e1cbb98d6965b0b2ff5c";
|
|
|
+ public string AppId = ShareSDK.QQAppKey;
|
|
|
+ public string AppKey = ShareSDK.QQAppSecrete;
|
|
|
public bool ShareByAppClient = true;
|
|
|
- #elif UNITY_IPHONE
|
|
|
+#elif UNITY_IPHONE
|
|
|
public const int type = (int) PlatformType.QZone;
|
|
|
- public string app_id = "100371282";
|
|
|
- public string app_key = "aed9b0303e3ed1e27bae87c33761161d";
|
|
|
+ public string app_id = ShareSDK.QQAppKey;
|
|
|
+ public string app_key = ShareSDK.QQAppSecrete;
|
|
|
public string auth_type = "both"; //can pass "both","sso",or "web"
|
|
|
- #endif
|
|
|
- }
|
|
|
-
|
|
|
+#endif
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
- [Serializable]
|
|
|
- public class WeChat : DevInfo
|
|
|
+
|
|
|
+
|
|
|
+ public class WeChat : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "5";
|
|
|
public const int type = (int) PlatformType.WeChat;
|
|
|
- public string AppId = "wx4868b35061f87885";
|
|
|
- public string AppSecret = "64020361b8ec4c99936c0e3999a9f249";
|
|
|
+ public string AppId = ShareSDK.WeChatAppKey;
|
|
|
+ public string AppSecret = ShareSDK.WeChatSecrete;
|
|
|
public bool BypassApproval = true;
|
|
|
- #elif UNITY_IPHONE
|
|
|
+#elif UNITY_IPHONE
|
|
|
public const int type = (int) PlatformType.WeChat;
|
|
|
- public string app_id = "wx4868b35061f87885";
|
|
|
- public string app_secret = "64020361b8ec4c99936c0e3999a9f249";
|
|
|
- #endif
|
|
|
- }
|
|
|
+ public string app_id = ShareSDK.WeChatAppKey;
|
|
|
+ public string app_secret = ShareSDK.WeChatSecrete;
|
|
|
+#endif
|
|
|
+ }
|
|
|
|
|
|
- [Serializable]
|
|
|
- public class WeChatMoments : DevInfo
|
|
|
+ public class WeChatMoments : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "6";
|
|
|
public const int type = (int) PlatformType.WeChatMoments;
|
|
|
- public string AppId = "wx4868b35061f87885";
|
|
|
- public string AppSecret = "64020361b8ec4c99936c0e3999a9f249";
|
|
|
+ public string AppId = ShareSDK.WeChatAppKey;
|
|
|
+ public string AppSecret = ShareSDK.WeChatSecrete;
|
|
|
public bool BypassApproval = false;
|
|
|
- #elif UNITY_IPHONE
|
|
|
+#elif UNITY_IPHONE
|
|
|
public const int type = (int) PlatformType.WeChatMoments;
|
|
|
- public string app_id = "wx4868b35061f87885";
|
|
|
- public string app_secret = "64020361b8ec4c99936c0e3999a9f249";
|
|
|
- #endif
|
|
|
- }
|
|
|
+ public string app_id = ShareSDK.WeChatAppKey;
|
|
|
+ public string app_secret = ShareSDK.WeChatSecrete;
|
|
|
+#endif
|
|
|
+ }
|
|
|
|
|
|
- [Serializable]
|
|
|
- public class WeChatFavorites : DevInfo
|
|
|
+ public class WeChatFavorites : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "7";
|
|
@@ -187,26 +180,24 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Facebook : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "8";
|
|
|
public const int type = (int) PlatformType.Facebook;
|
|
|
- public string ConsumerKey = "107704292745179";
|
|
|
- public string ConsumerSecret = "38053202e1a5fe26c80c753071f0b573";
|
|
|
+ public string ConsumerKey = ShareSDK.FacebookAppKey;
|
|
|
+ public string ConsumerSecret = ShareSDK.FacebookAppSecrete;
|
|
|
public string RedirectUrl = "http://mob.com/";
|
|
|
- #elif UNITY_IPHONE
|
|
|
+#elif UNITY_IPHONE
|
|
|
public const int type = (int) PlatformType.Facebook;
|
|
|
- public string api_key = "107704292745179";
|
|
|
- public string app_secret = "38053202e1a5fe26c80c753071f0b573";
|
|
|
+ public string api_key = ShareSDK.FacebookAppKey;
|
|
|
+ public string app_secret = ShareSDK.FacebookAppSecrete;
|
|
|
public string auth_type = "both"; //can pass "both","sso",or "web"
|
|
|
public string display_name = "ShareSDK";//如果需要使用客户端分享,必填且需与FB 后台配置一样
|
|
|
- #endif
|
|
|
- }
|
|
|
+#endif
|
|
|
+ }
|
|
|
|
|
|
- [Serializable]
|
|
|
- public class Twitter : DevInfo
|
|
|
+ public class Twitter : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "9";
|
|
@@ -222,7 +213,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Renren : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -240,7 +230,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class KaiXin : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -257,7 +246,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Email : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -268,7 +256,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class ShortMessage : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -279,7 +266,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Douban : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -296,7 +282,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class YouDao : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -330,7 +315,6 @@ namespace cn.sharesdk.unity3d
|
|
|
//在以下的配置里,安卓请选择Evernote配置。
|
|
|
//iOS则需要区分,国内版为Evernote,国际版EvernoteInternational。
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Evernote : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -348,7 +332,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class EvernoteInternational : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -362,7 +345,6 @@ namespace cn.sharesdk.unity3d
|
|
|
}
|
|
|
|
|
|
|
|
|
- [Serializable]
|
|
|
public class LinkedIn : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -380,26 +362,24 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class GooglePlus : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "19";
|
|
|
public const int type = (int) PlatformType.GooglePlus;
|
|
|
- public string ClientID = "682795613743-cfo3a8r4va0ujja7qofr54hobt2kv3cq.apps.googleusercontent.com";
|
|
|
+ public string ClientID = ShareSDK.GoogleAppKey;
|
|
|
public string RedirectUrl = "http://localhost";
|
|
|
public bool ShareByAppClient = false;
|
|
|
- #elif UNITY_IPHONE
|
|
|
+#elif UNITY_IPHONE
|
|
|
public const int type = (int) PlatformType.GooglePlus;
|
|
|
- public string client_id = "232554794995.apps.googleusercontent.com";
|
|
|
- public string client_secret = "PEdFgtrMw97aCvf0joQj7EMk";
|
|
|
+ public string client_id = ShareSDK.GoogleAppKey;
|
|
|
+ public string client_secret = ShareSDK.GoogleAppSecrete;
|
|
|
public string redirect_uri = "http://localhost";
|
|
|
public string auth_type = "both"; //can pass "both","sso",or "web"
|
|
|
- #endif
|
|
|
- }
|
|
|
+#endif
|
|
|
+ }
|
|
|
|
|
|
- [Serializable]
|
|
|
- public class FourSquare : DevInfo
|
|
|
+ public class FourSquare : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
|
public string SortId = "20";
|
|
@@ -412,7 +392,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Pinterest : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -425,7 +404,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Flickr : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -441,7 +419,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Tumblr : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -458,7 +435,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Dropbox : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -474,7 +450,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class VKontakte : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -489,7 +464,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Instagram : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -514,7 +488,6 @@ namespace cn.sharesdk.unity3d
|
|
|
//审核的应用也可以执行分享,但是仅限于分享文字或图片,不能分享其他类型,
|
|
|
//默认值为false。
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Yixin : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -531,7 +504,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class YixinMoments : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -548,7 +520,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Mingdao : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -565,7 +536,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Line : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -576,7 +546,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class KakaoTalk : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -591,7 +560,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class KakaoStory : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -606,7 +574,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class WhatsApp : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -617,7 +584,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Bluetooth : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -628,7 +594,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Pocket : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -643,7 +608,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Instapaper : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -658,7 +622,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class FacebookMessenger : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -672,7 +635,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Copy : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -682,7 +644,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class YixinSeries : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -698,7 +659,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class YixinFavorites : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -714,7 +674,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Alipay : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -727,7 +686,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class AlipayMoments : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -740,7 +698,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Dingding : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -752,7 +709,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class WechatSeries : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -765,7 +721,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class QQSeries : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -779,7 +734,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class KakaoSeries : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -794,7 +748,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class Youtube : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|
|
@@ -811,7 +764,6 @@ namespace cn.sharesdk.unity3d
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- [Serializable]
|
|
|
public class MeiPai : DevInfo
|
|
|
{
|
|
|
#if UNITY_ANDROID
|