Commit b330ce9c authored by shiyl's avatar shiyl

集成ping++ SDK

parent 04b0f036
...@@ -32,3 +32,4 @@ Components/xbirdbusiness/build ...@@ -32,3 +32,4 @@ Components/xbirdbusiness/build
/Components/BRoot/build/ /Components/BRoot/build/
/Components/BSetting/build/ /Components/BSetting/build/
/Components/BXBridBusiness/build/ /Components/BXBridBusiness/build/
repo
...@@ -63,4 +63,7 @@ dependencies { ...@@ -63,4 +63,7 @@ dependencies {
implementation rootProject.ext.dependencies.publicImplementation implementation rootProject.ext.dependencies.publicImplementation
testImplementation rootProject.ext.dependencies.testImplementation testImplementation rootProject.ext.dependencies.testImplementation
androidTestImplementation rootProject.ext.dependencies.androidTestImplementation androidTestImplementation rootProject.ext.dependencies.androidTestImplementation
implementation 'com.pingxx:pingpp-android:2.3.5' // (Ping++ 标准版 SDK) 必须添加
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9' // 使用微信支付时添加,具体版本参考微信官方文档
} }
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.yidian.shenghuoquan.border"> package="com.yidian.shenghuoquan.border">
<!-- ping++权限 -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!-- <uses-permission android:name="android.permission.READ_PHONE_STATE"/>-->
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>-->
<!-- 银联需要的权限 -->
<!-- <uses-permission android:name="android.permission.NFC"/>-->
<application>
<!-- Ping++ sdk -->
<activity
android:name="com.pingplusplus.android.PaymentActivity"
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
</activity>
<!-- 微信支付 sdk ,也是 Ping++ sdk 调用入口 -->
<activity-alias
android:name="${applicationId}.wxapi.WXPayEntryActivity"
android:exported="true"
android:targetActivity="com.pingplusplus.android.PaymentActivity" />
</application>
</manifest> </manifest>
\ No newline at end of file
package com.yidian.shenghuoquan.border.pay
/**
* 支付控制器
*/
class PayManager {
}
...@@ -405,3 +405,33 @@ public static final int *; ...@@ -405,3 +405,33 @@ public static final int *;
-dontwarn sun.misc.** -dontwarn sun.misc.**
-keep class com.google.gson.stream.**{*;} -keep class com.google.gson.stream.**{*;}
# Ping++ 混淆过滤 开始
-dontwarn com.pingplusplus.**
-keep class com.pingplusplus.** {*;}
# 支付宝混淆过滤
-dontwarn com.alipay.**
-keep class com.alipay.** {*;}
# 微信或QQ钱包混淆过滤
-dontwarn com.tencent.**
-keep class com.tencent.** {*;}
# 银联支付混淆过滤
-dontwarn com.unionpay.**
-keep class com.unionpay.** {*;}
# 招行一网通混淆过滤
-keepclasseswithmembers class cmb.pb.util.CMBKeyboardFunc {
public <init>(android.app.Activity);
public boolean HandleUrlCall(android.webkit.WebView,java.lang.String);
public void callKeyBoardActivity();
}
# 内部WebView混淆过滤
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
# Ping++ 混淆过滤 结束
...@@ -5,14 +5,14 @@ buildscript { ...@@ -5,14 +5,14 @@ buildscript {
addRepos(repositories) addRepos(repositories)
ext.kotlin_version = build_versions.kotlin_version ext.kotlin_version = build_versions.kotlin_version
repositories { repositories {
google()
jcenter()
mavenCentral() mavenCentral()
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
// 友盟 SDK maven仓库地址 // 友盟 SDK maven仓库地址
maven { url 'https://repo1.maven.org/maven2/' } maven { url 'https://repo1.maven.org/maven2/' }
// 新浪微博官方分享SDK // 新浪微博官方分享SDK
maven { url "https://dl.bintray.com/thelasterstar/maven/" } maven { url "https://dl.bintray.com/thelasterstar/maven/" }
google()
jcenter()
} }
dependencies { dependencies {
classpath deps.gradle.plugin classpath deps.gradle.plugin
...@@ -26,8 +26,6 @@ buildscript { ...@@ -26,8 +26,6 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
google()
jcenter()
mavenCentral() mavenCentral()
maven { url "https://www.jitpack.io" } maven { url "https://www.jitpack.io" }
// 友盟 SDK maven仓库地址 // 友盟 SDK maven仓库地址
...@@ -35,6 +33,10 @@ allprojects { ...@@ -35,6 +33,10 @@ allprojects {
// 新浪微博官方分享SDK // 新浪微博官方分享SDK
maven { url "https://dl.bintray.com/thelasterstar/maven/" } maven { url "https://dl.bintray.com/thelasterstar/maven/" }
maven { url "http://dailybuild2.yidian-inc.com:8088/repository/maven-public/" } maven { url "http://dailybuild2.yidian-inc.com:8088/repository/maven-public/" }
// ping++ maven仓库地址
maven { url "https://dl.bintray.com/pingxx/maven" }
google()
jcenter()
} }
addRepos(repositories) addRepos(repositories)
} }
......
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