Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
b330ce9c
Commit
b330ce9c
authored
Jul 26, 2021
by
shiyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集成ping++ SDK
parent
04b0f036
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
4 deletions
+74
-4
.gitignore
.gitignore
+1
-0
build.gradle
Components/BOrder/build.gradle
+3
-0
AndroidManifest.xml
Components/BOrder/src/main/AndroidManifest.xml
+26
-0
PayManager.kt
...ain/java/com/yidian/shenghuoquan/border/pay/PayManager.kt
+8
-0
proguard-rules.pro
app/proguard-rules.pro
+30
-0
build.gradle
build.gradle
+6
-4
No files found.
.gitignore
View file @
b330ce9c
...
@@ -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
Components/BOrder/build.gradle
View file @
b330ce9c
...
@@ -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
Components/BOrder/src/main/AndroidManifest.xml
View file @
b330ce9c
<?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
Components/BOrder/src/main/java/com/yidian/shenghuoquan/border/pay/PayManager.kt
0 → 100644
View file @
b330ce9c
package
com.yidian.shenghuoquan.border.pay
/**
* 支付控制器
*/
class
PayManager
{
}
app/proguard-rules.pro
View file @
b330ce9c
...
@@ -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++ 混淆过滤 结束
build.gradle
View file @
b330ce9c
...
@@ -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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment