Skip to content

Instantly share code, notes, and snippets.

@AristideVB
AristideVB / update-android-project.sh
Created May 27, 2025 22:09 — forked from bizz84/update-android-project.sh
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
@AristideVB
AristideVB / flutter_publish_release.yml
Created November 9, 2022 09:59 — forked from andrea689/flutter_publish_release.yml
Example of CI/CD for Flutter
name: Flutter publish release
on:
push:
tags:
- android-v[0-9]+.[0-9]+.[0-9]+
- ios-v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+
jobs:
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {