Skip to content

Commit

Permalink
Remove Android Splash Screen API because of build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghshubham777 committed Nov 9, 2024
1 parent 4776a70 commit be42474
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[versions]
agp = "8.7.2"
androidSplashScreen = "1.0.1"
androidx-activityCompose = "1.9.3"
compose = "1.7.5"
compose-material3 = "1.3.1"
Expand All @@ -14,7 +13,6 @@ minSdk = "28"
targetSdk = "35"

[libraries]
androidSplashScreen = { module = "androidx.core:core-splashscreen", version.ref = "androidSplashScreen" }
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activityCompose" }
compose-material3 = { module = "androidx.compose.material3:material3", version.ref = "compose-material3" }
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
Expand Down
1 change: 0 additions & 1 deletion sampleAndroidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ android {
}

dependencies {
debugImplementation(libs.androidSplashScreen)
debugImplementation(libs.compose.ui.tooling)
implementation(libs.androidx.activity.compose)
implementation(libs.compose.material3)
Expand Down
2 changes: 1 addition & 1 deletion sampleAndroidApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/SplashScreen">
android:theme="@style/AppTheme">

<!-- For supported versions through Android 13, create an activity to show the rationale
of Health Connect permissions once users click the privacy policy link. -->
Expand Down
7 changes: 0 additions & 7 deletions sampleAndroidApp/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<resources>

<style name="SplashScreen" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/splash_bg_color</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_foreground</item>
<item name="postSplashScreenTheme">@style/AppTheme</item>
</style>

<style name="AppTheme" parent="android:Theme.Material.NoActionBar" />
</resources>

0 comments on commit be42474

Please sign in to comment.