1、增加【德清*下渚湖】皮肤包
This commit is contained in:
donghongyu-pc
2024-10-24 13:58:43 +08:00
parent 3032702d53
commit cac58449d1
32 changed files with 121 additions and 1 deletions

View File

@@ -98,10 +98,15 @@ class LoginFragment : MvpFragment<LoginFragment?, LoginPresenter?>(), ILoginView
CallerLogger.d(TAG, "init")
// TODO yangyakun 根据后台配置的用户租户对应的皮肤包进行下载换肤
val skin = Skin(
"fbd0132038555e7e60b8f615324ca8b2",
"c9f07e5ee283a2197913cfc4b29ad937",
"YiXin-skin_v1_2024_10_24.apk",
"https://carlife-static-1255510688.cos.ap-beijing.myqcloud.com/MoGoEagleEye/YiXin-skin_v1_2024_10_24.apk"
)
val skinDeQing = Skin(
"1fb9d7a86d548ac406f3856a908fa60d",
"DeQing-skin_v1_2024_10_24.apk",
"https://carlife-static-1255510688.cos.ap-beijing.myqcloud.com/MoGoEagleEye/DeQing-skin_v1_2024_10_24.apk"
)
//换肤
SkinManager.getInstance().downloadSkin(Utils.getApp(), skin, object : SkinLoadListener {
override fun onLoadSuccess() {

View File

@@ -94,3 +94,4 @@ include ':core:function-impl:mogo-core-function-patch'
// 以下是项目定制中的不同皮肤项目,皮肤项目独立打包并通过 COS 发布,后续借助运营平台能力进行动态维护
include ':skin:YiXin-skin'
include ':skin:DeQing-skin'

1
skin/DeQing-skin/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/build

View File

@@ -0,0 +1,32 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
defaultConfig {
applicationId "com.mogo.skin.deqing"
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
// 这里每次更新皮肤资源都要对版本++ 用于版本管理
versionCode 1
versionName "1.0"
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
}
android.applicationVariants.all { variant ->
def buildTime = new Date().format("yyyy_MM_dd", TimeZone.getTimeZone("GMT+08:00"))
def projectFolderName = project.name // 获取项目文件夹名称
variant.outputs.all { output ->
outputFileName = [
projectFolderName,
"v${variant.versionCode}",
buildTime
].findAll { it.length() > 0 }.join('_') << ".apk"
}
}

21
skin/DeQing-skin/proguard-rules.pro vendored Normal file
View File

@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.mogo.skin"
xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!--黑色矩形 作为背景色-->
<item>
<shape>
<gradient
android:angle="270"
android:centerX="0.6"
android:endColor="#0B0F17"
android:startColor="#171D2B"
android:type="linear" />
</shape>
</item>
<!--单独的slogan图片 并且设置下间距-->
<!--如果使用svg可以直接 drawable-->
<item>
<bitmap
android:gravity="center"
android:scaleType="centerCrop"
android:src="@drawable/mogo_slogan"
android:tileMode="disabled" />
</item>
</layer-list>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!--单独的slogan图片 并且设置下间距-->
<!--如果使用svg可以直接 drawable-->
<item>
<bitmap
android:gravity="center"
android:scaleType="centerCrop"
android:src="@drawable/mogo_slogan"
android:tileMode="disabled" />
</item>
</layer-list>

Binary file not shown.

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#1F1F1F</color>
<color name="colorPrimaryDark">#373935</color>
<color name="colorAccent">#ffffff</color>
<color name="tabSelectedTextColor">#FFA500</color>
</resources>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="operation_platform_name">下渚湖</string>
<string name="actv_video_title">下渚湖资讯</string>
<string name="start_guildance">欢迎乘坐下渚湖自动驾驶!</string>
<string name="loading_wait_driver_title">稍等,亲\n下渚湖小助手正在为您确认信息…</string>
<string name="end_order_content">要提前说再见了吗?下渚湖小助手很舍不得您呢!</string>
<string name="complete_guidance_value">您已完成乘车指南,更多功能欢迎探索~\n下渚湖小助手预祝您旅途愉快!</string>
</resources>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 KiB