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
cad7200c
Commit
cad7200c
authored
Jul 09, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update App升级功能合并dev分支改动
parent
dfa96cc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
build.gradle
CommonLib/Common/build.gradle
+1
-0
YdBaseApplication.kt
...mmon/src/main/java/com/yidian/common/YdBaseApplication.kt
+2
-2
config.gradle
config/config.gradle
+9
-8
No files found.
CommonLib/Common/build.gradle
View file @
cad7200c
...
...
@@ -22,6 +22,7 @@ android {
buildConfigField
(
"boolean"
,
"IS_ENCRYPT"
,
rootProject
.
ext
.
android
.
isEncrypt
)
buildConfigField
(
"boolean"
,
"IS_UMENG_RELEASE"
,
rootProject
.
ext
.
android
.
isUmengRelease
)
buildConfigField
(
"boolean"
,
"IS_ENCRYPT_DEBUG_KEY"
,
rootProject
.
ext
.
android
.
isEncryptDebugKey
)
buildConfigField
(
"boolean"
,
"IS_APP_UPGRADE_ONLINE"
,
rootProject
.
ext
.
android
.
isAppUpgradeOnline
)
manifestPlaceholders
=
[
qqappid:
"101923771"
]
...
...
CommonLib/Common/src/main/java/com/yidian/common/YdBaseApplication.kt
View file @
cad7200c
...
...
@@ -218,9 +218,9 @@ open class YdBaseApplication : Application() {
*/
private
fun
initAppUpgrade
()
{
val
logger
=
XLogger
(
"appUpgrade"
)
logger
.
debugOn
(
true
)
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 @
cad7200c
ext
{
// ⚠️⚠️ 上线前需要注意修改以下配置项
android
=
[
applicationId
:
"com.shenghuoquan.business"
,
versionCode
:
100
,
versionName
:
"1.0.0"
,
serviceVersion
:
'"000100"'
,
// 上线前需要和服务端确认并更新
isEncrypt
:
'false'
,
// 上线时改成true开启加密
isEncryptDebugKey:
'true'
,
// 上线前需要使用正式加密key 置为false
isUmengRelease
:
'false'
,
// 上线时改成true,使用上线版本的友盟配置
isApplication
:
false
applicationId
:
"com.shenghuoquan.business"
,
versionCode
:
100
,
versionName
:
"1.0.0"
,
serviceVersion
:
'"000100"'
,
// 上线前需要和服务端确认并更新
isEncrypt
:
'false'
,
// 上线时改成true开启加密
isEncryptDebugKey
:
'true'
,
// 上线前需要使用正式加密key 置为false
isUmengRelease
:
'false'
,
// 上线时改成true,使用上线版本的友盟配置
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