Skip to content

Commit

Permalink
mod: update umeng version
Browse files Browse the repository at this point in the history
fix: wxPay isInstallWXApp
  • Loading branch information
liuyuanxiao committed Aug 13, 2018
1 parent 26046dc commit 1afaa7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion library-wxpay/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:25.3.1'
testImplementation 'junit:junit:4.12'
compile files('libs/libammsdk.jar')


compile project(':nexus')
// implementation 'com.github.bmfe.eros-nexus:nexus:1.0.0'
Expand Down
Binary file removed library-wxpay/libs/libammsdk.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.benmu.framework.manager.ManagerFactory;
import com.benmu.framework.manager.impl.dispatcher.DispatchEventManager;
import com.benmu.framework.model.WeexEventBean;
import com.benmu.widget.utils.BaseCommonUtil;
import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.bridge.JSCallback;
import com.taobao.weex.common.WXModule;
Expand Down Expand Up @@ -36,13 +37,9 @@ public void initWX(String appid) {
/**
* 获取是否安装WeChat
*/
@JSMethod
public void isInstallWXApp(JSCallback callback) {
WeexEventBean weexEventBean = new WeexEventBean();
weexEventBean.setKey(WXEventCenter.EVENT_ISINSTALLWXAPP);
weexEventBean.setContext(mWXSDKInstance.getContext());
weexEventBean.setJscallback(callback);
ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(weexEventBean);
@JSMethod(uiThread = false)
public Object isInstallWXApp() {
return BaseCommonUtil.isWeChatInstall(mWXSDKInstance.getContext());

}
}
Expand Down

0 comments on commit 1afaa7e

Please sign in to comment.