[Update]
1、升级动态皮肤加载SDK
2、完善YiXin皮肤包
This commit is contained in:
donghongyu-pc
2024-10-12 20:11:57 +08:00
parent 78bee741fd
commit c15c36d83b
5 changed files with 22 additions and 20 deletions

View File

@@ -190,9 +190,9 @@ object LoginModel {
go2LoginInfo(data)
// TODO yangyakun 根据后台配置的用户租户对应的皮肤包进行下载换肤
val skin = Skin(
"f97d8076dcedd2cb5c30149da28cf863",
"YiXin-skin.skin",
"https://carlife-static-1255510688.cos.ap-beijing.myqcloud.com/MoGoEagleEye/YiXin-skin.skin"
"f108b3332188f0330af9aa64bb72a96c",
"YiXin-skin_v1_2024_10_12_17_42.skin",
"https://carlife-static-1255510688.cos.ap-beijing.myqcloud.com/MoGoEagleEye/YiXin-skin_v1_2024_10_12_17_42.skin"
)
//换肤
SkinManager.getInstance().selectSkin(Utils.getApp(), skin)

View File

@@ -80,7 +80,7 @@ MOGO_LOCATION_VERSION=1.4.7.42
# 远程通讯模块
MOGO_TELEMATIC_VERSION=1.4.7.42
# 动态换肤SDK
MOGO_SKIN_VERSION=1.4.7.44
MOGO_SKIN_VERSION=1.4.7.45
######## MogoAiCloudSDK Version ########
# 自研地图
MAP_SDK_VERSION=3.4.1.2

View File

@@ -1,30 +1,32 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
compileSdkVersion rootProject.ext.android.compileSdkVersion
defaultConfig {
applicationId "com.dongnao.app.skin"
minSdkVersion 21
targetSdkVersion 26
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
// 这里每次更新皮肤资源都要对版本++ 用于版本管理
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
}
android.applicationVariants.all { variant ->
def buildTime = new Date().format("yyyy_MM_dd_HH_mm", TimeZone.getTimeZone("GMT+08:00"))
def projectFolderName = project.name // 获取项目文件夹名称
variant.outputs.all { output ->
outputFileName = [
projectFolderName,
"v${variant.versionCode}",
buildTime
].findAll { it.length() > 0 }.join('_') << ".skin"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.