Skip to content

轻松使用第三方SDK(授权,支付,分享)

License

Notifications You must be signed in to change notification settings

czy1121/easysdk

Repository files navigation

EasySdk

轻松使用第三方SDK(授权,支付,分享)

  • 支付支付授权,支付
  • 支付微信授权,支付,分享

使用

// 设置支付宝APPID,支持支付宝授权
EasySdk.setAlipay("your ali_app_id", "")

// 设置微信APPID,支持微信授权和微信分享
EasySdk.setWeixin("your wx_app_id")

// 启用支付宝和微信支付,不需要 appid
EasySdk.usePayments()


// 调起授权
AuthSdk.authorize(this, AuthSdk.WEIXIN) {

}

// 调起支付
PaySdk.pay(this, PaySdk.Alipay, "") {

}

// 调起分享
val shareData = ShareData(MoText("hello"))
ShareSdk.share(this, ShareSdk.WXSession, shareData) {
    
}

Gradle

repositories {
    maven { url "https://gitee.com/ezy/repo/raw/cosmo/"}
}
dependencies {
    implementation "me.reezy.cosmo:easysdk:0.10.0"
}

LICENSE

The Component is open-sourced software licensed under the Apache license.

About

轻松使用第三方SDK(授权,支付,分享)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages