jarryleo / WechatSdk

微信sdk封装,快捷使用微信登陆,微信支付,微信分享到聊天,朋友圈,小程序

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WechatSdk

微信sdk封装,快捷使用微信登陆,微信支付,微信分享到聊天,朋友圈,小程序

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

pendencies {
	        implementation 'com.github.jarryleo:WechatSdk:1.0.1'
}

init:

public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        WeChatSdk.init(this,"你的微信appId");
    }
}

APIS:

WeChatSdk.login()
WeChatSdk.pay()
WeChatSdk.shareToWechat()
WeChatSdk.shareToMoment()
WeChatSdk.shareToMiniProgram()
WeChatSdk.isInstallWechat()
WeChatSdk.isSupportMoment()

About

微信sdk封装,快捷使用微信登陆,微信支付,微信分享到聊天,朋友圈,小程序


Languages

Language:Java 100.0%