Skip to content

Instantly share code, notes, and snippets.

@bizz84
bizz84 / update-android-project.sh
Last active January 30, 2026 02:25
Script to update Gradle, Java and other Android project settings in a Flutter project
#!/bin/bash
# Update Gradle, Java and other Android project settings in a Flutter project
# Works with both .gradle and .gradle.kts build files
# See: https://gradle.org/releases/
# See: https://developer.android.com/build/releases/gradle-plugin#compatibility
DESIRED_GRADLE_VERSION="8.11.1"
# Build errors often show the required Java version
DESIRED_JAVA_VERSION="17"
# See: https://developer.android.com/ndk/downloads
CSS Pseudo Classes
Pseudo-classes select elements that already exist.
Based on current state of UI
:hover - an element is hovered
:enabled - an element is eanabled
:disabled - an element is disabled
:checked - an element is checked