1、添加uniapp入口配置获取并展示
This commit is contained in:
shenzuqiang 2026-03-02 11:41:46 +08:00
parent b8365373fd
commit 7b00bda629
7 changed files with 941 additions and 826 deletions

View File

@ -4,10 +4,10 @@
<selectionStates> <selectionStates>
<SelectionState runConfigName="app"> <SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" /> <option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2026-02-28T10:08:53.722874Z"> <DropdownSelection timestamp="2026-03-02T03:06:17.024211200Z">
<Target type="DEFAULT_BOOT"> <Target type="DEFAULT_BOOT">
<handle> <handle>
<DeviceId pluginId="PhysicalDevice" identifier="serial=JRBI89BIE6AI5TG6" /> <DeviceId pluginId="PhysicalDevice" identifier="serial=VSJNQ4NFBYJB5PZD" />
</handle> </handle>
</Target> </Target>
</DropdownSelection> </DropdownSelection>

View File

@ -129,6 +129,7 @@ dependencies {
implementation(libs.androidx.datastore.core) implementation(libs.androidx.datastore.core)
implementation(libs.androidx.datastore.preferences) implementation(libs.androidx.datastore.preferences)
implementation(libs.androidx.foundation) implementation(libs.androidx.foundation)
implementation(libs.foundation)
// 测试依赖 // 测试依赖
testImplementation(libs.junit) testImplementation(libs.junit)

View File

@ -11,6 +11,10 @@ class ConfigEntity {
@SerializedName("client.uni.version.upgrade") //小程序模拟器 @SerializedName("client.uni.version.upgrade") //小程序模拟器
var uniVersionEntity: List<UniVersionEntity>? = emptyList() var uniVersionEntity: List<UniVersionEntity>? = emptyList()
@SerializedName("client.icon.uni.home") //uni首页icon
var homeIconEntity: List<UniIconEntity>? = emptyList()
@SerializedName("client.popup.display") //显示开关控制 @SerializedName("client.popup.display") //显示开关控制
var popupConfig: PopupConfigEntity? = null var popupConfig: PopupConfigEntity? = null

View File

@ -0,0 +1,22 @@
package com.img.rabbit.bean.response
import kotlinx.serialization.Serializable
/**
* {
* "icon": "https://cdn.batiao8.com/flaunt/uni_mp/icon/other/ticket.png",
* "text": "机票",
* "url": "pages/other/tickets-app/index",
* "type": "alipay",
* "enable": true
* }
*/
@Serializable
class UniIconEntity(
var icon: String = "",
var text: String = "",
var url: String = "",
var type: String = "",
var enable: Boolean = false
)

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,8 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library # thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true android.nonTransitiveRClass=true
android.injected.testOnly=false
# ???? # ????
GETUI_APPID=40qbPjPkYs7TnVAYCX0Ig6 GETUI_APPID=40qbPjPkYs7TnVAYCX0Ig6
GT_INSTALL_CHANNEL=general GT_INSTALL_CHANNEL=general

View File

@ -55,6 +55,7 @@ tencentHelper = "3.0.6"
#oaid #oaid
android_cn_oaid = "4.2.12" android_cn_oaid = "4.2.12"
fastaes = "1.1.5" fastaes = "1.1.5"
foundationVersion = "1.10.3"
[libraries] [libraries]
@ -123,6 +124,7 @@ tencent-helper = { module = "com.tencent.vasdolly:helper", version.ref = "tencen
android_cn_oaid = { module = "com.github.gzu-liyujiang:Android_CN_OAID", version.ref = "android_cn_oaid" } android_cn_oaid = { module = "com.github.gzu-liyujiang:Android_CN_OAID", version.ref = "android_cn_oaid" }
#Decrypt #Decrypt
fastaes = { module = "io.github.billywei01:fastaes", version.ref = "fastaes" } fastaes = { module = "io.github.billywei01:fastaes", version.ref = "fastaes" }
foundation = { group = "androidx.compose.foundation", name = "foundation", version.ref = "foundationVersion" }
[plugins] [plugins]
android-application = { id = "com.android.application", version.ref = "agp" } android-application = { id = "com.android.application", version.ref = "agp" }