Skip to content

Commit

Permalink
Android3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jychenX committed Feb 6, 2018
1 parent 04c58cb commit fbacca6
Show file tree
Hide file tree
Showing 60 changed files with 55 additions and 31 deletions.
2 changes: 0 additions & 2 deletions Android/jsdemo/.settings/org.eclipse.core.resources.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions Android/jsdemo/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

60 changes: 38 additions & 22 deletions Android/jsdemo/assets/ShareSDK.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
-->

<!-- ShareByAppClient标识是否使用微博客户端分享,默认是false, -->

<SinaWeibo
Id="1"
SortId="1"
Expand All @@ -69,19 +70,18 @@
<QZone
Id="3"
SortId="3"
AppId="100371282"
AppKey="aed9b0303e3ed1e27bae87c33761161d"
BypassApproval="true"
AppId="100371282"
AppKey="aed9b0303e3ed1e27bae87c33761161d"
BypassApproval="false"
Enable="true" />

<!--
Wechat微信和WechatMoments微信朋友圈的appid是一样的;
注意:开发者不能用我们这两个平台的appid,否则分享不了
微信测试的时候,微信测试需要先签名打包出apk,
注意:开发者不能用我们这两个平台的appid,否则分享不了
微信测试的时候,微信测试需要先签名打包出apk,
sample测试微信,要先签名打包,keystore在sample项目中,密码123456
BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
审核的应用也可以执行分享,但是仅限于分享文字和图片,不能分享其他类型,
默认值为false。此外,微信收藏不支持此字段。wx4868b35061f87885
Expand All @@ -94,7 +94,9 @@
AppSecret="64020361b8ec4c99936c0e3999a9f249"
UserName="gh_afb25ac019c9"
Path="pages/index/index.html?id=1"
BypassApproval="true"
BypassApproval="false"
WithShareTicket = "true"
MiniprogramType = "0"
Enable="true" />

<WechatMoments
Expand All @@ -113,21 +115,23 @@
Enable="true" />

<!-- ShareByAppClient标识是否使用微博客户端分享,默认是false -->

<QQ
Id="7"
SortId="7"
AppId="100371282"
AppKey="aed9b0303e3ed1e27bae87c33761161d"
ShareByAppClient ="true"
BypassApproval = "false"
BypassApproval="false"
ShareByAppClient="true"
Enable="true" />



<Facebook
Id="8"
SortId="8"
ConsumerKey="107704292745179"
ConsumerSecret="38053202e1a5fe26c80c753071f0b573"
RedirectUrl="fbconnect://success"
ConsumerKey="1412473428822331"
ConsumerSecret="a42f4f3f867dc947b9ed6020c2e93558"
RedirectUrl="https://mob.com"
ShareByAppClient="true"
Enable="true" />

Expand Down Expand Up @@ -200,16 +204,17 @@
ConsumerSecret="d05bf86993836004"
ShareByAppClient="true"
Enable="true" />


<!---->
<LinkedIn
Id="20"
SortId="20"
ApiKey="ejo5ibkye3vo"
SecretKey="cC7B2jpxITqPLZ5M"
RedirectUrl="http://sharesdk.cn"
ShareByAppClient="false"
SecretKey="cC7B2jpxITqPLZ5M"
RedirectUrl="http://sharesdk.cn"
ShareByAppClient="true"
Enable="true" />

<GooglePlus
Id="21"
SortId="21"
Expand Down Expand Up @@ -261,7 +266,8 @@
SortId="27"
ApplicationId="3921561"
Enable="true" />


<!---->
<Instagram
Id="28"
SortId="28"
Expand Down Expand Up @@ -351,7 +357,9 @@
SortId="39"
AppId="107704292745179"
Enable="true" />


<!--支付SDK的key:2017073107971452-->
<!--ShareSDK的key:2015072400185895-->
<Alipay
Id="50"
SortId="50"
Expand Down Expand Up @@ -387,7 +395,15 @@
AppSecret="y9ym6rrjjijtkt23qtsc"
ShareByAppClient = "true"
Enable="true"/>


<Meipai
Id="54"
SortId="54"
ClientID="1089867596"
AppSecret="y9ym6rrjjijtkt23qtsc"
ShareByAppClient = "true"
Enable="true"/>

<Telegram
Id="47"
SortId="47"
Expand Down
Binary file removed Android/jsdemo/libs/MobCommons-2017.1201.1507.jar
Binary file not shown.
Binary file not shown.
Binary file removed Android/jsdemo/libs/MobTools-2017.1201.1507.jar
Binary file not shown.
Binary file added Android/jsdemo/libs/MobTools-2018.0131.1510.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Android/jsdemo/libs/ShareSDK-Email-3.1.2.jar
Binary file not shown.
Binary file added Android/jsdemo/libs/ShareSDK-Email-3.1.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Android/jsdemo/libs/ShareSDK-Line-3.1.2.jar
Binary file not shown.
Binary file added Android/jsdemo/libs/ShareSDK-Line-3.1.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Android/jsdemo/libs/ShareSDK-QQ-3.1.2.jar
Binary file not shown.
Binary file added Android/jsdemo/libs/ShareSDK-QQ-3.1.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Android/jsdemo/libs/ShareSDK-Telegram-3.1.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Android/jsdemo/libs/ShareSDK-Wechat-3.1.2.jar
Binary file not shown.
Binary file added Android/jsdemo/libs/ShareSDK-Wechat-3.1.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ public abstract class OnekeyShareThemeImpl implements PlatformActionListener, Ca
protected boolean silent;
protected ArrayList<CustomerLogo> customerLogos;
protected HashMap<String, String> hiddenPlatforms;
protected PlatformActionListener callback;
protected ShareContentCustomizeCallback customizeCallback;
protected boolean disableSSO;
protected Context context;

public PlatformActionListener callback;

public OnekeyShareThemeImpl() {
callback = this;
}
Expand Down Expand Up @@ -129,7 +130,6 @@ final boolean isUseClientToShare(Platform platform) {
if(shareByAppClient && platform.isClientValid()){
return true;
} else if(shareParamsMap.containsKey("url") && !TextUtils.isEmpty((String)shareParamsMap.get("url"))){
System.out.println("Facebook:" + platform.getDevinfo("ShareByAppClient"));
return true;
}
}
Expand All @@ -149,6 +149,7 @@ final void shareSilently(Platform platform) {
}
platform.setPlatformActionListener(callback);
platform.share(sp);
callback = null;
}
}
}
Expand Down Expand Up @@ -282,6 +283,19 @@ final boolean formateShareData(Platform plat) {
shareType = Platform.SHARE_MUSIC;
}
}
} else {
Bitmap imageData = (Bitmap)shareParamsMap.get("imageData");
if(imageData != null){
shareType = Platform.SHARE_IMAGE;
if (String.valueOf(imageUrl).endsWith(".gif") && isWechat) {
shareType = Platform.SHARE_EMOJI;
} else if (shareParamsMap.containsKey("url") && !TextUtils.isEmpty((String)shareParamsMap.get("url"))) {
shareType = Platform.SHARE_WEBPAGE;
if (shareParamsMap.containsKey("musicUrl") && !TextUtils.isEmpty((String)shareParamsMap.get("musicUrl")) && isWechat) {
shareType = Platform.SHARE_MUSIC;
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void shareAndFinish() {
}
platform.setPlatformActionListener(getCallback());
platform.share(sp);

impl.callback = null;
finish();
}

Expand Down

0 comments on commit fbacca6

Please sign in to comment.