Commit 6ee82eef authored by mengcuiguang2's avatar mengcuiguang2

添加海迅支付宝sdk

parent 8064e10d
/build
mapping.txt
seeds.txt
unused.txt
priguardMapping.txt
plugins {
id 'com.android.library'
id 'kotlin-android'
}
android {
compileSdk 31
defaultConfig {
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
// implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
implementation fileTree(dir: 'libs', include: ['*.jar'])
api 'com.alipay.sdk:alipaysdk-android:+@aar'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
compileOnly project(":rxpay")
}
\ No newline at end of file
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jobo.alipay">
</manifest>
\ No newline at end of file
package com.jobo.alipay; import android.text.TextUtils; import java.util.Map; /** * @Desc: 支付宝支付结果 * @author: admin wsj * @Date: 2021/12/28 2:33 下午 */public class AliPayResult { private String resultStatus; private String result; private String memo; public AliPayResult(Map<String, String> rawResult) { if (rawResult == null) { return; } for (String key : rawResult.keySet()) { if (TextUtils.equals(key, "resultStatus")) { resultStatus = rawResult.get(key); } else if (TextUtils.equals(key, "result")) { result = rawResult.get(key); } else if (TextUtils.equals(key, "memo")) { memo = rawResult.get(key); } } } @Override public String toString() { return "resultStatus={" + resultStatus + "};memo={" + memo + "};result={" + result + "}"; } /** * @return the resultStatus */ public String getResultStatus() { return resultStatus; } /** * @return the memo */ public String getMemo() { return memo; } /** * @return the result */ public String getResult() { return result; }}
\ No newline at end of file
...@@ -172,7 +172,8 @@ MobSDK { ...@@ -172,7 +172,8 @@ MobSDK {
} }
dependencies { dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') // implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.recyclerview:recyclerview:1.2.1'
...@@ -228,7 +229,7 @@ dependencies { ...@@ -228,7 +229,7 @@ dependencies {
// 支付 // 支付
api project(':rxpay') api project(':rxpay')
api project(':wxpay') api project(':wxpay')
api project(':alipay') // api project(':alipay')
api project(':oaid') api project(':oaid')
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4' implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
// bugly // bugly
...@@ -258,6 +259,11 @@ dependencies { ...@@ -258,6 +259,11 @@ dependencies {
// 腾讯播放器 // 腾讯播放器
implementation "com.tencent.liteav:LiteAVSDK_Player:latest.release" implementation "com.tencent.liteav:LiteAVSDK_Player:latest.release"
compileOnly(name: 'alipaysdk-android-15.8.11', ext: 'aar')
implementation(name: 'humesdk-1.0.0', ext: 'aar')
implementation(name: 'ks_adapter_3.3.44.2', ext: 'aar')
implementation(name: 'kssdk-ad-3.3.44', ext: 'aar')
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
** **
**------------------------------------------------------------------------------ **------------------------------------------------------------------------------
*/ */
package com.jobo.alipay; package com.duben.miaoquplaylet.alipay;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.app.Activity; import android.app.Activity;
......
package com.duben.miaoquplaylet.alipay; import android.text.TextUtils; import java.util.Map; /** * @Desc: 支付宝支付结果 * @author: admin wsj * @Date: 2021/12/28 2:33 下午 */public class AliPayResult { private String resultStatus; private String result; private String memo; public AliPayResult(Map<String, String> rawResult) { if (rawResult == null) { return; } for (String key : rawResult.keySet()) { if (TextUtils.equals(key, "resultStatus")) { resultStatus = rawResult.get(key); } else if (TextUtils.equals(key, "result")) { result = rawResult.get(key); } else if (TextUtils.equals(key, "memo")) { memo = rawResult.get(key); } } } @Override public String toString() { return "resultStatus={" + resultStatus + "};memo={" + memo + "};result={" + result + "}"; } /** * @return the resultStatus */ public String getResultStatus() { return resultStatus; } /** * @return the memo */ public String getMemo() { return memo; } /** * @return the result */ public String getResult() { return result; }}
\ No newline at end of file
package com.jobo.alipay; package com.duben.miaoquplaylet.alipay;
import com.jobo.rxpay.base.IPayInfo; import com.jobo.rxpay.base.IPayInfo;
......
package com.jobo.alipay; package com.duben.miaoquplaylet.alipay;
import java.util.HashMap; import java.util.HashMap;
......
...@@ -8,8 +8,8 @@ import android.os.Looper ...@@ -8,8 +8,8 @@ import android.os.Looper
import android.text.TextUtils import android.text.TextUtils
import android.view.KeyEvent import android.view.KeyEvent
import android.view.View import android.view.View
import com.jobo.alipay.AliPay import com.duben.miaoquplaylet.alipay.AliPay
import com.jobo.alipay.AlipayInfoImpl import com.duben.miaoquplaylet.alipay.AlipayInfoImpl
import com.jobo.rxpay.RxPay import com.jobo.rxpay.RxPay
import com.jobo.rxpay.callback.IPayCallback import com.jobo.rxpay.callback.IPayCallback
import com.duben.miaoquplaylet.R import com.duben.miaoquplaylet.R
......
...@@ -14,8 +14,8 @@ import com.airbnb.lottie.LottieCompositionFactory ...@@ -14,8 +14,8 @@ import com.airbnb.lottie.LottieCompositionFactory
import com.airbnb.lottie.LottieDrawable import com.airbnb.lottie.LottieDrawable
import com.daimajia.androidanimations.library.Techniques import com.daimajia.androidanimations.library.Techniques
import com.daimajia.androidanimations.library.YoYo import com.daimajia.androidanimations.library.YoYo
import com.jobo.alipay.AliPay import com.duben.miaoquplaylet.alipay.AliPay
import com.jobo.alipay.AlipayInfoImpl import com.duben.miaoquplaylet.alipay.AlipayInfoImpl
import com.jobo.rxpay.RxPay import com.jobo.rxpay.RxPay
import com.jobo.rxpay.callback.IPayCallback import com.jobo.rxpay.callback.IPayCallback
import com.jobo.wxpay.WXPay import com.jobo.wxpay.WXPay
......
include ':app' include ':app'
include ':oaid' include ':oaid'
include ':rxpay' include ':rxpay'
include ':alipay' //include ':alipay'
include ':wxpay' include ':wxpay'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment