diff --git a/add_to_app/README.md b/add_to_app/README.md index 4963ede3aac..84762ec731c 100644 --- a/add_to_app/README.md +++ b/add_to_app/README.md @@ -62,3 +62,21 @@ iOS or Android app, the best places to go are: If you run into an issue with the sample itself, please file an issue in the [main Flutter repo](https://github.com/flutter/flutter/issues). + +## Updating Android samples and its dependencies + +TODO @ewindmill: Expand these instructions for those of us with little Android experience :) + +* Open the top level build.gradle file in android studio +* Open “Upgrade Assistant” and click upgrade +* If after upgrading it fails to build try upgrading to a slightly less new version +* If you get an unknown class version exception 61, 66, etc, try setting the version of Java used by modifying JAVA_HOME +* If it still fails to build try checking if the Flutter code referenced in the build is up-to-date and doesn't use discontinued plugins. (Common cases include “namespace”) +* The 'project structure' -> 'modules' view can be helpful in understanding the dependency tree. +* Once the app builds with the latest gradle/agp update any deprecated usages in app/build.gradle + +* compileSdkVersion -> sdkVersion +* Update the target sdk version and read through each target sdk update +* Export broadcast receivers +* Update the way flutter is imported to use flutter gradle plugin +* https://flutter.dev/go/flutter-gradle-plugin-apply \ No newline at end of file diff --git a/compass_app/macos/Flutter/ephemeral/Flutter-Generated.xcconfig b/compass_app/macos/Flutter/ephemeral/Flutter-Generated.xcconfig new file mode 100644 index 00000000000..4bdd72375a5 --- /dev/null +++ b/compass_app/macos/Flutter/ephemeral/Flutter-Generated.xcconfig @@ -0,0 +1,11 @@ +// This is a generated file; do not edit or check into version control. +FLUTTER_ROOT=/Users/ewindmill/development/flutter +FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/compass_app +COCOAPODS_PARALLEL_CODE_SIGN=true +FLUTTER_BUILD_DIR=build +FLUTTER_BUILD_NAME=0.1.0 +FLUTTER_BUILD_NUMBER=0.1.0 +DART_OBFUSCATION=false +TRACK_WIDGET_CREATION=true +TREE_SHAKE_ICONS=false +PACKAGE_CONFIG=.dart_tool/package_config.json diff --git a/compass_app/macos/Flutter/ephemeral/flutter_export_environment.sh b/compass_app/macos/Flutter/ephemeral/flutter_export_environment.sh new file mode 100755 index 00000000000..7f088380f41 --- /dev/null +++ b/compass_app/macos/Flutter/ephemeral/flutter_export_environment.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=/Users/ewindmill/development/flutter" +export "FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/compass_app" +export "COCOAPODS_PARALLEL_CODE_SIGN=true" +export "FLUTTER_BUILD_DIR=build" +export "FLUTTER_BUILD_NAME=0.1.0" +export "FLUTTER_BUILD_NUMBER=0.1.0" +export "DART_OBFUSCATION=false" +export "TRACK_WIDGET_CREATION=true" +export "TREE_SHAKE_ICONS=false" +export "PACKAGE_CONFIG=.dart_tool/package_config.json"