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
3c605eee
Commit
3c605eee
authored
Jul 05, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update App升级功能环境配置
parent
c34cbe0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
build.gradle
app/build.gradle
+1
-0
YdSubwayApplication.kt
...ain/java/com/shenghuoquan/business/YdSubwayApplication.kt
+1
-1
config.gradle
config/config.gradle
+8
-7
No files found.
app/build.gradle
View file @
3c605eee
...
...
@@ -14,6 +14,7 @@ android {
versionCode
rootProject
.
ext
.
android
.
versionCode
versionName
rootProject
.
ext
.
android
.
versionName
buildConfigField
(
"boolean"
,
"IS_ENCRYPT_DEBUG_KEY"
,
rootProject
.
ext
.
android
.
isEncryptDebugKey
)
buildConfigField
(
"boolean"
,
"IS_APP_UPGRADE_ONLINE"
,
rootProject
.
ext
.
android
.
isAppUpgradeOnline
)
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders
=
[
qqappid
:
"101923771"
,
JPUSH_PKGNAME:
applicationId
,
...
...
app/src/main/java/com/shenghuoquan/business/YdSubwayApplication.kt
View file @
3c605eee
...
...
@@ -186,7 +186,7 @@ class YdSubwayApplication : YdBaseApplication() {
val
logger
=
XLogger
(
"appUpgrade"
)
logger
.
debugOn
(
BuildConfig
.
DEBUG
)
YDAppUpdateManager
.
init
(
PmUpdateApp
(
this
)
{
online
=
false
// 线上true、线下false
online
=
BuildConfig
.
IS_APP_UPGRADE_ONLINE
// 线上true、线下false
platformId
=
AppConfig
.
TowerProPlatformId
// 平台Id
platform
=
AppConfig
.
TowerProPlatform
// ios/Android
appId
=
packageName
// 应用包名
...
...
config/config.gradle
View file @
3c605eee
ext
{
android
=
[
applicationId
:
"com.shenghuoquan.business"
,
versionCode
:
100
,
versionName
:
"1.0.0"
,
serviceVersion
:
'"000100"'
,
// 上线前需要和服务端确认并更新
isEncrypt
:
'true'
,
// 上线前需要开启加密
isEncryptDebugKey:
'true'
,
// 上线前需要使用正式加密key 置为false
isApplication
:
false
applicationId
:
"com.shenghuoquan.business"
,
versionCode
:
100
,
versionName
:
"1.0.0"
,
serviceVersion
:
'"000100"'
,
// 上线前需要和服务端确认并更新
isEncrypt
:
'true'
,
// 上线前需要开启加密
isEncryptDebugKey
:
'true'
,
// 上线前需要使用正式加密key 置为false
isApplication
:
false
,
isAppUpgradeOnline:
'true'
// 上线前需要开启版本升级线上环境 true
]
buildParams
=
[
debug
:
[
...
...
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