refactor(splash): remove unused SplashScreen API dependency and theme
This commit is contained in:
parent
b5e60e8bf8
commit
b5a2ccf151
@ -94,7 +94,6 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":core"))
|
implementation(project(":core"))
|
||||||
|
|
||||||
implementation(libs.androidx.core.splashscreen)
|
|
||||||
implementation(platform(libs.compose.bom))
|
implementation(platform(libs.compose.bom))
|
||||||
implementation(libs.androidx.activity.compose)
|
implementation(libs.androidx.activity.compose)
|
||||||
implementation(libs.androidx.profileinstaller)
|
implementation(libs.androidx.profileinstaller)
|
||||||
|
|||||||
@ -2,14 +2,6 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<style name="Theme.YaYa" parent="@android:style/Theme.Material.NoActionBar" />
|
<style name="Theme.YaYa" parent="@android:style/Theme.Material.NoActionBar" />
|
||||||
|
|
||||||
<!--
|
|
||||||
启动主题:用于 MAIN/LAUNCHER Activity。
|
|
||||||
-->
|
|
||||||
<style name="Theme.YaYa.Starting" parent="Theme.SplashScreen">
|
|
||||||
<item name="windowSplashScreenBackground">@color/splash_background</item>
|
|
||||||
<item name="postSplashScreenTheme">@style/Theme.YaYa</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="Theme.YaYa.Splash" parent="@android:style/Theme.Material.NoActionBar">
|
<style name="Theme.YaYa.Splash" parent="@android:style/Theme.Material.NoActionBar">
|
||||||
<item name="android:windowBackground">@color/splash_background</item>
|
<item name="android:windowBackground">@color/splash_background</item>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -2,17 +2,6 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<style name="Theme.YaYa" parent="@android:style/Theme.Material.Light.NoActionBar" />
|
<style name="Theme.YaYa" parent="@android:style/Theme.Material.Light.NoActionBar" />
|
||||||
|
|
||||||
<!--
|
|
||||||
启动主题:用于 MAIN/LAUNCHER Activity。
|
|
||||||
继承 Theme.SplashScreen,保证 Android 12 以下也能获得一致的启动窗口行为。
|
|
||||||
windowSplashScreenBackground 使用 Material 3 静态基准色,作为动态颜色不可用时
|
|
||||||
的 fallback,以减少启动窗口与 Compose 首帧之间的色差闪烁。
|
|
||||||
-->
|
|
||||||
<style name="Theme.YaYa.Starting" parent="Theme.SplashScreen">
|
|
||||||
<item name="windowSplashScreenBackground">@color/splash_background</item>
|
|
||||||
<item name="postSplashScreenTheme">@style/Theme.YaYa</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="Theme.YaYa.Splash" parent="@android:style/Theme.Material.Light.NoActionBar">
|
<style name="Theme.YaYa.Splash" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||||
<item name="android:windowBackground">@color/splash_background</item>
|
<item name="android:windowBackground">@color/splash_background</item>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user