From ccb859ed9e4e30ef4a1c2c6610e51c357d48d2fb Mon Sep 17 00:00:00 2001 From: Vincent Velociter Date: Wed, 3 Jan 2024 11:20:17 +0100 Subject: [PATCH] Switch to flutter beta channel --- .github/workflows/build.yml | 2 +- .github/workflows/deploy_play_store.yml | 2 +- .github/workflows/test.yml | 2 +- README.md | 20 ++++++----- pubspec.lock | 48 ++++++++++++++++--------- 5 files changed, 46 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96119f232..f8382b164 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: - name: Install Flutter uses: subosito/flutter-action@v2 with: - channel: stable + channel: beta - run: flutter doctor -v - name: Checkout mobile code diff --git a/.github/workflows/deploy_play_store.yml b/.github/workflows/deploy_play_store.yml index e2d5d9789..6c9830db1 100644 --- a/.github/workflows/deploy_play_store.yml +++ b/.github/workflows/deploy_play_store.yml @@ -28,7 +28,7 @@ jobs: - name: Install Flutter uses: subosito/flutter-action@v2 with: - channel: stable + channel: beta - run: flutter doctor -v - name: Checkout mobile code diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f9c2855d..58a99d035 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - channel: stable + channel: beta - run: flutter doctor -v - name: Install dependencies diff --git a/README.md b/README.md index f096a43b7..c4c11cb20 100644 --- a/README.md +++ b/README.md @@ -11,16 +11,17 @@ If you want to contribute, please read the [contributing guide](./CONTRIBUTING.m ## Setup -Follow the [official flutter guide](https://docs.flutter.dev/get-started/install). +1. Follow the [Flutter guide](https://docs.flutter.dev/get-started/install) to + install Flutter and the platform of you choice (iOS and/or Android). **Note, if you're on Linux**, you should install flutter manually because there is an [issue](https://github.com/lichess-org/mobile/issues/123) with snapd when building Stockfish. Note that this project is not meant to be run on web platform. +2. Switch to the beta channel by running `flutter channel beta` and `flutter + upgrade` +3. Ensure Flutter is correctly configured by running `flutter doctor` -**Note, if you're on Linux**, you should install flutter manually because there is an [issue](https://github.com/lichess-org/mobile/issues/123) with snapd when building Stockfish. +### Flutter version -This project is meant to run on iOS and Android, so you need to follow the -"Platform setup" section of that guide to install the iOS and/or Android platform. +While the app is in beta we'll use the `beta` channel of Flutter. -Note that this project is not meant to be run on web platform. - -### Using FVM for Flutter Version Management +#### Flutter Version Management If you want to use FVM to manage your Flutter versions effectively, please consult the [FVM (Flutter Version Management) guide](https://fvm.app/docs/getting_started/installation) for comprehensive instructions on installing Flutter on your specific operating system. @@ -37,7 +38,8 @@ The mobile application is configured by default to target `http://127.0.0.1:9663 ## Run -First run the code generator: +We don't commit generated code to the repository. So you need to run the code +generator first: ```sh flutter pub get @@ -46,7 +48,7 @@ dart run build_runner watch Check you have some connected device with: `flutter devices`. -If you target an android device you need to run these commands so the device can reach the local lila instance: +If you target an android emulator you need to run these commands so the device can reach the local lila instance: ```sh adb reverse tcp:9663 tcp:9663 diff --git a/pubspec.lock b/pubspec.lock index db79847df..4b63ee578 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "65.0.0" _flutterfire_internals: dependency: transitive description: @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.3.0" analyzer_plugin: dependency: transitive description: @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: archive - sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b" + sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d" url: "https://pub.dev" source: hosted - version: "3.4.9" + version: "3.4.10" args: dependency: transitive description: @@ -765,6 +765,22 @@ packages: url: "https://pub.dev" source: hosted version: "6.7.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "04be76c4a4bb50f14904e64749237e541e7c7bcf7ec0b196907322ab5d2fc739" + url: "https://pub.dev" + source: hosted + version: "9.0.16" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: b06739349ec2477e943055aea30172c5c7000225f79dad4702e2ec0eda79a6ff + url: "https://pub.dev" + source: hosted + version: "1.0.5" lint: dependency: "direct dev" description: @@ -793,18 +809,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: "direct main" description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" mime: dependency: transitive description: @@ -1400,10 +1416,10 @@ packages: dependency: transitive description: name: uuid - sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" + sha256: bb55f38968b9427ce5dcdb8aaaa41049282195e0cfa4cf48593572fa3d1f36bc url: "https://pub.dev" source: hosted - version: "4.2.2" + version: "4.3.1" vector_math: dependency: transitive description: @@ -1456,18 +1472,18 @@ packages: dependency: transitive description: name: web - sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "0.4.0" web_socket_channel: dependency: "direct main" description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" win32: dependency: transitive description: