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
d1f9d2c7
Commit
d1f9d2c7
authored
Jun 17, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 磐石so、RSA加密Key区分正式和测试
parent
1999220e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
134 additions
and
129 deletions
+134
-129
build.gradle
app/build.gradle
+1
-0
libXDiamond.so
app/libs/arm64-v8a/libXDiamond.so
+0
-0
libXDiamond.so
app/libs/armeabi-v7a/libXDiamond.so
+0
-0
libXDiamond.so
app/libs/x86/libXDiamond.so
+0
-0
libXDiamond.so
app/libs/x86_64/libXDiamond.so
+0
-0
YdSubwayApplication.kt
...ain/java/com/shenghuoquan/business/YdSubwayApplication.kt
+123
-120
config.gradle
config/config.gradle
+10
-9
No files found.
app/build.gradle
View file @
d1f9d2c7
...
@@ -37,6 +37,7 @@ android {
...
@@ -37,6 +37,7 @@ android {
applicationIdSuffix
".debug"
applicationIdSuffix
".debug"
buildConfigField
(
"String"
,
"API_URL"
,
rootProject
.
ext
.
buildParams
.
debug
.
API_URL
)
buildConfigField
(
"String"
,
"API_URL"
,
rootProject
.
ext
.
buildParams
.
debug
.
API_URL
)
buildConfigField
(
"String"
,
"PROVIDER_NAME"
,
'\"'
+
rootProject
.
ext
.
android
.
applicationId
+
".debug.fileprovider"
+
'\"'
)
buildConfigField
(
"String"
,
"PROVIDER_NAME"
,
'\"'
+
rootProject
.
ext
.
android
.
applicationId
+
".debug.fileprovider"
+
'\"'
)
buildConfigField
(
"boolean"
,
"IS_ENCRYPT_DEBUG_KEY"
,
rootProject
.
ext
.
android
.
isEncryptDebugKey
)
manifestPlaceholders
=
[
manifestPlaceholders
=
[
app_name
:
"B端测试"
,
app_name
:
"B端测试"
,
file_provider:
rootProject
.
ext
.
android
.
applicationId
+
".debug.fileprovider"
,
file_provider:
rootProject
.
ext
.
android
.
applicationId
+
".debug.fileprovider"
,
...
...
app/libs/arm64-v8a/libXDiamond.so
View file @
d1f9d2c7
No preview for this file type
app/libs/armeabi-v7a/libXDiamond.so
View file @
d1f9d2c7
No preview for this file type
app/libs/x86/libXDiamond.so
View file @
d1f9d2c7
No preview for this file type
app/libs/x86_64/libXDiamond.so
View file @
d1f9d2c7
No preview for this file type
app/src/main/java/com/shenghuoquan/business/YdSubwayApplication.kt
View file @
d1f9d2c7
...
@@ -10,12 +10,12 @@ import com.yidian.common.AppConfig
...
@@ -10,12 +10,12 @@ import com.yidian.common.AppConfig
import
com.yidian.common.YdBaseApplication
import
com.yidian.common.YdBaseApplication
import
com.yidian.common.http.ApiSaveCookiesInterceptor
import
com.yidian.common.http.ApiSaveCookiesInterceptor
import
com.yidian.common.http.ApiSetCookiesInterceptor
import
com.yidian.common.http.ApiSetCookiesInterceptor
import
com.yidian.common.http.URLs
import
com.yidian.common.services.XEventService
import
com.yidian.common.services.XEventService
import
com.yidian.common.services.XPageService
import
com.yidian.common.services.XPageService
import
com.yidian.common.utils.JVerificationUtils
import
com.yidian.common.utils.JVerificationUtils
import
com.yidian.common.utils.UMConfigUtils
import
com.yidian.common.utils.UMConfigUtils
import
com.yidian.commonutil.CommonUtilLifecycleModule
import
com.yidian.commonutil.CommonUtilLifecycleModule
import
com.yidian.framework.mobile.xdiamond.SecretUtil
import
com.yidian.http.ServiceFactory
import
com.yidian.http.ServiceFactory
import
com.yidian.news.util.ProcessUtil
import
com.yidian.news.util.ProcessUtil
import
com.yidian.xarc.xbrid.*
import
com.yidian.xarc.xbrid.*
...
@@ -82,6 +82,8 @@ class YdSubwayApplication : YdBaseApplication() {
...
@@ -82,6 +82,8 @@ class YdSubwayApplication : YdBaseApplication() {
loadService
()
loadService
()
JVerificationUtils
.
init
(
this
)
JVerificationUtils
.
init
(
this
)
registerActivityLifecycleCallbacks
(
activityLifecycle
)
registerActivityLifecycleCallbacks
(
activityLifecycle
)
// 初始化磐石SDK
SecretUtil
.
init
(
BuildConfig
.
IS_ENCRYPT_DEBUG_KEY
)
}
}
}
}
...
@@ -144,7 +146,8 @@ class YdSubwayApplication : YdBaseApplication() {
...
@@ -144,7 +146,8 @@ class YdSubwayApplication : YdBaseApplication() {
val
params
=
data
.
optJSONObject
(
"params"
)
val
params
=
data
.
optJSONObject
(
"params"
)
val
options
=
data
.
optJSONObject
(
"options"
)
val
options
=
data
.
optJSONObject
(
"options"
)
ZapTicket
(
request
.
name
).
withAction
(
action
).
withServiceParams
(
params
).
withServiceOptions
(
options
).
withIdentifier
(
identifier
).
onResult
{
result
->
ZapTicket
(
request
.
name
).
withAction
(
action
).
withServiceParams
(
params
).
withServiceOptions
(
options
).
withIdentifier
(
identifier
)
.
onResult
{
result
->
response
.
result
(
result
.
code
,
result
.
result
!!
,
""
)
response
.
result
(
result
.
code
,
result
.
result
!!
,
""
)
}.
onLost
{
result
->
}.
onLost
{
result
->
response
.
result
(
result
.
code
,
""
,
result
.
mesg
)
response
.
result
(
result
.
code
,
""
,
result
.
mesg
)
...
...
config/config.gradle
View file @
d1f9d2c7
...
@@ -3,14 +3,15 @@ ext {
...
@@ -3,14 +3,15 @@ ext {
applicationId
:
"com.shenghuoquan.business"
,
applicationId
:
"com.shenghuoquan.business"
,
versionCode
:
100
,
versionCode
:
100
,
versionName
:
"1.0.0"
,
versionName
:
"1.0.0"
,
serviceVersion:
'"000100"'
,
// 上线前需要和服务端确认并更新
serviceVersion
:
'"000100"'
,
// 上线前需要和服务端确认并更新
isEncrypt
:
'true'
,
// 上线前需要开启加密
isEncrypt
:
'true'
,
// 上线前需要开启加密
isEncryptDebugKey:
'true'
,
// 上线前需要使用正式加密key 置为false
isApplication
:
false
isApplication
:
false
]
]
buildParams
=
[
buildParams
=
[
debug
:
[
debug
:
[
//
API_URL: '"http://bp-dev.go2yd.com"',
API_URL:
'"http://bp-dev.go2yd.com"'
,
API_URL:
'"http://bp-test.go2yd.com"'
,
//
API_URL: '"http://bp-test.go2yd.com"',
],
],
release:
[
release:
[
API_URL:
'"http://bp-test.go2yd.com"'
,
API_URL:
'"http://bp-test.go2yd.com"'
,
...
@@ -79,7 +80,7 @@ ext.dependencies = [
...
@@ -79,7 +80,7 @@ ext.dependencies = [
'io.reactivex.rxjava3:rxjava:3.0.9'
,
'io.reactivex.rxjava3:rxjava:3.0.9'
,
'com.yidian.framework.mobile:ydhttp:1.0.8-SNAPSHOT'
,
'com.yidian.framework.mobile:ydhttp:1.0.8-SNAPSHOT'
,
'com.yidian.framework.mobile:ydutils:1.0.1-SNAPSHOT'
,
'com.yidian.framework.mobile:ydutils:1.0.1-SNAPSHOT'
,
'com.yidian.framework.mobile:xdiamond:1.0.
4-SNAPSHOT
'
,
'com.yidian.framework.mobile:xdiamond:1.0.
6
'
,
'com.loopj.android:android-async-http:1.4.9'
'com.loopj.android:android-async-http:1.4.9'
],
],
...
...
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