Skip to content

Upgrade android_splash_screen Gradle configuration#2779

Open
NiazSagor wants to merge 4 commits intoflutter:mainfrom
NiazSagor:fix-android-splash-screen
Open

Upgrade android_splash_screen Gradle configuration#2779
NiazSagor wants to merge 4 commits intoflutter:mainfrom
NiazSagor:fix-android-splash-screen

Conversation

@NiazSagor
Copy link

@NiazSagor NiazSagor commented Jan 25, 2026

I noticed that the android_splash_screen sample was outdated and was not runnable due to gradle issues.

This commit fixes the Gradle setup for the android_splash_screen sample.

Key changes include:

  • Upgrading Gradle wrapper from version 6.7 to 8.7.
  • Migrating to the plugins block in settings.gradle and app/build.gradle for applying Android, Kotlin, and Flutter Gradle plugins.
  • Removing the outdated buildscript block from the root build.gradle.
  • Updating compileSdkVersion and targetSdkVersion to 34.
  • Setting minSdkVersion to flutter.minSdkVersion.
  • Adding the namespace property as required by newer Android Gradle Plugin versions.
  • Refactoring Kotlin constant declarations in MainActivity.kt.

@ericwindmill

Pre-launch Checklist

  • I read the [Flutter Style Guide] recently, and have followed its advice.
  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I have added sample code updates to the [changelog].
  • I updated/added relevant documentation (doc comments with ///).

NiazSagor and others added 3 commits January 25, 2026 17:33
This commit modernizes the Gradle setup for the `android_splash_screen` sample.

Key changes include:
*   Upgrading Gradle wrapper from version 6.7 to 8.7.
*   Migrating to the plugins block in `settings.gradle` and `app/build.gradle` for applying Android, Kotlin, and Flutter Gradle plugins.
*   Removing the outdated `buildscript` block from the root `build.gradle`.
*   Updating `compileSdkVersion` and `targetSdkVersion` to 34.
*   Setting `minSdkVersion` to `flutter.minSdkVersion`.
*   Adding the `namespace` property as required by newer Android Gradle Plugin versions.
*   Refactoring Kotlin constant declarations in `MainActivity.kt`.
@ericwindmill
Copy link
Collaborator

Increible, thank you @NiazSagor -- I'm running CI now. (CI might be broken, I'm investigating)

@NiazSagor
Copy link
Author

Thank You!! for the review. I am more than Happy to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants