diff --git a/.gemini/settings.json b/.gemini/settings.json
index 715d896d9..ab9a0fc75 100644
--- a/.gemini/settings.json
+++ b/.gemini/settings.json
@@ -1,4 +1,7 @@
{
+ "context": {
+ "fileName": "/.prompts/llm.md"
+ },
"mcpServers": {
"dart": {
"command": "dart",
@@ -6,6 +9,5 @@
"mcp-server"
]
}
- },
- "contextFileName": "/.prompts/llm.md"
-}
+ }
+}
\ No newline at end of file
diff --git a/.gemini/settings.json.orig b/.gemini/settings.json.orig
new file mode 100644
index 000000000..715d896d9
--- /dev/null
+++ b/.gemini/settings.json.orig
@@ -0,0 +1,11 @@
+{
+ "mcpServers": {
+ "dart": {
+ "command": "dart",
+ "args": [
+ "mcp-server"
+ ]
+ }
+ },
+ "contextFileName": "/.prompts/llm.md"
+}
diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
index 7d0d76459..c6445bea5 100644
--- a/.github/dependabot.yaml
+++ b/.github/dependabot.yaml
@@ -281,6 +281,12 @@ updates:
interval: "daily"
labels:
- "autosubmit"
+ - package-ecosystem: "pub"
+ directory: "simple_sdf/"
+ schedule:
+ interval: "daily"
+ labels:
+ - "autosubmit"
- package-ecosystem: "pub"
directory: "simple_shader/"
schedule:
diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml
deleted file mode 100644
index 2d441fed3..000000000
--- a/.github/workflows/beta.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-name: Beta Branch CI
-
-# Declare default permissions as read only.
-permissions: read-all
-
-on:
- push:
- branches: [beta]
- pull_request:
- branches: [beta]
- workflow_dispatch:
-
-defaults:
- run:
- shell: bash
-
-jobs:
- # Test all samples on the beta channel. Since the beta channel will soon be
- # promoted to stable, this branch is only concerned with the beta.
- Beta-CI:
- name: Test flutter beta channel
- runs-on: ${{ matrix.os }}
- if: github.repository == 'flutter/samples'
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
- steps:
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
- with:
- distribution: 'zulu'
- java-version: '17'
- - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
- with:
- channel: beta
- - run: flutter pub get && dart tool/ci_script.dart
-
- # Verify the Android add-to-app samples build and pass tests with the beta
- # channel.
- android-build:
- runs-on: ubuntu-latest
- if: github.repository == 'flutter/samples'
- steps:
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
- with:
- distribution: 'zulu'
- java-version: '17'
- - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
- with:
- channel: beta
- - run: ./tool/android_ci_script.sh
-
- # Verify the iOS add-to-app samples build and pass tests with the beta
- # channel.
- # ios-build:
- # runs-on: macos-latest
- # if: github.repository == 'flutter/samples'
- # steps:
- # - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- # - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
- # with:
- # distribution: 'zulu'
- # java-version: '17'
- # - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
- # with:
- # channel: beta
- # - run: ./tool/ios_ci_script.sh
diff --git a/.github/workflows/gemini-cli.yml b/.github/workflows/gemini-cli.yml
index ed4e1fdfa..b4feae184 100644
--- a/.github/workflows/gemini-cli.yml
+++ b/.github/workflows/gemini-cli.yml
@@ -91,7 +91,7 @@ jobs:
id: 'generate_token'
if: |-
${{ vars.APP_ID }}
- uses: 'actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42' # ratchet:actions/create-github-app-token@v2
+ uses: 'actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1' # ratchet:actions/create-github-app-token@v2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
diff --git a/.github/workflows/gemini-issue-automated-triage.yml b/.github/workflows/gemini-issue-automated-triage.yml
index c76997958..9bc4ec054 100644
--- a/.github/workflows/gemini-issue-automated-triage.yml
+++ b/.github/workflows/gemini-issue-automated-triage.yml
@@ -50,7 +50,7 @@ jobs:
id: 'generate_token'
if: |-
${{ vars.APP_ID }}
- uses: 'actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42' # ratchet:actions/create-github-app-token@v2
+ uses: 'actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1' # ratchet:actions/create-github-app-token@v2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
diff --git a/.github/workflows/gemini-issue-scheduled-triage.yml b/.github/workflows/gemini-issue-scheduled-triage.yml
index 10f002378..2856ce4d2 100644
--- a/.github/workflows/gemini-issue-scheduled-triage.yml
+++ b/.github/workflows/gemini-issue-scheduled-triage.yml
@@ -32,7 +32,7 @@ jobs:
id: 'generate_token'
if: |-
${{ vars.APP_ID }}
- uses: 'actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42' # ratchet:actions/create-github-app-token@v2
+ uses: 'actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1' # ratchet:actions/create-github-app-token@v2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
diff --git a/.github/workflows/gemini-pr-review.yml b/.github/workflows/gemini-pr-review.yml
index 0405735b1..e9ae2a48d 100644
--- a/.github/workflows/gemini-pr-review.yml
+++ b/.github/workflows/gemini-pr-review.yml
@@ -72,7 +72,7 @@ jobs:
id: 'generate_token'
if: |-
${{ vars.APP_ID }}
- uses: 'actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42' # ratchet:actions/create-github-app-token@v2
+ uses: 'actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1' # ratchet:actions/create-github-app-token@v2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1b84ef177..689aa71fa 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- flutter_version: [stable, beta]
+ flutter_version: [stable]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 57c7199f7..4d99c2db2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -20,7 +20,7 @@ _See also: [Flutter's code of conduct]_
## Is this the right place for your sample?
In most cases, if you've written a great sample app, it should be maintained
-in your own repoistory. You can maintain your sample app in your own repo
+in your own repository. You can maintain your sample app in your own repo
(or with another source control provider) and still be as important a part of
the Flutter-verse as anything you see here.
@@ -99,7 +99,7 @@ Validate your idea against the following criteria:
1. **The sample solves a single problem or set of tightly coupled problems.**
If not, you're either writing a Demo app or an extended sample. These might
- still be appropriate for the samples repos, but need to be justified.
+ still be appropriate for the sample repos, but need to be justified.
2. **The target audience for the sample isn’t beginners.**
3. **The sample code isn’t so complex that it needs video or text explanation.**
@@ -115,10 +115,10 @@ Validate your idea against the following criteria:
6. **The topic doesn’t have crossover with any existing samples.**
If it does, ensure that it wouldn't be better to update the existing sample.
-## What are your ongoing maintenance resposibilities?
+## What are your ongoing maintenance responsibilities?
All sample code has an unbound maintenance cost. If you cannot commit to maintaining a sample
-(for the forseeable future, barring changes in life circumstances), then you should talk to the
+(for the foreseeable future, barring changes in life circumstances), then you should talk to the
[primary maintainers] of this project, particularly @ericwindmill, before submitting a PR.
Any new sample **must** have a CODEOWNER, and that owner is most likely you (the author).
diff --git a/README.md b/README.md
index 7cc45ae94..2e2f645d0 100644
--- a/README.md
+++ b/README.md
@@ -17,26 +17,19 @@ Googler's, you can freely add samples to the [flutter/demos] repository.
### Quickstarts
-* [`asset_transformation`] - Demonstrates how to transform images' color scales and formats.
+* [`asset_transformation`] - Demonstrates how to transform images' color scales and formats.
* [`background_isolate_channels`] - Demonstrates how to use long-lived isolates.
-* [`code_sharing`] - Demonstrates how to share business logic between Flutter client and Dart server using [`package:shelf`] )
-* [`context_menus`] - This sample shows how to create and customize cross-platform context menus, such as the text selection toolbar on mobile or the right click menu on desktop.
+* [`cupertino_gallery`] - A gallery of Cupertino widgets, demonstrating iOS-style UI components in Flutter.
+* [`date_planner`] - An in-progress exploration of an iOS-style Date Planner app, similar to the SwiftUI Tutorial app.
* [`desktop_photo_search`] - Demonstrates desktop features in both Material and FluentUI design systems.
* [`dynamic_theme`] - A developer sample demonstrating how to call on-device Flutter APIs based on output from the Gemini API.
* [`form_app`] - A sample demonstrating different types of forms and best practices.
-* [`game_template`] - (**note: deprecated!**) A starter game in Flutter with all the bells and whistles of a mobile (iOS & Android) game.
-* [`gemini_tasks`] - A developer sample written in Flutter demonstrating how to interact with a to-do list in natural language using the Gemini API.
* [`google_maps`] - Demonstrates the Google Maps for Flutter plugin.
-* [`infinite_list`] - A Flutter sample app that shows an implementation of the "infinite list" UX pattern.
-* [`isolate_example`] - A sample application that demonstrate best practices when using [isolates].
* [`navigation_and_routing`] - A sample that shows how to use [go_router] API to handle common navigation scenarios.
-* [`place_tracker`] - A sample place tracking app that uses the [google_maps_flutter plugin].
+* [`pedometer`] - A demo of a plugin that leverages FFIgen & JNIgen to call platform APIs directly from Dart code.
* [`platform_design`] - This sample project shows a Flutter app that maximizes application code reuse while adhering to different design patterns on Android and iOS.
-* [`provider_counter`] - The starter Flutter application, but using [package:provider] to manage state.
-* [`provider_shopper`] - A Flutter sample app that shows a state management approach using [package:provider].
+* [`simple_sdf`] - A simple [Flutter fragment shaders] sample project showing how to draw Signed Distance Functions with the FragmentShader API.
* [`simple_shader`] - A simple [Flutter fragment shaders] sample project.
-* [`simplistic_calculator`] - A calculator to demonstrate a simple start for a desktop Flutter app.
-* [`simplistic_editor`] - This sample text editor showcases the use of [TextEditingDeltas] and a DeltaTextInputClient to expand and contract styled ranges of text.
* [`testing_app`] - A sample app that shows different types of testing in Flutter.
* [`web_embedding`] - This directory contains examples of how to embed Flutter in web apps (without iframes).
* [`element_embedding_demo`] - Modifies the index.html of a flutter app so it is launched in a custom hostElement. This is the most basic embedding example.
@@ -73,15 +66,14 @@ Googler's, you can freely add samples to the [flutter/demos] repository.
### Demo apps
* [`compass_app`] - A sample application that implements MVVM architecture.
-* [`deeplink_store_example`] - A demo app that implements deep-linking with go_router.
* [`veggie_seasons`] - A demo application.
## Flutter sample code
-Samples are **correct and concise code** that developers
-can **quickly understand** and **easily reuse** with minimal side effects.
-Samples teach developers how to be successful using Flutter and Dart.
-They are maintained on an ongoing basis
+Samples are **correct and concise code** that developers
+can **quickly understand** and **easily reuse** with minimal side effects.
+Samples teach developers how to be successful using Flutter and Dart.
+They are maintained on an ongoing basis
to reflect changing APIs and best practices.
### Types of samples
@@ -90,18 +82,18 @@ There are two types of sample code in this repository:
* **Quickstarts** provide a starting point to extend. They answer the question,
"What is the minimal amount of code needed to implement this feature?"
-* **Demo apps** are meant to be built and ran. They demo the _product_,
+* **Demo apps** are meant to be built and ran. They demo the _product_,
not how to write code.
A majority of samples in this repository are quickstarts.
## Usage
-Every sample in this repo is fully runnable. To run an example,
-use `flutter run` inside that example's directory.
+Every sample in this repo is fully runnable. To run an example,
+use `flutter run` inside that example's directory.
See the [getting started guide] to install the `flutter` tool.
-> [!IMPORTANT]
+> [!IMPORTANT]
> If you want to run an add-to-app sample, there are additional requirements.
> We suggest reading the [add-to-app documentation].
@@ -123,24 +115,17 @@ If you run into a bug in one of the samples, please file an issue in the
[`asset_transformation`]: ./asset_transformation
[`background_isolate_channels`]: ./background_isolate_channels
-[`code_sharing`]: ./code_sharing
-[`context_menus`]: ./context_menus
+[`cupertino_gallery`]: ./cupertino_gallery
+[`date_planner`]: ./date_planner
[`desktop_photo_search`]: ./desktop_photo_search
[`dynamic_theme`]: ./dynamic_theme
[`form_app`]: ./form_app
-[`game_template`]: ./game_template
-[`gemini_tasks`]: ./gemini_tasks
[`google_maps`]: ./google_maps
-[`infinite_list`]: ./infinite_list
-[`isolate_example`]: ./isolate_example
[`navigation_and_routing`]: ./navigation_and_routing
-[`place_tracker`]: ./place_tracker
+[`pedometer`]: ./pedometer
[`platform_design`]: ./platform_design
-[`provider_counter`]: ./provider_counter
-[`provider_shopper`]: ./provider_shopper
+[`simple_sdf`]: ./simple_sdf
[`simple_shader`]: ./simple_shader
-[`simplistic_calculator`]: ./simplistic_calculator
-[`simplistic_editor`]: ./simplistic_editor
[`testing_app`]: ./testing_app
[`web_embedding`]: ./web_embedding
[`element_embedding_demo`]: ./web_embedding/element_embedding_demo
@@ -159,7 +144,6 @@ If you run into a bug in one of the samples, please file an issue in the
[`animations`]: ./animations
[`material_3_demo`]: ./material_3_demo
[`compass_app`]: ./compass_app
-[`deeplink_store_example`]: ./deeplink_store_example
[`veggie_seasons`]: ./veggieseasons
[Flutter]: https://flutter.dev
diff --git a/add_to_app/books/flutter_module_books/lib/main.dart b/add_to_app/books/flutter_module_books/lib/main.dart
index 3ef7fa7b5..99da87c0a 100644
--- a/add_to_app/books/flutter_module_books/lib/main.dart
+++ b/add_to_app/books/flutter_module_books/lib/main.dart
@@ -66,8 +66,6 @@ class _BookDetailState extends State {
// Registering this `FlutterBookApiHandler` class lets us receive incoming
// calls from the platform.
- // TODO(gaaclarke): make the setup method an instance method so it's
- // injectable https://github.com/flutter/flutter/issues/59119.
FlutterBookApi.setup(
FlutterBookApiHandler(
// The `FlutterBookApi` just has one method. Just give a closure for that
@@ -82,7 +80,6 @@ class _BookDetailState extends State {
this.book!.title = titleTextController.text;
});
// Subtitle could be null.
- // TODO(gaaclarke): https://github.com/flutter/flutter/issues/59118.
subtitleTextController.text = book.subtitle ?? '';
subtitleTextController.addListener(() {
this.book!.subtitle = subtitleTextController.text;
diff --git a/add_to_app/fullscreen/README.md b/add_to_app/fullscreen/README.md
index 8abc792c8..0f378d5ba 100644
--- a/add_to_app/fullscreen/README.md
+++ b/add_to_app/fullscreen/README.md
@@ -5,7 +5,7 @@ Embeds a full screen instance of Flutter into an existing iOS or Android app.
## Description
These apps showcase a relatively straightforward integration of
-`flutter_module`:
+`flutter_module_fullscreen`:
* The Flutter module is built along with the app when the app is built.
* The Flutter engine is warmed up at app launch.
@@ -27,7 +27,7 @@ you're building for both iOS and Android, with both toolchains installed):
#!/bin/bash
set -e
- cd flutter_module/
+ cd flutter_module_fullscreen/
flutter pub get
# For Android builds:
diff --git a/add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml b/add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml
index 12dc6f24d..a9e3aab8b 100644
--- a/add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml
+++ b/add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml
@@ -1,8 +1,10 @@
-
-
-
-
-
+
+
+
+
diff --git a/add_to_app/fullscreen/android_fullscreen/app/src/debug/res/xml/network_security_config.xml b/add_to_app/fullscreen/android_fullscreen/app/src/debug/res/xml/network_security_config.xml
new file mode 100644
index 000000000..3032fe019
--- /dev/null
+++ b/add_to_app/fullscreen/android_fullscreen/app/src/debug/res/xml/network_security_config.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/add_to_app/fullscreen/android_fullscreen/settings.gradle b/add_to_app/fullscreen/android_fullscreen/settings.gradle
index 19816f4e8..97e95d4c1 100644
--- a/add_to_app/fullscreen/android_fullscreen/settings.gradle
+++ b/add_to_app/fullscreen/android_fullscreen/settings.gradle
@@ -3,5 +3,5 @@ rootProject.name='AndroidFullScreen'
setBinding(new Binding([gradle: this]))
evaluate(new File(
settingsDir.parentFile,
- 'flutter_module/.android/include_flutter.groovy'
+ 'flutter_module_fullscreen/.android/include_flutter.groovy'
))
\ No newline at end of file
diff --git a/add_to_app/fullscreen/flutter_module_fullscreen/README.md b/add_to_app/fullscreen/flutter_module_fullscreen/README.md
index 092c7d11a..b1513f2d5 100644
--- a/add_to_app/fullscreen/flutter_module_fullscreen/README.md
+++ b/add_to_app/fullscreen/flutter_module_fullscreen/README.md
@@ -1,4 +1,4 @@
-# flutter_module
+# flutter_module_fullscreen
An example Flutter module used in the Flutter add-to-app samples. For more
information on how to use it, see the [README.md](../README.md) parent
diff --git a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen.xcodeproj/project.pbxproj b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen.xcodeproj/project.pbxproj
index c6c8cf44a..a5eaf5f35 100644
--- a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen.xcodeproj/project.pbxproj
+++ b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 51;
+ objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -175,11 +175,11 @@
buildConfigurationList = 26DF66FC233136470076ACA6 /* Build configuration list for PBXNativeTarget "IOSFullScreen" */;
buildPhases = (
9AB0355F19DEFA7A4ECCC777 /* [CP] Check Pods Manifest.lock */,
- 79D4306CA9A49DFDB68D2B71 /* [CP-User] Run Flutter Build flutter_module Script */,
+ 79D4306CA9A49DFDB68D2B71 /* [CP-User] Run Flutter Build flutter_module_fullscreen Script */,
26DF66D0233136460076ACA6 /* Sources */,
26DF66D1233136460076ACA6 /* Frameworks */,
26DF66D2233136460076ACA6 /* Resources */,
- D1C2795C35803D65EBC8B371 /* [CP] Embed Pods Frameworks */,
+ B9B95ECDA31F21359E3D008B /* [CP-User] Embed Flutter Build flutter_module_fullscreen Script */,
);
buildRules = (
);
@@ -321,15 +321,15 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
- 79D4306CA9A49DFDB68D2B71 /* [CP-User] Run Flutter Build flutter_module Script */ = {
+ 79D4306CA9A49DFDB68D2B71 /* [CP-User] Run Flutter Build flutter_module_fullscreen Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
- name = "[CP-User] Run Flutter Build flutter_module Script";
+ name = "[CP-User] Run Flutter Build flutter_module_fullscreen Script";
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "set -e\nset -u\nsource \"${SRCROOT}/../flutter_module/.ios/Flutter/flutter_export_environment.sh\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build";
+ shellScript = "set -e\nset -u\nsource \"${SRCROOT}/../flutter_module_fullscreen/.ios/Flutter/flutter_export_environment.sh\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build";
};
9AB0355F19DEFA7A4ECCC777 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
@@ -353,6 +353,16 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
+ B9B95ECDA31F21359E3D008B /* [CP-User] Embed Flutter Build flutter_module_fullscreen Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ name = "[CP-User] Embed Flutter Build flutter_module_fullscreen Script";
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "set -e\nset -u\nsource \"${SRCROOT}/../flutter_module_fullscreen/.ios/Flutter/flutter_export_environment.sh\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh embed_and_thin";
+ };
C73209EF6AC199B8584ED9E2 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -375,23 +385,6 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
- D1C2795C35803D65EBC8B371 /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-IOSFullScreen/Pods-IOSFullScreen-frameworks-${CONFIGURATION}-input-files.xcfilelist",
- );
- name = "[CP] Embed Pods Frameworks";
- outputFileListPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-IOSFullScreen/Pods-IOSFullScreen-frameworks-${CONFIGURATION}-output-files.xcfilelist",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-IOSFullScreen/Pods-IOSFullScreen-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -578,6 +571,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "IOSFullScreen/Info-$(CONFIGURATION).plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -596,6 +590,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "IOSFullScreen/Info-$(CONFIGURATION).plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
diff --git a/add_to_app/fullscreen/ios_fullscreen/Podfile b/add_to_app/fullscreen/ios_fullscreen/Podfile
index 4140cea7d..1daf6b963 100644
--- a/add_to_app/fullscreen/ios_fullscreen/Podfile
+++ b/add_to_app/fullscreen/ios_fullscreen/Podfile
@@ -1,7 +1,7 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
-flutter_application_path = '../flutter_module'
+flutter_application_path = '../flutter_module_fullscreen'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'IOSFullScreen' do
diff --git a/ai_recipe_generation/README.md b/ai_recipe_generation/README.md
deleted file mode 100644
index 1336a6878..000000000
--- a/ai_recipe_generation/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Sample retired
-
-The `ai_recipe_generation` sample has been retired.
-
-The sample was written for an event (Google IO 2024). Per our policies,
-we don't maintain samples that are tied to events.
-
-This sample has been copied to [another repository](https://github.com/ericwindmill/gemini_recipe_generation). It will not be updated to reflect changes to Gemini.
-
-## Other Gemini resources
-
-The following resources can assist you in integrating Gemini with Flutter:
-
-* [gemini_tasks sample](https://github.com/flutter/samples/tree/main/gemini_tasks) is a Gemini sample in this repository.
-* [google_generative_ai package](https://pub.dev/packages/google_generative_ai) is the package that Flutter apps use to integrate with gemini, and it has additional samples.
-* The [google-gemini github](https://github.com/google-gemini) has additional Flutter samples.
\ No newline at end of file
diff --git a/android_splash_screen/android/app/build.gradle b/android_splash_screen/android/app/build.gradle
index 8c01625b4..958b5b065 100644
--- a/android_splash_screen/android/app/build.gradle
+++ b/android_splash_screen/android/app/build.gradle
@@ -1,3 +1,10 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
@@ -21,12 +28,9 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
android {
- compileSdkVersion 31
+ namespace "com.example.splash_screen_sample"
+ compileSdkVersion 34
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -35,12 +39,21 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.splash_screen_sample"
- minSdkVersion 21
- targetSdkVersion 30
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = JavaVersion.VERSION_1_8
+ }
+
buildTypes {
release {
// TODO: Add your own signing config for the release build.
@@ -55,7 +68,6 @@ flutter {
}
dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.core:core-splashscreen:1.0.0-alpha02"
implementation "androidx.core:core:1.5.0-alpha05"
implementation "androidx.core:core-ktx:1.6.0"
diff --git a/android_splash_screen/android/app/src/main/kotlin/com/example/splash_screen_sample/MainActivity.kt b/android_splash_screen/android/app/src/main/kotlin/com/example/splash_screen_sample/MainActivity.kt
index d3efc96d7..e7d858e69 100644
--- a/android_splash_screen/android/app/src/main/kotlin/com/example/splash_screen_sample/MainActivity.kt
+++ b/android_splash_screen/android/app/src/main/kotlin/com/example/splash_screen_sample/MainActivity.kt
@@ -203,9 +203,9 @@ class MainActivity : FlutterActivity() {
}
private companion object {
- const val SPLASHSCREEN_ALPHA_ANIMATION_DURATION = 500 as Long
- const val SPLASHSCREEN_TY_ANIMATION_DURATION = 500 as Long
- const val SPLASHSCREEN_FINAL_ANIMATION_ALPHA_ANIMATION_DURATION = 250 as Long
- const val WAIT_FOR_AVD_TO_FINISH = false
+ const val SPLASHSCREEN_ALPHA_ANIMATION_DURATION = 500L
+ const val SPLASHSCREEN_TY_ANIMATION_DURATION = 500L
+ const val SPLASHSCREEN_FINAL_ANIMATION_ALPHA_ANIMATION_DURATION = 250L
+ const val WAIT_FOR_AVD_TO_FINISH = false
}
}
diff --git a/android_splash_screen/android/build.gradle b/android_splash_screen/android/build.gradle
index c45f25cc9..d2ffbffa4 100644
--- a/android_splash_screen/android/build.gradle
+++ b/android_splash_screen/android/build.gradle
@@ -1,16 +1,3 @@
-buildscript {
- ext.kotlin_version = '1.5.31'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:4.1.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
allprojects {
repositories {
google()
@@ -18,12 +5,14 @@ allprojects {
}
}
-rootProject.buildDir = '../build'
+rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
- project.evaluationDependsOn(':app')
+}
+subprojects {
+ project.evaluationDependsOn(":app")
}
-task clean(type: Delete) {
+tasks.register("clean", Delete) {
delete rootProject.buildDir
}
diff --git a/android_splash_screen/android/gradle/wrapper/gradle-wrapper.properties b/android_splash_screen/android/gradle/wrapper/gradle-wrapper.properties
index bc6a58afd..7aeeb11c6 100644
--- a/android_splash_screen/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android_splash_screen/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
diff --git a/android_splash_screen/android/settings.gradle b/android_splash_screen/android/settings.gradle
index 44e62bcf0..4f520718d 100644
--- a/android_splash_screen/android/settings.gradle
+++ b/android_splash_screen/android/settings.gradle
@@ -1,11 +1,25 @@
-include ':app'
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }()
-def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
-def properties = new Properties()
+ includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
-assert localPropertiesFile.exists()
-localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
-def flutterSdkPath = properties.getProperty("flutter.sdk")
-assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
-apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
+plugins {
+ id "dev.flutter.flutter-plugin-loader" version "1.0.0"
+ id "com.android.application" version "8.6.0" apply false
+ id "org.jetbrains.kotlin.android" version "2.1.0" apply false
+}
+
+include ":app"
diff --git a/animations/lib/main.dart b/animations/lib/main.dart
index fda00fdf6..21150f483 100644
--- a/animations/lib/main.dart
+++ b/animations/lib/main.dart
@@ -2,43 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import 'dart:io' show Platform;
-
-import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
-import 'package:window_size/window_size.dart';
import 'src/basics/basics.dart';
import 'src/misc/misc.dart';
void main() {
- setupWindow();
runApp(const AnimationSamples());
}
-const double windowWidth = 480;
-const double windowHeight = 854;
-
-void setupWindow() {
- if (!kIsWeb &&
- (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
- WidgetsFlutterBinding.ensureInitialized();
- setWindowTitle('Animation Samples');
- setWindowMinSize(const Size(windowWidth, windowHeight));
- setWindowMaxSize(const Size(windowWidth, windowHeight));
- getCurrentScreen().then((screen) {
- setWindowFrame(
- Rect.fromCenter(
- center: screen!.frame.center,
- width: windowWidth,
- height: windowHeight,
- ),
- );
- });
- }
-}
-
class Demo {
final String name;
final String route;
diff --git a/animations/lib/src/misc/animated_list.dart b/animations/lib/src/misc/animated_list.dart
index 6e774d990..0144e6f71 100644
--- a/animations/lib/src/misc/animated_list.dart
+++ b/animations/lib/src/misc/animated_list.dart
@@ -49,6 +49,7 @@ class _AnimatedListDemoState extends State {
parent: animation,
curve: const Interval(0.0, 1.0),
),
+ // ignore: deprecated_member_use
axisAlignment: 0.0,
child: _buildItem(user),
),
diff --git a/animations/linux/flutter/generated_plugin_registrant.cc b/animations/linux/flutter/generated_plugin_registrant.cc
index 9f8c70320..e71a16d23 100644
--- a/animations/linux/flutter/generated_plugin_registrant.cc
+++ b/animations/linux/flutter/generated_plugin_registrant.cc
@@ -6,10 +6,6 @@
#include "generated_plugin_registrant.h"
-#include
void fl_register_plugins(FlPluginRegistry* registry) {
- g_autoptr(FlPluginRegistrar) window_size_registrar =
- fl_plugin_registry_get_registrar_for_plugin(registry, "WindowSizePlugin");
- window_size_plugin_register_with_registrar(window_size_registrar);
}
diff --git a/animations/linux/flutter/generated_plugins.cmake b/animations/linux/flutter/generated_plugins.cmake
index 12c7443ed..2e1de87a7 100644
--- a/animations/linux/flutter/generated_plugins.cmake
+++ b/animations/linux/flutter/generated_plugins.cmake
@@ -3,7 +3,6 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
- window_size
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
diff --git a/animations/macos/Flutter/GeneratedPluginRegistrant.swift b/animations/macos/Flutter/GeneratedPluginRegistrant.swift
index f5cde84ba..cccf817a5 100644
--- a/animations/macos/Flutter/GeneratedPluginRegistrant.swift
+++ b/animations/macos/Flutter/GeneratedPluginRegistrant.swift
@@ -5,8 +5,6 @@
import FlutterMacOS
import Foundation
-import window_size
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
- WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin"))
}
diff --git a/animations/pubspec.yaml b/animations/pubspec.yaml
index b20928bd1..35403b564 100644
--- a/animations/pubspec.yaml
+++ b/animations/pubspec.yaml
@@ -12,10 +12,6 @@ dependencies:
sdk: flutter
flutter_animate: ^4.1.0
go_router: ^16.0.0
- window_size: # plugin is not yet part of the flutter framework
- git:
- url: https://github.com/google/flutter-desktop-embedding.git
- path: plugins/window_size
dev_dependencies:
analysis_defaults:
diff --git a/animations/windows/flutter/generated_plugin_registrant.cc b/animations/windows/flutter/generated_plugin_registrant.cc
index 9372fc507..8b6d4680a 100644
--- a/animations/windows/flutter/generated_plugin_registrant.cc
+++ b/animations/windows/flutter/generated_plugin_registrant.cc
@@ -6,9 +6,6 @@
#include "generated_plugin_registrant.h"
-#include
void RegisterPlugins(flutter::PluginRegistry* registry) {
- WindowSizePluginRegisterWithRegistrar(
- registry->GetRegistrarForPlugin("WindowSizePlugin"));
}
diff --git a/animations/windows/flutter/generated_plugins.cmake b/animations/windows/flutter/generated_plugins.cmake
index ff2147b2c..b93c4c30c 100644
--- a/animations/windows/flutter/generated_plugins.cmake
+++ b/animations/windows/flutter/generated_plugins.cmake
@@ -3,7 +3,6 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
- window_size
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
diff --git a/code_sharing/Dockerfile b/code_sharing/Dockerfile
deleted file mode 100644
index f41dc30c6..000000000
--- a/code_sharing/Dockerfile
+++ /dev/null
@@ -1,26 +0,0 @@
-# Use latest stable channel SDK.
-FROM dart:stable AS build
-
-# Copy shared code.
-WORKDIR /shared
-COPY /shared/. .
-
-# Copy server code.
-WORKDIR /server
-COPY /server/. .
-
-# Resolve app dependencies.
-RUN dart pub get
-
-# AOT compile app.
-RUN dart compile exe bin/server.dart -o bin/server
-
-# Build minimal serving image from AOT-compiled `/server`
-# and the pre-built AOT-runtime in the `/runtime/` directory of the base image.
-FROM scratch
-COPY --from=build /runtime/ /
-COPY --from=build /server/bin/server /app/bin/
-
-# Start server.
-EXPOSE 8080
-CMD ["/app/bin/server"]
diff --git a/code_sharing/Makefile b/code_sharing/Makefile
deleted file mode 100644
index 22aecc54d..000000000
--- a/code_sharing/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# MacOS/Linux-only. Sadly, this is only helpful as documentation for Windows.
-
-# LOCAL / DOCKER
-run-server:
- # Depends on `make build`
- docker-compose up -d
-
-stop-server:
- docker-compose stop
-
-# Flutter
-flutter-local:
- cd client && flutter run -d macos
-
-test:
- (cd shared && dart test)
- (cd server && dart test)
- (cd client && flutter test)
-
-# Docker
-build:
- (cd server && dart pub get)
- docker build . -t codesharingserver
-
diff --git a/code_sharing/README.md b/code_sharing/README.md
deleted file mode 100644
index f11edba49..000000000
--- a/code_sharing/README.md
+++ /dev/null
@@ -1,191 +0,0 @@
-
-# Code Sharing
-
-
-
-A full-stack Dart application using Flutter on the client and
-[`shelf`](https://pub.dev/packages/shelf) on the server. The Flutter app
-itself is still the counter app, but the actual number is stored on the server
-and incremented over HTTP using transport data classes understood by both the
-Flutter client and shelf server.
-
-## Goals
-
-The goal of this sample is to demonstrate the mechanics of sharing business
-logic between a Flutter client and a Dart server. The sample also includes a
-slightly modified Dockerfile which is required to build a Docker image from
-a Dart app containing nested packages.
-
-## Project Structure
-
-The sample's project structure is as follows:
-
-```
-code_sharing/
- # Flutter app
- client/
- lib/
- ...
- pubspec.yaml
- ...
- # Shelf
- server/
- bin/
- server.dart
- pubspec.yaml
- Dockerfile
- # Common business logic
- shared/
- pubspec.yaml
- lib/
- ...
-```
-
-## Recreating this on your own
-
-Recreating this introductory project for yourself can be done in several steps.
-
-1. Create a parent directory, likely sharing a name with your project or
-product, which will contain everything.
-2. Within that directory, run `flutter create client`. You may also name this
-Flutter project `app`, `mobile`, `-app` or anything else that
-seems appropriate. At this point, your folder structure should look like this:
- ```
- my_project/
- client/
- lib/
- main.dart
- pubspec.yaml
- ...
- ```
-3. From the same location where you ran `flutter create`, run
-`dart create -t server-shelf server`. You may also name this Shelf project,
-`backend`, `api`, `-server`, or anything else that seems
-appropriate. At this point, your folder structure should look like this:
- ```
- my_project/
- client/
- lib/
- main.dart
- pubspec.yaml
- ...
- server/
- bin/
- server.dart
- Dockerfile
- pubspec.yaml
- ...
- ```
-4. Enter your server directory (`cd server`), and run `dart create -t package shared`.
-You may also name this package `common`, `domain`, `-shared`, or
-anything else that seems appropriate. At this point, your folder structure should
-resemble the sample:
- ```
- my_project/
- client/
- lib/
- main.dart
- pubspec.yaml
- ...
- server/
- bin/
- server.dart
- shared/
- lib/
- src/
- ...
- shared.dart
- pubspec.yaml
- ...
- Dockerfile
- pubspec.yaml
- ...
- ```
-5. Next, begin granting access to your shared code by making the following
-edits to your Flutter app's `pubspec.yaml` file. Open that file
-(`client/pubspec.yaml`) and add the following dependency under the
-`dependencies` block:
-
- ```
- dependencies:
- # Add these two lines:
- shared:
- path: ../server/shared
- ```
-6. Next, finish granting access to your shared code by making the following
-edits to your server's `pubspec.yaml` file. Open that file
-(`server/pubspec.yaml`) and add the following dependency under the
-`dependencies` block:
-
- ```
- dependencies:
- # Add these two lines:
- shared:
- path: ./shared
- ```
-7. The final step is to adjust your `Dockerfile`, as it can no longer
-successfully run `dart pub get` after only copying over the `pubspec.yaml`
-file (that command now requires the entirety of your `shared` directory to be
-present.
-
-- Find the line that says `COPY pubspec.* ./`, and change it to `COPY . .`.
-
-With that, you're ready to build and run the app.
-
-## Running the sample
-
-To run the sample, or an equivalent you've reconstructed yourself, choose a
-runtime method below based on your needs.
-
-### From the CLI
-
-In one terminal window, run the following commands:
-
-```sh
-cd my_project/server
-dart run bin/server.dart
-```
-
-In a separate terminal window, run the following commands:
-
-```sh
-cd my_project/client
-flutter run
-```
-
-> Note: If you named your mobile client and backend servers something other
-than `client` and `server`, you will need to substitute in those values above.
-
-### Build and run with Docker
-
-To build your server's Docker image, run the following commands in a terminal
-window:
-
-```sh
-cd my_project/server
-docker build . -t my_project_server
-```
-
-To run that image as a Docker container, run the following commands in a
-terminal window:
-
-```sh
-docker run -it my_project_server
-```
-
-### Build and run with `docker-compose`
-
-If you have [`docker-compose`](https://docs.docker.com/compose/install/)
-installed on your machine, you can run the following command to build and
-launch your server:
-
-```sh
-cd my_project
-docker-compose up -d
-```
-
-And then later stop the server with:
-
-```sh
-docker-compose stop
-```
\ No newline at end of file
diff --git a/code_sharing/client/.metadata b/code_sharing/client/.metadata
deleted file mode 100644
index a7cbe7932..000000000
--- a/code_sharing/client/.metadata
+++ /dev/null
@@ -1,45 +0,0 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled.
-
-version:
- revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- channel: beta
-
-project_type: app
-
-# Tracks metadata for the flutter migrate command
-migration:
- platforms:
- - platform: root
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: android
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: ios
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: linux
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: macos
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: web
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: windows
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
-
- # User provided section
-
- # List of Local paths (relative to this file) that should be
- # ignored by the migrate tool.
- #
- # Files that are not part of the templates will be ignored by default.
- unmanaged_files:
- - 'lib/main.dart'
- - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/code_sharing/client/analysis_options.yaml b/code_sharing/client/analysis_options.yaml
deleted file mode 100644
index 61b6c4de1..000000000
--- a/code_sharing/client/analysis_options.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-# This file configures the analyzer, which statically analyzes Dart code to
-# check for errors, warnings, and lints.
-#
-# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
-# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
-# invoked from the command line by running `flutter analyze`.
-
-# The following line activates a set of recommended lints for Flutter apps,
-# packages, and plugins designed to encourage good coding practices.
-include: package:flutter_lints/flutter.yaml
-
-linter:
- # The lint rules applied to this project can be customized in the
- # section below to disable rules from the `package:flutter_lints/flutter.yaml`
- # included above or to enable additional rules. A list of all available lints
- # and their documentation is published at
- # https://dart-lang.github.io/linter/lints/index.html.
- #
- # Instead of disabling a lint rule for the entire project in the
- # section below, it can also be suppressed for a single line of code
- # or a specific dart file by using the `// ignore: name_of_lint` and
- # `// ignore_for_file: name_of_lint` syntax on the line or in the file
- # producing the lint.
- rules:
- # avoid_print: false # Uncomment to disable the `avoid_print` rule
- # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
-
-# Additional information about this file can be found at
-# https://dart.dev/guides/language/analysis-options
diff --git a/code_sharing/client/android/app/build.gradle b/code_sharing/client/android/app/build.gradle
deleted file mode 100644
index 79da13065..000000000
--- a/code_sharing/client/android/app/build.gradle
+++ /dev/null
@@ -1,71 +0,0 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-android {
- compileSdkVersion flutter.compileSdkVersion
- ndkVersion flutter.ndkVersion
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- kotlinOptions {
- jvmTarget = '1.8'
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "com.example.client"
- // You can update the following values to match your application needs.
- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
- minSdkVersion flutter.minSdkVersion
- targetSdkVersion flutter.targetSdkVersion
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- }
-
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
diff --git a/code_sharing/client/android/app/src/debug/AndroidManifest.xml b/code_sharing/client/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index 3ddafc529..000000000
--- a/code_sharing/client/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/code_sharing/client/android/app/src/main/AndroidManifest.xml b/code_sharing/client/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 98c35ebf8..000000000
--- a/code_sharing/client/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/code_sharing/client/android/app/src/main/kotlin/com/example/client/MainActivity.kt b/code_sharing/client/android/app/src/main/kotlin/com/example/client/MainActivity.kt
deleted file mode 100644
index a467eb774..000000000
--- a/code_sharing/client/android/app/src/main/kotlin/com/example/client/MainActivity.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.example.client
-
-import io.flutter.embedding.android.FlutterActivity
-
-class MainActivity: FlutterActivity() {
-}
diff --git a/code_sharing/client/android/app/src/profile/AndroidManifest.xml b/code_sharing/client/android/app/src/profile/AndroidManifest.xml
deleted file mode 100644
index 3ddafc529..000000000
--- a/code_sharing/client/android/app/src/profile/AndroidManifest.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/code_sharing/client/android/build.gradle b/code_sharing/client/android/build.gradle
deleted file mode 100644
index e50c3a02b..000000000
--- a/code_sharing/client/android/build.gradle
+++ /dev/null
@@ -1,31 +0,0 @@
-buildscript {
- ext.kotlin_version = '1.7.10'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:7.3.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/code_sharing/client/android/gradle.properties b/code_sharing/client/android/gradle.properties
deleted file mode 100644
index 94adc3a3f..000000000
--- a/code_sharing/client/android/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/code_sharing/client/android/settings.gradle b/code_sharing/client/android/settings.gradle
deleted file mode 100644
index 44e62bcf0..000000000
--- a/code_sharing/client/android/settings.gradle
+++ /dev/null
@@ -1,11 +0,0 @@
-include ':app'
-
-def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
-def properties = new Properties()
-
-assert localPropertiesFile.exists()
-localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
-
-def flutterSdkPath = properties.getProperty("flutter.sdk")
-assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
-apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/code_sharing/client/ios/Flutter/AppFrameworkInfo.plist b/code_sharing/client/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 9625e105d..000000000
--- a/code_sharing/client/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- MinimumOSVersion
- 11.0
-
-
diff --git a/code_sharing/client/ios/Runner.xcodeproj/project.pbxproj b/code_sharing/client/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index a9dff4ee4..000000000
--- a/code_sharing/client/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,616 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 54;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
- 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 97C146E61CF9000F007C117D /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 97C146ED1CF9000F007C117D;
- remoteInfo = Runner;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
- 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 331C8082294A63A400263BE5 /* RunnerTests */ = {
- isa = PBXGroup;
- children = (
- 331C807B294A618700263BE5 /* RunnerTests.swift */,
- );
- path = RunnerTests;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- 331C8082294A63A400263BE5 /* RunnerTests */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 331C8080294A63A400263BE5 /* RunnerTests */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
- buildPhases = (
- 331C807D294A63A400263BE5 /* Sources */,
- 331C807E294A63A400263BE5 /* Frameworks */,
- 331C807F294A63A400263BE5 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- 331C8086294A63A400263BE5 /* PBXTargetDependency */,
- );
- name = RunnerTests;
- productName = RunnerTests;
- productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
- productType = "com.apple.product-type.bundle.unit-test";
- };
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1300;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 331C8080294A63A400263BE5 = {
- CreatedOnToolsVersion = 14.0;
- TestTargetID = 97C146ED1CF9000F007C117D;
- };
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- 331C8080294A63A400263BE5 /* RunnerTests */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 331C807F294A63A400263BE5 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 331C807D294A63A400263BE5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 97C146ED1CF9000F007C117D /* Runner */;
- targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = TC87DMJLQP;
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 331C8088294A63A400263BE5 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
- };
- name = Debug;
- };
- 331C8089294A63A400263BE5 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
- };
- name = Release;
- };
- 331C808A294A63A400263BE5 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = TC87DMJLQP;
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = TC87DMJLQP;
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 331C8088294A63A400263BE5 /* Debug */,
- 331C8089294A63A400263BE5 /* Release */,
- 331C808A294A63A400263BE5 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/code_sharing/client/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/code_sharing/client/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index e42adcb34..000000000
--- a/code_sharing/client/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/code_sharing/client/ios/Runner/Info.plist b/code_sharing/client/ios/Runner/Info.plist
deleted file mode 100644
index e68305132..000000000
--- a/code_sharing/client/ios/Runner/Info.plist
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleDisplayName
- Client
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- client
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
- CADisableMinimumFrameDurationOnPhone
-
- UIApplicationSupportsIndirectInputEvents
-
-
-
diff --git a/code_sharing/client/lib/main.dart b/code_sharing/client/lib/main.dart
deleted file mode 100644
index a8aca2f48..000000000
--- a/code_sharing/client/lib/main.dart
+++ /dev/null
@@ -1,132 +0,0 @@
-import 'dart:convert';
-import 'dart:io' show Platform;
-import 'package:http/http.dart' as http;
-import 'package:shared/shared.dart';
-import 'package:flutter/material.dart';
-
-final port = Platform.environment['PORT'] ?? '8080';
-final host = Platform.environment['SERVER_URL'] ?? '127.0.0.1';
-final scheme = Platform.environment['SERVER_SCHEME'] ?? 'http';
-final serverUrl = Uri.parse('$scheme://$host:$port/');
-
-void main() {
- runApp(const MyApp(getCount: getCount, increment: increment));
-}
-
-class MyApp extends StatelessWidget {
- const MyApp({super.key, required this.getCount, required this.increment});
-
- final Future Function() getCount;
- final Future Function(int) increment;
-
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Demo',
- theme: ThemeData(colorSchemeSeed: Colors.blue),
- home: MyHomePage(
- title: 'Flutter Demo Home Page',
- getCount: getCount,
- increment: increment,
- ),
- );
- }
-}
-
-class MyHomePage extends StatefulWidget {
- const MyHomePage({
- super.key,
- required this.title,
- required this.getCount,
- required this.increment,
- });
-
- final String title;
- final Future Function() getCount;
- final Future Function(int) increment;
-
- @override
- State createState() => _MyHomePageState();
-}
-
-class _MyHomePageState extends State {
- int _counter = 0;
- int localClicks = 0;
- bool isWriting = false;
-
- @override
- void initState() {
- super.initState();
- widget.getCount().then((int val) => _counter = val);
- }
-
- void _incrementCounter() {
- localClicks += 1;
- setState(() => isWriting = true);
- widget
- .increment(localClicks)
- .then(
- (int val) => setState(() {
- _counter = val;
- // Leave this up for at least a split second
- Future.delayed(
- const Duration(milliseconds: 200),
- () => setState(() => isWriting = false),
- );
- }),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(title: Text(widget.title)),
- body: Center(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Text(
- 'You have pushed the button this many times:',
- style: TextStyle(fontSize: 20),
- ),
- Text(
- '$_counter',
- style: Theme.of(context).textTheme.headlineMedium,
- ),
- if (isWriting) ...[
- const SizedBox(height: 10),
- const Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Text(
- 'Communicating with server...',
- style: TextStyle(fontSize: 32, color: Colors.blue),
- ),
- SizedBox(width: 10),
- CircularProgressIndicator.adaptive(),
- ],
- ),
- ],
- ],
- ),
- ),
- floatingActionButton: FloatingActionButton(
- onPressed: _incrementCounter,
- tooltip: 'Increment',
- child: const Icon(Icons.add),
- ),
- );
- }
-}
-
-Future getCount() async {
- return http
- .get(serverUrl)
- .then((resp) => Count.fromJson(json.decode(resp.body)).value);
-}
-
-Future increment(int by) async {
- return http
- .post(serverUrl, body: json.encode(Increment(by: by).toJson()))
- .then((resp) => Count.fromJson(json.decode(resp.body)).value);
-}
diff --git a/code_sharing/client/linux/CMakeLists.txt b/code_sharing/client/linux/CMakeLists.txt
deleted file mode 100644
index 352134145..000000000
--- a/code_sharing/client/linux/CMakeLists.txt
+++ /dev/null
@@ -1,139 +0,0 @@
-# Project-level configuration.
-cmake_minimum_required(VERSION 3.10)
-project(runner LANGUAGES CXX)
-
-# The name of the executable created for the application. Change this to change
-# the on-disk name of your application.
-set(BINARY_NAME "client")
-# The unique GTK application identifier for this application. See:
-# https://wiki.gnome.org/HowDoI/ChooseApplicationID
-set(APPLICATION_ID "com.example.client")
-
-# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
-# versions of CMake.
-cmake_policy(SET CMP0063 NEW)
-
-# Load bundled libraries from the lib/ directory relative to the binary.
-set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
-
-# Root filesystem for cross-building.
-if(FLUTTER_TARGET_PLATFORM_SYSROOT)
- set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
- set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
- set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
-endif()
-
-# Define build configuration options.
-if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
- set(CMAKE_BUILD_TYPE "Debug" CACHE
- STRING "Flutter build mode" FORCE)
- set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
- "Debug" "Profile" "Release")
-endif()
-
-# Compilation settings that should be applied to most targets.
-#
-# Be cautious about adding new options here, as plugins use this function by
-# default. In most cases, you should add new options to specific targets instead
-# of modifying this function.
-function(APPLY_STANDARD_SETTINGS TARGET)
- target_compile_features(${TARGET} PUBLIC cxx_std_14)
- target_compile_options(${TARGET} PRIVATE -Wall -Werror)
- target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
- target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
-endfunction()
-
-# Flutter library and tool build rules.
-set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
-add_subdirectory(${FLUTTER_MANAGED_DIR})
-
-# System-level dependencies.
-find_package(PkgConfig REQUIRED)
-pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
-
-add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
-
-# Define the application target. To change its name, change BINARY_NAME above,
-# not the value here, or `flutter run` will no longer work.
-#
-# Any new source files that you add to the application should be added here.
-add_executable(${BINARY_NAME}
- "main.cc"
- "my_application.cc"
- "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
-)
-
-# Apply the standard set of build settings. This can be removed for applications
-# that need different build settings.
-apply_standard_settings(${BINARY_NAME})
-
-# Add dependency libraries. Add any application-specific dependencies here.
-target_link_libraries(${BINARY_NAME} PRIVATE flutter)
-target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
-
-# Run the Flutter tool portions of the build. This must not be removed.
-add_dependencies(${BINARY_NAME} flutter_assemble)
-
-# Only the install-generated bundle's copy of the executable will launch
-# correctly, since the resources must in the right relative locations. To avoid
-# people trying to run the unbundled copy, put it in a subdirectory instead of
-# the default top-level location.
-set_target_properties(${BINARY_NAME}
- PROPERTIES
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
-)
-
-
-# Generated plugin build rules, which manage building the plugins and adding
-# them to the application.
-include(flutter/generated_plugins.cmake)
-
-
-# === Installation ===
-# By default, "installing" just makes a relocatable bundle in the build
-# directory.
-set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
- set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
-endif()
-
-# Start with a clean build bundle directory every time.
-install(CODE "
- file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
- " COMPONENT Runtime)
-
-set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
-set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
-
-install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-
-foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
- install(FILES "${bundled_library}"
- DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endforeach(bundled_library)
-
-# Fully re-copy the assets directory on each build to avoid having stale files
-# from a previous install.
-set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
-install(CODE "
- file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
- " COMPONENT Runtime)
-install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
- DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
-
-# Install the AOT library on non-Debug builds only.
-if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
- install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
diff --git a/code_sharing/client/linux/my_application.cc b/code_sharing/client/linux/my_application.cc
deleted file mode 100644
index 2ba2836d2..000000000
--- a/code_sharing/client/linux/my_application.cc
+++ /dev/null
@@ -1,104 +0,0 @@
-#include "my_application.h"
-
-#include
-#ifdef GDK_WINDOWING_X11
-#include
-#endif
-
-#include "flutter/generated_plugin_registrant.h"
-
-struct _MyApplication {
- GtkApplication parent_instance;
- char** dart_entrypoint_arguments;
-};
-
-G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
-
-// Implements GApplication::activate.
-static void my_application_activate(GApplication* application) {
- MyApplication* self = MY_APPLICATION(application);
- GtkWindow* window =
- GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
-
- // Use a header bar when running in GNOME as this is the common style used
- // by applications and is the setup most users will be using (e.g. Ubuntu
- // desktop).
- // If running on X and not using GNOME then just use a traditional title bar
- // in case the window manager does more exotic layout, e.g. tiling.
- // If running on Wayland assume the header bar will work (may need changing
- // if future cases occur).
- gboolean use_header_bar = TRUE;
-#ifdef GDK_WINDOWING_X11
- GdkScreen* screen = gtk_window_get_screen(window);
- if (GDK_IS_X11_SCREEN(screen)) {
- const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
- if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
- use_header_bar = FALSE;
- }
- }
-#endif
- if (use_header_bar) {
- GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
- gtk_widget_show(GTK_WIDGET(header_bar));
- gtk_header_bar_set_title(header_bar, "client");
- gtk_header_bar_set_show_close_button(header_bar, TRUE);
- gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
- } else {
- gtk_window_set_title(window, "client");
- }
-
- gtk_window_set_default_size(window, 1280, 720);
- gtk_widget_show(GTK_WIDGET(window));
-
- g_autoptr(FlDartProject) project = fl_dart_project_new();
- fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
-
- FlView* view = fl_view_new(project);
- gtk_widget_show(GTK_WIDGET(view));
- gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
-
- fl_register_plugins(FL_PLUGIN_REGISTRY(view));
-
- gtk_widget_grab_focus(GTK_WIDGET(view));
-}
-
-// Implements GApplication::local_command_line.
-static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
- MyApplication* self = MY_APPLICATION(application);
- // Strip out the first argument as it is the binary name.
- self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
-
- g_autoptr(GError) error = nullptr;
- if (!g_application_register(application, nullptr, &error)) {
- g_warning("Failed to register: %s", error->message);
- *exit_status = 1;
- return TRUE;
- }
-
- g_application_activate(application);
- *exit_status = 0;
-
- return TRUE;
-}
-
-// Implements GObject::dispose.
-static void my_application_dispose(GObject* object) {
- MyApplication* self = MY_APPLICATION(object);
- g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
- G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
-}
-
-static void my_application_class_init(MyApplicationClass* klass) {
- G_APPLICATION_CLASS(klass)->activate = my_application_activate;
- G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
- G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
-}
-
-static void my_application_init(MyApplication* self) {}
-
-MyApplication* my_application_new() {
- return MY_APPLICATION(g_object_new(my_application_get_type(),
- "application-id", APPLICATION_ID,
- "flags", G_APPLICATION_NON_UNIQUE,
- nullptr));
-}
diff --git a/code_sharing/client/macos/Runner.xcodeproj/project.pbxproj b/code_sharing/client/macos/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index e628dcf9d..000000000
--- a/code_sharing/client/macos/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,695 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 54;
- objects = {
-
-/* Begin PBXAggregateTarget section */
- 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
- isa = PBXAggregateTarget;
- buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
- buildPhases = (
- 33CC111E2044C6BF0003C045 /* ShellScript */,
- );
- dependencies = (
- );
- name = "Flutter Assemble";
- productName = FLX;
- };
-/* End PBXAggregateTarget section */
-
-/* Begin PBXBuildFile section */
- 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
- 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
- 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
- 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
- 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
- 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 33CC10EC2044A3C60003C045;
- remoteInfo = Runner;
- };
- 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 33CC111A2044C6BA0003C045;
- remoteInfo = FLX;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 33CC110E2044A8840003C045 /* Bundle Framework */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Bundle Framework";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
- 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
- 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
- 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
- 33CC10ED2044A3C60003C045 /* client.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "client.app"; sourceTree = BUILT_PRODUCTS_DIR; };
- 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
- 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
- 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
- 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
- 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
- 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
- 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
- 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
- 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
- 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 331C80D2294CF70F00263BE5 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 33CC10EA2044A3C60003C045 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 331C80D6294CF71000263BE5 /* RunnerTests */ = {
- isa = PBXGroup;
- children = (
- 331C80D7294CF71000263BE5 /* RunnerTests.swift */,
- );
- path = RunnerTests;
- sourceTree = "";
- };
- 33BA886A226E78AF003329D5 /* Configs */ = {
- isa = PBXGroup;
- children = (
- 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
- );
- path = Configs;
- sourceTree = "";
- };
- 33CC10E42044A3C60003C045 = {
- isa = PBXGroup;
- children = (
- 33FAB671232836740065AC1E /* Runner */,
- 33CEB47122A05771004F2AC0 /* Flutter */,
- 331C80D6294CF71000263BE5 /* RunnerTests */,
- 33CC10EE2044A3C60003C045 /* Products */,
- D73912EC22F37F3D000D13A0 /* Frameworks */,
- );
- sourceTree = "";
- };
- 33CC10EE2044A3C60003C045 /* Products */ = {
- isa = PBXGroup;
- children = (
- 33CC10ED2044A3C60003C045 /* client.app */,
- 331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
- );
- name = Products;
- sourceTree = "";
- };
- 33CC11242044D66E0003C045 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 33CC10F22044A3C60003C045 /* Assets.xcassets */,
- 33CC10F42044A3C60003C045 /* MainMenu.xib */,
- 33CC10F72044A3C60003C045 /* Info.plist */,
- );
- name = Resources;
- path = ..;
- sourceTree = "";
- };
- 33CEB47122A05771004F2AC0 /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
- 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
- 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
- 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
- );
- path = Flutter;
- sourceTree = "";
- };
- 33FAB671232836740065AC1E /* Runner */ = {
- isa = PBXGroup;
- children = (
- 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
- 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
- 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
- 33E51914231749380026EE4D /* Release.entitlements */,
- 33CC11242044D66E0003C045 /* Resources */,
- 33BA886A226E78AF003329D5 /* Configs */,
- );
- path = Runner;
- sourceTree = "";
- };
- D73912EC22F37F3D000D13A0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 331C80D4294CF70F00263BE5 /* RunnerTests */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
- buildPhases = (
- 331C80D1294CF70F00263BE5 /* Sources */,
- 331C80D2294CF70F00263BE5 /* Frameworks */,
- 331C80D3294CF70F00263BE5 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- 331C80DA294CF71000263BE5 /* PBXTargetDependency */,
- );
- name = RunnerTests;
- productName = RunnerTests;
- productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
- productType = "com.apple.product-type.bundle.unit-test";
- };
- 33CC10EC2044A3C60003C045 /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 33CC10E92044A3C60003C045 /* Sources */,
- 33CC10EA2044A3C60003C045 /* Frameworks */,
- 33CC10EB2044A3C60003C045 /* Resources */,
- 33CC110E2044A8840003C045 /* Bundle Framework */,
- 3399D490228B24CF009A79C7 /* ShellScript */,
- );
- buildRules = (
- );
- dependencies = (
- 33CC11202044C79F0003C045 /* PBXTargetDependency */,
- );
- name = Runner;
- productName = Runner;
- productReference = 33CC10ED2044A3C60003C045 /* client.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 33CC10E52044A3C60003C045 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastSwiftUpdateCheck = 0920;
- LastUpgradeCheck = 1300;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 331C80D4294CF70F00263BE5 = {
- CreatedOnToolsVersion = 14.0;
- TestTargetID = 33CC10EC2044A3C60003C045;
- };
- 33CC10EC2044A3C60003C045 = {
- CreatedOnToolsVersion = 9.2;
- LastSwiftMigration = 1100;
- ProvisioningStyle = Automatic;
- SystemCapabilities = {
- com.apple.Sandbox = {
- enabled = 1;
- };
- };
- };
- 33CC111A2044C6BA0003C045 = {
- CreatedOnToolsVersion = 9.2;
- ProvisioningStyle = Manual;
- };
- };
- };
- buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 33CC10E42044A3C60003C045;
- productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 33CC10EC2044A3C60003C045 /* Runner */,
- 331C80D4294CF70F00263BE5 /* RunnerTests */,
- 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 331C80D3294CF70F00263BE5 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 33CC10EB2044A3C60003C045 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
- 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3399D490228B24CF009A79C7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- );
- outputFileListPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
- };
- 33CC111E2044C6BF0003C045 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- Flutter/ephemeral/FlutterInputs.xcfilelist,
- );
- inputPaths = (
- Flutter/ephemeral/tripwire,
- );
- outputFileListPaths = (
- Flutter/ephemeral/FlutterOutputs.xcfilelist,
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 331C80D1294CF70F00263BE5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 33CC10E92044A3C60003C045 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
- 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
- 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 33CC10EC2044A3C60003C045 /* Runner */;
- targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;
- };
- 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
- targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 33CC10F52044A3C60003C045 /* Base */,
- );
- name = MainMenu.xib;
- path = Runner;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 331C80DB294CF71000263BE5 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/client.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/client";
- };
- name = Debug;
- };
- 331C80DC294CF71000263BE5 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/client.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/client";
- };
- name = Release;
- };
- 331C80DD294CF71000263BE5 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.client.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/client.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/client";
- };
- name = Profile;
- };
- 338D0CE9231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.14;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = macosx;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- };
- name = Profile;
- };
- 338D0CEA231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_VERSION = 5.0;
- };
- name = Profile;
- };
- 338D0CEB231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Manual;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Profile;
- };
- 33CC10F92044A3C60003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.14;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = macosx;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- };
- name = Debug;
- };
- 33CC10FA2044A3C60003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.14;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = macosx;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- };
- name = Release;
- };
- 33CC10FC2044A3C60003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- };
- name = Debug;
- };
- 33CC10FD2044A3C60003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_VERSION = 5.0;
- };
- name = Release;
- };
- 33CC111C2044C6BA0003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Manual;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Debug;
- };
- 33CC111D2044C6BA0003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Automatic;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 331C80DB294CF71000263BE5 /* Debug */,
- 331C80DC294CF71000263BE5 /* Release */,
- 331C80DD294CF71000263BE5 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC10F92044A3C60003C045 /* Debug */,
- 33CC10FA2044A3C60003C045 /* Release */,
- 338D0CE9231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC10FC2044A3C60003C045 /* Debug */,
- 33CC10FD2044A3C60003C045 /* Release */,
- 338D0CEA231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC111C2044C6BA0003C045 /* Debug */,
- 33CC111D2044C6BA0003C045 /* Release */,
- 338D0CEB231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 33CC10E52044A3C60003C045 /* Project object */;
-}
diff --git a/code_sharing/client/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/code_sharing/client/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index a8dff9450..000000000
--- a/code_sharing/client/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/code_sharing/client/macos/Runner/AppDelegate.swift b/code_sharing/client/macos/Runner/AppDelegate.swift
deleted file mode 100644
index d53ef6437..000000000
--- a/code_sharing/client/macos/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,9 +0,0 @@
-import Cocoa
-import FlutterMacOS
-
-@NSApplicationMain
-class AppDelegate: FlutterAppDelegate {
- override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
- return true
- }
-}
diff --git a/code_sharing/client/macos/Runner/DebugProfile.entitlements b/code_sharing/client/macos/Runner/DebugProfile.entitlements
deleted file mode 100644
index 3ba6c1266..000000000
--- a/code_sharing/client/macos/Runner/DebugProfile.entitlements
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- com.apple.security.app-sandbox
-
- com.apple.security.cs.allow-jit
-
- com.apple.security.network.client
-
- com.apple.security.network.server
-
-
-
diff --git a/code_sharing/client/macos/Runner/MainFlutterWindow.swift b/code_sharing/client/macos/Runner/MainFlutterWindow.swift
deleted file mode 100644
index 2722837ec..000000000
--- a/code_sharing/client/macos/Runner/MainFlutterWindow.swift
+++ /dev/null
@@ -1,15 +0,0 @@
-import Cocoa
-import FlutterMacOS
-
-class MainFlutterWindow: NSWindow {
- override func awakeFromNib() {
- let flutterViewController = FlutterViewController.init()
- let windowFrame = self.frame
- self.contentViewController = flutterViewController
- self.setFrame(windowFrame, display: true)
-
- RegisterGeneratedPlugins(registry: flutterViewController)
-
- super.awakeFromNib()
- }
-}
diff --git a/code_sharing/client/macos/RunnerTests/RunnerTests.swift b/code_sharing/client/macos/RunnerTests/RunnerTests.swift
deleted file mode 100644
index 5418c9f53..000000000
--- a/code_sharing/client/macos/RunnerTests/RunnerTests.swift
+++ /dev/null
@@ -1,12 +0,0 @@
-import FlutterMacOS
-import Cocoa
-import XCTest
-
-class RunnerTests: XCTestCase {
-
- func testExample() {
- // If you add code to the Runner application, consider adding tests here.
- // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
- }
-
-}
diff --git a/code_sharing/client/pubspec.yaml b/code_sharing/client/pubspec.yaml
deleted file mode 100644
index 5dc10428d..000000000
--- a/code_sharing/client/pubspec.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: client
-description: A Flutter app which communicates with a Dart backend using shared business logic.
-publish_to: "none"
-version: 1.0.0+1
-resolution: workspace
-
-environment:
- sdk: ^3.9.0-0
-
-dependencies:
- cupertino_icons: ^1.0.2
- flutter:
- sdk: flutter
- http: ^1.0.0
- shared:
- path: ../shared
-
-dev_dependencies:
- analysis_defaults:
- path: ../../analysis_defaults
- flutter_lints: ^6.0.0
- flutter_test:
- sdk: flutter
-
-flutter:
- uses-material-design: true
diff --git a/code_sharing/client/test/widget_test.dart b/code_sharing/client/test/widget_test.dart
deleted file mode 100644
index 87ae42dd6..000000000
--- a/code_sharing/client/test/widget_test.dart
+++ /dev/null
@@ -1,15 +0,0 @@
-import 'package:flutter_test/flutter_test.dart';
-import 'package:client/main.dart';
-
-void main() {
- group('App should', () {
- testWidgets('build its widgets', (WidgetTester tester) async {
- await tester.pumpWidget(
- MyApp(
- getCount: () => Future.value(1),
- increment: (int x) => Future.value(x),
- ),
- );
- });
- });
-}
diff --git a/code_sharing/client/web/manifest.json b/code_sharing/client/web/manifest.json
deleted file mode 100644
index 554b75eec..000000000
--- a/code_sharing/client/web/manifest.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "client",
- "short_name": "client",
- "start_url": ".",
- "display": "standalone",
- "background_color": "#0175C2",
- "theme_color": "#0175C2",
- "description": "A new Flutter project.",
- "orientation": "portrait-primary",
- "prefer_related_applications": false,
- "icons": [
- {
- "src": "icons/Icon-192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-512.png",
- "sizes": "512x512",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-maskable-192.png",
- "sizes": "192x192",
- "type": "image/png",
- "purpose": "maskable"
- },
- {
- "src": "icons/Icon-maskable-512.png",
- "sizes": "512x512",
- "type": "image/png",
- "purpose": "maskable"
- }
- ]
-}
diff --git a/code_sharing/client/windows/CMakeLists.txt b/code_sharing/client/windows/CMakeLists.txt
deleted file mode 100644
index 53ae2b65e..000000000
--- a/code_sharing/client/windows/CMakeLists.txt
+++ /dev/null
@@ -1,102 +0,0 @@
-# Project-level configuration.
-cmake_minimum_required(VERSION 3.14)
-project(client LANGUAGES CXX)
-
-# The name of the executable created for the application. Change this to change
-# the on-disk name of your application.
-set(BINARY_NAME "client")
-
-# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
-# versions of CMake.
-cmake_policy(SET CMP0063 NEW)
-
-# Define build configuration option.
-get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
-if(IS_MULTICONFIG)
- set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
- CACHE STRING "" FORCE)
-else()
- if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
- set(CMAKE_BUILD_TYPE "Debug" CACHE
- STRING "Flutter build mode" FORCE)
- set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
- "Debug" "Profile" "Release")
- endif()
-endif()
-# Define settings for the Profile build mode.
-set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
-set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
-set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
-set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
-
-# Use Unicode for all projects.
-add_definitions(-DUNICODE -D_UNICODE)
-
-# Compilation settings that should be applied to most targets.
-#
-# Be cautious about adding new options here, as plugins use this function by
-# default. In most cases, you should add new options to specific targets instead
-# of modifying this function.
-function(APPLY_STANDARD_SETTINGS TARGET)
- target_compile_features(${TARGET} PUBLIC cxx_std_17)
- target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
- target_compile_options(${TARGET} PRIVATE /EHsc)
- target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
- target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>")
-endfunction()
-
-# Flutter library and tool build rules.
-set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
-add_subdirectory(${FLUTTER_MANAGED_DIR})
-
-# Application build; see runner/CMakeLists.txt.
-add_subdirectory("runner")
-
-
-# Generated plugin build rules, which manage building the plugins and adding
-# them to the application.
-include(flutter/generated_plugins.cmake)
-
-
-# === Installation ===
-# Support files are copied into place next to the executable, so that it can
-# run in place. This is done instead of making a separate bundle (as on Linux)
-# so that building and running from within Visual Studio will work.
-set(BUILD_BUNDLE_DIR "$")
-# Make the "install" step default, as it's required to run.
-set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
- set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
-endif()
-
-set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
-set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
-
-install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-
-if(PLUGIN_BUNDLED_LIBRARIES)
- install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
- DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
-
-# Fully re-copy the assets directory on each build to avoid having stale files
-# from a previous install.
-set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
-install(CODE "
- file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
- " COMPONENT Runtime)
-install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
- DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
-
-# Install the AOT library on non-Debug builds only.
-install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
- CONFIGURATIONS Profile;Release
- COMPONENT Runtime)
diff --git a/code_sharing/client/windows/flutter/CMakeLists.txt b/code_sharing/client/windows/flutter/CMakeLists.txt
deleted file mode 100644
index 930d2071a..000000000
--- a/code_sharing/client/windows/flutter/CMakeLists.txt
+++ /dev/null
@@ -1,104 +0,0 @@
-# This file controls Flutter-level build steps. It should not be edited.
-cmake_minimum_required(VERSION 3.14)
-
-set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
-
-# Configuration provided via flutter tool.
-include(${EPHEMERAL_DIR}/generated_config.cmake)
-
-# TODO: Move the rest of this into files in ephemeral. See
-# https://github.com/flutter/flutter/issues/57146.
-set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
-
-# === Flutter Library ===
-set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
-
-# Published to parent scope for install step.
-set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
-set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
-set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
-set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
-
-list(APPEND FLUTTER_LIBRARY_HEADERS
- "flutter_export.h"
- "flutter_windows.h"
- "flutter_messenger.h"
- "flutter_plugin_registrar.h"
- "flutter_texture_registrar.h"
-)
-list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
-add_library(flutter INTERFACE)
-target_include_directories(flutter INTERFACE
- "${EPHEMERAL_DIR}"
-)
-target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
-add_dependencies(flutter flutter_assemble)
-
-# === Wrapper ===
-list(APPEND CPP_WRAPPER_SOURCES_CORE
- "core_implementations.cc"
- "standard_codec.cc"
-)
-list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
-list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
- "plugin_registrar.cc"
-)
-list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
-list(APPEND CPP_WRAPPER_SOURCES_APP
- "flutter_engine.cc"
- "flutter_view_controller.cc"
-)
-list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
-
-# Wrapper sources needed for a plugin.
-add_library(flutter_wrapper_plugin STATIC
- ${CPP_WRAPPER_SOURCES_CORE}
- ${CPP_WRAPPER_SOURCES_PLUGIN}
-)
-apply_standard_settings(flutter_wrapper_plugin)
-set_target_properties(flutter_wrapper_plugin PROPERTIES
- POSITION_INDEPENDENT_CODE ON)
-set_target_properties(flutter_wrapper_plugin PROPERTIES
- CXX_VISIBILITY_PRESET hidden)
-target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
-target_include_directories(flutter_wrapper_plugin PUBLIC
- "${WRAPPER_ROOT}/include"
-)
-add_dependencies(flutter_wrapper_plugin flutter_assemble)
-
-# Wrapper sources needed for the runner.
-add_library(flutter_wrapper_app STATIC
- ${CPP_WRAPPER_SOURCES_CORE}
- ${CPP_WRAPPER_SOURCES_APP}
-)
-apply_standard_settings(flutter_wrapper_app)
-target_link_libraries(flutter_wrapper_app PUBLIC flutter)
-target_include_directories(flutter_wrapper_app PUBLIC
- "${WRAPPER_ROOT}/include"
-)
-add_dependencies(flutter_wrapper_app flutter_assemble)
-
-# === Flutter tool backend ===
-# _phony_ is a non-existent file to force this command to run every time,
-# since currently there's no way to get a full input/output list from the
-# flutter tool.
-set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
-set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
-add_custom_command(
- OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
- ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
- ${CPP_WRAPPER_SOURCES_APP}
- ${PHONY_OUTPUT}
- COMMAND ${CMAKE_COMMAND} -E env
- ${FLUTTER_TOOL_ENVIRONMENT}
- "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
- windows-x64 $
- VERBATIM
-)
-add_custom_target(flutter_assemble DEPENDS
- "${FLUTTER_LIBRARY}"
- ${FLUTTER_LIBRARY_HEADERS}
- ${CPP_WRAPPER_SOURCES_CORE}
- ${CPP_WRAPPER_SOURCES_PLUGIN}
- ${CPP_WRAPPER_SOURCES_APP}
-)
diff --git a/code_sharing/client/windows/runner/Runner.rc b/code_sharing/client/windows/runner/Runner.rc
deleted file mode 100644
index f189daf92..000000000
--- a/code_sharing/client/windows/runner/Runner.rc
+++ /dev/null
@@ -1,121 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#pragma code_page(65001)
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "winres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (United States) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "resource.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#include ""winres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDI_APP_ICON ICON "resources\\app_icon.ico"
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)
-#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD
-#else
-#define VERSION_AS_NUMBER 1,0,0,0
-#endif
-
-#if defined(FLUTTER_VERSION)
-#define VERSION_AS_STRING FLUTTER_VERSION
-#else
-#define VERSION_AS_STRING "1.0.0"
-#endif
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION VERSION_AS_NUMBER
- PRODUCTVERSION VERSION_AS_NUMBER
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
-#ifdef _DEBUG
- FILEFLAGS VS_FF_DEBUG
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS VOS__WINDOWS32
- FILETYPE VFT_APP
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904e4"
- BEGIN
- VALUE "CompanyName", "com.example" "\0"
- VALUE "FileDescription", "client" "\0"
- VALUE "FileVersion", VERSION_AS_STRING "\0"
- VALUE "InternalName", "client" "\0"
- VALUE "LegalCopyright", "Copyright (C) 2023 com.example. All rights reserved." "\0"
- VALUE "OriginalFilename", "client.exe" "\0"
- VALUE "ProductName", "client" "\0"
- VALUE "ProductVersion", VERSION_AS_STRING "\0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x409, 1252
- END
-END
-
-#endif // English (United States) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
diff --git a/code_sharing/client/windows/runner/flutter_window.cpp b/code_sharing/client/windows/runner/flutter_window.cpp
deleted file mode 100644
index b25e363ef..000000000
--- a/code_sharing/client/windows/runner/flutter_window.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-#include "flutter_window.h"
-
-#include
-
-#include "flutter/generated_plugin_registrant.h"
-
-FlutterWindow::FlutterWindow(const flutter::DartProject& project)
- : project_(project) {}
-
-FlutterWindow::~FlutterWindow() {}
-
-bool FlutterWindow::OnCreate() {
- if (!Win32Window::OnCreate()) {
- return false;
- }
-
- RECT frame = GetClientArea();
-
- // The size here must match the window dimensions to avoid unnecessary surface
- // creation / destruction in the startup path.
- flutter_controller_ = std::make_unique(
- frame.right - frame.left, frame.bottom - frame.top, project_);
- // Ensure that basic setup of the controller was successful.
- if (!flutter_controller_->engine() || !flutter_controller_->view()) {
- return false;
- }
- RegisterPlugins(flutter_controller_->engine());
- SetChildContent(flutter_controller_->view()->GetNativeWindow());
-
- flutter_controller_->engine()->SetNextFrameCallback([&]() {
- this->Show();
- });
-
- return true;
-}
-
-void FlutterWindow::OnDestroy() {
- if (flutter_controller_) {
- flutter_controller_ = nullptr;
- }
-
- Win32Window::OnDestroy();
-}
-
-LRESULT
-FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
- WPARAM const wparam,
- LPARAM const lparam) noexcept {
- // Give Flutter, including plugins, an opportunity to handle window messages.
- if (flutter_controller_) {
- std::optional result =
- flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
- lparam);
- if (result) {
- return *result;
- }
- }
-
- switch (message) {
- case WM_FONTCHANGE:
- flutter_controller_->engine()->ReloadSystemFonts();
- break;
- }
-
- return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
-}
diff --git a/code_sharing/client/windows/runner/main.cpp b/code_sharing/client/windows/runner/main.cpp
deleted file mode 100644
index 01431ddd3..000000000
--- a/code_sharing/client/windows/runner/main.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-#include
-#include
-#include
-
-#include "flutter_window.h"
-#include "utils.h"
-
-int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
- _In_ wchar_t *command_line, _In_ int show_command) {
- // Attach to console when present (e.g., 'flutter run') or create a
- // new console when running with a debugger.
- if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
- CreateAndAttachConsole();
- }
-
- // Initialize COM, so that it is available for use in the library and/or
- // plugins.
- ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
-
- flutter::DartProject project(L"data");
-
- std::vector command_line_arguments =
- GetCommandLineArguments();
-
- project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
-
- FlutterWindow window(project);
- Win32Window::Point origin(10, 10);
- Win32Window::Size size(1280, 720);
- if (!window.Create(L"client", origin, size)) {
- return EXIT_FAILURE;
- }
- window.SetQuitOnClose(true);
-
- ::MSG msg;
- while (::GetMessage(&msg, nullptr, 0, 0)) {
- ::TranslateMessage(&msg);
- ::DispatchMessage(&msg);
- }
-
- ::CoUninitialize();
- return EXIT_SUCCESS;
-}
diff --git a/code_sharing/client/windows/runner/utils.cpp b/code_sharing/client/windows/runner/utils.cpp
deleted file mode 100644
index b2b08734d..000000000
--- a/code_sharing/client/windows/runner/utils.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-#include "utils.h"
-
-#include
-#include
-#include
-#include
-
-#include
-
-void CreateAndAttachConsole() {
- if (::AllocConsole()) {
- FILE *unused;
- if (freopen_s(&unused, "CONOUT$", "w", stdout)) {
- _dup2(_fileno(stdout), 1);
- }
- if (freopen_s(&unused, "CONOUT$", "w", stderr)) {
- _dup2(_fileno(stdout), 2);
- }
- std::ios::sync_with_stdio();
- FlutterDesktopResyncOutputStreams();
- }
-}
-
-std::vector GetCommandLineArguments() {
- // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.
- int argc;
- wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
- if (argv == nullptr) {
- return std::vector();
- }
-
- std::vector command_line_arguments;
-
- // Skip the first argument as it's the binary name.
- for (int i = 1; i < argc; i++) {
- command_line_arguments.push_back(Utf8FromUtf16(argv[i]));
- }
-
- ::LocalFree(argv);
-
- return command_line_arguments;
-}
-
-std::string Utf8FromUtf16(const wchar_t* utf16_string) {
- if (utf16_string == nullptr) {
- return std::string();
- }
- int target_length = ::WideCharToMultiByte(
- CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
- -1, nullptr, 0, nullptr, nullptr)
- -1; // remove the trailing null character
- int input_length = (int)wcslen(utf16_string);
- std::string utf8_string;
- if (target_length <= 0 || target_length > utf8_string.max_size()) {
- return utf8_string;
- }
- utf8_string.resize(target_length);
- int converted_length = ::WideCharToMultiByte(
- CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
- input_length, utf8_string.data(), target_length, nullptr, nullptr);
- if (converted_length == 0) {
- return std::string();
- }
- return utf8_string;
-}
diff --git a/code_sharing/docker-compose.yml b/code_sharing/docker-compose.yml
deleted file mode 100644
index e38c622b2..000000000
--- a/code_sharing/docker-compose.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-version: "3.7"
-services:
- server:
- build:
- context: .
- ports:
- - 8080:8080
- environment:
- SERVER_PORT: "8080"
- SERVER_URL: "localhost"
- SERVER_SCHEME: "http"
diff --git a/code_sharing/server/.dockerignore b/code_sharing/server/.dockerignore
deleted file mode 100644
index 7d51f93ae..000000000
--- a/code_sharing/server/.dockerignore
+++ /dev/null
@@ -1,12 +0,0 @@
-.dockerignore
-Dockerfile
-docker-compose.yml
-Makefile
-README.md
-*/build/
-*/.dart_tool/
-.git/
-.github/
-.gitignore
-*/.idea/
-*/.packages
diff --git a/code_sharing/server/.gitignore b/code_sharing/server/.gitignore
deleted file mode 100644
index 3c8a15727..000000000
--- a/code_sharing/server/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-# Files and directories created by pub.
-.dart_tool/
-.packages
-
-# Conventional directory for build output.
-build/
diff --git a/code_sharing/server/CHANGELOG.md b/code_sharing/server/CHANGELOG.md
deleted file mode 100644
index effe43c82..000000000
--- a/code_sharing/server/CHANGELOG.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## 1.0.0
-
-- Initial version.
diff --git a/code_sharing/server/README.md b/code_sharing/server/README.md
deleted file mode 100644
index e695d9de5..000000000
--- a/code_sharing/server/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
-A server app built using [Shelf](https://pub.dev/packages/shelf),
-configured to enable running with [Docker](https://www.docker.com/).
-
-This sample code handles HTTP GET requests to `/` and `/echo/`
-
-# Running the sample
-
-## Running with the Dart SDK
-
-You can run the example with the [Dart SDK](https://dart.dev/get-dart)
-like this:
-
-```
-$ dart run bin/server.dart
-Server listening on port 8080
-```
-
-And then from a second terminal:
-```
-$ curl http://0.0.0.0:8080
-Hello, World!
-$ curl http://0.0.0.0:8080/echo/I_love_Dart
-I_love_Dart
-```
-
-## Running with Docker
-
-If you have [Docker Desktop](https://www.docker.com/get-started) installed, you
-can build and run with the `docker` command:
-
-```
-$ docker build . -t myserver
-$ docker run -it -p 8080:8080 myserver
-Server listening on port 8080
-```
-
-And then from a second terminal:
-```
-$ curl http://0.0.0.0:8080
-Hello, World!
-$ curl http://0.0.0.0:8080/echo/I_love_Dart
-I_love_Dart
-```
-
-You should see the logging printed in the first terminal:
-```
-2021-05-06T15:47:04.620417 0:00:00.000158 GET [200] /
-2021-05-06T15:47:08.392928 0:00:00.001216 GET [200] /echo/I_love_Dart
-```
diff --git a/code_sharing/server/analysis_options.yaml b/code_sharing/server/analysis_options.yaml
deleted file mode 100644
index dee8927aa..000000000
--- a/code_sharing/server/analysis_options.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-# This file configures the static analysis results for your project (errors,
-# warnings, and lints).
-#
-# This enables the 'recommended' set of lints from `package:lints`.
-# This set helps identify many issues that may lead to problems when running
-# or consuming Dart code, and enforces writing Dart using a single, idiomatic
-# style and format.
-#
-# If you want a smaller set of lints you can change this to specify
-# 'package:lints/core.yaml'. These are just the most critical lints
-# (the recommended set includes the core lints).
-# The core lints are also what is used by pub.dev for scoring packages.
-
-include: package:lints/recommended.yaml
-
-# Uncomment the following section to specify additional rules.
-
-# linter:
-# rules:
-# - camel_case_types
-
-# analyzer:
-# exclude:
-# - path/to/excluded/files/**
-
-# For more information about the core and recommended set of lints, see
-# https://dart.dev/go/core-lints
-
-# For additional information about configuring this file, see
-# https://dart.dev/guides/language/analysis-options
diff --git a/code_sharing/server/bin/server.dart b/code_sharing/server/bin/server.dart
deleted file mode 100644
index 60d74c9fd..000000000
--- a/code_sharing/server/bin/server.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-import 'dart:convert';
-import 'dart:io';
-
-import 'package:shared/shared.dart';
-import 'package:shelf/shelf.dart';
-import 'package:shelf/shelf_io.dart';
-import 'package:shelf_router/shelf_router.dart';
-
-int count = 0;
-
-// Configure routes.
-final _router = Router()
- ..post('/', _incrementHandler)
- ..get('/', _getValueHandler);
-
-Future _incrementHandler(Request request) async {
- final incr = Increment.fromJson(json.decode(await request.readAsString()));
- count += incr.by;
- return Response.ok(json.encode(Count(count).toJson()));
-}
-
-Response _getValueHandler(Request request) =>
- Response.ok(json.encode(Count(count).toJson()));
-
-void main(List args) async {
- // Use any available host or container IP (usually `0.0.0.0`).
- final ip = InternetAddress.anyIPv4;
-
- // Configure a pipeline that logs requests.
- final handler = Pipeline()
- .addMiddleware(logRequests())
- .addHandler(_router.call);
-
- // For running in containers, we respect the PORT environment variable.
- final port = int.parse(Platform.environment['PORT'] ?? '8080');
- final server = await serve(handler, ip, port);
- print('Server listening on port ${server.port}');
-}
diff --git a/code_sharing/server/pubspec.yaml b/code_sharing/server/pubspec.yaml
deleted file mode 100644
index 3d1827b11..000000000
--- a/code_sharing/server/pubspec.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-name: server
-description: A server app using the shelf package and Docker.
-version: 1.0.0
-publish_to: "none"
-resolution: workspace
-
-environment:
- sdk: ^3.9.0-0
-
-dependencies:
- args: ^2.0.0
- shelf: ^1.1.0
- shelf_router: ^1.0.0
- shared:
- path: ../shared
-
-dev_dependencies:
- analysis_defaults:
- path: ../../analysis_defaults
- http: ^1.0.0
- lints: ^6.0.0
- test: ^1.15.0
diff --git a/code_sharing/server/test/server_test.dart b/code_sharing/server/test/server_test.dart
deleted file mode 100644
index 99edfe073..000000000
--- a/code_sharing/server/test/server_test.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-import 'dart:convert';
-import 'dart:io';
-
-import 'package:http/http.dart';
-import 'package:test/test.dart';
-
-// Manual test:
-// $ dart bin/server.dart
-// $ curl -X POST -d '{"by": 1}' -H "Content-Type: application/json" localhost:8080/
-
-void main() {
- final port = '8080';
- final host = 'http://0.0.0.0:$port';
- late Process p;
-
- group(
- 'Integration test should',
- () {
- setUp(() async {
- p = await Process.start(
- 'dart',
- ['run', 'bin/server.dart'],
- environment: {'PORT': port},
- );
- // Wait for server to start and print to stdout.
- await p.stdout.first;
- });
-
- tearDown(() => p.kill());
-
- test('Increment', () async {
- final response = await post(Uri.parse('$host/'), body: '{"by": 1}');
- expect(response.statusCode, 200);
- expect(response.body, '{"value":1}');
- });
-
- test('Get', () async {
- final response = await get(Uri.parse('$host/'));
- expect(response.statusCode, 200);
- final resp = json.decode(response.body) as Map;
- expect(resp.containsKey('value'), true);
- });
- },
- onPlatform: {
- 'windows': [Skip('Failing on Windows CI')],
- },
- );
-}
diff --git a/code_sharing/shared/.gitignore b/code_sharing/shared/.gitignore
deleted file mode 100644
index 65c34dc86..000000000
--- a/code_sharing/shared/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-# Files and directories created by pub.
-.dart_tool/
-.packages
-
-# Conventional directory for build outputs.
-build/
-
-# Omit committing pubspec.lock for library packages; see
-# https://dart.dev/guides/libraries/private-files#pubspeclock.
-pubspec.lock
diff --git a/code_sharing/shared/CHANGELOG.md b/code_sharing/shared/CHANGELOG.md
deleted file mode 100644
index effe43c82..000000000
--- a/code_sharing/shared/CHANGELOG.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## 1.0.0
-
-- Initial version.
diff --git a/code_sharing/shared/README.md b/code_sharing/shared/README.md
deleted file mode 100644
index 8b55e735b..000000000
--- a/code_sharing/shared/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-TODO: Put a short description of the package here that helps potential users
-know whether this package might be useful for them.
-
-## Features
-
-TODO: List what your package can do. Maybe include images, gifs, or videos.
-
-## Getting started
-
-TODO: List prerequisites and provide or point to information on how to
-start using the package.
-
-## Usage
-
-TODO: Include short and useful examples for package users. Add longer examples
-to `/example` folder.
-
-```dart
-const like = 'sample';
-```
-
-## Additional information
-
-TODO: Tell users more about the package: where to find more information, how to
-contribute to the package, how to file issues, what response they can expect
-from the package authors, and more.
diff --git a/code_sharing/shared/analysis_options.yaml b/code_sharing/shared/analysis_options.yaml
deleted file mode 100644
index bab7a0c0c..000000000
--- a/code_sharing/shared/analysis_options.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-# This file configures the static analysis results for your project (errors,
-# warnings, and lints).
-#
-# This enables the 'recommended' set of lints from `package:lints`.
-# This set helps identify many issues that may lead to problems when running
-# or consuming Dart code, and enforces writing Dart using a single, idiomatic
-# style and format.
-#
-# If you want a smaller set of lints you can change this to specify
-# 'package:lints/core.yaml'. These are just the most critical lints
-# (the recommended set includes the core lints).
-# The core lints are also what is used by pub.dev for scoring packages.
-
-include: package:lints/recommended.yaml
-
-# Uncomment the following section to specify additional rules.
-
-# linter:
-# rules:
-# - camel_case_types
-
-analyzer:
- exclude:
- - "**/*.g.dart"
-# For more information about the core and recommended set of lints, see
-# https://dart.dev/go/core-lints
-
-# For additional information about configuring this file, see
-# https://dart.dev/guides/language/analysis-options
diff --git a/code_sharing/shared/lib/shared.dart b/code_sharing/shared/lib/shared.dart
deleted file mode 100644
index 781b37dbd..000000000
--- a/code_sharing/shared/lib/shared.dart
+++ /dev/null
@@ -1,4 +0,0 @@
-/// Common data models required by our client and server.
-library;
-
-export 'src/models.dart';
diff --git a/code_sharing/shared/lib/src/models.dart b/code_sharing/shared/lib/src/models.dart
deleted file mode 100644
index 12f4a6617..000000000
--- a/code_sharing/shared/lib/src/models.dart
+++ /dev/null
@@ -1,19 +0,0 @@
-import 'package:freezed_annotation/freezed_annotation.dart';
-
-part 'models.freezed.dart';
-part 'models.g.dart';
-
-@Freezed()
-class Increment with _$Increment {
- const factory Increment({required int by}) = _Increment;
-
- factory Increment.fromJson(Map json) =>
- _$IncrementFromJson(json);
-}
-
-@Freezed()
-class Count with _$Count {
- const factory Count(int value) = _Count;
-
- factory Count.fromJson(Map json) => _$CountFromJson(json);
-}
diff --git a/code_sharing/shared/lib/src/models.freezed.dart b/code_sharing/shared/lib/src/models.freezed.dart
deleted file mode 100644
index bd2ac83ae..000000000
--- a/code_sharing/shared/lib/src/models.freezed.dart
+++ /dev/null
@@ -1,285 +0,0 @@
-// coverage:ignore-file
-// GENERATED CODE - DO NOT MODIFY BY HAND
-// ignore_for_file: type=lint
-// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
-
-part of 'models.dart';
-
-// **************************************************************************
-// FreezedGenerator
-// **************************************************************************
-
-T _$identity(T value) => value;
-
-final _privateConstructorUsedError = UnsupportedError(
- 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods',
-);
-
-Increment _$IncrementFromJson(Map json) {
- return _Increment.fromJson(json);
-}
-
-/// @nodoc
-mixin _$Increment {
- int get by => throw _privateConstructorUsedError;
-
- Map toJson() => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $IncrementCopyWith get copyWith =>
- throw _privateConstructorUsedError;
-}
-
-/// @nodoc
-abstract class $IncrementCopyWith<$Res> {
- factory $IncrementCopyWith(Increment value, $Res Function(Increment) then) =
- _$IncrementCopyWithImpl<$Res, Increment>;
- @useResult
- $Res call({int by});
-}
-
-/// @nodoc
-class _$IncrementCopyWithImpl<$Res, $Val extends Increment>
- implements $IncrementCopyWith<$Res> {
- _$IncrementCopyWithImpl(this._value, this._then);
-
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
-
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? by = null}) {
- return _then(
- _value.copyWith(
- by: null == by
- ? _value.by
- : by // ignore: cast_nullable_to_non_nullable
- as int,
- )
- as $Val,
- );
- }
-}
-
-/// @nodoc
-abstract class _$$IncrementImplCopyWith<$Res>
- implements $IncrementCopyWith<$Res> {
- factory _$$IncrementImplCopyWith(
- _$IncrementImpl value,
- $Res Function(_$IncrementImpl) then,
- ) = __$$IncrementImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int by});
-}
-
-/// @nodoc
-class __$$IncrementImplCopyWithImpl<$Res>
- extends _$IncrementCopyWithImpl<$Res, _$IncrementImpl>
- implements _$$IncrementImplCopyWith<$Res> {
- __$$IncrementImplCopyWithImpl(
- _$IncrementImpl _value,
- $Res Function(_$IncrementImpl) _then,
- ) : super(_value, _then);
-
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? by = null}) {
- return _then(
- _$IncrementImpl(
- by: null == by
- ? _value.by
- : by // ignore: cast_nullable_to_non_nullable
- as int,
- ),
- );
- }
-}
-
-/// @nodoc
-@JsonSerializable()
-class _$IncrementImpl implements _Increment {
- const _$IncrementImpl({required this.by});
-
- factory _$IncrementImpl.fromJson(Map json) =>
- _$$IncrementImplFromJson(json);
-
- @override
- final int by;
-
- @override
- String toString() {
- return 'Increment(by: $by)';
- }
-
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$IncrementImpl &&
- (identical(other.by, by) || other.by == by));
- }
-
- @JsonKey(ignore: true)
- @override
- int get hashCode => Object.hash(runtimeType, by);
-
- @JsonKey(ignore: true)
- @override
- @pragma('vm:prefer-inline')
- _$$IncrementImplCopyWith<_$IncrementImpl> get copyWith =>
- __$$IncrementImplCopyWithImpl<_$IncrementImpl>(this, _$identity);
-
- @override
- Map toJson() {
- return _$$IncrementImplToJson(this);
- }
-}
-
-abstract class _Increment implements Increment {
- const factory _Increment({required final int by}) = _$IncrementImpl;
-
- factory _Increment.fromJson(Map json) =
- _$IncrementImpl.fromJson;
-
- @override
- int get by;
- @override
- @JsonKey(ignore: true)
- _$$IncrementImplCopyWith<_$IncrementImpl> get copyWith =>
- throw _privateConstructorUsedError;
-}
-
-Count _$CountFromJson(Map json) {
- return _Count.fromJson(json);
-}
-
-/// @nodoc
-mixin _$Count {
- int get value => throw _privateConstructorUsedError;
-
- Map toJson() => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $CountCopyWith get copyWith => throw _privateConstructorUsedError;
-}
-
-/// @nodoc
-abstract class $CountCopyWith<$Res> {
- factory $CountCopyWith(Count value, $Res Function(Count) then) =
- _$CountCopyWithImpl<$Res, Count>;
- @useResult
- $Res call({int value});
-}
-
-/// @nodoc
-class _$CountCopyWithImpl<$Res, $Val extends Count>
- implements $CountCopyWith<$Res> {
- _$CountCopyWithImpl(this._value, this._then);
-
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
-
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? value = null}) {
- return _then(
- _value.copyWith(
- value: null == value
- ? _value.value
- : value // ignore: cast_nullable_to_non_nullable
- as int,
- )
- as $Val,
- );
- }
-}
-
-/// @nodoc
-abstract class _$$CountImplCopyWith<$Res> implements $CountCopyWith<$Res> {
- factory _$$CountImplCopyWith(
- _$CountImpl value,
- $Res Function(_$CountImpl) then,
- ) = __$$CountImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int value});
-}
-
-/// @nodoc
-class __$$CountImplCopyWithImpl<$Res>
- extends _$CountCopyWithImpl<$Res, _$CountImpl>
- implements _$$CountImplCopyWith<$Res> {
- __$$CountImplCopyWithImpl(
- _$CountImpl _value,
- $Res Function(_$CountImpl) _then,
- ) : super(_value, _then);
-
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? value = null}) {
- return _then(
- _$CountImpl(
- null == value
- ? _value.value
- : value // ignore: cast_nullable_to_non_nullable
- as int,
- ),
- );
- }
-}
-
-/// @nodoc
-@JsonSerializable()
-class _$CountImpl implements _Count {
- const _$CountImpl(this.value);
-
- factory _$CountImpl.fromJson(Map json) =>
- _$$CountImplFromJson(json);
-
- @override
- final int value;
-
- @override
- String toString() {
- return 'Count(value: $value)';
- }
-
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$CountImpl &&
- (identical(other.value, value) || other.value == value));
- }
-
- @JsonKey(ignore: true)
- @override
- int get hashCode => Object.hash(runtimeType, value);
-
- @JsonKey(ignore: true)
- @override
- @pragma('vm:prefer-inline')
- _$$CountImplCopyWith<_$CountImpl> get copyWith =>
- __$$CountImplCopyWithImpl<_$CountImpl>(this, _$identity);
-
- @override
- Map toJson() {
- return _$$CountImplToJson(this);
- }
-}
-
-abstract class _Count implements Count {
- const factory _Count(final int value) = _$CountImpl;
-
- factory _Count.fromJson(Map json) = _$CountImpl.fromJson;
-
- @override
- int get value;
- @override
- @JsonKey(ignore: true)
- _$$CountImplCopyWith<_$CountImpl> get copyWith =>
- throw _privateConstructorUsedError;
-}
diff --git a/code_sharing/shared/lib/src/models.g.dart b/code_sharing/shared/lib/src/models.g.dart
deleted file mode 100644
index dc48f20da..000000000
--- a/code_sharing/shared/lib/src/models.g.dart
+++ /dev/null
@@ -1,19 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'models.dart';
-
-// **************************************************************************
-// JsonSerializableGenerator
-// **************************************************************************
-
-_$IncrementImpl _$$IncrementImplFromJson(Map json) =>
- _$IncrementImpl(by: json['by'] as int);
-
-Map _$$IncrementImplToJson(_$IncrementImpl instance) =>
- {'by': instance.by};
-
-_$CountImpl _$$CountImplFromJson(Map json) =>
- _$CountImpl(json['value'] as int);
-
-Map _$$CountImplToJson(_$CountImpl instance) =>
- {'value': instance.value};
diff --git a/code_sharing/shared/pubspec.yaml b/code_sharing/shared/pubspec.yaml
deleted file mode 100644
index 3b43652d7..000000000
--- a/code_sharing/shared/pubspec.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-name: shared
-description: Common data models required by our client and server
-version: 1.0.0
-resolution: workspace
-
-environment:
- sdk: ^3.9.0-0
-
-dependencies:
- freezed_annotation: ">=2.1.0 <4.0.0"
- json_annotation: ^4.7.0
-
-dev_dependencies:
- analysis_defaults:
- path: ../../analysis_defaults
- build_runner: ^2.2.1
- freezed: ">=2.1.1 <4.0.0"
- json_serializable: ^6.4.0
- lints: ">=5.0.0 <7.0.0"
- test: ^1.16.0
diff --git a/code_sharing/shared/test/shared_test.dart b/code_sharing/shared/test/shared_test.dart
deleted file mode 100644
index 990cbc667..000000000
--- a/code_sharing/shared/test/shared_test.dart
+++ /dev/null
@@ -1,17 +0,0 @@
-import 'package:shared/shared.dart';
-import 'package:test/test.dart';
-
-void main() {
- test('Increment serialization', () {
- expect(Increment(by: 3).toJson(), {'by': 3});
- });
- test('Increment derialization', () {
- expect(Increment.fromJson({'by': 5}), Increment(by: 5));
- });
- test('Count serialization', () {
- expect(Count(3).toJson(), {'value': 3});
- });
- test('Count derialization', () {
- expect(Count.fromJson({'value': 5}), Count(5));
- });
-}
diff --git a/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart b/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart
index e33196c1f..066fd00f1 100644
--- a/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart
+++ b/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart
@@ -43,6 +43,8 @@ class _LoginScreenState extends State {
@override
void dispose() {
+ _email.dispose();
+ _password.dispose();
widget.viewModel.login.removeListener(_onResult);
super.dispose();
}
diff --git a/context_menus/.metadata b/context_menus/.metadata
deleted file mode 100644
index a7cbe7932..000000000
--- a/context_menus/.metadata
+++ /dev/null
@@ -1,45 +0,0 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled.
-
-version:
- revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- channel: beta
-
-project_type: app
-
-# Tracks metadata for the flutter migrate command
-migration:
- platforms:
- - platform: root
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: android
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: ios
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: linux
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: macos
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: web
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- - platform: windows
- create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
- base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
-
- # User provided section
-
- # List of Local paths (relative to this file) that should be
- # ignored by the migrate tool.
- #
- # Files that are not part of the templates will be ignored by default.
- unmanaged_files:
- - 'lib/main.dart'
- - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/context_menus/README.md b/context_menus/README.md
deleted file mode 100644
index 920e4587c..000000000
--- a/context_menus/README.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# Custom Context Menus
-
-This sample shows how to create and customize cross-platform context menus,
-such as the text selection toolbar on mobile or the right click menu on desktop.
-
-|  |  |  |  |
-| --- | --- | --- | --- |
-
-## Running the sample
-
-Just run `flutter run` in the same directory as this README file.
-
-## The examples
-
-### [Anywhere](https://github.com/flutter/samples/blob/main/context_menus/lib/anywhere_page.dart)
-Shows how to create a context menu in the parts of an app that don't related to
-text selection. For example, a menu in a desktop app that shows when the
-background of the app is right clicked.
-
-### [Cascading menus](https://github.com/flutter/samples/blob/main/context_menus/lib/cascading_menu_page.dart)
-Shows how to create a context menu with cascading submenus using
-[SubmenuButton](https://master-api.flutter.dev/flutter/material/SubmenuButton-class.html).
-
-### [Custom buttons](https://github.com/flutter/samples/blob/main/context_menus/lib/custom_buttons_page.dart)
-Shows how to customize the default buttons in the existing context menus.
-
-### [Custom menu](https://github.com/flutter/samples/blob/main/context_menus/lib/custom_menu_page.dart)
-Shows how to use any custom widgets as the menu itself, including the option to
-keep the default buttons.
-
-### [Default values](https://github.com/flutter/samples/blob/main/context_menus/lib/default_values_page.dart)
-Demonstrates how the
-[contextMenuBuilder](https://master-api.flutter.dev/flutter/material/TextField/contextMenuBuilder.html)
-property works with various possible values.
-
-### [Email button](https://github.com/flutter/samples/blob/main/context_menus/lib/email_button_page.dart)
-Shows how to create an "email" button in the default context menu that shows
-only when an email address is selected.
-
-### [Field types](https://github.com/flutter/samples/blob/main/context_menus/lib/field_types_page.dart)
-Shows how context menus work in the various different field widgets:
-EditableText, TextField, and CupertinoTextField.
-
-### [Global selection](https://github.com/flutter/samples/blob/main/context_menus/lib/global_selection_page.dart)
-Shows how to create a custom context menu in non-editable selection with
-[SelectionArea](https://master-api.flutter.dev/flutter/material/SelectionArea-class.html).
-
-### [On a widget](https://github.com/flutter/samples/blob/main/context_menus/lib/image_page.dart)
-Shows how to make a widget show a context menu on right click or long press, in
-this case an Image widget.
-
-### [Modified action](https://github.com/flutter/samples/blob/main/context_menus/lib/modified_action_page.dart)
-Shows how to modify an existing button so that a custom action is performed when
-it is tapped.
-
-### [Reordered buttons](https://github.com/flutter/samples/blob/main/context_menus/lib/reordered_buttons_page.dart)
-Shows how to change the order of the default buttons.
diff --git a/context_menus/android/.gitignore b/context_menus/android/.gitignore
deleted file mode 100644
index 6f568019d..000000000
--- a/context_menus/android/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
-
-# Remember to never publicly share your keystore.
-# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
-key.properties
-**/*.keystore
-**/*.jks
diff --git a/context_menus/android/app/build.gradle b/context_menus/android/app/build.gradle
deleted file mode 100644
index 775d15df9..000000000
--- a/context_menus/android/app/build.gradle
+++ /dev/null
@@ -1,71 +0,0 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-android {
- compileSdkVersion flutter.compileSdkVersion
- ndkVersion flutter.ndkVersion
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- kotlinOptions {
- jvmTarget = '1.8'
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "com.example.context_menus"
- // You can update the following values to match your application needs.
- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
- minSdkVersion flutter.minSdkVersion
- targetSdkVersion flutter.targetSdkVersion
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- }
-
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
diff --git a/context_menus/android/app/src/debug/AndroidManifest.xml b/context_menus/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index 4c8d7f592..000000000
--- a/context_menus/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/context_menus/android/app/src/main/AndroidManifest.xml b/context_menus/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 3dc0edf13..000000000
--- a/context_menus/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/context_menus/android/app/src/main/kotlin/com/example/context_menus/MainActivity.kt b/context_menus/android/app/src/main/kotlin/com/example/context_menus/MainActivity.kt
deleted file mode 100644
index ab0cf89ae..000000000
--- a/context_menus/android/app/src/main/kotlin/com/example/context_menus/MainActivity.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.example.context_menus
-
-import io.flutter.embedding.android.FlutterActivity
-
-class MainActivity: FlutterActivity() {
-}
diff --git a/context_menus/android/app/src/main/res/drawable-v21/launch_background.xml b/context_menus/android/app/src/main/res/drawable-v21/launch_background.xml
deleted file mode 100644
index f74085f3f..000000000
--- a/context_menus/android/app/src/main/res/drawable-v21/launch_background.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/context_menus/android/app/src/main/res/drawable/launch_background.xml b/context_menus/android/app/src/main/res/drawable/launch_background.xml
deleted file mode 100644
index 304732f88..000000000
--- a/context_menus/android/app/src/main/res/drawable/launch_background.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/context_menus/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/context_menus/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index db77bb4b7..000000000
Binary files a/context_menus/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/context_menus/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/context_menus/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index 17987b79b..000000000
Binary files a/context_menus/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/context_menus/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/context_menus/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 09d439148..000000000
Binary files a/context_menus/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/context_menus/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/context_menus/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index d5f1c8d34..000000000
Binary files a/context_menus/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/context_menus/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/context_menus/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index 4d6372eeb..000000000
Binary files a/context_menus/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/context_menus/android/app/src/main/res/values-night/styles.xml b/context_menus/android/app/src/main/res/values-night/styles.xml
deleted file mode 100644
index 06952be74..000000000
--- a/context_menus/android/app/src/main/res/values-night/styles.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
diff --git a/context_menus/android/app/src/main/res/values/styles.xml b/context_menus/android/app/src/main/res/values/styles.xml
deleted file mode 100644
index cb1ef8805..000000000
--- a/context_menus/android/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
diff --git a/context_menus/android/app/src/profile/AndroidManifest.xml b/context_menus/android/app/src/profile/AndroidManifest.xml
deleted file mode 100644
index 4c8d7f592..000000000
--- a/context_menus/android/app/src/profile/AndroidManifest.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/context_menus/android/build.gradle b/context_menus/android/build.gradle
deleted file mode 100644
index e50c3a02b..000000000
--- a/context_menus/android/build.gradle
+++ /dev/null
@@ -1,31 +0,0 @@
-buildscript {
- ext.kotlin_version = '1.7.10'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:7.3.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/context_menus/android/gradle.properties b/context_menus/android/gradle.properties
deleted file mode 100644
index 94adc3a3f..000000000
--- a/context_menus/android/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/context_menus/android/gradle/wrapper/gradle-wrapper.properties b/context_menus/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 3c472b99c..000000000
--- a/context_menus/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
diff --git a/context_menus/android/settings.gradle b/context_menus/android/settings.gradle
deleted file mode 100644
index 44e62bcf0..000000000
--- a/context_menus/android/settings.gradle
+++ /dev/null
@@ -1,11 +0,0 @@
-include ':app'
-
-def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
-def properties = new Properties()
-
-assert localPropertiesFile.exists()
-localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
-
-def flutterSdkPath = properties.getProperty("flutter.sdk")
-assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
-apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/context_menus/ios/.gitignore b/context_menus/ios/.gitignore
deleted file mode 100644
index 7a7f9873a..000000000
--- a/context_menus/ios/.gitignore
+++ /dev/null
@@ -1,34 +0,0 @@
-**/dgph
-*.mode1v3
-*.mode2v3
-*.moved-aside
-*.pbxuser
-*.perspectivev3
-**/*sync/
-.sconsign.dblite
-.tags*
-**/.vagrant/
-**/DerivedData/
-Icon?
-**/Pods/
-**/.symlinks/
-profile
-xcuserdata
-**/.generated/
-Flutter/App.framework
-Flutter/Flutter.framework
-Flutter/Flutter.podspec
-Flutter/Generated.xcconfig
-Flutter/ephemeral/
-Flutter/app.flx
-Flutter/app.zip
-Flutter/flutter_assets/
-Flutter/flutter_export_environment.sh
-ServiceDefinitions.json
-Runner/GeneratedPluginRegistrant.*
-
-# Exceptions to above rules.
-!default.mode1v3
-!default.mode2v3
-!default.pbxuser
-!default.perspectivev3
diff --git a/context_menus/ios/Flutter/AppFrameworkInfo.plist b/context_menus/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 9625e105d..000000000
--- a/context_menus/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- MinimumOSVersion
- 11.0
-
-
diff --git a/context_menus/ios/Flutter/Debug.xcconfig b/context_menus/ios/Flutter/Debug.xcconfig
deleted file mode 100644
index ec97fc6f3..000000000
--- a/context_menus/ios/Flutter/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "Generated.xcconfig"
diff --git a/context_menus/ios/Flutter/Release.xcconfig b/context_menus/ios/Flutter/Release.xcconfig
deleted file mode 100644
index c4855bfe2..000000000
--- a/context_menus/ios/Flutter/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "Generated.xcconfig"
diff --git a/context_menus/ios/Podfile b/context_menus/ios/Podfile
deleted file mode 100644
index fdcc671eb..000000000
--- a/context_menus/ios/Podfile
+++ /dev/null
@@ -1,44 +0,0 @@
-# Uncomment this line to define a global platform for your project
-# platform :ios, '11.0'
-
-# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
-ENV['COCOAPODS_DISABLE_STATS'] = 'true'
-
-project 'Runner', {
- 'Debug' => :debug,
- 'Profile' => :release,
- 'Release' => :release,
-}
-
-def flutter_root
- generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
- unless File.exist?(generated_xcode_build_settings_path)
- raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
- end
-
- File.foreach(generated_xcode_build_settings_path) do |line|
- matches = line.match(/FLUTTER_ROOT\=(.*)/)
- return matches[1].strip if matches
- end
- raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
-end
-
-require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
-
-flutter_ios_podfile_setup
-
-target 'Runner' do
- use_frameworks!
- use_modular_headers!
-
- flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
- target 'RunnerTests' do
- inherit! :search_paths
- end
-end
-
-post_install do |installer|
- installer.pods_project.targets.each do |target|
- flutter_additional_ios_build_settings(target)
- end
-end
diff --git a/context_menus/ios/Runner.xcodeproj/project.pbxproj b/context_menus/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index 0b4966f21..000000000
--- a/context_menus/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,616 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 54;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
- 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 97C146E61CF9000F007C117D /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 97C146ED1CF9000F007C117D;
- remoteInfo = Runner;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
- 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 331C8082294A63A400263BE5 /* RunnerTests */ = {
- isa = PBXGroup;
- children = (
- 331C807B294A618700263BE5 /* RunnerTests.swift */,
- );
- path = RunnerTests;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- 331C8082294A63A400263BE5 /* RunnerTests */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 331C8080294A63A400263BE5 /* RunnerTests */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
- buildPhases = (
- 331C807D294A63A400263BE5 /* Sources */,
- 331C807E294A63A400263BE5 /* Frameworks */,
- 331C807F294A63A400263BE5 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- 331C8086294A63A400263BE5 /* PBXTargetDependency */,
- );
- name = RunnerTests;
- productName = RunnerTests;
- productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
- productType = "com.apple.product-type.bundle.unit-test";
- };
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1300;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 331C8080294A63A400263BE5 = {
- CreatedOnToolsVersion = 14.0;
- TestTargetID = 97C146ED1CF9000F007C117D;
- };
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- 331C8080294A63A400263BE5 /* RunnerTests */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 331C807F294A63A400263BE5 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 331C807D294A63A400263BE5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 97C146ED1CF9000F007C117D /* Runner */;
- targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = TC87DMJLQP;
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 331C8088294A63A400263BE5 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
- };
- name = Debug;
- };
- 331C8089294A63A400263BE5 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
- };
- name = Release;
- };
- 331C808A294A63A400263BE5 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = TC87DMJLQP;
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = TC87DMJLQP;
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 331C8088294A63A400263BE5 /* Debug */,
- 331C8089294A63A400263BE5 /* Release */,
- 331C808A294A63A400263BE5 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/context_menus/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/context_menus/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 919434a62..000000000
--- a/context_menus/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/context_menus/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/context_menus/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d981003..000000000
--- a/context_menus/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/context_menus/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/context_menus/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
deleted file mode 100644
index f9b0d7c5e..000000000
--- a/context_menus/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- PreviewsEnabled
-
-
-
diff --git a/context_menus/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/context_menus/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index e42adcb34..000000000
--- a/context_menus/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/context_menus/ios/Runner.xcworkspace/contents.xcworkspacedata b/context_menus/ios/Runner.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 1d526a16e..000000000
--- a/context_menus/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/context_menus/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/context_menus/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d981003..000000000
--- a/context_menus/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/context_menus/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/context_menus/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
deleted file mode 100644
index f9b0d7c5e..000000000
--- a/context_menus/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- PreviewsEnabled
-
-
-
diff --git a/context_menus/ios/Runner/AppDelegate.swift b/context_menus/ios/Runner/AppDelegate.swift
deleted file mode 100644
index 70693e4a8..000000000
--- a/context_menus/ios/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,13 +0,0 @@
-import UIKit
-import Flutter
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-}
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index d36b1fab2..000000000
--- a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- "images" : [
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "Icon-App-20x20@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "Icon-App-20x20@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-App-40x40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-App-40x40@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-App-60x60@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-App-60x60@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "Icon-App-20x20@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "Icon-App-20x20@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-App-29x29@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-App-29x29@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-App-40x40@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-App-40x40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-App-76x76@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-App-76x76@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "83.5x83.5",
- "idiom" : "ipad",
- "filename" : "Icon-App-83.5x83.5@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "1024x1024",
- "idiom" : "ios-marketing",
- "filename" : "Icon-App-1024x1024@1x.png",
- "scale" : "1x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
deleted file mode 100644
index dc9ada472..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
deleted file mode 100644
index 7353c41ec..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
deleted file mode 100644
index 797d452e4..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
deleted file mode 100644
index 6ed2d933e..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
deleted file mode 100644
index 4cd7b0099..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
deleted file mode 100644
index fe730945a..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
deleted file mode 100644
index 321773cd8..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
deleted file mode 100644
index 797d452e4..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
deleted file mode 100644
index 502f463a9..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
deleted file mode 100644
index 0ec303439..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
deleted file mode 100644
index 0ec303439..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
deleted file mode 100644
index e9f5fea27..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
deleted file mode 100644
index 84ac32ae7..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
deleted file mode 100644
index 8953cba09..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
deleted file mode 100644
index 0467bf12a..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
deleted file mode 100644
index 0bedcf2fd..000000000
--- a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "filename" : "LaunchImage.png",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@2x.png",
- "scale" : "2x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@3x.png",
- "scale" : "3x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
deleted file mode 100644
index 9da19eaca..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
deleted file mode 100644
index 9da19eaca..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
deleted file mode 100644
index 9da19eaca..000000000
Binary files a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ
diff --git a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
deleted file mode 100644
index 89c2725b7..000000000
--- a/context_menus/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Launch Screen Assets
-
-You can customize the launch screen with your own desired assets by replacing the image files in this directory.
-
-You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/context_menus/ios/Runner/Base.lproj/LaunchScreen.storyboard b/context_menus/ios/Runner/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index f2e259c7c..000000000
--- a/context_menus/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/context_menus/ios/Runner/Base.lproj/Main.storyboard b/context_menus/ios/Runner/Base.lproj/Main.storyboard
deleted file mode 100644
index f3c28516f..000000000
--- a/context_menus/ios/Runner/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/context_menus/ios/Runner/Info.plist b/context_menus/ios/Runner/Info.plist
deleted file mode 100644
index d2a721f23..000000000
--- a/context_menus/ios/Runner/Info.plist
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleDisplayName
- Context Menus
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- context_menus
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
- CADisableMinimumFrameDurationOnPhone
-
- UIApplicationSupportsIndirectInputEvents
-
-
-
diff --git a/context_menus/ios/Runner/Runner-Bridging-Header.h b/context_menus/ios/Runner/Runner-Bridging-Header.h
deleted file mode 100644
index 308a2a560..000000000
--- a/context_menus/ios/Runner/Runner-Bridging-Header.h
+++ /dev/null
@@ -1 +0,0 @@
-#import "GeneratedPluginRegistrant.h"
diff --git a/context_menus/ios/RunnerTests/RunnerTests.swift b/context_menus/ios/RunnerTests/RunnerTests.swift
deleted file mode 100644
index 86a7c3b1b..000000000
--- a/context_menus/ios/RunnerTests/RunnerTests.swift
+++ /dev/null
@@ -1,12 +0,0 @@
-import Flutter
-import UIKit
-import XCTest
-
-class RunnerTests: XCTestCase {
-
- func testExample() {
- // If you add code to the Runner application, consider adding tests here.
- // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
- }
-
-}
diff --git a/context_menus/lib/anywhere_page.dart b/context_menus/lib/anywhere_page.dart
deleted file mode 100644
index 78f4346b1..000000000
--- a/context_menus/lib/anywhere_page.dart
+++ /dev/null
@@ -1,95 +0,0 @@
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'context_menu_region.dart';
-import 'platform_selector.dart';
-
-class AnywherePage extends StatelessWidget {
- AnywherePage({super.key, required this.onChangedPlatform});
-
- static const String route = 'anywhere';
- static const String title = 'Context Menu Anywhere Example';
- static const String subtitle = 'A context menu outside of a text field';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _materialController = TextEditingController(
- text: 'TextField shows the default menu still.',
- );
- final TextEditingController _cupertinoController = TextEditingController(
- text: 'CupertinoTextField shows the default menu still.',
- );
- final TextEditingController _editableController = TextEditingController(
- text: 'EditableText has no default menu, so it shows the custom one.',
- );
-
- static const String url = '$kCodeUrl/anywhere_page.dart';
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(AnywherePage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: ContextMenuRegion(
- contextMenuBuilder: (context, primaryAnchor, [secondaryAnchor]) {
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: TextSelectionToolbarAnchors(
- primaryAnchor: primaryAnchor,
- secondaryAnchor: secondaryAnchor as Offset?,
- ),
- buttonItems: [
- ContextMenuButtonItem(
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).pop();
- },
- label: 'Back',
- ),
- ],
- );
- },
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 64.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- Container(height: 20.0),
- const Text(
- 'Right click anywhere outside of a field to show a custom menu.',
- ),
- Container(height: 140.0),
- CupertinoTextField(controller: _cupertinoController),
- Container(height: 40.0),
- TextField(controller: _materialController),
- Container(height: 40.0),
- Container(
- color: Colors.white,
- child: EditableText(
- controller: _editableController,
- focusNode: FocusNode(),
- style: Typography.material2021().black.displayMedium!,
- cursorColor: Colors.blue,
- backgroundCursorColor: Colors.white,
- ),
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/cascading_menu_page.dart b/context_menus/lib/cascading_menu_page.dart
deleted file mode 100644
index 173f556ed..000000000
--- a/context_menus/lib/cascading_menu_page.dart
+++ /dev/null
@@ -1,313 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'context_menu_region.dart';
-import 'platform_selector.dart';
-
-// This example is based on the MenuBar docs example:
-// https://master-api.flutter.dev/flutter/material/MenuBar-class.html
-
-class CascadingMenuPage extends StatelessWidget {
- const CascadingMenuPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'cascading';
- static const String title = 'Cascading Menu Example';
- static const String subtitle = 'A context menu with nested submenus.';
-
- final PlatformCallback onChangedPlatform;
-
- static const String url = '$kCodeUrl/anywhere_page.dart';
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(CascadingMenuPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: const _MyContextMenuRegion(),
- );
- }
-}
-
-class _MyContextMenuRegion extends StatefulWidget {
- const _MyContextMenuRegion();
-
- @override
- State<_MyContextMenuRegion> createState() => _MyContextMenuRegionState();
-}
-
-class _MyContextMenuRegionState extends State<_MyContextMenuRegion> {
- String? _lastSelection;
-
- Color get backgroundColor => _backgroundColor;
- Color _backgroundColor = Colors.red;
- set backgroundColor(Color value) {
- if (_backgroundColor != value) {
- setState(() {
- _backgroundColor = value;
- });
- }
- }
-
- bool get showingMessage => _showMessage;
- bool _showMessage = true;
- set showingMessage(bool value) {
- if (_showMessage != value) {
- setState(() {
- _showMessage = value;
- });
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return ContextMenuRegion(
- contextMenuBuilder: (context, primaryAnchor, [secondaryAnchor]) {
- return _MyCascadingContextMenu(
- anchor: primaryAnchor,
- showingMessage: _showMessage,
- onToggleMessageVisibility: () {
- setState(() {
- _showMessage = !_showMessage;
- });
- },
- onChangeBackgroundColor: (color) {
- setState(() {
- _backgroundColor = color;
- });
- },
- onChangeSelection: (selection) {
- setState(() {
- _lastSelection = selection;
- });
- },
- );
- },
- child: Container(
- alignment: Alignment.center,
- color: backgroundColor,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: Text(
- showingMessage
- ? 'Right click or long press anywhere to show the cascading menu.'
- : '',
- style: Theme.of(context).textTheme.headlineSmall,
- ),
- ),
- Text(
- _lastSelection != null ? 'Last Selected: $_lastSelection' : '',
- ),
- ],
- ),
- ),
- );
- }
-}
-
-/// A class for consolidating the definition of menu entries.
-///
-/// This sort of class is not required, but illustrates one way that defining
-/// menus could be done.
-class MenuEntry {
- const MenuEntry({
- required this.label,
- this.shortcut,
- this.onPressed,
- this.menuChildren,
- }) : assert(
- menuChildren == null || onPressed == null,
- 'onPressed is ignored if menuChildren are provided',
- );
- final String label;
-
- final MenuSerializableShortcut? shortcut;
- final VoidCallback? onPressed;
- final List? menuChildren;
-
- static List build(List selections) {
- Widget buildSelection(MenuEntry selection) {
- if (selection.menuChildren != null) {
- return SubmenuButton(
- menuChildren: MenuEntry.build(selection.menuChildren!),
- child: Text(selection.label),
- );
- }
- return MenuItemButton(
- shortcut: selection.shortcut,
- onPressed: selection.onPressed,
- child: Text(selection.label),
- );
- }
-
- return selections.map(buildSelection).toList();
- }
-
- static Map shortcuts(
- List selections,
- ) {
- final Map result =
- {};
- for (final MenuEntry selection in selections) {
- if (selection.menuChildren != null) {
- result.addAll(MenuEntry.shortcuts(selection.menuChildren!));
- } else {
- if (selection.shortcut != null && selection.onPressed != null) {
- result[selection.shortcut!] = VoidCallbackIntent(
- selection.onPressed!,
- );
- }
- }
- }
- return result;
- }
-}
-
-typedef _StringCallback = void Function(String string);
-typedef _ColorCallback = void Function(Color color);
-
-class _MyCascadingContextMenu extends StatefulWidget {
- const _MyCascadingContextMenu({
- required this.anchor,
- required this.onToggleMessageVisibility,
- required this.onChangeBackgroundColor,
- required this.onChangeSelection,
- required this.showingMessage,
- });
-
- final Offset anchor;
- final VoidCallback onToggleMessageVisibility;
- final _ColorCallback onChangeBackgroundColor;
- final _StringCallback onChangeSelection;
- final bool showingMessage;
-
- @override
- State<_MyCascadingContextMenu> createState() =>
- _MyCascadingContextMenuState();
-}
-
-class _MyCascadingContextMenuState extends State<_MyCascadingContextMenu> {
- ShortcutRegistryEntry? _shortcutsEntry;
-
- List get _menus {
- final List result = [
- MenuEntry(
- label: 'About',
- onPressed: () {
- ContextMenuController.removeAny();
- showAboutDialog(
- context: context,
- applicationName: 'MenuBar Sample',
- applicationVersion: '1.0.0',
- );
- widget.onChangeSelection('About');
- },
- ),
- MenuEntry(
- label: widget.showingMessage ? 'Hide' : 'Show',
- onPressed: () {
- ContextMenuController.removeAny();
- widget.onChangeSelection(
- widget.showingMessage ? 'Hide Message' : 'Show Message',
- );
- widget.onToggleMessageVisibility();
- },
- shortcut: const SingleActivator(
- LogicalKeyboardKey.keyS,
- control: true,
- ),
- ),
- // Hides the message, but is only enabled if the message isn't
- // already hidden.
- MenuEntry(
- label: 'Reset',
- onPressed: widget.showingMessage
- ? () {
- ContextMenuController.removeAny();
- widget.onChangeSelection('Reset');
- widget.onToggleMessageVisibility();
- }
- : null,
- shortcut: const SingleActivator(LogicalKeyboardKey.escape),
- ),
- MenuEntry(
- label: 'Color',
- menuChildren: [
- MenuEntry(
- label: 'Red',
- onPressed: () {
- ContextMenuController.removeAny();
- widget.onChangeSelection('Red Background');
- widget.onChangeBackgroundColor(Colors.red);
- },
- shortcut: const SingleActivator(
- LogicalKeyboardKey.keyR,
- control: true,
- ),
- ),
- MenuEntry(
- label: 'Green',
- onPressed: () {
- ContextMenuController.removeAny();
- widget.onChangeSelection('Green Background');
- widget.onChangeBackgroundColor(Colors.green);
- },
- shortcut: const SingleActivator(
- LogicalKeyboardKey.keyG,
- control: true,
- ),
- ),
- MenuEntry(
- label: 'Blue',
- onPressed: () {
- ContextMenuController.removeAny();
- widget.onChangeSelection('Blue Background');
- widget.onChangeBackgroundColor(Colors.blue);
- },
- shortcut: const SingleActivator(
- LogicalKeyboardKey.keyB,
- control: true,
- ),
- ),
- ],
- ),
- ];
- // (Re-)register the shortcuts with the ShortcutRegistry so that they are
- // available to the entire application, and update them if they've changed.
- _shortcutsEntry?.dispose();
- _shortcutsEntry = ShortcutRegistry.of(
- context,
- ).addAll(MenuEntry.shortcuts(result));
- return result;
- }
-
- @override
- void dispose() {
- _shortcutsEntry?.dispose();
- super.dispose();
- }
-
- @override
- Widget build(BuildContext context) {
- return DesktopTextSelectionToolbar(
- anchor: widget.anchor,
- children: MenuEntry.build(_menus),
- );
- }
-}
diff --git a/context_menus/lib/constants.dart b/context_menus/lib/constants.dart
deleted file mode 100644
index 05936346c..000000000
--- a/context_menus/lib/constants.dart
+++ /dev/null
@@ -1,2 +0,0 @@
-const String kCodeUrl =
- 'https://github.com/flutter/samples/blob/experimental/context_menus/lib';
diff --git a/context_menus/lib/context_menu_region.dart b/context_menus/lib/context_menu_region.dart
deleted file mode 100644
index 89aa5f842..000000000
--- a/context_menus/lib/context_menu_region.dart
+++ /dev/null
@@ -1,97 +0,0 @@
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-
-typedef ContextMenuBuilder =
- Widget Function(BuildContext context, Offset offset);
-
-/// Shows and hides the context menu based on user gestures.
-///
-/// By default, shows the menu on right clicks and long presses.
-class ContextMenuRegion extends StatefulWidget {
- /// Creates an instance of [ContextMenuRegion].
- const ContextMenuRegion({
- super.key,
- required this.child,
- required this.contextMenuBuilder,
- });
-
- /// Builds the context menu.
- final ContextMenuBuilder contextMenuBuilder;
-
- /// The child widget that will be listened to for gestures.
- final Widget child;
-
- @override
- State createState() => _ContextMenuRegionState();
-}
-
-class _ContextMenuRegionState extends State {
- Offset? _longPressOffset;
-
- final ContextMenuController _contextMenuController = ContextMenuController();
-
- static bool get _longPressEnabled {
- switch (defaultTargetPlatform) {
- case TargetPlatform.android:
- case TargetPlatform.iOS:
- return true;
- case TargetPlatform.macOS:
- case TargetPlatform.fuchsia:
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- return false;
- }
- }
-
- void _onSecondaryTapUp(TapUpDetails details) {
- _show(details.globalPosition);
- }
-
- void _onTap() {
- if (!_contextMenuController.isShown) {
- return;
- }
- _hide();
- }
-
- void _onLongPressStart(LongPressStartDetails details) {
- _longPressOffset = details.globalPosition;
- }
-
- void _onLongPress() {
- assert(_longPressOffset != null);
- _show(_longPressOffset!);
- _longPressOffset = null;
- }
-
- void _show(Offset position) {
- _contextMenuController.show(
- context: context,
- contextMenuBuilder: (context) {
- return widget.contextMenuBuilder(context, position);
- },
- );
- }
-
- void _hide() {
- _contextMenuController.remove();
- }
-
- @override
- void dispose() {
- _hide();
- super.dispose();
- }
-
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- behavior: HitTestBehavior.opaque,
- onSecondaryTapUp: _onSecondaryTapUp,
- onTap: _onTap,
- onLongPress: _longPressEnabled ? _onLongPress : null,
- onLongPressStart: _longPressEnabled ? _onLongPressStart : null,
- child: widget.child,
- );
- }
-}
diff --git a/context_menus/lib/custom_buttons_page.dart b/context_menus/lib/custom_buttons_page.dart
deleted file mode 100644
index 573978435..000000000
--- a/context_menus/lib/custom_buttons_page.dart
+++ /dev/null
@@ -1,83 +0,0 @@
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class CustomButtonsPage extends StatelessWidget {
- CustomButtonsPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'custom-buttons';
- static const String title = 'Custom Buttons';
- static const String subtitle =
- 'The usual buttons, but with a custom appearance.';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text:
- 'Show the menu to see the usual default buttons, but with a custom appearance.',
- );
-
- static const String url = '$kCodeUrl/custom_buttons_page.dart';
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(CustomButtonsPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 300.0,
- child: TextField(
- controller: _controller,
- maxLines: 4,
- minLines: 2,
- contextMenuBuilder: (context, editableTextState) {
- return AdaptiveTextSelectionToolbar(
- anchors: editableTextState.contextMenuAnchors,
- // Build the default buttons, but make them look custom.
- // Note that in a real project you may want to build
- // different buttons depending on the platform.
- children: editableTextState.contextMenuButtonItems.map((
- buttonItem,
- ) {
- return CupertinoButton(
- borderRadius: null,
- color: const Color(0xffaaaa00),
- disabledColor: const Color(0xffaaaaff),
- onPressed: buttonItem.onPressed,
- padding: const EdgeInsets.all(10.0),
- pressedOpacity: 0.7,
- child: SizedBox(
- width: 200.0,
- child: Text(
- CupertinoTextSelectionToolbarButton.getButtonLabel(
- context,
- buttonItem,
- ),
- ),
- ),
- );
- }).toList(),
- );
- },
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/custom_menu_page.dart b/context_menus/lib/custom_menu_page.dart
deleted file mode 100644
index 53deaceac..000000000
--- a/context_menus/lib/custom_menu_page.dart
+++ /dev/null
@@ -1,86 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class CustomMenuPage extends StatelessWidget {
- CustomMenuPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'custom-menu';
- static const String title = 'Custom Menu';
- static const String subtitle =
- 'A custom menu built from scratch, but using the default buttons.';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text: 'Show the menu to see a custom menu with the default buttons.',
- );
-
- static const String url = '$kCodeUrl/custom_menu_page.dart';
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(CustomMenuPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 300.0,
- child: TextField(
- controller: _controller,
- maxLines: 4,
- minLines: 2,
- contextMenuBuilder: (context, editableTextState) {
- return _MyContextMenu(
- anchor: editableTextState.contextMenuAnchors.primaryAnchor,
- children: AdaptiveTextSelectionToolbar.getAdaptiveButtons(
- context,
- editableTextState.contextMenuButtonItems,
- ).toList(),
- );
- },
- ),
- ),
- ),
- );
- }
-}
-
-class _MyContextMenu extends StatelessWidget {
- const _MyContextMenu({required this.anchor, required this.children});
-
- final Offset anchor;
- final List children;
-
- @override
- Widget build(BuildContext context) {
- return Stack(
- children: [
- Positioned(
- top: anchor.dy,
- left: anchor.dx,
- child: Container(
- width: 200.0,
- height: 200.0,
- color: Colors.amberAccent,
- child: Column(children: children),
- ),
- ),
- ],
- );
- }
-}
diff --git a/context_menus/lib/default_values_page.dart b/context_menus/lib/default_values_page.dart
deleted file mode 100644
index 8063e7618..000000000
--- a/context_menus/lib/default_values_page.dart
+++ /dev/null
@@ -1,107 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class DefaultValuesPage extends StatelessWidget {
- DefaultValuesPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'default-values';
- static const String title = 'Default API Values Example';
- static const String subtitle =
- 'Shows what happens when you pass various things into contextMenuBuilder.';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controllerNone = TextEditingController(
- text: "When contextMenuBuilder isn't given anything at all.",
- );
-
- final TextEditingController _controllerNull = TextEditingController(
- text: "When contextMenuBuilder is explicitly given null.",
- );
-
- final TextEditingController _controllerCustom = TextEditingController(
- text: "When something custom is passed to contextMenuBuilder.",
- );
-
- static const String url = '$kCodeUrl/default_values_page.dart';
-
- DialogRoute _showDialog(BuildContext context, String message) {
- return DialogRoute(
- context: context,
- builder: (context) => AlertDialog(title: Text(message)),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(DefaultValuesPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 400.0,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Text(
- 'This example simply shows what happens when contextMenuBuilder is given null, a custom value, or omitted altogether.',
- ),
- const SizedBox(height: 40.0),
- TextField(
- maxLines: 2,
- minLines: 2,
- controller: _controllerNone,
- ),
- TextField(
- maxLines: 2,
- minLines: 2,
- controller: _controllerNull,
- contextMenuBuilder: null,
- ),
- TextField(
- maxLines: 2,
- minLines: 2,
- controller: _controllerCustom,
- contextMenuBuilder: (context, editableTextState) {
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: editableTextState.contextMenuAnchors,
- buttonItems: [
- ContextMenuButtonItem(
- label: 'Custom button',
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).push(
- _showDialog(
- context,
- 'You clicked the custom button.',
- ),
- );
- },
- ),
- ...editableTextState.contextMenuButtonItems,
- ],
- );
- },
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/email_button_page.dart b/context_menus/lib/email_button_page.dart
deleted file mode 100644
index 8a243005e..000000000
--- a/context_menus/lib/email_button_page.dart
+++ /dev/null
@@ -1,92 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'is_valid_email.dart';
-import 'platform_selector.dart';
-
-class EmailButtonPage extends StatelessWidget {
- EmailButtonPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'email-button';
- static const String title = 'Email Button';
- static const String subtitle = 'A selection-aware email button';
- static const String url = '$kCodeUrl/email_button_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text: 'Select the email address and open the menu: me@example.com',
- );
-
- DialogRoute _showDialog(BuildContext context) {
- return DialogRoute(
- context: context,
- builder: (context) =>
- const AlertDialog(title: Text('You clicked send email!')),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(EmailButtonPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 300.0,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- const SizedBox(height: 20.0),
- const Text(
- 'This example shows how to add a special button to the context menu depending on the current selection.',
- ),
- const SizedBox(height: 40.0),
- TextField(
- maxLines: 2,
- controller: _controller,
- contextMenuBuilder: (context, editableTextState) {
- final TextEditingValue value =
- editableTextState.textEditingValue;
- final List buttonItems =
- editableTextState.contextMenuButtonItems;
- if (isValidEmail(
- value.selection.textInside(value.text),
- )) {
- buttonItems.insert(
- 0,
- ContextMenuButtonItem(
- label: 'Send email',
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).push(_showDialog(context));
- },
- ),
- );
- }
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: editableTextState.contextMenuAnchors,
- buttonItems: buttonItems,
- );
- },
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/field_types_page.dart b/context_menus/lib/field_types_page.dart
deleted file mode 100644
index 9c6850581..000000000
--- a/context_menus/lib/field_types_page.dart
+++ /dev/null
@@ -1,125 +0,0 @@
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class FieldTypesPage extends StatelessWidget {
- FieldTypesPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'field-types';
- static const String title = 'The Context Menu in Different Field Types';
- static const String subtitle =
- 'How contextual menus work in TextField, CupertinoTextField, and EditableText';
- static const String url = '$kCodeUrl/field_types_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text:
- "Material text field shows the menu for any platform by default. You'll see the correct menu for your platform here.",
- );
-
- final TextEditingController _cupertinoController = TextEditingController(
- text:
- "CupertinoTextField can't show Material menus by default. On non-Apple platforms, you'll still see a Cupertino menu here.",
- );
-
- final TextEditingController
- _cupertinoControllerFixed = TextEditingController(
- text:
- "But CupertinoTextField can be made to adaptively show any menu. You'll see the correct menu for your platform here.",
- );
-
- final TextEditingController
- _cupertinoControllerForced = TextEditingController(
- text: 'Or forced to always show a specific menu (Material desktop menu).',
- );
-
- final TextEditingController _editableController = TextEditingController(
- text:
- "EditableText doesn't show any selection menu by itself, even when contextMenuBuilder is passed.",
- );
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(FieldTypesPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 400.0,
- child: ListView(
- children: [
- const SizedBox(height: 20.0),
- TextField(maxLines: 3, controller: _controller),
- const SizedBox(height: 60.0),
- CupertinoTextField(
- maxLines: 3,
- controller: _cupertinoController,
- ),
- const SizedBox(height: 20.0),
- CupertinoTextField(
- maxLines: 3,
- controller: _cupertinoControllerFixed,
- contextMenuBuilder: (context, editableTextState) {
- return AdaptiveTextSelectionToolbar.editableText(
- editableTextState: editableTextState,
- );
- },
- ),
- const SizedBox(height: 20.0),
- CupertinoTextField(
- maxLines: 3,
- controller: _cupertinoControllerForced,
- contextMenuBuilder: (context, editableTextState) {
- return DesktopTextSelectionToolbar(
- anchor: editableTextState.contextMenuAnchors.primaryAnchor,
- children: AdaptiveTextSelectionToolbar.getAdaptiveButtons(
- context,
- editableTextState.contextMenuButtonItems,
- ).toList(),
- );
- },
- ),
- const SizedBox(height: 60.0),
- Container(
- color: Colors.white,
- child: EditableText(
- maxLines: 3,
- controller: _editableController,
- focusNode: FocusNode(),
- style: Typography.material2021().black.displayMedium!,
- cursorColor: Colors.blue,
- backgroundCursorColor: Colors.white,
- // contextMenuBuilder doesn't do anything here!
- // EditableText has no built-in gesture detection for
- // selection. A wrapper would have to implement
- // TextSelectionGestureDetectorBuilderDelegate, etc.
- contextMenuBuilder: (context, editableTextState) {
- return AdaptiveTextSelectionToolbar.editableText(
- editableTextState: editableTextState,
- );
- },
- ),
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/full_page.dart b/context_menus/lib/full_page.dart
deleted file mode 100644
index 626d86823..000000000
--- a/context_menus/lib/full_page.dart
+++ /dev/null
@@ -1,163 +0,0 @@
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'context_menu_region.dart';
-import 'is_valid_email.dart';
-import 'platform_selector.dart';
-
-class FullPage extends StatelessWidget {
- FullPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'full';
- static const String title = 'Combined Example';
- static const String subtitle =
- 'Combining several different types of custom menus.';
- static const String url = '$kCodeUrl/full_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text: 'Custom menus everywhere. me@example.com',
- );
-
- DialogRoute _showDialog(BuildContext context, String message) {
- return DialogRoute(
- context: context,
- builder: (context) => AlertDialog(title: Text(message)),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(FullPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: ContextMenuRegion(
- contextMenuBuilder: (context, offset) {
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: TextSelectionToolbarAnchors(primaryAnchor: offset),
- buttonItems: [
- ContextMenuButtonItem(
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).pop();
- },
- label: 'Back',
- ),
- ],
- );
- },
- child: Center(
- child: SizedBox(
- width: 400.0,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Text(
- 'This example simply shows how many of the previous examples can be combined in a single app.',
- ),
- const SizedBox(height: 60.0),
- ContextMenuRegion(
- contextMenuBuilder: (context, offset) {
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: TextSelectionToolbarAnchors(
- primaryAnchor: offset,
- ),
- buttonItems: [
- ContextMenuButtonItem(
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).push(
- _showDialog(
- context,
- 'Image saved! (not really though)',
- ),
- );
- },
- label: 'Save',
- ),
- ],
- );
- },
- child: const SizedBox(
- width: 200.0,
- height: 200.0,
- child: FlutterLogo(),
- ),
- ),
- Container(height: 20.0),
- TextField(
- controller: _controller,
- contextMenuBuilder: (context, editableTextState) {
- final TextEditingValue value =
- editableTextState.textEditingValue;
- final List buttonItems =
- editableTextState.contextMenuButtonItems;
- if (isValidEmail(
- value.selection.textInside(value.text),
- )) {
- buttonItems.insert(
- 0,
- ContextMenuButtonItem(
- label: 'Send email',
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).push(
- _showDialog(
- context,
- 'You clicked send email',
- ),
- );
- },
- ),
- );
- }
- return AdaptiveTextSelectionToolbar(
- anchors: editableTextState.contextMenuAnchors,
- // Build the default buttons, but make them look crazy.
- // Note that in a real project you may want to build
- // different buttons depending on the platform.
- children: buttonItems.map((buttonItem) {
- return CupertinoButton(
- borderRadius: null,
- color: const Color(0xffaaaa00),
- disabledColor: const Color(0xffaaaaff),
- onPressed: buttonItem.onPressed,
- padding: const EdgeInsets.all(10.0),
- pressedOpacity: 0.7,
- child: SizedBox(
- width: 200.0,
- child: Text(
- CupertinoTextSelectionToolbarButton.getButtonLabel(
- context,
- buttonItem,
- ),
- ),
- ),
- );
- }).toList(),
- );
- },
- ),
- ],
- ),
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/global_selection_page.dart b/context_menus/lib/global_selection_page.dart
deleted file mode 100644
index 0d7b43011..000000000
--- a/context_menus/lib/global_selection_page.dart
+++ /dev/null
@@ -1,77 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class GlobalSelectionPage extends StatelessWidget {
- GlobalSelectionPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'global-selection';
- static const String title = 'Global Selection Example';
- static const String subtitle =
- 'Context menus in and out of global selection';
- static const String url = '$kCodeUrl/global_selection_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text: 'TextFields still show their specific context menu.',
- );
-
- @override
- Widget build(BuildContext context) {
- return SelectionArea(
- contextMenuBuilder: (context, selectableRegionState) {
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: selectableRegionState.contextMenuAnchors,
- buttonItems: [
- ...selectableRegionState.contextMenuButtonItems,
- ContextMenuButtonItem(
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).pop();
- },
- label: 'Back',
- ),
- ],
- );
- },
- child: Scaffold(
- appBar: AppBar(
- title: const Text(GlobalSelectionPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 400.0,
- child: ListView(
- children: [
- const SizedBox(height: 20.0),
- const Text(
- 'This entire page is wrapped in a SelectionArea with a custom context menu. Clicking on any of the plain text, including the AppBar title, will show the custom menu.',
- ),
- const SizedBox(height: 40.0),
- TextField(controller: _controller),
- const SizedBox(height: 40.0),
- const SelectableText(
- 'SelectableText also shows its own separate context menu.',
- ),
- ],
- ),
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/image_page.dart b/context_menus/lib/image_page.dart
deleted file mode 100644
index 1c33ea6d3..000000000
--- a/context_menus/lib/image_page.dart
+++ /dev/null
@@ -1,79 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'context_menu_region.dart';
-import 'platform_selector.dart';
-
-class ImagePage extends StatelessWidget {
- const ImagePage({super.key, required this.onChangedPlatform});
-
- static const String route = 'image';
- static const String title = 'ContextMenu on an Image';
- static const String subtitle =
- 'A ContextMenu the displays on an Image widget';
- static const String url = '$kCodeUrl/image_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- DialogRoute _showDialog(BuildContext context) {
- return DialogRoute(
- context: context,
- builder: (context) => const AlertDialog(
- title: Text('Image saved! (not really though)'),
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(ImagePage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- ContextMenuRegion(
- contextMenuBuilder: (context, offset) {
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: TextSelectionToolbarAnchors(
- primaryAnchor: offset,
- ),
- buttonItems: [
- ContextMenuButtonItem(
- onPressed: () {
- ContextMenuController.removeAny();
- Navigator.of(context).push(_showDialog(context));
- },
- label: 'Save',
- ),
- ],
- );
- },
- child: const SizedBox(
- width: 200.0,
- height: 200.0,
- child: FlutterLogo(),
- ),
- ),
- Container(height: 20.0),
- const Text(
- 'Right click or long press on the image to see a special menu.',
- ),
- ],
- ),
- );
- }
-}
diff --git a/context_menus/lib/is_valid_email.dart b/context_menus/lib/is_valid_email.dart
deleted file mode 100644
index b4e4d05e6..000000000
--- a/context_menus/lib/is_valid_email.dart
+++ /dev/null
@@ -1,10 +0,0 @@
-/// Returns true if the given String is a valid email address.
-bool isValidEmail(String text) {
- return RegExp(
- r'(?[a-zA-Z0-9]+)'
- r'@'
- r'(?[a-zA-Z0-9]+)'
- r'\.'
- r'(?[a-zA-Z0-9]+)',
- ).hasMatch(text);
-}
diff --git a/context_menus/lib/main.dart b/context_menus/lib/main.dart
deleted file mode 100644
index e67fa3411..000000000
--- a/context_menus/lib/main.dart
+++ /dev/null
@@ -1,204 +0,0 @@
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-
-import 'anywhere_page.dart';
-import 'cascading_menu_page.dart';
-import 'custom_buttons_page.dart';
-import 'custom_menu_page.dart';
-import 'default_values_page.dart';
-import 'email_button_page.dart';
-import 'field_types_page.dart';
-import 'full_page.dart';
-import 'global_selection_page.dart';
-import 'image_page.dart';
-import 'modified_action_page.dart';
-import 'platform_selector.dart';
-import 'reordered_buttons_page.dart';
-
-void main() {
- runApp(const MyApp());
-}
-
-class MyApp extends StatefulWidget {
- const MyApp({super.key});
-
- @override
- State createState() => _MyAppState();
-}
-
-class _MyAppState extends State {
- void onChangedPlatform(TargetPlatform platform) {
- setState(() {
- debugDefaultTargetPlatformOverride = platform;
- });
- }
-
- @override
- void initState() {
- super.initState();
- // On web, disable the browser's context menu everywhere so that the custom
- // Flutter-rendered context menu shows.
- if (kIsWeb) {
- BrowserContextMenu.disableContextMenu();
- }
- }
-
- @override
- void dispose() {
- if (kIsWeb) {
- BrowserContextMenu.enableContextMenu();
- }
- super.dispose();
- }
-
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- debugShowCheckedModeBanner: false,
- title: 'Flutter Context Menu Examples',
- theme: ThemeData(
- primarySwatch: Colors.blue,
- platform: defaultTargetPlatform,
- ),
- initialRoute: '/',
- routes: {
- '/': (context) => MyHomePage(onChangedPlatform: onChangedPlatform),
- AnywherePage.route: (context) =>
- AnywherePage(onChangedPlatform: onChangedPlatform),
- CustomButtonsPage.route: (context) =>
- CustomButtonsPage(onChangedPlatform: onChangedPlatform),
- CustomMenuPage.route: (context) =>
- CustomMenuPage(onChangedPlatform: onChangedPlatform),
- ReorderedButtonsPage.route: (context) =>
- ReorderedButtonsPage(onChangedPlatform: onChangedPlatform),
- EmailButtonPage.route: (context) =>
- EmailButtonPage(onChangedPlatform: onChangedPlatform),
- ImagePage.route: (context) =>
- ImagePage(onChangedPlatform: onChangedPlatform),
- FieldTypesPage.route: (context) =>
- FieldTypesPage(onChangedPlatform: onChangedPlatform),
- FullPage.route: (context) =>
- FullPage(onChangedPlatform: onChangedPlatform),
- ModifiedActionPage.route: (context) =>
- ModifiedActionPage(onChangedPlatform: onChangedPlatform),
- GlobalSelectionPage.route: (context) =>
- GlobalSelectionPage(onChangedPlatform: onChangedPlatform),
- DefaultValuesPage.route: (context) =>
- DefaultValuesPage(onChangedPlatform: onChangedPlatform),
- CascadingMenuPage.route: (context) =>
- CascadingMenuPage(onChangedPlatform: onChangedPlatform),
- },
- );
- }
-}
-
-class MyHomePage extends StatelessWidget {
- const MyHomePage({super.key, required this.onChangedPlatform});
-
- final PlatformCallback onChangedPlatform;
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text('Context Menu Demos'),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- ],
- ),
- body: ListView(
- children: const [
- _MyListItem(
- route: AnywherePage.route,
- title: AnywherePage.title,
- subtitle: AnywherePage.subtitle,
- ),
- _MyListItem(
- route: GlobalSelectionPage.route,
- title: GlobalSelectionPage.title,
- subtitle: GlobalSelectionPage.subtitle,
- ),
- _MyListItem(
- route: ImagePage.route,
- title: ImagePage.title,
- subtitle: ImagePage.subtitle,
- ),
- _MyListItem(
- route: CustomButtonsPage.route,
- title: CustomButtonsPage.title,
- subtitle: CustomButtonsPage.subtitle,
- ),
- _MyListItem(
- route: CustomMenuPage.route,
- title: CustomMenuPage.title,
- subtitle: CustomMenuPage.subtitle,
- ),
- _MyListItem(
- route: EmailButtonPage.route,
- title: EmailButtonPage.title,
- subtitle: EmailButtonPage.subtitle,
- ),
- _MyListItem(
- route: ReorderedButtonsPage.route,
- title: ReorderedButtonsPage.title,
- subtitle: ReorderedButtonsPage.subtitle,
- ),
- _MyListItem(
- route: ModifiedActionPage.route,
- title: ModifiedActionPage.title,
- subtitle: ModifiedActionPage.subtitle,
- ),
- _MyListItem(
- route: FieldTypesPage.route,
- title: FieldTypesPage.title,
- subtitle: FieldTypesPage.subtitle,
- ),
- _MyListItem(
- route: DefaultValuesPage.route,
- title: DefaultValuesPage.title,
- subtitle: DefaultValuesPage.subtitle,
- ),
- _MyListItem(
- route: CascadingMenuPage.route,
- title: CascadingMenuPage.title,
- subtitle: CascadingMenuPage.subtitle,
- ),
- _MyListItem(
- route: FullPage.route,
- title: FullPage.title,
- subtitle: FullPage.subtitle,
- ),
- ],
- ),
- );
- }
-}
-
-class _MyListItem extends StatelessWidget {
- const _MyListItem({
- required this.route,
- required this.subtitle,
- required this.title,
- });
-
- final String route;
- final String subtitle;
- final String title;
-
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- onTap: () {
- Navigator.of(context).pushNamed(route);
- },
- child: Card(
- margin: const EdgeInsets.all(12.0),
- child: Padding(
- padding: const EdgeInsets.all(24.0),
- child: ListTile(title: Text(title), subtitle: Text(subtitle)),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/modified_action_page.dart b/context_menus/lib/modified_action_page.dart
deleted file mode 100644
index 68587f0cb..000000000
--- a/context_menus/lib/modified_action_page.dart
+++ /dev/null
@@ -1,91 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class ModifiedActionPage extends StatelessWidget {
- ModifiedActionPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'modified-action';
- static const String title = 'Modified Action';
- static const String subtitle =
- 'The copy button copies but also shows a menu.';
- static const String url = '$kCodeUrl/modified_action_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controller = TextEditingController(
- text: 'Try using the copy button.',
- );
-
- DialogRoute _showDialog(BuildContext context) {
- return DialogRoute(
- context: context,
- builder: (context) => const AlertDialog(
- title: Text('Copied, but also showed this dialog.'),
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(ModifiedActionPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 300.0,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Text(
- 'This example shows adding to the behavior of a default button.',
- ),
- const SizedBox(height: 30.0),
- TextField(
- controller: _controller,
- contextMenuBuilder: (context, editableTextState) {
- final List buttonItems =
- editableTextState.contextMenuButtonItems;
- // Modify the copy buttonItem to show a dialog after copying.
- final int copyButtonIndex = buttonItems.indexWhere((
- buttonItem,
- ) {
- return buttonItem.type == ContextMenuButtonType.copy;
- });
- if (copyButtonIndex >= 0) {
- final ContextMenuButtonItem copyButtonItem =
- buttonItems[copyButtonIndex];
- buttonItems[copyButtonIndex] = copyButtonItem.copyWith(
- onPressed: () {
- copyButtonItem.onPressed!();
- Navigator.of(context).push(_showDialog(context));
- },
- );
- }
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: editableTextState.contextMenuAnchors,
- buttonItems: buttonItems,
- );
- },
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/lib/platform_selector.dart b/context_menus/lib/platform_selector.dart
deleted file mode 100644
index 9df3e99d2..000000000
--- a/context_menus/lib/platform_selector.dart
+++ /dev/null
@@ -1,55 +0,0 @@
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-
-typedef PlatformCallback = void Function(TargetPlatform platform);
-
-class PlatformSelector extends StatefulWidget {
- const PlatformSelector({super.key, required this.onChangedPlatform});
-
- final PlatformCallback onChangedPlatform;
-
- @override
- State createState() => _PlatformSelectorState();
-}
-
-class _PlatformSelectorState extends State {
- static const int targetPlatformStringLength = 15; // 'TargetPlatform.'.length
-
- static String _platformToString(TargetPlatform platform) {
- return platform.toString().substring(targetPlatformStringLength);
- }
-
- final TargetPlatform originaPlatform = defaultTargetPlatform;
-
- @override
- Widget build(BuildContext context) {
- return SizedBox(
- width: 170.0,
- child: DropdownButton(
- value: defaultTargetPlatform,
- icon: const Icon(Icons.arrow_downward),
- elevation: 16,
- onChanged: (value) {
- if (value == null) {
- return;
- }
-
- widget.onChangedPlatform(value);
- setState(() {});
- },
- items: TargetPlatform.values.map((platform) {
- return DropdownMenuItem(
- value: platform,
- child: Row(
- children: [
- if (platform == originaPlatform)
- const Icon(Icons.home, color: Color(0xff616161)),
- Text(_platformToString(platform)),
- ],
- ),
- );
- }).toList(),
- ),
- );
- }
-}
diff --git a/context_menus/lib/reordered_buttons_page.dart b/context_menus/lib/reordered_buttons_page.dart
deleted file mode 100644
index bc138469f..000000000
--- a/context_menus/lib/reordered_buttons_page.dart
+++ /dev/null
@@ -1,96 +0,0 @@
-import 'dart:collection';
-
-import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'constants.dart';
-import 'platform_selector.dart';
-
-class ReorderedButtonsPage extends StatelessWidget {
- ReorderedButtonsPage({super.key, required this.onChangedPlatform});
-
- static const String route = 'reordered-buttons';
- static const String title = 'Reordered Buttons';
- static const String subtitle =
- 'The usual buttons, but in a different order.';
- static const String url = '$kCodeUrl/reordered_buttons_page.dart';
-
- final PlatformCallback onChangedPlatform;
-
- final TextEditingController _controllerNormal = TextEditingController(
- text: 'This button has the default buttons for reference.',
- );
-
- final TextEditingController _controllerReordered = TextEditingController(
- text: 'This field has reordered buttons.',
- );
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text(ReorderedButtonsPage.title),
- actions: [
- PlatformSelector(onChangedPlatform: onChangedPlatform),
- IconButton(
- icon: const Icon(Icons.code),
- onPressed: () async {
- if (!await launchUrl(Uri.parse(url))) {
- throw 'Could not launch $url';
- }
- },
- ),
- ],
- ),
- body: Center(
- child: SizedBox(
- width: 300.0,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- TextField(maxLines: 2, controller: _controllerNormal),
- const SizedBox(height: 20.0),
- TextField(
- controller: _controllerReordered,
- maxLines: 2,
- contextMenuBuilder: (context, editableTextState) {
- // Reorder the button datas by type.
- final HashMap
- buttonItemsMap =
- HashMap();
- for (ContextMenuButtonItem buttonItem
- in editableTextState.contextMenuButtonItems) {
- buttonItemsMap[buttonItem.type] = buttonItem;
- }
- final List reorderedButtonItems =
- [
- if (buttonItemsMap.containsKey(
- ContextMenuButtonType.selectAll,
- ))
- buttonItemsMap[ContextMenuButtonType.selectAll]!,
- if (buttonItemsMap.containsKey(
- ContextMenuButtonType.paste,
- ))
- buttonItemsMap[ContextMenuButtonType.paste]!,
- if (buttonItemsMap.containsKey(
- ContextMenuButtonType.copy,
- ))
- buttonItemsMap[ContextMenuButtonType.copy]!,
- if (buttonItemsMap.containsKey(
- ContextMenuButtonType.cut,
- ))
- buttonItemsMap[ContextMenuButtonType.cut]!,
- ];
- return AdaptiveTextSelectionToolbar.buttonItems(
- anchors: editableTextState.contextMenuAnchors,
- buttonItems: reorderedButtonItems,
- );
- },
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/context_menus/linux/.gitignore b/context_menus/linux/.gitignore
deleted file mode 100644
index d3896c984..000000000
--- a/context_menus/linux/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-flutter/ephemeral
diff --git a/context_menus/linux/CMakeLists.txt b/context_menus/linux/CMakeLists.txt
deleted file mode 100644
index 92539fb7a..000000000
--- a/context_menus/linux/CMakeLists.txt
+++ /dev/null
@@ -1,139 +0,0 @@
-# Project-level configuration.
-cmake_minimum_required(VERSION 3.10)
-project(runner LANGUAGES CXX)
-
-# The name of the executable created for the application. Change this to change
-# the on-disk name of your application.
-set(BINARY_NAME "context_menus")
-# The unique GTK application identifier for this application. See:
-# https://wiki.gnome.org/HowDoI/ChooseApplicationID
-set(APPLICATION_ID "com.example.context_menus")
-
-# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
-# versions of CMake.
-cmake_policy(SET CMP0063 NEW)
-
-# Load bundled libraries from the lib/ directory relative to the binary.
-set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
-
-# Root filesystem for cross-building.
-if(FLUTTER_TARGET_PLATFORM_SYSROOT)
- set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
- set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
- set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
-endif()
-
-# Define build configuration options.
-if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
- set(CMAKE_BUILD_TYPE "Debug" CACHE
- STRING "Flutter build mode" FORCE)
- set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
- "Debug" "Profile" "Release")
-endif()
-
-# Compilation settings that should be applied to most targets.
-#
-# Be cautious about adding new options here, as plugins use this function by
-# default. In most cases, you should add new options to specific targets instead
-# of modifying this function.
-function(APPLY_STANDARD_SETTINGS TARGET)
- target_compile_features(${TARGET} PUBLIC cxx_std_14)
- target_compile_options(${TARGET} PRIVATE -Wall -Werror)
- target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
- target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
-endfunction()
-
-# Flutter library and tool build rules.
-set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
-add_subdirectory(${FLUTTER_MANAGED_DIR})
-
-# System-level dependencies.
-find_package(PkgConfig REQUIRED)
-pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
-
-add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
-
-# Define the application target. To change its name, change BINARY_NAME above,
-# not the value here, or `flutter run` will no longer work.
-#
-# Any new source files that you add to the application should be added here.
-add_executable(${BINARY_NAME}
- "main.cc"
- "my_application.cc"
- "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
-)
-
-# Apply the standard set of build settings. This can be removed for applications
-# that need different build settings.
-apply_standard_settings(${BINARY_NAME})
-
-# Add dependency libraries. Add any application-specific dependencies here.
-target_link_libraries(${BINARY_NAME} PRIVATE flutter)
-target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
-
-# Run the Flutter tool portions of the build. This must not be removed.
-add_dependencies(${BINARY_NAME} flutter_assemble)
-
-# Only the install-generated bundle's copy of the executable will launch
-# correctly, since the resources must in the right relative locations. To avoid
-# people trying to run the unbundled copy, put it in a subdirectory instead of
-# the default top-level location.
-set_target_properties(${BINARY_NAME}
- PROPERTIES
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
-)
-
-
-# Generated plugin build rules, which manage building the plugins and adding
-# them to the application.
-include(flutter/generated_plugins.cmake)
-
-
-# === Installation ===
-# By default, "installing" just makes a relocatable bundle in the build
-# directory.
-set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
- set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
-endif()
-
-# Start with a clean build bundle directory every time.
-install(CODE "
- file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
- " COMPONENT Runtime)
-
-set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
-set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
-
-install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-
-foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
- install(FILES "${bundled_library}"
- DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endforeach(bundled_library)
-
-# Fully re-copy the assets directory on each build to avoid having stale files
-# from a previous install.
-set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
-install(CODE "
- file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
- " COMPONENT Runtime)
-install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
- DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
-
-# Install the AOT library on non-Debug builds only.
-if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
- install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
diff --git a/context_menus/linux/flutter/CMakeLists.txt b/context_menus/linux/flutter/CMakeLists.txt
deleted file mode 100644
index d5bd01648..000000000
--- a/context_menus/linux/flutter/CMakeLists.txt
+++ /dev/null
@@ -1,88 +0,0 @@
-# This file controls Flutter-level build steps. It should not be edited.
-cmake_minimum_required(VERSION 3.10)
-
-set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
-
-# Configuration provided via flutter tool.
-include(${EPHEMERAL_DIR}/generated_config.cmake)
-
-# TODO: Move the rest of this into files in ephemeral. See
-# https://github.com/flutter/flutter/issues/57146.
-
-# Serves the same purpose as list(TRANSFORM ... PREPEND ...),
-# which isn't available in 3.10.
-function(list_prepend LIST_NAME PREFIX)
- set(NEW_LIST "")
- foreach(element ${${LIST_NAME}})
- list(APPEND NEW_LIST "${PREFIX}${element}")
- endforeach(element)
- set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
-endfunction()
-
-# === Flutter Library ===
-# System-level dependencies.
-find_package(PkgConfig REQUIRED)
-pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
-pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
-pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
-
-set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
-
-# Published to parent scope for install step.
-set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
-set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
-set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
-set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
-
-list(APPEND FLUTTER_LIBRARY_HEADERS
- "fl_basic_message_channel.h"
- "fl_binary_codec.h"
- "fl_binary_messenger.h"
- "fl_dart_project.h"
- "fl_engine.h"
- "fl_json_message_codec.h"
- "fl_json_method_codec.h"
- "fl_message_codec.h"
- "fl_method_call.h"
- "fl_method_channel.h"
- "fl_method_codec.h"
- "fl_method_response.h"
- "fl_plugin_registrar.h"
- "fl_plugin_registry.h"
- "fl_standard_message_codec.h"
- "fl_standard_method_codec.h"
- "fl_string_codec.h"
- "fl_value.h"
- "fl_view.h"
- "flutter_linux.h"
-)
-list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
-add_library(flutter INTERFACE)
-target_include_directories(flutter INTERFACE
- "${EPHEMERAL_DIR}"
-)
-target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
-target_link_libraries(flutter INTERFACE
- PkgConfig::GTK
- PkgConfig::GLIB
- PkgConfig::GIO
-)
-add_dependencies(flutter flutter_assemble)
-
-# === Flutter tool backend ===
-# _phony_ is a non-existent file to force this command to run every time,
-# since currently there's no way to get a full input/output list from the
-# flutter tool.
-add_custom_command(
- OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
- ${CMAKE_CURRENT_BINARY_DIR}/_phony_
- COMMAND ${CMAKE_COMMAND} -E env
- ${FLUTTER_TOOL_ENVIRONMENT}
- "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
- ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
- VERBATIM
-)
-add_custom_target(flutter_assemble DEPENDS
- "${FLUTTER_LIBRARY}"
- ${FLUTTER_LIBRARY_HEADERS}
-)
diff --git a/context_menus/linux/flutter/generated_plugin_registrant.cc b/context_menus/linux/flutter/generated_plugin_registrant.cc
deleted file mode 100644
index f6f23bfe9..000000000
--- a/context_menus/linux/flutter/generated_plugin_registrant.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-//
-// Generated file. Do not edit.
-//
-
-// clang-format off
-
-#include "generated_plugin_registrant.h"
-
-#include
-
-void fl_register_plugins(FlPluginRegistry* registry) {
- g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
- fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
- url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
-}
diff --git a/context_menus/linux/flutter/generated_plugin_registrant.h b/context_menus/linux/flutter/generated_plugin_registrant.h
deleted file mode 100644
index e0f0a47bc..000000000
--- a/context_menus/linux/flutter/generated_plugin_registrant.h
+++ /dev/null
@@ -1,15 +0,0 @@
-//
-// Generated file. Do not edit.
-//
-
-// clang-format off
-
-#ifndef GENERATED_PLUGIN_REGISTRANT_
-#define GENERATED_PLUGIN_REGISTRANT_
-
-#include
-
-// Registers Flutter plugins.
-void fl_register_plugins(FlPluginRegistry* registry);
-
-#endif // GENERATED_PLUGIN_REGISTRANT_
diff --git a/context_menus/linux/flutter/generated_plugins.cmake b/context_menus/linux/flutter/generated_plugins.cmake
deleted file mode 100644
index f16b4c342..000000000
--- a/context_menus/linux/flutter/generated_plugins.cmake
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Generated file, do not edit.
-#
-
-list(APPEND FLUTTER_PLUGIN_LIST
- url_launcher_linux
-)
-
-list(APPEND FLUTTER_FFI_PLUGIN_LIST
-)
-
-set(PLUGIN_BUNDLED_LIBRARIES)
-
-foreach(plugin ${FLUTTER_PLUGIN_LIST})
- add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
- target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
- list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
- list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
-endforeach(plugin)
-
-foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
- add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
- list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
-endforeach(ffi_plugin)
diff --git a/context_menus/linux/main.cc b/context_menus/linux/main.cc
deleted file mode 100644
index e7c5c5437..000000000
--- a/context_menus/linux/main.cc
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "my_application.h"
-
-int main(int argc, char** argv) {
- g_autoptr(MyApplication) app = my_application_new();
- return g_application_run(G_APPLICATION(app), argc, argv);
-}
diff --git a/context_menus/linux/my_application.cc b/context_menus/linux/my_application.cc
deleted file mode 100644
index c5c0f5612..000000000
--- a/context_menus/linux/my_application.cc
+++ /dev/null
@@ -1,104 +0,0 @@
-#include "my_application.h"
-
-#include
-#ifdef GDK_WINDOWING_X11
-#include
-#endif
-
-#include "flutter/generated_plugin_registrant.h"
-
-struct _MyApplication {
- GtkApplication parent_instance;
- char** dart_entrypoint_arguments;
-};
-
-G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
-
-// Implements GApplication::activate.
-static void my_application_activate(GApplication* application) {
- MyApplication* self = MY_APPLICATION(application);
- GtkWindow* window =
- GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
-
- // Use a header bar when running in GNOME as this is the common style used
- // by applications and is the setup most users will be using (e.g. Ubuntu
- // desktop).
- // If running on X and not using GNOME then just use a traditional title bar
- // in case the window manager does more exotic layout, e.g. tiling.
- // If running on Wayland assume the header bar will work (may need changing
- // if future cases occur).
- gboolean use_header_bar = TRUE;
-#ifdef GDK_WINDOWING_X11
- GdkScreen* screen = gtk_window_get_screen(window);
- if (GDK_IS_X11_SCREEN(screen)) {
- const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
- if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
- use_header_bar = FALSE;
- }
- }
-#endif
- if (use_header_bar) {
- GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
- gtk_widget_show(GTK_WIDGET(header_bar));
- gtk_header_bar_set_title(header_bar, "context_menus");
- gtk_header_bar_set_show_close_button(header_bar, TRUE);
- gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
- } else {
- gtk_window_set_title(window, "context_menus");
- }
-
- gtk_window_set_default_size(window, 1280, 720);
- gtk_widget_show(GTK_WIDGET(window));
-
- g_autoptr(FlDartProject) project = fl_dart_project_new();
- fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
-
- FlView* view = fl_view_new(project);
- gtk_widget_show(GTK_WIDGET(view));
- gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
-
- fl_register_plugins(FL_PLUGIN_REGISTRY(view));
-
- gtk_widget_grab_focus(GTK_WIDGET(view));
-}
-
-// Implements GApplication::local_command_line.
-static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
- MyApplication* self = MY_APPLICATION(application);
- // Strip out the first argument as it is the binary name.
- self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
-
- g_autoptr(GError) error = nullptr;
- if (!g_application_register(application, nullptr, &error)) {
- g_warning("Failed to register: %s", error->message);
- *exit_status = 1;
- return TRUE;
- }
-
- g_application_activate(application);
- *exit_status = 0;
-
- return TRUE;
-}
-
-// Implements GObject::dispose.
-static void my_application_dispose(GObject* object) {
- MyApplication* self = MY_APPLICATION(object);
- g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
- G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
-}
-
-static void my_application_class_init(MyApplicationClass* klass) {
- G_APPLICATION_CLASS(klass)->activate = my_application_activate;
- G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
- G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
-}
-
-static void my_application_init(MyApplication* self) {}
-
-MyApplication* my_application_new() {
- return MY_APPLICATION(g_object_new(my_application_get_type(),
- "application-id", APPLICATION_ID,
- "flags", G_APPLICATION_NON_UNIQUE,
- nullptr));
-}
diff --git a/context_menus/linux/my_application.h b/context_menus/linux/my_application.h
deleted file mode 100644
index 72271d5e4..000000000
--- a/context_menus/linux/my_application.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef FLUTTER_MY_APPLICATION_H_
-#define FLUTTER_MY_APPLICATION_H_
-
-#include
-
-G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
- GtkApplication)
-
-/**
- * my_application_new:
- *
- * Creates a new Flutter-based application.
- *
- * Returns: a new #MyApplication.
- */
-MyApplication* my_application_new();
-
-#endif // FLUTTER_MY_APPLICATION_H_
diff --git a/context_menus/macos/.gitignore b/context_menus/macos/.gitignore
deleted file mode 100644
index 746adbb6b..000000000
--- a/context_menus/macos/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-# Flutter-related
-**/Flutter/ephemeral/
-**/Pods/
-
-# Xcode-related
-**/dgph
-**/xcuserdata/
diff --git a/context_menus/macos/Flutter/Flutter-Debug.xcconfig b/context_menus/macos/Flutter/Flutter-Debug.xcconfig
deleted file mode 100644
index 4b81f9b2d..000000000
--- a/context_menus/macos/Flutter/Flutter-Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/context_menus/macos/Flutter/Flutter-Release.xcconfig b/context_menus/macos/Flutter/Flutter-Release.xcconfig
deleted file mode 100644
index 5caa9d157..000000000
--- a/context_menus/macos/Flutter/Flutter-Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/context_menus/macos/Flutter/GeneratedPluginRegistrant.swift b/context_menus/macos/Flutter/GeneratedPluginRegistrant.swift
deleted file mode 100644
index 8236f5728..000000000
--- a/context_menus/macos/Flutter/GeneratedPluginRegistrant.swift
+++ /dev/null
@@ -1,12 +0,0 @@
-//
-// Generated file. Do not edit.
-//
-
-import FlutterMacOS
-import Foundation
-
-import url_launcher_macos
-
-func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
- UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
-}
diff --git a/context_menus/macos/Podfile b/context_menus/macos/Podfile
deleted file mode 100644
index c795730db..000000000
--- a/context_menus/macos/Podfile
+++ /dev/null
@@ -1,43 +0,0 @@
-platform :osx, '10.14'
-
-# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
-ENV['COCOAPODS_DISABLE_STATS'] = 'true'
-
-project 'Runner', {
- 'Debug' => :debug,
- 'Profile' => :release,
- 'Release' => :release,
-}
-
-def flutter_root
- generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
- unless File.exist?(generated_xcode_build_settings_path)
- raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
- end
-
- File.foreach(generated_xcode_build_settings_path) do |line|
- matches = line.match(/FLUTTER_ROOT\=(.*)/)
- return matches[1].strip if matches
- end
- raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
-end
-
-require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
-
-flutter_macos_podfile_setup
-
-target 'Runner' do
- use_frameworks!
- use_modular_headers!
-
- flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
- target 'RunnerTests' do
- inherit! :search_paths
- end
-end
-
-post_install do |installer|
- installer.pods_project.targets.each do |target|
- flutter_additional_macos_build_settings(target)
- end
-end
diff --git a/context_menus/macos/Runner.xcodeproj/project.pbxproj b/context_menus/macos/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index a519ea01c..000000000
--- a/context_menus/macos/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,695 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 54;
- objects = {
-
-/* Begin PBXAggregateTarget section */
- 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
- isa = PBXAggregateTarget;
- buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
- buildPhases = (
- 33CC111E2044C6BF0003C045 /* ShellScript */,
- );
- dependencies = (
- );
- name = "Flutter Assemble";
- productName = FLX;
- };
-/* End PBXAggregateTarget section */
-
-/* Begin PBXBuildFile section */
- 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
- 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
- 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
- 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
- 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
- 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 33CC10EC2044A3C60003C045;
- remoteInfo = Runner;
- };
- 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 33CC111A2044C6BA0003C045;
- remoteInfo = FLX;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 33CC110E2044A8840003C045 /* Bundle Framework */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Bundle Framework";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
- 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
- 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
- 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
- 33CC10ED2044A3C60003C045 /* context_menus.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "context_menus.app"; sourceTree = BUILT_PRODUCTS_DIR; };
- 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
- 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
- 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
- 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
- 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
- 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
- 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
- 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
- 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
- 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 331C80D2294CF70F00263BE5 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 33CC10EA2044A3C60003C045 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 331C80D6294CF71000263BE5 /* RunnerTests */ = {
- isa = PBXGroup;
- children = (
- 331C80D7294CF71000263BE5 /* RunnerTests.swift */,
- );
- path = RunnerTests;
- sourceTree = "";
- };
- 33BA886A226E78AF003329D5 /* Configs */ = {
- isa = PBXGroup;
- children = (
- 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
- );
- path = Configs;
- sourceTree = "";
- };
- 33CC10E42044A3C60003C045 = {
- isa = PBXGroup;
- children = (
- 33FAB671232836740065AC1E /* Runner */,
- 33CEB47122A05771004F2AC0 /* Flutter */,
- 331C80D6294CF71000263BE5 /* RunnerTests */,
- 33CC10EE2044A3C60003C045 /* Products */,
- D73912EC22F37F3D000D13A0 /* Frameworks */,
- );
- sourceTree = "";
- };
- 33CC10EE2044A3C60003C045 /* Products */ = {
- isa = PBXGroup;
- children = (
- 33CC10ED2044A3C60003C045 /* context_menus.app */,
- 331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
- );
- name = Products;
- sourceTree = "";
- };
- 33CC11242044D66E0003C045 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 33CC10F22044A3C60003C045 /* Assets.xcassets */,
- 33CC10F42044A3C60003C045 /* MainMenu.xib */,
- 33CC10F72044A3C60003C045 /* Info.plist */,
- );
- name = Resources;
- path = ..;
- sourceTree = "";
- };
- 33CEB47122A05771004F2AC0 /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
- 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
- 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
- 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
- );
- path = Flutter;
- sourceTree = "";
- };
- 33FAB671232836740065AC1E /* Runner */ = {
- isa = PBXGroup;
- children = (
- 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
- 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
- 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
- 33E51914231749380026EE4D /* Release.entitlements */,
- 33CC11242044D66E0003C045 /* Resources */,
- 33BA886A226E78AF003329D5 /* Configs */,
- );
- path = Runner;
- sourceTree = "";
- };
- D73912EC22F37F3D000D13A0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 331C80D4294CF70F00263BE5 /* RunnerTests */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
- buildPhases = (
- 331C80D1294CF70F00263BE5 /* Sources */,
- 331C80D2294CF70F00263BE5 /* Frameworks */,
- 331C80D3294CF70F00263BE5 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- 331C80DA294CF71000263BE5 /* PBXTargetDependency */,
- );
- name = RunnerTests;
- productName = RunnerTests;
- productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
- productType = "com.apple.product-type.bundle.unit-test";
- };
- 33CC10EC2044A3C60003C045 /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 33CC10E92044A3C60003C045 /* Sources */,
- 33CC10EA2044A3C60003C045 /* Frameworks */,
- 33CC10EB2044A3C60003C045 /* Resources */,
- 33CC110E2044A8840003C045 /* Bundle Framework */,
- 3399D490228B24CF009A79C7 /* ShellScript */,
- );
- buildRules = (
- );
- dependencies = (
- 33CC11202044C79F0003C045 /* PBXTargetDependency */,
- );
- name = Runner;
- productName = Runner;
- productReference = 33CC10ED2044A3C60003C045 /* context_menus.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 33CC10E52044A3C60003C045 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastSwiftUpdateCheck = 0920;
- LastUpgradeCheck = 1300;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 331C80D4294CF70F00263BE5 = {
- CreatedOnToolsVersion = 14.0;
- TestTargetID = 33CC10EC2044A3C60003C045;
- };
- 33CC10EC2044A3C60003C045 = {
- CreatedOnToolsVersion = 9.2;
- LastSwiftMigration = 1100;
- ProvisioningStyle = Automatic;
- SystemCapabilities = {
- com.apple.Sandbox = {
- enabled = 1;
- };
- };
- };
- 33CC111A2044C6BA0003C045 = {
- CreatedOnToolsVersion = 9.2;
- ProvisioningStyle = Manual;
- };
- };
- };
- buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 33CC10E42044A3C60003C045;
- productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 33CC10EC2044A3C60003C045 /* Runner */,
- 331C80D4294CF70F00263BE5 /* RunnerTests */,
- 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 331C80D3294CF70F00263BE5 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 33CC10EB2044A3C60003C045 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
- 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3399D490228B24CF009A79C7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- );
- outputFileListPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
- };
- 33CC111E2044C6BF0003C045 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- Flutter/ephemeral/FlutterInputs.xcfilelist,
- );
- inputPaths = (
- Flutter/ephemeral/tripwire,
- );
- outputFileListPaths = (
- Flutter/ephemeral/FlutterOutputs.xcfilelist,
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 331C80D1294CF70F00263BE5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 33CC10E92044A3C60003C045 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
- 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
- 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 33CC10EC2044A3C60003C045 /* Runner */;
- targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;
- };
- 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
- targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 33CC10F52044A3C60003C045 /* Base */,
- );
- name = MainMenu.xib;
- path = Runner;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 331C80DB294CF71000263BE5 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/context_menus.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/context_menus";
- };
- name = Debug;
- };
- 331C80DC294CF71000263BE5 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/context_menus.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/context_menus";
- };
- name = Release;
- };
- 331C80DD294CF71000263BE5 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CURRENT_PROJECT_VERSION = 1;
- GENERATE_INFOPLIST_FILE = YES;
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus.RunnerTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/context_menus.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/context_menus";
- };
- name = Profile;
- };
- 338D0CE9231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.14;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = macosx;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- };
- name = Profile;
- };
- 338D0CEA231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_VERSION = 5.0;
- };
- name = Profile;
- };
- 338D0CEB231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Manual;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Profile;
- };
- 33CC10F92044A3C60003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.14;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = macosx;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- };
- name = Debug;
- };
- 33CC10FA2044A3C60003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.14;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = macosx;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- };
- name = Release;
- };
- 33CC10FC2044A3C60003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- };
- name = Debug;
- };
- 33CC10FD2044A3C60003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_VERSION = 5.0;
- };
- name = Release;
- };
- 33CC111C2044C6BA0003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Manual;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Debug;
- };
- 33CC111D2044C6BA0003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Automatic;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 331C80DB294CF71000263BE5 /* Debug */,
- 331C80DC294CF71000263BE5 /* Release */,
- 331C80DD294CF71000263BE5 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC10F92044A3C60003C045 /* Debug */,
- 33CC10FA2044A3C60003C045 /* Release */,
- 338D0CE9231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC10FC2044A3C60003C045 /* Debug */,
- 33CC10FD2044A3C60003C045 /* Release */,
- 338D0CEA231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC111C2044C6BA0003C045 /* Debug */,
- 33CC111D2044C6BA0003C045 /* Release */,
- 338D0CEB231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 33CC10E52044A3C60003C045 /* Project object */;
-}
diff --git a/context_menus/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/context_menus/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d981003..000000000
--- a/context_menus/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/context_menus/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/context_menus/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index 85332994c..000000000
--- a/context_menus/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/context_menus/macos/Runner.xcworkspace/contents.xcworkspacedata b/context_menus/macos/Runner.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 1d526a16e..000000000
--- a/context_menus/macos/Runner.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/context_menus/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/context_menus/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d981003..000000000
--- a/context_menus/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index a2ec33f19..000000000
--- a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "images" : [
- {
- "size" : "16x16",
- "idiom" : "mac",
- "filename" : "app_icon_16.png",
- "scale" : "1x"
- },
- {
- "size" : "16x16",
- "idiom" : "mac",
- "filename" : "app_icon_32.png",
- "scale" : "2x"
- },
- {
- "size" : "32x32",
- "idiom" : "mac",
- "filename" : "app_icon_32.png",
- "scale" : "1x"
- },
- {
- "size" : "32x32",
- "idiom" : "mac",
- "filename" : "app_icon_64.png",
- "scale" : "2x"
- },
- {
- "size" : "128x128",
- "idiom" : "mac",
- "filename" : "app_icon_128.png",
- "scale" : "1x"
- },
- {
- "size" : "128x128",
- "idiom" : "mac",
- "filename" : "app_icon_256.png",
- "scale" : "2x"
- },
- {
- "size" : "256x256",
- "idiom" : "mac",
- "filename" : "app_icon_256.png",
- "scale" : "1x"
- },
- {
- "size" : "256x256",
- "idiom" : "mac",
- "filename" : "app_icon_512.png",
- "scale" : "2x"
- },
- {
- "size" : "512x512",
- "idiom" : "mac",
- "filename" : "app_icon_512.png",
- "scale" : "1x"
- },
- {
- "size" : "512x512",
- "idiom" : "mac",
- "filename" : "app_icon_1024.png",
- "scale" : "2x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
deleted file mode 100644
index 82b6f9d9a..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
deleted file mode 100644
index 13b35eba5..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
deleted file mode 100644
index 0a3f5fa40..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
deleted file mode 100644
index bdb57226d..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
deleted file mode 100644
index f083318e0..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
deleted file mode 100644
index 326c0e72c..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
deleted file mode 100644
index 2f1632cfd..000000000
Binary files a/context_menus/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png and /dev/null differ
diff --git a/context_menus/macos/Runner/Base.lproj/MainMenu.xib b/context_menus/macos/Runner/Base.lproj/MainMenu.xib
deleted file mode 100644
index 80e867a4e..000000000
--- a/context_menus/macos/Runner/Base.lproj/MainMenu.xib
+++ /dev/null
@@ -1,343 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/context_menus/macos/Runner/Configs/AppInfo.xcconfig b/context_menus/macos/Runner/Configs/AppInfo.xcconfig
deleted file mode 100644
index de4b6bfea..000000000
--- a/context_menus/macos/Runner/Configs/AppInfo.xcconfig
+++ /dev/null
@@ -1,14 +0,0 @@
-// Application-level settings for the Runner target.
-//
-// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
-// future. If not, the values below would default to using the project name when this becomes a
-// 'flutter create' template.
-
-// The application's name. By default this is also the title of the Flutter window.
-PRODUCT_NAME = context_menus
-
-// The application's bundle identifier
-PRODUCT_BUNDLE_IDENTIFIER = com.example.contextMenus
-
-// The copyright displayed in application information
-PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved.
diff --git a/context_menus/macos/Runner/Configs/Debug.xcconfig b/context_menus/macos/Runner/Configs/Debug.xcconfig
deleted file mode 100644
index 36b0fd946..000000000
--- a/context_menus/macos/Runner/Configs/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "../../Flutter/Flutter-Debug.xcconfig"
-#include "Warnings.xcconfig"
diff --git a/context_menus/macos/Runner/Configs/Release.xcconfig b/context_menus/macos/Runner/Configs/Release.xcconfig
deleted file mode 100644
index dff4f4956..000000000
--- a/context_menus/macos/Runner/Configs/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "../../Flutter/Flutter-Release.xcconfig"
-#include "Warnings.xcconfig"
diff --git a/context_menus/macos/Runner/Configs/Warnings.xcconfig b/context_menus/macos/Runner/Configs/Warnings.xcconfig
deleted file mode 100644
index 42bcbf478..000000000
--- a/context_menus/macos/Runner/Configs/Warnings.xcconfig
+++ /dev/null
@@ -1,13 +0,0 @@
-WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
-GCC_WARN_UNDECLARED_SELECTOR = YES
-CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
-CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
-CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
-CLANG_WARN_PRAGMA_PACK = YES
-CLANG_WARN_STRICT_PROTOTYPES = YES
-CLANG_WARN_COMMA = YES
-GCC_WARN_STRICT_SELECTOR_MATCH = YES
-CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
-CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
-GCC_WARN_SHADOW = YES
-CLANG_WARN_UNREACHABLE_CODE = YES
diff --git a/context_menus/macos/Runner/Info.plist b/context_menus/macos/Runner/Info.plist
deleted file mode 100644
index 4789daa6a..000000000
--- a/context_menus/macos/Runner/Info.plist
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIconFile
-
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSMinimumSystemVersion
- $(MACOSX_DEPLOYMENT_TARGET)
- NSHumanReadableCopyright
- $(PRODUCT_COPYRIGHT)
- NSMainNibFile
- MainMenu
- NSPrincipalClass
- NSApplication
-
-
diff --git a/context_menus/macos/Runner/MainFlutterWindow.swift b/context_menus/macos/Runner/MainFlutterWindow.swift
deleted file mode 100644
index 2722837ec..000000000
--- a/context_menus/macos/Runner/MainFlutterWindow.swift
+++ /dev/null
@@ -1,15 +0,0 @@
-import Cocoa
-import FlutterMacOS
-
-class MainFlutterWindow: NSWindow {
- override func awakeFromNib() {
- let flutterViewController = FlutterViewController.init()
- let windowFrame = self.frame
- self.contentViewController = flutterViewController
- self.setFrame(windowFrame, display: true)
-
- RegisterGeneratedPlugins(registry: flutterViewController)
-
- super.awakeFromNib()
- }
-}
diff --git a/context_menus/macos/Runner/Release.entitlements b/context_menus/macos/Runner/Release.entitlements
deleted file mode 100644
index 852fa1a47..000000000
--- a/context_menus/macos/Runner/Release.entitlements
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- com.apple.security.app-sandbox
-
-
-
diff --git a/context_menus/pubspec.yaml b/context_menus/pubspec.yaml
deleted file mode 100644
index 1636d6dd0..000000000
--- a/context_menus/pubspec.yaml
+++ /dev/null
@@ -1,88 +0,0 @@
-name: context_menus
-description: A new Flutter project.
-version: 1.0.0+1
-resolution: workspace
-
-# The following line prevents the package from being accidentally published to
-# pub.dev using `flutter pub publish`. This is preferred for private packages.
-publish_to: 'none' # Remove this line if you wish to publish to pub.dev
-
-# The following defines the version and build number for your application.
-# A version number is three numbers separated by dots, like 1.2.43
-# followed by an optional build number separated by a +.
-# Both the version and the builder number may be overridden in flutter
-# build by specifying --build-name and --build-number, respectively.
-# In Android, build-name is used as versionName while build-number used as versionCode.
-# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
-# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
-# Read more about iOS versioning at
-# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
-# In Windows, build-name is used as the major, minor, and patch parts
-# of the product and file versions while build-number is used as the build suffix.
-
-
-environment:
- sdk: ^3.9.0-0
-
-# Dependencies specify other packages that your package needs in order to work.
-# To automatically upgrade your package dependencies to the latest versions
-# consider running `flutter pub upgrade --major-versions`. Alternatively,
-# dependencies can be manually updated by changing the version numbers below to
-# the latest version available on pub.dev. To see which dependencies have newer
-# versions available, run `flutter pub outdated`.
-dependencies:
- flutter:
- sdk: flutter
-
- # The following adds the Cupertino Icons font to your application.
- # Use with the CupertinoIcons class for iOS style icons.
- cupertino_icons: ^1.0.2
- url_launcher: ^6.1.6
-
-dev_dependencies:
- analysis_defaults:
- path: ../analysis_defaults
- flutter_test:
- sdk: flutter
-
-# For information on the generic Dart part of this file, see the
-# following page: https://dart.dev/tools/pub/pubspec
-
-# The following section is specific to Flutter packages.
-flutter:
-
- # The following line ensures that the Material Icons font is
- # included with your application, so that you can use the icons in
- # the material Icons class.
- uses-material-design: true
-
- # To add assets to your application, add an assets section, like this:
- # assets:
- # - images/a_dot_burr.jpeg
- # - images/a_dot_ham.jpeg
-
- # An image asset can refer to one or more resolution-specific "variants", see
- # https://flutter.dev/assets-and-images/#resolution-aware
-
- # For details regarding adding assets from package dependencies, see
- # https://flutter.dev/assets-and-images/#from-packages
-
- # To add custom fonts to your application, add a fonts section here,
- # in this "flutter" section. Each entry in this list should have a
- # "family" key with the font family name, and a "fonts" key with a
- # list giving the asset and other descriptors for the font. For
- # example:
- # fonts:
- # - family: Schyler
- # fonts:
- # - asset: fonts/Schyler-Regular.ttf
- # - asset: fonts/Schyler-Italic.ttf
- # style: italic
- # - family: Trajan Pro
- # fonts:
- # - asset: fonts/TrajanPro.ttf
- # - asset: fonts/TrajanPro_Bold.ttf
- # weight: 700
- #
- # For details regarding fonts from package dependencies,
- # see https://flutter.dev/custom-fonts/#from-packages
diff --git a/context_menus/screenshots/cascading.png b/context_menus/screenshots/cascading.png
deleted file mode 100644
index c29dbadb9..000000000
Binary files a/context_menus/screenshots/cascading.png and /dev/null differ
diff --git a/context_menus/screenshots/custom.png b/context_menus/screenshots/custom.png
deleted file mode 100644
index 183040ed8..000000000
Binary files a/context_menus/screenshots/custom.png and /dev/null differ
diff --git a/context_menus/screenshots/email.png b/context_menus/screenshots/email.png
deleted file mode 100644
index 954da433d..000000000
Binary files a/context_menus/screenshots/email.png and /dev/null differ
diff --git a/context_menus/screenshots/image.png b/context_menus/screenshots/image.png
deleted file mode 100644
index f2b4c9bfd..000000000
Binary files a/context_menus/screenshots/image.png and /dev/null differ
diff --git a/context_menus/test/anywhere_page_test.dart b/context_menus/test/anywhere_page_test.dart
deleted file mode 100644
index 8d0bd4f00..000000000
--- a/context_menus/test/anywhere_page_test.dart
+++ /dev/null
@@ -1,36 +0,0 @@
-import 'package:context_menus/anywhere_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets('Right click works outside of text', (tester) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the AnywherePage example.
- await tester.dragUntilVisible(
- find.text(AnywherePage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(AnywherePage.title));
- await tester.pumpAndSettle();
-
- // Right click on the background of the app to show the context menu.
- final TestGesture gesture = await tester.startGesture(
- const Offset(100.0, 100.0),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The context menu is shown, with a custom back button.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- expect(find.text('Back'), findsOneWidget);
- });
-}
diff --git a/context_menus/test/cascading_menu_page_test.dart b/context_menus/test/cascading_menu_page_test.dart
deleted file mode 100644
index 3f0d1b32a..000000000
--- a/context_menus/test/cascading_menu_page_test.dart
+++ /dev/null
@@ -1,129 +0,0 @@
-import 'package:context_menus/cascading_menu_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets(
- 'Can show and use the cascading menu',
- (tester) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the CascadingMenuPage example.
- await tester.dragUntilVisible(
- find.text(CascadingMenuPage.title),
- find.byType(ListView),
- const Offset(0.0, -250.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(CascadingMenuPage.title));
- await tester.pumpAndSettle();
-
- const String message =
- 'Right click or long press anywhere to show the cascading menu.';
- expect(find.text(message), findsOneWidget);
-
- // Right click on the background of the app to show the cascading context
- // menu.
- TestGesture gesture = await tester.startGesture(
- const Offset(0.0, 100.0),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The custom cascading context menu is shown.
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
- expect(find.text('About'), findsOneWidget);
- expect(find.text('Show'), findsNothing);
- expect(find.text('Hide'), findsOneWidget);
- expect(find.text('Reset'), findsOneWidget);
- expect(find.text('Color'), findsOneWidget);
-
- // Click "Hide Message" and the message and menu are hidden.
- await tester.tap(find.text('Hide'));
- await tester.pumpAndSettle();
- expect(find.byType(DesktopTextSelectionToolbar), findsNothing);
- expect(find.text(message), findsNothing);
-
- // Right click to show the menu again.
- gesture = await tester.startGesture(
- const Offset(0.0, 100.0),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
- expect(find.text('About'), findsOneWidget);
- expect(find.text('Show'), findsOneWidget);
- expect(find.text('Hide'), findsNothing);
- expect(find.text('Reset'), findsOneWidget);
- expect(find.text('Color'), findsOneWidget);
-
- // Use the shortcut to show the message again.
- await tester.sendKeyDownEvent(LogicalKeyboardKey.control);
- await tester.sendKeyDownEvent(LogicalKeyboardKey.keyS);
- await tester.sendKeyUpEvent(LogicalKeyboardKey.control);
- await tester.sendKeyUpEvent(LogicalKeyboardKey.keyS);
- await tester.pumpAndSettle();
- expect(find.byType(DesktopTextSelectionToolbar), findsNothing);
- expect(find.text(message), findsOneWidget);
-
- // Right click to show the menu again.
- gesture = await tester.startGesture(
- const Offset(0.0, 100.0),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
- expect(find.text('About'), findsOneWidget);
- expect(find.text('Show'), findsNothing);
- expect(find.text('Hide'), findsOneWidget);
- expect(find.text('Reset'), findsOneWidget);
- expect(find.text('Color'), findsOneWidget);
- expect(find.text('Red'), findsNothing);
- expect(find.text('Green'), findsNothing);
- expect(find.text('Blue'), findsNothing);
-
- // Hover Background Color.
- gesture = await tester.startGesture(
- //tester.getCenter(find.text('Color')),
- const Offset(0.0, 100),
- kind: PointerDeviceKind.mouse,
- );
- await tester.pump();
- await gesture.moveTo(tester.getCenter(find.text('Color')));
- await tester.pumpAndSettle();
-
- // Background colors are shown.
- expect(find.text('Red'), findsOneWidget);
- expect(find.text('Green'), findsOneWidget);
- expect(find.text('Blue'), findsOneWidget);
-
- // Select green.
- await gesture.moveTo(tester.getCenter(find.text('Green')));
- await tester.pump();
- await tester.tap(find.text('Green'));
- await tester.pump();
- await gesture.removePointer();
-
- // The menu is gone and the UI shows green was selected.
- expect(find.byType(DesktopTextSelectionToolbar), findsNothing);
- expect(find.text('Last Selected: Green Background'), findsOneWidget);
- },
- // TODO(justinmc): https://github.com/flutter/samples/issues/2086
- skip: true,
- );
-}
diff --git a/context_menus/test/custom_buttons_page_test.dart b/context_menus/test/custom_buttons_page_test.dart
deleted file mode 100644
index 93ddc7196..000000000
--- a/context_menus/test/custom_buttons_page_test.dart
+++ /dev/null
@@ -1,64 +0,0 @@
-import 'package:context_menus/custom_buttons_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/foundation.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets('Shows custom buttons in the built-in context menu', (
- tester,
- ) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the CustomButtonsPage example.
- await tester.dragUntilVisible(
- find.text(CustomButtonsPage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(CustomButtonsPage.title));
- await tester.pumpAndSettle();
-
- // Right click on the text field to show the context menu.
- final TestGesture gesture = await tester.startGesture(
- tester.getCenter(find.byType(EditableText)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The context menu is shown, and the buttons are custom widgets.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbarButton),
- findsNothing,
- );
- expect(find.byType(CupertinoButton), findsNWidgets(2));
- case TargetPlatform.macOS:
- expect(find.byType(CupertinoButton), findsNWidgets(2));
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbarButton),
- findsNothing,
- );
- case TargetPlatform.android:
- case TargetPlatform.fuchsia:
- expect(find.byType(CupertinoButton), findsNWidgets(1));
- expect(find.byType(TextSelectionToolbarTextButton), findsNothing);
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(find.byType(CupertinoButton), findsNWidgets(1));
- expect(
- find.byType(DesktopTextSelectionToolbarButton),
- findsNothing,
- );
- }
- });
-}
diff --git a/context_menus/test/custom_menu_page_test.dart b/context_menus/test/custom_menu_page_test.dart
deleted file mode 100644
index 96761cdf7..000000000
--- a/context_menus/test/custom_menu_page_test.dart
+++ /dev/null
@@ -1,67 +0,0 @@
-import 'package:context_menus/custom_menu_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/foundation.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets('Shows default buttons in a custom context menu', (
- tester,
- ) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the CustomMenuPage example.
- await tester.dragUntilVisible(
- find.text(CustomMenuPage.title),
- find.byType(ListView),
- const Offset(0.0, -200.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(CustomMenuPage.title));
- await tester.pumpAndSettle();
-
- // Right click on the text field to show the context menu.
- final TestGesture gesture = await tester.startGesture(
- tester.getCenter(find.byType(EditableText)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // A custom context menu is shown, and the buttons are the default ones.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
- expect(
- find.byType(CupertinoAdaptiveTextSelectionToolbar),
- findsNothing,
- );
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbarButton),
- findsNWidgets(2),
- );
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbarButton),
- findsNWidgets(2),
- );
- case TargetPlatform.android:
- case TargetPlatform.fuchsia:
- expect(
- find.byType(TextSelectionToolbarTextButton),
- findsNWidgets(1),
- );
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(
- find.byType(DesktopTextSelectionToolbarButton),
- findsNWidgets(1),
- );
- }
- });
-}
diff --git a/context_menus/test/default_values_page_test.dart b/context_menus/test/default_values_page_test.dart
deleted file mode 100644
index 1f6713df2..000000000
--- a/context_menus/test/default_values_page_test.dart
+++ /dev/null
@@ -1,109 +0,0 @@
-import 'package:context_menus/default_values_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/foundation.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets('Gives correct behavior for all values of contextMenuBuilder', (
- tester,
- ) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the DefaultValuesPage example.
- await tester.dragUntilVisible(
- find.text(DefaultValuesPage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(DefaultValuesPage.title));
- await tester.pumpAndSettle();
- expect(
- find.descendant(
- of: find.byType(AppBar),
- matching: find.text(DefaultValuesPage.title),
- ),
- findsOneWidget,
- );
-
- // Right click on the text field where contextMenuBuilder isn't passed.
- TestGesture gesture = await tester.startGesture(
- tester.getCenter(find.byType(EditableText).first),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The default context menu is shown.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbarButton),
- findsNWidgets(2),
- );
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbarButton),
- findsNWidgets(2),
- );
- case TargetPlatform.android:
- case TargetPlatform.fuchsia:
- expect(
- find.byType(TextSelectionToolbarTextButton),
- findsNWidgets(1),
- );
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(
- find.byType(DesktopTextSelectionToolbarButton),
- findsNWidgets(1),
- );
- }
-
- // Tap the next field to hide the context menu.
- await tester.tap(find.byType(EditableText).at(1));
- await tester.pumpAndSettle();
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
-
- // Right click on the text field where contextMenuBuilder is given null.
- gesture = await tester.startGesture(
- tester.getCenter(find.byType(EditableText).at(1)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // No context menu is shown.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
-
- // Tap the next field to hide the context menu.
- await tester.tap(find.byType(EditableText).at(2));
- await tester.pumpAndSettle();
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
-
- // Right click on the text field with the custom contextMenuBuilder.
- gesture = await tester.startGesture(
- tester.getCenter(find.byType(EditableText).at(2)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The custom context menu is shown.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- expect(find.text('Custom button'), findsOneWidget);
- });
-}
diff --git a/context_menus/test/email_button_page_test.dart b/context_menus/test/email_button_page_test.dart
deleted file mode 100644
index 309556ba9..000000000
--- a/context_menus/test/email_button_page_test.dart
+++ /dev/null
@@ -1,130 +0,0 @@
-import 'package:context_menus/email_button_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/foundation.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-import 'utils.dart';
-
-void main() {
- testWidgets('Selecting the email address shows a custom button', (
- tester,
- ) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the EmailButtonPage example.
- await tester.dragUntilVisible(
- find.text(EmailButtonPage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(EmailButtonPage.title));
- await tester.pumpAndSettle();
-
- // Select the first word, then right click to show the context menu.
- expect(find.byType(TextField), findsOneWidget);
- await tester.tapAt(tester.getTopLeft(find.byType(EditableText)));
- await tester.pumpAndSettle();
- await tester.sendKeyDownEvent(LogicalKeyboardKey.shift);
- for (int i = 0; i < 6; i++) {
- await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight);
- }
- await tester.sendKeyUpEvent(LogicalKeyboardKey.shift);
- await tester.pumpAndSettle();
- final TestGesture gesture1 = await tester.startGesture(
- textOffsetToPosition(tester, 4),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture1.up();
- await gesture1.removePointer();
- await tester.pumpAndSettle();
-
- // The context menu is shown, but no email button appears.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- expect(find.text('Send email'), findsNothing);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbarButton),
- findsNWidgets(2),
- );
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbarButton),
- findsNWidgets(2),
- );
- case TargetPlatform.android:
- case TargetPlatform.fuchsia:
- expect(
- find.byType(TextSelectionToolbarTextButton),
- findsNWidgets(3),
- );
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(
- find.byType(DesktopTextSelectionToolbarButton),
- findsNWidgets(3),
- );
- }
-
- // Click on "Copy" to hide the context menu.
- await tester.tap(find.text('Copy'));
- await tester.pumpAndSettle();
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
-
- // Select the email address, then right click it to show the context menu.
- for (int i = 0; i < 38; i++) {
- await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight);
- }
- await tester.pumpAndSettle();
- await tester.sendKeyDownEvent(LogicalKeyboardKey.shift);
- for (int i = 0; i < 15; i++) {
- await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight);
- }
- await tester.sendKeyUpEvent(LogicalKeyboardKey.shift);
- final TestGesture gesture2 = await tester.startGesture(
- textOffsetToPosition(tester, 48),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture2.up();
- await gesture2.removePointer();
- await tester.pumpAndSettle();
-
- // The context menu is shown, and the email button now appears.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- expect(find.text('Send email'), findsOneWidget);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbarButton),
- findsNWidgets(3),
- );
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbarButton),
- findsNWidgets(3),
- );
- case TargetPlatform.android:
- case TargetPlatform.fuchsia:
- expect(
- find.byType(TextSelectionToolbarTextButton),
- findsNWidgets(4),
- );
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(
- find.byType(DesktopTextSelectionToolbarButton),
- findsNWidgets(4),
- );
- }
- // TODO: Test failing on Flutter 3.18.0-7.0.pre.57 https://github.com/flutter/samples/issues/2110
- }, skip: true);
-}
diff --git a/context_menus/test/field_types_page_test.dart b/context_menus/test/field_types_page_test.dart
deleted file mode 100644
index 3f2beb436..000000000
--- a/context_menus/test/field_types_page_test.dart
+++ /dev/null
@@ -1,207 +0,0 @@
-import 'package:context_menus/field_types_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/foundation.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets(
- 'Gives correct behavior for all values of contextMenuBuilder',
- (tester) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the FieldTypesPage example.
- await tester.dragUntilVisible(
- find.text(FieldTypesPage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(FieldTypesPage.title));
- await tester.pumpAndSettle();
- expect(
- find.descendant(
- of: find.byType(AppBar),
- matching: find.text(FieldTypesPage.title),
- ),
- findsOneWidget,
- );
-
- // Right click on the TextField.
- TestGesture gesture = await tester.startGesture(
- tester.getTopLeft(find.byType(TextField)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The default context menu for the current platform is shown.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbar),
- findsOneWidget,
- );
- case TargetPlatform.android:
- expect(find.byType(TextSelectionToolbar), findsOneWidget);
- case TargetPlatform.fuchsia:
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbar),
- findsOneWidget,
- );
- }
-
- // Tap the next field to hide the context menu.
- await tester.tap(find.byType(EditableText).at(1));
- await tester.pumpAndSettle();
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
-
- // Right click on the first CupertinoTextField.
- gesture = await tester.startGesture(
- tester.getTopLeft(find.byType(CupertinoTextField).first),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The default Cupertino context menu is shown.
- expect(
- find.byType(CupertinoAdaptiveTextSelectionToolbar),
- findsOneWidget,
- );
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- case TargetPlatform.android:
- case TargetPlatform.fuchsia:
- expect(
- find.byType(CupertinoTextSelectionToolbar),
- findsOneWidget,
- );
- case TargetPlatform.macOS:
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbar),
- findsOneWidget,
- );
- }
-
- // Tap the next field to hide the context menu.
- await tester.tap(find.byType(CupertinoTextField).at(1));
- await tester.pumpAndSettle();
- expect(
- find.byType(CupertinoAdaptiveTextSelectionToolbar),
- findsNothing,
- );
-
- // Right click on the fixed CupertinoTextField.
- gesture = await tester.startGesture(
- tester.getTopLeft(find.byType(CupertinoTextField).at(1)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The default adaptive context menu is shown.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbar),
- findsOneWidget,
- );
- case TargetPlatform.android:
- expect(find.byType(TextSelectionToolbar), findsOneWidget);
- case TargetPlatform.fuchsia:
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbar),
- findsOneWidget,
- );
- }
-
- // Tap the next field to hide the context menu.
- await tester.tap(find.byType(CupertinoTextField).at(2));
- await tester.pumpAndSettle();
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
-
- // Right click on the forced CupertinoTextField.
- gesture = await tester.startGesture(
- tester.getTopLeft(find.byType(CupertinoTextField).at(2)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The DesktopTextSelectionToolbar is shown for all platforms.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsNothing);
- expect(
- find.byType(CupertinoAdaptiveTextSelectionToolbar),
- findsNothing,
- );
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
-
- // Tap the next field to hide the context menu.
- await tester.tap(find.byType(EditableText).last);
- await tester.pumpAndSettle();
- expect(find.byType(DesktopTextSelectionToolbar), findsNothing);
-
- // Right click on the EditableText.
- gesture = await tester.startGesture(
- tester.getTopLeft(find.byType(EditableText).first),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // Shows the default context menu.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- switch (defaultTargetPlatform) {
- case TargetPlatform.iOS:
- expect(
- find.byType(CupertinoTextSelectionToolbar),
- findsOneWidget,
- );
- case TargetPlatform.android:
- expect(find.byType(TextSelectionToolbar), findsOneWidget);
- case TargetPlatform.fuchsia:
- case TargetPlatform.linux:
- case TargetPlatform.windows:
- expect(find.byType(DesktopTextSelectionToolbar), findsOneWidget);
- case TargetPlatform.macOS:
- expect(
- find.byType(CupertinoDesktopTextSelectionToolbar),
- findsOneWidget,
- );
- }
- },
- variant: TargetPlatformVariant.all(),
- // TODO(justinmc): https://github.com/flutter/samples/issues/2086
- skip: true,
- );
-}
diff --git a/context_menus/test/global_selection_page_test.dart b/context_menus/test/global_selection_page_test.dart
deleted file mode 100644
index 619ed3a41..000000000
--- a/context_menus/test/global_selection_page_test.dart
+++ /dev/null
@@ -1,53 +0,0 @@
-import 'package:context_menus/global_selection_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets(
- 'Gives correct behavior for all values of contextMenuBuilder',
- (
- tester,
- ) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the GlobalSelectionPage example.
- await tester.dragUntilVisible(
- find.text(GlobalSelectionPage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(GlobalSelectionPage.title));
- await tester.pumpAndSettle();
- expect(
- find.descendant(
- of: find.byType(AppBar),
- matching: find.text(GlobalSelectionPage.title),
- ),
- findsOneWidget,
- );
-
- // Right click on the plain Text widget.
- TestGesture gesture = await tester.startGesture(
- tester.getCenter(
- find.descendant(
- of: find.byType(ListView),
- matching: find.byType(Text),
- ),
- ),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The default context menu is shown with a custom button.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- expect(find.text('Back'), findsOneWidget);
- },
- );
-}
diff --git a/context_menus/test/image_page_test.dart b/context_menus/test/image_page_test.dart
deleted file mode 100644
index c786518f0..000000000
--- a/context_menus/test/image_page_test.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-import 'package:context_menus/image_page.dart';
-import 'package:context_menus/main.dart';
-import 'package:flutter/gestures.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-void main() {
- testWidgets(
- 'Gives correct behavior for all values of contextMenuBuilder',
- (tester) async {
- await tester.pumpWidget(const MyApp());
-
- // Navigate to the ImagePage example.
- await tester.dragUntilVisible(
- find.text(ImagePage.title),
- find.byType(ListView),
- const Offset(0.0, -100.0),
- );
- await tester.pumpAndSettle();
- await tester.tap(find.text(ImagePage.title));
- await tester.pumpAndSettle();
- expect(
- find.descendant(
- of: find.byType(AppBar),
- matching: find.text(ImagePage.title),
- ),
- findsOneWidget,
- );
-
- // Right click on the FlutterLogo.
- TestGesture gesture = await tester.startGesture(
- tester.getCenter(find.byType(FlutterLogo)),
- kind: PointerDeviceKind.mouse,
- buttons: kSecondaryMouseButton,
- );
- await tester.pump();
- await gesture.up();
- await gesture.removePointer();
- await tester.pumpAndSettle();
-
- // The default context menu is shown with a custom button.
- expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget);
- expect(find.text('Save'), findsOneWidget);
- },
- variant: TargetPlatformVariant.all(),
- );
-}
diff --git a/context_menus/test/utils.dart b/context_menus/test/utils.dart
deleted file mode 100644
index 5d4f6e989..000000000
--- a/context_menus/test/utils.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/rendering.dart';
-import 'package:flutter_test/flutter_test.dart';
-
-// Returns the first RenderEditable.
-RenderEditable findRenderEditable(WidgetTester tester) {
- final RenderObject root = tester.renderObject(find.byType(EditableText));
- expect(root, isNotNull);
-
- late RenderEditable renderEditable;
- void recursiveFinder(RenderObject child) {
- if (child is RenderEditable) {
- renderEditable = child;
- return;
- }
- child.visitChildren(recursiveFinder);
- }
-
- root.visitChildren(recursiveFinder);
- expect(renderEditable, isNotNull);
- return renderEditable;
-}
-
-Offset textOffsetToPosition(WidgetTester tester, int offset) {
- final RenderEditable renderEditable = findRenderEditable(tester);
- final List endpoints = globalize(
- renderEditable.getEndpointsForSelection(
- TextSelection.collapsed(offset: offset),
- ),
- renderEditable,
- );
- expect(endpoints.length, 1);
- return endpoints[0].point + const Offset(kIsWeb ? 1.0 : 0.0, -2.0);
-}
-
-List globalize(
- Iterable points,
- RenderBox box,
-) {
- return points.map((point) {
- return TextSelectionPoint(
- box.localToGlobal(point.point),
- point.direction,
- );
- }).toList();
-}
diff --git a/context_menus/web/favicon.png b/context_menus/web/favicon.png
deleted file mode 100644
index 8aaa46ac1..000000000
Binary files a/context_menus/web/favicon.png and /dev/null differ
diff --git a/context_menus/web/icons/Icon-192.png b/context_menus/web/icons/Icon-192.png
deleted file mode 100644
index b749bfef0..000000000
Binary files a/context_menus/web/icons/Icon-192.png and /dev/null differ
diff --git a/context_menus/web/icons/Icon-512.png b/context_menus/web/icons/Icon-512.png
deleted file mode 100644
index 88cfd48df..000000000
Binary files a/context_menus/web/icons/Icon-512.png and /dev/null differ
diff --git a/context_menus/web/icons/Icon-maskable-192.png b/context_menus/web/icons/Icon-maskable-192.png
deleted file mode 100644
index eb9b4d76e..000000000
Binary files a/context_menus/web/icons/Icon-maskable-192.png and /dev/null differ
diff --git a/context_menus/web/icons/Icon-maskable-512.png b/context_menus/web/icons/Icon-maskable-512.png
deleted file mode 100644
index d69c56691..000000000
Binary files a/context_menus/web/icons/Icon-maskable-512.png and /dev/null differ
diff --git a/context_menus/web/index.html b/context_menus/web/index.html
deleted file mode 100644
index 58cbba07f..000000000
--- a/context_menus/web/index.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- context_menus
-
-
-
-
-
-
diff --git a/context_menus/web/manifest.json b/context_menus/web/manifest.json
deleted file mode 100644
index 62bf22a4d..000000000
--- a/context_menus/web/manifest.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "context_menus",
- "short_name": "context_menus",
- "start_url": ".",
- "display": "standalone",
- "background_color": "#0175C2",
- "theme_color": "#0175C2",
- "description": "A new Flutter project.",
- "orientation": "portrait-primary",
- "prefer_related_applications": false,
- "icons": [
- {
- "src": "icons/Icon-192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-512.png",
- "sizes": "512x512",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-maskable-192.png",
- "sizes": "192x192",
- "type": "image/png",
- "purpose": "maskable"
- },
- {
- "src": "icons/Icon-maskable-512.png",
- "sizes": "512x512",
- "type": "image/png",
- "purpose": "maskable"
- }
- ]
-}
diff --git a/context_menus/windows/.gitignore b/context_menus/windows/.gitignore
deleted file mode 100644
index d492d0d98..000000000
--- a/context_menus/windows/.gitignore
+++ /dev/null
@@ -1,17 +0,0 @@
-flutter/ephemeral/
-
-# Visual Studio user-specific files.
-*.suo
-*.user
-*.userosscache
-*.sln.docstates
-
-# Visual Studio build-related files.
-x64/
-x86/
-
-# Visual Studio cache files
-# files ending in .cache can be ignored
-*.[Cc]ache
-# but keep track of directories ending in .cache
-!*.[Cc]ache/
diff --git a/context_menus/windows/CMakeLists.txt b/context_menus/windows/CMakeLists.txt
deleted file mode 100644
index a2c75ca0d..000000000
--- a/context_menus/windows/CMakeLists.txt
+++ /dev/null
@@ -1,102 +0,0 @@
-# Project-level configuration.
-cmake_minimum_required(VERSION 3.14)
-project(context_menus LANGUAGES CXX)
-
-# The name of the executable created for the application. Change this to change
-# the on-disk name of your application.
-set(BINARY_NAME "context_menus")
-
-# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
-# versions of CMake.
-cmake_policy(SET CMP0063 NEW)
-
-# Define build configuration option.
-get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
-if(IS_MULTICONFIG)
- set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
- CACHE STRING "" FORCE)
-else()
- if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
- set(CMAKE_BUILD_TYPE "Debug" CACHE
- STRING "Flutter build mode" FORCE)
- set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
- "Debug" "Profile" "Release")
- endif()
-endif()
-# Define settings for the Profile build mode.
-set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
-set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
-set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
-set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
-
-# Use Unicode for all projects.
-add_definitions(-DUNICODE -D_UNICODE)
-
-# Compilation settings that should be applied to most targets.
-#
-# Be cautious about adding new options here, as plugins use this function by
-# default. In most cases, you should add new options to specific targets instead
-# of modifying this function.
-function(APPLY_STANDARD_SETTINGS TARGET)
- target_compile_features(${TARGET} PUBLIC cxx_std_17)
- target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
- target_compile_options(${TARGET} PRIVATE /EHsc)
- target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
- target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>")
-endfunction()
-
-# Flutter library and tool build rules.
-set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
-add_subdirectory(${FLUTTER_MANAGED_DIR})
-
-# Application build; see runner/CMakeLists.txt.
-add_subdirectory("runner")
-
-
-# Generated plugin build rules, which manage building the plugins and adding
-# them to the application.
-include(flutter/generated_plugins.cmake)
-
-
-# === Installation ===
-# Support files are copied into place next to the executable, so that it can
-# run in place. This is done instead of making a separate bundle (as on Linux)
-# so that building and running from within Visual Studio will work.
-set(BUILD_BUNDLE_DIR "$")
-# Make the "install" step default, as it's required to run.
-set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
- set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
-endif()
-
-set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
-set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
-
-install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
- COMPONENT Runtime)
-
-install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-
-if(PLUGIN_BUNDLED_LIBRARIES)
- install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
- DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
-
-# Fully re-copy the assets directory on each build to avoid having stale files
-# from a previous install.
-set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
-install(CODE "
- file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
- " COMPONENT Runtime)
-install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
- DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
-
-# Install the AOT library on non-Debug builds only.
-install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
- CONFIGURATIONS Profile;Release
- COMPONENT Runtime)
diff --git a/context_menus/windows/flutter/CMakeLists.txt b/context_menus/windows/flutter/CMakeLists.txt
deleted file mode 100644
index 930d2071a..000000000
--- a/context_menus/windows/flutter/CMakeLists.txt
+++ /dev/null
@@ -1,104 +0,0 @@
-# This file controls Flutter-level build steps. It should not be edited.
-cmake_minimum_required(VERSION 3.14)
-
-set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
-
-# Configuration provided via flutter tool.
-include(${EPHEMERAL_DIR}/generated_config.cmake)
-
-# TODO: Move the rest of this into files in ephemeral. See
-# https://github.com/flutter/flutter/issues/57146.
-set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
-
-# === Flutter Library ===
-set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
-
-# Published to parent scope for install step.
-set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
-set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
-set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
-set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
-
-list(APPEND FLUTTER_LIBRARY_HEADERS
- "flutter_export.h"
- "flutter_windows.h"
- "flutter_messenger.h"
- "flutter_plugin_registrar.h"
- "flutter_texture_registrar.h"
-)
-list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
-add_library(flutter INTERFACE)
-target_include_directories(flutter INTERFACE
- "${EPHEMERAL_DIR}"
-)
-target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
-add_dependencies(flutter flutter_assemble)
-
-# === Wrapper ===
-list(APPEND CPP_WRAPPER_SOURCES_CORE
- "core_implementations.cc"
- "standard_codec.cc"
-)
-list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
-list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
- "plugin_registrar.cc"
-)
-list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
-list(APPEND CPP_WRAPPER_SOURCES_APP
- "flutter_engine.cc"
- "flutter_view_controller.cc"
-)
-list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
-
-# Wrapper sources needed for a plugin.
-add_library(flutter_wrapper_plugin STATIC
- ${CPP_WRAPPER_SOURCES_CORE}
- ${CPP_WRAPPER_SOURCES_PLUGIN}
-)
-apply_standard_settings(flutter_wrapper_plugin)
-set_target_properties(flutter_wrapper_plugin PROPERTIES
- POSITION_INDEPENDENT_CODE ON)
-set_target_properties(flutter_wrapper_plugin PROPERTIES
- CXX_VISIBILITY_PRESET hidden)
-target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
-target_include_directories(flutter_wrapper_plugin PUBLIC
- "${WRAPPER_ROOT}/include"
-)
-add_dependencies(flutter_wrapper_plugin flutter_assemble)
-
-# Wrapper sources needed for the runner.
-add_library(flutter_wrapper_app STATIC
- ${CPP_WRAPPER_SOURCES_CORE}
- ${CPP_WRAPPER_SOURCES_APP}
-)
-apply_standard_settings(flutter_wrapper_app)
-target_link_libraries(flutter_wrapper_app PUBLIC flutter)
-target_include_directories(flutter_wrapper_app PUBLIC
- "${WRAPPER_ROOT}/include"
-)
-add_dependencies(flutter_wrapper_app flutter_assemble)
-
-# === Flutter tool backend ===
-# _phony_ is a non-existent file to force this command to run every time,
-# since currently there's no way to get a full input/output list from the
-# flutter tool.
-set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
-set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
-add_custom_command(
- OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
- ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
- ${CPP_WRAPPER_SOURCES_APP}
- ${PHONY_OUTPUT}
- COMMAND ${CMAKE_COMMAND} -E env
- ${FLUTTER_TOOL_ENVIRONMENT}
- "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
- windows-x64 $
- VERBATIM
-)
-add_custom_target(flutter_assemble DEPENDS
- "${FLUTTER_LIBRARY}"
- ${FLUTTER_LIBRARY_HEADERS}
- ${CPP_WRAPPER_SOURCES_CORE}
- ${CPP_WRAPPER_SOURCES_PLUGIN}
- ${CPP_WRAPPER_SOURCES_APP}
-)
diff --git a/context_menus/windows/flutter/generated_plugin_registrant.cc b/context_menus/windows/flutter/generated_plugin_registrant.cc
deleted file mode 100644
index 4f7884874..000000000
--- a/context_menus/windows/flutter/generated_plugin_registrant.cc
+++ /dev/null
@@ -1,14 +0,0 @@
-//
-// Generated file. Do not edit.
-//
-
-// clang-format off
-
-#include "generated_plugin_registrant.h"
-
-#include
-
-void RegisterPlugins(flutter::PluginRegistry* registry) {
- UrlLauncherWindowsRegisterWithRegistrar(
- registry->GetRegistrarForPlugin("UrlLauncherWindows"));
-}
diff --git a/context_menus/windows/flutter/generated_plugin_registrant.h b/context_menus/windows/flutter/generated_plugin_registrant.h
deleted file mode 100644
index dc139d85a..000000000
--- a/context_menus/windows/flutter/generated_plugin_registrant.h
+++ /dev/null
@@ -1,15 +0,0 @@
-//
-// Generated file. Do not edit.
-//
-
-// clang-format off
-
-#ifndef GENERATED_PLUGIN_REGISTRANT_
-#define GENERATED_PLUGIN_REGISTRANT_
-
-#include
-
-// Registers Flutter plugins.
-void RegisterPlugins(flutter::PluginRegistry* registry);
-
-#endif // GENERATED_PLUGIN_REGISTRANT_
diff --git a/context_menus/windows/flutter/generated_plugins.cmake b/context_menus/windows/flutter/generated_plugins.cmake
deleted file mode 100644
index 88b22e5c7..000000000
--- a/context_menus/windows/flutter/generated_plugins.cmake
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Generated file, do not edit.
-#
-
-list(APPEND FLUTTER_PLUGIN_LIST
- url_launcher_windows
-)
-
-list(APPEND FLUTTER_FFI_PLUGIN_LIST
-)
-
-set(PLUGIN_BUNDLED_LIBRARIES)
-
-foreach(plugin ${FLUTTER_PLUGIN_LIST})
- add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
- target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
- list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
- list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
-endforeach(plugin)
-
-foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
- add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
- list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
-endforeach(ffi_plugin)
diff --git a/context_menus/windows/runner/CMakeLists.txt b/context_menus/windows/runner/CMakeLists.txt
deleted file mode 100644
index 394917c05..000000000
--- a/context_menus/windows/runner/CMakeLists.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-cmake_minimum_required(VERSION 3.14)
-project(runner LANGUAGES CXX)
-
-# Define the application target. To change its name, change BINARY_NAME in the
-# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
-# work.
-#
-# Any new source files that you add to the application should be added here.
-add_executable(${BINARY_NAME} WIN32
- "flutter_window.cpp"
- "main.cpp"
- "utils.cpp"
- "win32_window.cpp"
- "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
- "Runner.rc"
- "runner.exe.manifest"
-)
-
-# Apply the standard set of build settings. This can be removed for applications
-# that need different build settings.
-apply_standard_settings(${BINARY_NAME})
-
-# Add preprocessor definitions for the build version.
-target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"")
-target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}")
-target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}")
-target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}")
-target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}")
-
-# Disable Windows macros that collide with C++ standard library functions.
-target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
-
-# Add dependency libraries and include directories. Add any application-specific
-# dependencies here.
-target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
-target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib")
-target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
-
-# Run the Flutter tool portions of the build. This must not be removed.
-add_dependencies(${BINARY_NAME} flutter_assemble)
diff --git a/context_menus/windows/runner/Runner.rc b/context_menus/windows/runner/Runner.rc
deleted file mode 100644
index e9d0cba67..000000000
--- a/context_menus/windows/runner/Runner.rc
+++ /dev/null
@@ -1,121 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#pragma code_page(65001)
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "winres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (United States) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "resource.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#include ""winres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDI_APP_ICON ICON "resources\\app_icon.ico"
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)
-#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD
-#else
-#define VERSION_AS_NUMBER 1,0,0,0
-#endif
-
-#if defined(FLUTTER_VERSION)
-#define VERSION_AS_STRING FLUTTER_VERSION
-#else
-#define VERSION_AS_STRING "1.0.0"
-#endif
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION VERSION_AS_NUMBER
- PRODUCTVERSION VERSION_AS_NUMBER
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
-#ifdef _DEBUG
- FILEFLAGS VS_FF_DEBUG
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS VOS__WINDOWS32
- FILETYPE VFT_APP
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904e4"
- BEGIN
- VALUE "CompanyName", "com.example" "\0"
- VALUE "FileDescription", "context_menus" "\0"
- VALUE "FileVersion", VERSION_AS_STRING "\0"
- VALUE "InternalName", "context_menus" "\0"
- VALUE "LegalCopyright", "Copyright (C) 2023 com.example. All rights reserved." "\0"
- VALUE "OriginalFilename", "context_menus.exe" "\0"
- VALUE "ProductName", "context_menus" "\0"
- VALUE "ProductVersion", VERSION_AS_STRING "\0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x409, 1252
- END
-END
-
-#endif // English (United States) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
diff --git a/context_menus/windows/runner/flutter_window.cpp b/context_menus/windows/runner/flutter_window.cpp
deleted file mode 100644
index b25e363ef..000000000
--- a/context_menus/windows/runner/flutter_window.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-#include "flutter_window.h"
-
-#include
-
-#include "flutter/generated_plugin_registrant.h"
-
-FlutterWindow::FlutterWindow(const flutter::DartProject& project)
- : project_(project) {}
-
-FlutterWindow::~FlutterWindow() {}
-
-bool FlutterWindow::OnCreate() {
- if (!Win32Window::OnCreate()) {
- return false;
- }
-
- RECT frame = GetClientArea();
-
- // The size here must match the window dimensions to avoid unnecessary surface
- // creation / destruction in the startup path.
- flutter_controller_ = std::make_unique(
- frame.right - frame.left, frame.bottom - frame.top, project_);
- // Ensure that basic setup of the controller was successful.
- if (!flutter_controller_->engine() || !flutter_controller_->view()) {
- return false;
- }
- RegisterPlugins(flutter_controller_->engine());
- SetChildContent(flutter_controller_->view()->GetNativeWindow());
-
- flutter_controller_->engine()->SetNextFrameCallback([&]() {
- this->Show();
- });
-
- return true;
-}
-
-void FlutterWindow::OnDestroy() {
- if (flutter_controller_) {
- flutter_controller_ = nullptr;
- }
-
- Win32Window::OnDestroy();
-}
-
-LRESULT
-FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
- WPARAM const wparam,
- LPARAM const lparam) noexcept {
- // Give Flutter, including plugins, an opportunity to handle window messages.
- if (flutter_controller_) {
- std::optional result =
- flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
- lparam);
- if (result) {
- return *result;
- }
- }
-
- switch (message) {
- case WM_FONTCHANGE:
- flutter_controller_->engine()->ReloadSystemFonts();
- break;
- }
-
- return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
-}
diff --git a/context_menus/windows/runner/flutter_window.h b/context_menus/windows/runner/flutter_window.h
deleted file mode 100644
index 6da0652f0..000000000
--- a/context_menus/windows/runner/flutter_window.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef RUNNER_FLUTTER_WINDOW_H_
-#define RUNNER_FLUTTER_WINDOW_H_
-
-#include
-#include
-
-#include
-
-#include "win32_window.h"
-
-// A window that does nothing but host a Flutter view.
-class FlutterWindow : public Win32Window {
- public:
- // Creates a new FlutterWindow hosting a Flutter view running |project|.
- explicit FlutterWindow(const flutter::DartProject& project);
- virtual ~FlutterWindow();
-
- protected:
- // Win32Window:
- bool OnCreate() override;
- void OnDestroy() override;
- LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
- LPARAM const lparam) noexcept override;
-
- private:
- // The project to run.
- flutter::DartProject project_;
-
- // The Flutter instance hosted by this window.
- std::unique_ptr flutter_controller_;
-};
-
-#endif // RUNNER_FLUTTER_WINDOW_H_
diff --git a/context_menus/windows/runner/main.cpp b/context_menus/windows/runner/main.cpp
deleted file mode 100644
index c1f3fa011..000000000
--- a/context_menus/windows/runner/main.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-#include