Skip to content

V- Modal AI: Visual Video / Image Search - Flutter Video SDK

Release Flutter SDK from 03a9ce8fcf3c19a44e4fcfcf35c8b07320682c14

vmodal-release-app0a266cf1ae14
diff --git a/README.md b/README.md
index 07e4062..d926864 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,11 @@
<div align="center">
<img src="readme_assets/logo_vmodal_owl.jpeg" alt="VModal owl" width="96">
- <h1>VModal AI for Flutter</h1>
+ <h1>VModal for Flutter</h1>
<p><strong>Give your Android and iOS apps a multimodal memory.</strong></p>
<p>Upload video. Find moments by meaning, speech, text, or imagery.<br>Keep the experience fast, native, and 100% Flutter.</p>
<img src="https://flutter.dev/assets/lockup_built-w-flutter.5443036ead976e7afea9249e17cd32b3.svg" alt="Built with Flutter" width="210">
<br><br>
-<p align="center">
- <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/daily" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
- <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/weekly" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
-</p>
-
-
<img src="https://img.shields.io/badge/Flutter-3.44%2B-02569B?logo=flutter&logoColor=white" alt="Flutter 3.44+">
<img src="https://img.shields.io/badge/Dart-3.12%2B-0175C2?logo=dart&logoColor=white" alt="Dart 3.12+">
<img src="https://img.shields.io/badge/Android-supported-3DDC84?logo=android&logoColor=white" alt="Android supported">
@@ -21,6 +15,15 @@
<br>
+## Start here: support, documentation, demo, and API key
+
+| | Resource | Link |
+|---|---|---|
+| 💬 | **Discord support** | [Join the V-Modal AI Discord](https://discord.gg/XGxgBQqkaY) |
+| 📚 | **SDK documentation** | [Read the Flutter SDK reference](https://v-modal.github.io/vmodal_sdk_flutter/) |
+| 📱 | **Demo app and community** | [Visit r/v_modal on Reddit](https://www.reddit.com/r/v_modal/) |
+| 🔑 | **Get an API key** | [Request a VModal API key](https://v-modal.com/page/contact.ts) |
+
<img src="readme_assets/dev_homepage.jpg" alt="A wall of searchable video moments and developer screens" width="100%">
<p align="center"><em>Turn every video library into an experience your users can explore.</em></p>
@@ -38,7 +41,7 @@ VModal brings multimodal video search and mobile-friendly uploads to Dart with a
| Collection and indexing screens | Typed collection, index, usage, and image resources |
| Login and account switching your way | App-owned runtime credentials—no login UI imposed |
-## Getting started with one prompt
+## Gettting started with one prompt
Copy this prompt into your coding agent:
@@ -69,7 +72,7 @@ key is unavailable, stop at that boundary and report the exact blocker and the
next command I should run.
```
-### How to get API KEY :
+### How to get get API KEY :
Get an API Key : [API Key](https://v-modal.com/page/contact.ts)
@@ -149,44 +152,6 @@ specific index version.
The response stays typed where the contract is stable and preserves the raw JSON so new server fields remain available immediately.
-## Understanding search scores
-
-Search finds the nearest frames to your query. It isn't object detection, and it always
-returns something, so a result on its own doesn't mean the subject is in the video.
-
-| Field | What it is |
-|---|---|
-| `score` | A distance. Lower means closer to the query. This is the one to use. |
-| `score_ui` | Normalised across the rows you got back, so the top one is always about `1.0` even when nothing matched well. Not a confidence. |
-
-`textEmbScoreMin` didn't filter anything in testing. `0.9`, `0.5` and `0.0` returned the
-same rows.
-
-### Working out if something is really there
-
-No single cutoff works everywhere. On a fixed traffic camera `a person` came back at
-`0.875` on footage full of people, and `a giraffe` at `0.877` on the same footage with
-none. On a library of different clips it's clearer: clips holding the subject scored
-`0.70` to `0.87`, the rest started at `0.885`.
-
-Two cuts together work well, both measured per collection:
-
-1. A window relative to the best row. `best + 0.03` suited one fixed camera,
- `best + 0.15` a mixed library where you want a few clips back rather than one frame.
-2. A hard ceiling, so a nonsense query returns nothing instead of unrelated frames.
-
-Run a few queries you already know the answer to and see where the hits and misses
-separate.
-
-### Two things that catch people out
-
-Clips under about a minute can index as a single frame, so every search returns that same
-frame and looks broken. Use something longer when trying it out.
-
-Frame lookups use the `vid_img` modality, and `url_pre_signed` is a token for
-`/image/get_image`, not a URL you can load. Pass it through the SDK's image client rather
-than into an image widget. Image queries take base64 bytes.
-
## Upload with progress and cancellation
The SDK reads an app-accessible `File` as a stream. It does not load the entire video into memory.
@@ -394,8 +359,11 @@ The offline gate analyzes the package, runs the SDK and example tests, checks ro
---
-<p>
+<p align="center"><strong>Build video experiences people can search, not just scroll.</strong></p>
+The vmodal_sdk_flutter repository provides the official Flutter SDK for integrating V-Modal AI’s advanced multimodal video and image search technology into cross-platform applications. Developed as an open-source tool, the SDK abstracts complex machine learning infrastructure into simple, developer-friendly methods. This allows mobile developers to incorporate deep visual intelligence into their apps without managing raw vector databases or heavy AI pipelines. During its current public beta phase, the SDK enables fast, semantic querying across media libraries using natural language text or visual references.
+The framework supports unified cross-platform logic, ensuring identical integration paths for both iOS and Android deployment. By optimizing communication with V-Modal AI’s backend, the SDK minimizes network latency and processing overhead on user devices. This makes it ideal for apps requiring real-time asset tracking, e-commerce visual discovery, or intelligent media organization.
+------------------------------
## Understand Core Features
* Multimodal Search: Query media asset databases using text prompts or reference images simultaneously.
@@ -406,7 +374,7 @@ The offline gate analyzes the package, runs the SDK and example tests, checks ro
* Asynchronous Execution: Run complex indexing tasks in background threads to maintain app performance.
-Developers can quickly query their indexed catalog by passing strings or files to the search client. The SDK processes these inputs, communicates with V-Modal's specialized embedding models, and returns structured data objects. These response objects contain relevance scores, metadata tags, and specific timestamps for video matches, allowing apps to jump directly to relevant frames. The score is a distance, so lower is closer to the query — see [Understanding search scores](#understanding-search-scores).
+Developers can quickly query their indexed catalog by passing strings or files to the search client. The SDK processes these inputs, communicates with V-Modal's specialized embedding models, and returns structured data objects. These response objects contain relevance confidence scores, metadata tags, and specific timestamps for video matches, allowing apps to jump directly to relevant frames.
------------------------------
## Evaluate Technical Architecture
diff --git a/RELEASE_METADATA b/RELEASE_METADATA
index 2a9bb03..0ccdbac 100644
--- a/RELEASE_METADATA
+++ b/RELEASE_METADATA
@@ -1 +1 @@
-Source-vmx-api: 96221282b4157fd664ad3a356e6809bd1e38413a
+Source-vmx-api: 03a9ce8fcf3c19a44e4fcfcf35c8b07320682c14
diff --git a/SOURCE_MANIFEST.sha256 b/SOURCE_MANIFEST.sha256
index 4d093fb..d2de675 100644
--- a/SOURCE_MANIFEST.sha256
+++ b/SOURCE_MANIFEST.sha256
@@ -4,8 +4,8 @@ a98f72526420d47e76b9b4e67ac86acd06b7088ad1f4c35617b11b09e59346ea ./.gitleaks.to
5115d06bd9913f466d50fcbf8ad8890372349060c54a4581f3481ea084cfdec6 ./.pubignore
ca4fd9233bc13ac394c3dbce0ebe1da482cd16626f47fa74f47bfcd30fcb2da4 ./CHANGELOG.md
37b7148216ac6090e36adfb699d642b8dd1e1b8ba99870e65e88733947a59fa6 ./LICENSE
-f6dd9b72262243379a40c8f0d89bf368afa89ca5521bf2204aa673e6d7e2c1f2 ./README.md
-19e74293d032c47015180f8a78f43814dcbfc74d9a917750b75349e980ff80ff ./RELEASE_METADATA
+90c73fb8304c3ae696ff15b84b38152cbb64d751de44cdf68d20e2119ae99138 ./README.md
+ee2a271ee580f6374b6748a33147eb5e09d8ed69bcd98f7f743a3c5fbde810c2 ./RELEASE_METADATA
def7e4f643adff5b01b877b6a7fa5b2381612b693c0bf06bd232ee0f7197d342 ./analysis_options.yaml
b3b5b1619725c24005b9f9a64879d0039b1dbebc7bcc48e56df67533ae922aed ./build.sh
4f18642680fb433554a5523d00bd99e0d650af340bcaebe628f59f63ac84e458 ./dartdoc_options.yaml
@@ -100,6 +100,87 @@ ea733b67f97cf5a32bf2b8ea1ee0d10460ac881690d6bc04ec15126ca166291c ./example/03_c
1d42fb123cb7b01094b725c57992170000b45e266f0455cc245ea79c3774e053 ./example/03_cctv/pubspec.lock
6cc52ddfa3d5b698f245b23cf4565367dafe232a8831daeb5fb3f5d25728cb07 ./example/03_cctv/pubspec.yaml
dd42921f5d6ee8fa50765aee06d59df7329d8bd27139eac02b716d14062e1c0c ./example/03_cctv/test/cctv_example_test.dart
+c5ce516b547327aab5b6fa27a523d4c76e66294ada3248b293c54b9595cd3a87 ./example/04_example/.metadata
+bc001543e1418412ce7879a5c46d40ef1b3c485d8ba2b9a343bf7104b17e360c ./example/04_example/LICENSE
+8641c3e16fca438744589de8ed8010517d3ea0076f8bfe3503420eaa8bb2eef8 ./example/04_example/README.md
+e0ea485cfdbc3e12b93efb8679a5ea73ebfe20ea4ca0c473dc594fc2fb274ed5 ./example/04_example/analysis_options.yaml
+1fec8e50a553a24aab530785812abd4767823a20f488bfcf73ab0e458e2b5db4 ./example/04_example/android/app/build.gradle.kts
+30b0832ed8b92dfbd6ae2abfa939ccf26333d37600056b1572bd4a397a18a74b ./example/04_example/android/app/src/debug/AndroidManifest.xml
+b54e7eff08a647908e2af1327b51e09e03e1a6109f3e56cf3660fa190dd6f0d8 ./example/04_example/android/app/src/main/AndroidManifest.xml
+7febc6c7376f3b0f652d9f9a0b61b564f7ac4a0f1527021ca497e18aa896a1a0 ./example/04_example/android/app/src/main/kotlin/com/brpetrov/sightline/MainActivity.kt
+7ca6d5cec2169c5a98661a119db23a6f3399c8fef2256ff04f3a642831282478 ./example/04_example/android/app/src/main/res/drawable-v21/launch_background.xml
+94433756fe10005ddd6fc55cc5c0b1e9f3c10b66a08ceac795ece6713d34e28a ./example/04_example/android/app/src/main/res/drawable/launch_background.xml
+6a7c8f0d703e3682108f9662f813302236240d3f8f638bb391e32bfb96055fef ./example/04_example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
+c7c0c0189145e4e32a401c61c9bdc615754b0264e7afae24e834bb81049eaf81 ./example/04_example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
+e14aa40904929bf313fded22cf7e7ffcbf1d1aac4263b5ef1be8bfce650397aa ./example/04_example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
+4d470bf22d5c17d84edc5f82516d1ba8a1c09559cd761cefb792f86d9f52b540 ./example/04_example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
+3c34e1f298d0c9ea3455d46db6b7759c8211a49e9ec6e44b635fc5c87dfb4180 ./example/04_example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
+8c5bad5152f217e837519f9c15211d19f39bd45f5f67faf6dd81cb4b299e518f ./example/04_example/android/app/src/main/res/values-night/styles.xml
+937d7c82f539c72eb94fd3a3773f29b3d3fef1997213c92cb632298cedf4bda9 ./example/04_example/android/app/src/main/res/values/styles.xml
+30b0832ed8b92dfbd6ae2abfa939ccf26333d37600056b1572bd4a397a18a74b ./example/04_example/android/app/src/profile/AndroidManifest.xml
+6a26dba2cb8dfba1e74f540b0d17a89d96c1301d3c3bfda14348bed257fddcba ./example/04_example/android/build.gradle.kts
+0f82b18017fba6bb5ce3aa4b2d1a00c9382fc8aae7b1d9326e44b18abd66d80b ./example/04_example/android/gradle.properties
+3221993eac1057198d652b7437105e2953ca4850d415eb0eb2b9625874fd059e ./example/04_example/android/gradle/wrapper/gradle-wrapper.properties
+b76d554153a63772dddbe2ee91abdf582f5f871af40698b80a2ef7b70903d96f ./example/04_example/android/settings.gradle.kts
+8d585ca29379297b8b2e6019614a01eded043f9b26d96d52b6f4156d6e648594 ./example/04_example/assets/footage/bird_01.mp4
+2549eac429de39f720ca4fbf2b9ef5afe743f5d2fead43fb61046290b40edd0f ./example/04_example/assets/footage/cat_01.mp4
+e3412fd8ee09b9d13a9218d59ef2d91929c4ff6b2c3fc46a1d911c17ae4b03a6 ./example/04_example/assets/footage/ocean_01.mp4
+5e67bba96e8f7f87eba96a0f3478e4aee11282f27fadf761a38e1ed61baaee40 ./example/04_example/assets/footage/peppers_01.mp4
+216a3ffdcd2764e0bf15a095e240c2055b8408a23878108350481f90809d8261 ./example/04_example/assets/footage/traffic_01.mp4
+488ec790f837f9deafc6249027e2f1b210dcacacc56dfc5f37864c76c48a5ef5 ./example/04_example/assets/queries/bird.jpg
+16b4146e333cea289bfac8c4b3d4cb367ff980ee3a5782d48f50dd9bdc32f716 ./example/04_example/assets/queries/clouds.jpg
+27f4ad391467d52327d730968980f9d5ae40632b57aed8fe081b28e4814d7cc3 ./example/04_example/assets/queries/sunset.jpg
+88d2f2722c79170c0a82c014c8a03b4c5f91b42d667502841bff42b7abf74001 ./example/04_example/integration_test/archive_walkthrough_test.dart
+aef381bad558e1d65c4f63bee407454a09f3e6d3e0d106a55a2964016df5ddfe ./example/04_example/integration_test/demo_archive_test.dart
+10ee8d5e892989850cda64941d48147110aca3962f08506740bfb5b33c62e2ef ./example/04_example/integration_test/demo_pace.dart
+5b90b9d932fab97831e01bc8fece71baf459278047dc80cb4ff6233c71786737 ./example/04_example/integration_test/demo_traffic_test.dart
+6af5f903835fc34083898ce980b7ccbe6039dd2822f27f5071d0295b27d8754b ./example/04_example/integration_test/traffic_walkthrough_test.dart
+da12038f9b2688a8a26160fea2609fa8fcb11421448c109f09c0f573efe7698d ./example/04_example/ios/Flutter/AppFrameworkInfo.plist
+a82d7765b37116ee4821d2cd1d65942febf8032353757ffb0826eabde785b4a6 ./example/04_example/ios/Flutter/Debug.xcconfig
+a82d7765b37116ee4821d2cd1d65942febf8032353757ffb0826eabde785b4a6 ./example/04_example/ios/Flutter/Release.xcconfig
+1dbfb2927a7e11a528614d5284bbc79b94b671d9131aa183ac34e2a00641c9dd ./example/04_example/ios/Runner.xcodeproj/project.pbxproj
+7f3b00b5c3fdb45242d7b87e1e5c4e25d1fa8129a16c94295ecc4e8ea2235c5f ./example/04_example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+dfa0f9bb85b95ccba9c6811adadf8cb407fb5d52088e89db83ebc308ec448542 ./example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+11b247bc6796892d67c9a821d18604db4dd6a880981b34f38460b9866e6b247f ./example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+9fbce429f56243561dd437a527136c9f9ed77165e3b271b923faf236cfcd0484 ./example/04_example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+46c3c9702ff7c5584e11c954d943cfb6e07fb26e3fbd072ddbc0f388aa352de1 ./example/04_example/ios/Runner.xcworkspace/contents.xcworkspacedata
+dfa0f9bb85b95ccba9c6811adadf8cb407fb5d52088e89db83ebc308ec448542 ./example/04_example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+11b247bc6796892d67c9a821d18604db4dd6a880981b34f38460b9866e6b247f ./example/04_example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+451c6d9ba0a2b3ff43092ea349c60fa79a91f1158b915eb29dbdd357cb95d7b8 ./example/04_example/ios/Runner/AppDelegate.swift
+3b1e214f466ffedff74baa5598ad5c4421130eea6bc8d57b8fe23435e8280ae4 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+7770183009e914112de7d8ef1d235a6a30c5834424858e0d2f8253f6b8d31926 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+cab10a0d391ec5bc09ef50ce49e8ad401cee7ef03707ec0923a222c5c2b3d212 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+b9ad02cf6576a04d1b6806ac02a2431481b448dd0c2e505ce25842d1f7c4730b ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+c6e6d3b215ae744a9c391f4c4d44157eff5e739d6ad6c39f9bfa5df66dddd267 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+5dee24dc104ac76dc162e42ae0beb163d426bf365562ee28ba7b3ad368559a60 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+a9b21eb6f4271385655a8771f76e29eef8c1107d7879cbcfc567e6619d1f716a ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+e677d701ffe4af7bc2935098d6b3984cc9ab7ace573e6900955a5535b12410cf ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+b9ad02cf6576a04d1b6806ac02a2431481b448dd0c2e505ce25842d1f7c4730b ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+7c61c42fc7b657d9cf314d32a4ec458f0647c3aaf360be1b9377857266ec2499 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+19be171481dc71a0b2803ebcd01dd8b0c5fd5778dee34c0a3cabc948c225f24e ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+19be171481dc71a0b2803ebcd01dd8b0c5fd5778dee34c0a3cabc948c225f24e ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+4209a49e44a92ec40a327d3455eb1b1c153ee83d75de1c2be0a12ab18b2ff9de ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+836c918cb613249eba0483a6b02fa3df3c1c0a89a315ee4d3b88509b83c7ab73 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+41c7d42f6e61f8fe7f30b1ffa2256aecbc9682be06d18c4a3062043e1a2e547c ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+5d7e5bdf01b93802bc973345b3a78c038907147625035952a08a115a563b7f81 ./example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
+ccc7950fd5f5b82067c85f667940a9d59189151460761ece8098ca78daa19469 ./example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+93ae7d494fad0fb30cbf3ae746a39c4bc7a0f8bbf87fbb587a3f3c01f3c5ce20 ./example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
+93ae7d494fad0fb30cbf3ae746a39c4bc7a0f8bbf87fbb587a3f3c01f3c5ce20 ./example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
+93ae7d494fad0fb30cbf3ae746a39c4bc7a0f8bbf87fbb587a3f3c01f3c5ce20 ./example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
+a985b626c4f7546a8ba392d135e9226c3547c8e2b46895f5f2bdf40d7b14ef9f ./example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+857e61203b3deafb05766d8fcda898b86a7cb6f3d5e385ecc9926c4d698215e9 ./example/04_example/ios/Runner/Base.lproj/LaunchScreen.storyboard
+fd367b6c43006d61b730f674970dd48b9f662c8f2264e52ffc1558102a2c9f2d ./example/04_example/ios/Runner/Base.lproj/Main.storyboard
+cc03511a8432e3144069a128282deec13ffd4cb4c55637ffef3146a0e58ee5fd ./example/04_example/ios/Runner/Info.plist
+1a8d11d01d1cc92c650c9c9ed35299240052d4683a15a719a2315ef44185e074 ./example/04_example/ios/Runner/Runner-Bridging-Header.h
+add68b905971dedfcc0d0b5b7118030de5925ba8c081ad9815463699e3a444ad ./example/04_example/ios/Runner/SceneDelegate.swift
+5e8f4908dacea6f29b2a790e4d38bf5fded69096063f9a27a2f21584d62b30c0 ./example/04_example/ios/RunnerTests/RunnerTests.swift
+ebc175eea95c02f5716689764777087863d5dbfa57c9d09ed0f4eab2f41b4ee2 ./example/04_example/pubspec.lock
+59d751f2338082c3da610bb842ebdac1157135b1dfc2776f96a7cc72eb7c8ed2 ./example/04_example/pubspec.yaml
+00988c2faa386c1c100b4713c51bb298c06a21d01395760f63ce3f58ebc606cf ./example/04_example/test/widget_test.dart
+cb335a6997ddec7208a31edea88cbf7df3a5af67d891116a54ff74fab4bf37b4 ./example/04_example/test_driver/integration_test.dart
+332c6cf3f7ec27c02ef4217bf01cdacf64e20ad49e03c6024f050c4d6558221d ./example/04_example/tool/dev_run.sh
+09a4d126420e89e9f407c20a064b9ef9a01fbbb82d24d94c23ccb561b1e5cb8a ./example/04_example/tool/shoot.sh
+4fe4d0dd60af829afc49ac288faa42998db09ae714b37b78f858b874c8924d05 ./example/readme.md
23756b83470b1f25f6a7e6b5a6270f123a5224e49fd8e2eda36001358951b688 ./install.sh
7becacd31a8d134fa435b39cd819798d5fbf58f89b9f30c50362e2dcf757aaed ./lib/src/adaptive_upload.dart
9464fff0c519a1ce70cddefb3e3eaa95d07b97ccdaf5b8381c01d7c88767ae83 ./lib/src/api_key_provider.dart
@@ -139,7 +220,7 @@ d132b6dceb89804a47418245845547a25fcf8f89f56b292ee70a404d63364865 ./test/fakes.d
14368b598ece0ce9b2e249148a10a92f2c80e38427c077013a1515826f4365bd ./test/fixtures/routes_contract.json
593b356ac3431de80e03e7a0e2f1df0d29589140f44746468213c1cac1c35bbe ./test/multipart_upload_test.dart
348b9581f6262acaaf96012a3d57685b0b45c3663c1497f14135663de7a60954 ./test/new_api_surface_test.dart
-08ceeca24b3550142c4b982109a92637fa700686533185ad0619fd249bfc94f2 ./test/regression_manifest_test.dart
+eda872829e80171c14f6439fd2f65c8bbe2d6d7d2013fd83b46e6247619847a1 ./test/regression_manifest_test.dart
8c87a4645a2e329477d070277f64b617da14ac90163bb734fbb5326c1a97a5c3 ./test/resources_models_test.dart
8619ce113bb8669612f9a2a16b1b334ac68435c5972e84828a789511467fcb77 ./test/shell_scripts_test.dart
efe4f1158e7d4b9ca8e57f3538ce296279817292a4356c1399cf5f2cbae4c52d ./test/transcode_upload_test.dart
diff --git a/example/04_example/.gitignore b/example/04_example/.gitignore
new file mode 100644
index 0000000..715d0a6
--- /dev/null
+++ b/example/04_example/.gitignore
@@ -0,0 +1,51 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+/coverage/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
+
+# scratch
+*.zip
+
+# screenshots live in the ops repo, one level up
+screenshots/
diff --git a/example/04_example/.metadata b/example/04_example/.metadata
new file mode 100644
index 0000000..92bca7e
--- /dev/null
+++ b/example/04_example/.metadata
@@ -0,0 +1,33 @@
+# 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 and should not be manually edited.
+
+version:
+ revision: "ee80f08bbf97172ec030b8751ceab557177a34a6"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
+ base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
+ - platform: android
+ create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
+ base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
+ - platform: ios
+ create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
+ base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
+
+ # 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/example/04_example/LICENSE b/example/04_example/LICENSE
new file mode 100644
index 0000000..b81f341
--- /dev/null
+++ b/example/04_example/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 V-Modal AI, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/example/04_example/README.md b/example/04_example/README.md
new file mode 100644
index 0000000..2ce8c44
--- /dev/null
+++ b/example/04_example/README.md
@@ -0,0 +1,102 @@
+# Sightline
+
+Search inside video by describing what you are looking for.
+
+Two demos of the
+[VModal Flutter SDK](https://github.com/v-modal/vmodal_sdk_flutter) in one app,
+running on iOS and Android from the same codebase.
+
+
+
+## The two demos
+
+**Traffic camera — find the moment in one video.** A fixed camera films the same
+junction for a long time. Describe what you are looking for and get the frames
+back with the time in the clip. "pedestrians on a zebra crossing" returns the
+crowd mid-crossing at 00:13.
+
+**Find the correct video — which clip has it.** Several clips in one collection.
+Search once and see which clip holds the shot, and where. Results group by clip,
+each with a strip of matching frames. You can search with a picture instead of
+words.
+
+## Running it
+
+```bash
+flutter pub get
+flutter run
+```
+
+You need your own VModal API key: request one at
+[v-modal.com/contact](https://www.v-modal.com/contact).
+
+On first launch each tab asks for the key and a collection name. The collection
+is inside your own account and is created on first upload, so any name works.
+Then **Upload and index** sends the bundled clips, and search unlocks when
+indexing finishes.
+
+The key is held in memory for the session. The setup sheet can keep it on the
+device if you switch that on, in a plain JSON file in the app's documents
+directory. That is a demo convenience: a real app should use the platform
+keychain.
+
+`tool/dev_run.sh` builds, installs and launches on a booted iOS simulator.
+
+## Screenshots and tests
+
+`integration_test/` drives each tab end to end and hands off to `tool/shoot.sh`,
+which captures the device screen. One command regenerates a whole set:
+
+```bash
+OUT=shots tool/shoot.sh &
+flutter drive --driver test_driver/integration_test.dart \
+ --target integration_test/traffic_walkthrough_test.dart -d <device>
+```
+
+## What testing the SDK turned up
+
+Worth knowing if you build on it. All measured against the live API, not guessed.
+
+- **A video search row carries no `filename`.** It has `title`, and sometimes
+ that is empty too. The image lookup needs a name, so the only remaining source
+ is `item_id`, which reads `astream-<name>-<13-digit-ts>`. Without that fallback
+ results silently vanish: a clip uploaded from the device ranked top for every
+ query and showed nothing.
+- **`/image/get_image` needs `ts_unix_13digits` even when the frame time is all
+ zeros.** Leave it out and it answers `ts_unix_13digits required for video modes`.
+- **`modality` must be `vid_img` for `mode=vid_file`.** The backend says so.
+- **`textEmbScoreMin` does not filter.** 0.9, 0.5 and 0.0 return identical results.
+- **`score` is a distance, so lower is better**, which the name implies backwards.
+ `score_ui` is that distance normalised inside the returned batch, so the top hit
+ always reads 1.0. It is not a confidence and this app does not show it as one.
+- **The score does not measure whether the subject is present.** `a person` scores
+ 0.875 on a clip full of people; `a giraffe` scores 0.877 on the same clip with
+ none. So the relevance cut-offs in `lib/scene.dart` are tuned against the bundled
+ footage and may need different numbers for yours.
+- **Frame count follows visual change, not length.** A 26 second clip of a bird
+ indexed to 22 frames; a 60 second clip of ocean waves indexed to 1. Long static
+ shots are the worst case.
+- **`image_query` takes base64 image bytes.** Undocumented, and the SDK's own
+ example never uses it. It works well.
+- **There is no endpoint that lists a collection's contents**, so the uploaded list
+ in this app is built from names the server returns in search results.
+
+## Footage
+
+All stock footage, free to use, downscaled to 720p with audio stripped. Three
+links are still to be added; open an issue if you need a source before then.
+
+| File | Source |
+| --- | --- |
+| `assets/footage/traffic_01.mp4` | Pexels video 15643210 |
+| `assets/footage/cat_01.mp4` | Pexels video 149552 |
+| `assets/footage/bird_01.mp4` | Pexels, link pending |
+| `assets/footage/ocean_01.mp4` | Pexels, link pending |
+| `assets/footage/peppers_01.mp4` | Pexels, link pending |
+| `assets/queries/bird.jpg` | Pexels photo 3491309 |
+| `assets/queries/sunset.jpg` | Pexels photo 656967 |
+| `assets/queries/clouds.jpg` | Pixabay photo 7050884 |
+
+## Licence
+
+MIT. See [LICENSE](LICENSE).
diff --git a/example/04_example/analysis_options.yaml b/example/04_example/analysis_options.yaml
new file mode 100644
index 0000000..0d29021
--- /dev/null
+++ b/example/04_example/analysis_options.yaml
@@ -0,0 +1,28 @@
+# 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.dev/lints.
+ #
+ # 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/example/04_example/android/.gitignore b/example/04_example/android/.gitignore
new file mode 100644
index 0000000..be3943c
--- /dev/null
+++ b/example/04_example/android/.gitignore
@@ -0,0 +1,14 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+.cxx/
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/to/reference-keystore
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/example/04_example/android/app/build.gradle.kts b/example/04_example/android/app/build.gradle.kts
new file mode 100644
index 0000000..e0b95eb
--- /dev/null
+++ b/example/04_example/android/app/build.gradle.kts
@@ -0,0 +1,45 @@
+plugins {
+ id("com.android.application")
+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
+ id("dev.flutter.flutter-gradle-plugin")
+}
+
+android {
+ namespace = "com.brpetrov.sightline"
+ compileSdk = flutter.compileSdkVersion
+ ndkVersion = flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId = "com.brpetrov.sightline"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://flutter.dev/to/review-gradle-config.
+ minSdk = flutter.minSdkVersion
+ targetSdk = flutter.targetSdkVersion
+ versionCode = flutter.versionCode
+ versionName = flutter.versionName
+ }
+
+ 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.getByName("debug")
+ }
+ }
+}
+
+kotlin {
+ compilerOptions {
+ jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
+ }
+}
+
+flutter {
+ source = "../.."
+}
diff --git a/example/04_example/android/app/src/debug/AndroidManifest.xml b/example/04_example/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/example/04_example/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- The INTERNET permission is required for development. Specifically,
+ the Flutter tool needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/example/04_example/android/app/src/main/AndroidManifest.xml b/example/04_example/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..413295a
--- /dev/null
+++ b/example/04_example/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,45 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <application
+ android:label="sightline"
+ android:name="${applicationName}"
+ android:icon="@mipmap/ic_launcher">
+ <activity
+ android:name=".MainActivity"
+ android:exported="true"
+ android:launchMode="singleTop"
+ android:taskAffinity=""
+ android:theme="@style/LaunchTheme"
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
+ android:hardwareAccelerated="true"
+ android:windowSoftInputMode="adjustResize">
+ <!-- Specifies an Android theme to apply to this Activity as soon as
+ the Android process has started. This theme is visible to the user
+ while the Flutter UI initializes. After that, this theme continues
+ to determine the Window background behind the Flutter UI. -->
+ <meta-data
+ android:name="io.flutter.embedding.android.NormalTheme"
+ android:resource="@style/NormalTheme"
+ />
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
+ </intent-filter>
+ </activity>
+ <!-- Don't delete the meta-data below.
+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
+ <meta-data
+ android:name="flutterEmbedding"
+ android:value="2" />
+ </application>
+ <!-- Required to query activities that can process text, see:
+ https://developer.android.com/training/package-visibility and
+ https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
+
+ In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
+ <queries>
+ <intent>
+ <action android:name="android.intent.action.PROCESS_TEXT"/>
+ <data android:mimeType="text/plain"/>
+ </intent>
+ </queries>
+</manifest>
diff --git a/example/04_example/android/app/src/main/kotlin/com/brpetrov/sightline/MainActivity.kt b/example/04_example/android/app/src/main/kotlin/com/brpetrov/sightline/MainActivity.kt
new file mode 100644
index 0000000..0006693
--- /dev/null
+++ b/example/04_example/android/app/src/main/kotlin/com/brpetrov/sightline/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.brpetrov.sightline
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity : FlutterActivity()
diff --git a/example/04_example/android/app/src/main/res/drawable-v21/launch_background.xml b/example/04_example/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/example/04_example/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="?android:colorBackground" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/example/04_example/android/app/src/main/res/drawable/launch_background.xml b/example/04_example/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/example/04_example/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@android:color/white" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/example/04_example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/example/04_example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/example/04_example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/example/04_example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/example/04_example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/example/04_example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/example/04_example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/04_example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/example/04_example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/example/04_example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/04_example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/example/04_example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/example/04_example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/example/04_example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/example/04_example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/example/04_example/android/app/src/main/res/values-night/styles.xml b/example/04_example/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/example/04_example/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ the Flutter engine draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/example/04_example/android/app/src/main/res/values/styles.xml b/example/04_example/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/example/04_example/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ the Flutter engine draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/example/04_example/android/app/src/profile/AndroidManifest.xml b/example/04_example/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/example/04_example/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- The INTERNET permission is required for development. Specifically,
+ the Flutter tool needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/example/04_example/android/build.gradle.kts b/example/04_example/android/build.gradle.kts
new file mode 100644
index 0000000..dbee657
--- /dev/null
+++ b/example/04_example/android/build.gradle.kts
@@ -0,0 +1,24 @@
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+val newBuildDir: Directory =
+ rootProject.layout.buildDirectory
+ .dir("../../build")
+ .get()
+rootProject.layout.buildDirectory.value(newBuildDir)
+
+subprojects {
+ val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
+ project.layout.buildDirectory.value(newSubprojectBuildDir)
+}
+subprojects {
+ project.evaluationDependsOn(":app")
+}
+
+tasks.register<Delete>("clean") {
+ delete(rootProject.layout.buildDirectory)
+}
diff --git a/example/04_example/android/gradle.properties b/example/04_example/android/gradle.properties
new file mode 100644
index 0000000..e96108c
--- /dev/null
+++ b/example/04_example/android/gradle.properties
@@ -0,0 +1,6 @@
+org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
+android.useAndroidX=true
+# This newDsl flag was added by the Flutter template
+android.newDsl=false
+# This builtInKotlin flag was added by the Flutter template
+android.builtInKotlin=false
diff --git a/example/04_example/android/gradle/wrapper/gradle-wrapper.properties b/example/04_example/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..2d428bf
--- /dev/null
+++ b/example/04_example/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
diff --git a/example/04_example/android/settings.gradle.kts b/example/04_example/android/settings.gradle.kts
new file mode 100644
index 0000000..c21f0c5
--- /dev/null
+++ b/example/04_example/android/settings.gradle.kts
@@ -0,0 +1,26 @@
+pluginManagement {
+ val flutterSdkPath =
+ run {
+ val properties = java.util.Properties()
+ file("local.properties").inputStream().use { properties.load(it) }
+ val flutterSdkPath = properties.getProperty("flutter.sdk")
+ require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
+ flutterSdkPath
+ }
+
+ includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
+
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+plugins {
+ id("dev.flutter.flutter-plugin-loader") version "1.0.0"
+ id("com.android.application") version "9.0.1" apply false
+ id("org.jetbrains.kotlin.android") version "2.3.20" apply false
+}
+
+include(":app")
diff --git a/example/04_example/assets/footage/bird_01.mp4 b/example/04_example/assets/footage/bird_01.mp4
new file mode 100644
index 0000000..564c061
Binary files /dev/null and b/example/04_example/assets/footage/bird_01.mp4 differ
diff --git a/example/04_example/assets/footage/cat_01.mp4 b/example/04_example/assets/footage/cat_01.mp4
new file mode 100644
index 0000000..3beed53
Binary files /dev/null and b/example/04_example/assets/footage/cat_01.mp4 differ
diff --git a/example/04_example/assets/footage/ocean_01.mp4 b/example/04_example/assets/footage/ocean_01.mp4
new file mode 100644
index 0000000..67a3e44
Binary files /dev/null and b/example/04_example/assets/footage/ocean_01.mp4 differ
diff --git a/example/04_example/assets/footage/peppers_01.mp4 b/example/04_example/assets/footage/peppers_01.mp4
new file mode 100644
index 0000000..b04d7e0
Binary files /dev/null and b/example/04_example/assets/footage/peppers_01.mp4 differ
diff --git a/example/04_example/assets/footage/traffic_01.mp4 b/example/04_example/assets/footage/traffic_01.mp4
new file mode 100644
index 0000000..4794e6c
Binary files /dev/null and b/example/04_example/assets/footage/traffic_01.mp4 differ
diff --git a/example/04_example/assets/queries/bird.jpg b/example/04_example/assets/queries/bird.jpg
new file mode 100644
index 0000000..fe14ba9
Binary files /dev/null and b/example/04_example/assets/queries/bird.jpg differ
diff --git a/example/04_example/assets/queries/clouds.jpg b/example/04_example/assets/queries/clouds.jpg
new file mode 100644
index 0000000..f6867e8
Binary files /dev/null and b/example/04_example/assets/queries/clouds.jpg differ
diff --git a/example/04_example/assets/queries/sunset.jpg b/example/04_example/assets/queries/sunset.jpg
new file mode 100644
index 0000000..f5492e1
Binary files /dev/null and b/example/04_example/assets/queries/sunset.jpg differ
diff --git a/example/04_example/integration_test/archive_walkthrough_test.dart b/example/04_example/integration_test/archive_walkthrough_test.dart
new file mode 100644
index 0000000..9e0cf00
--- /dev/null
+++ b/example/04_example/integration_test/archive_walkthrough_test.dart
@@ -0,0 +1,130 @@
+// Drives the archive tab and captures a framed screenshot at each step:
+//
+// OUT=screenshots/archive KEY_FILE=<secrets> tool/shoot.sh &
+// flutter drive --driver test_driver/integration_test.dart \
+// --target integration_test/archive_walkthrough_test.dart -d <device>
+//
+// The file picker is native iOS, which the driver cannot tap, so this shows the
+// bundled clips going up and the bundled pictures being searched with. Picking a
+// file from the device is a manual step.
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+import 'package:sightline/gallery_view.dart';
+import 'package:sightline/main.dart';
+
+void main() {
+ IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+
+ Future<void> shot(WidgetTester tester, String name) async {
+ final File flag = File(
+ '${Directory.systemTemp.parent.path}/Documents/.shot_$name',
+ );
+ flag.writeAsStringSync('');
+ for (int i = 0; i < 240; i++) {
+ await tester.pump(const Duration(milliseconds: 250));
+ if (!flag.existsSync()) return;
+ }
+ throw StateError('nobody captured $name; is tool/shoot.sh running?');
+ }
+
+ Future<void> wait(WidgetTester tester, int seconds) async {
+ for (int i = 0; i < seconds * 4; i++) {
+ await tester.pump(const Duration(milliseconds: 250));
+ }
+ }
+
+ Future<bool> waitFor(
+ WidgetTester tester,
+ Finder finder, {
+ int timeout = 300,
+ }) async {
+ for (int i = 0; i < timeout * 4; i++) {
+ await tester.pump(const Duration(milliseconds: 250));
+ if (finder.evaluate().isNotEmpty) return true;
+ }
+ return false;
+ }
+
+ Future<void> search(WidgetTester tester, String query) async {
+ final Finder field = find.byType(TextField).first;
+ await tester.tap(field);
+ await tester.pump(const Duration(milliseconds: 300));
+ await tester.enterText(field, query);
+ await tester.pump(const Duration(milliseconds: 300));
+ await tester.testTextInput.receiveAction(TextInputAction.search);
+ await tester.pump(const Duration(milliseconds: 300));
+ }
+
+ testWidgets('media archive, start to results', (WidgetTester tester) async {
+ await tester.pumpWidget(const SightlineApp());
+ await tester.pumpAndSettle();
+
+ await tester.tap(find.text('Archive'));
+ await tester.pumpAndSettle();
+ await shot(tester, '01_start');
+
+ await tester.tap(find.byIcon(Icons.info_outline).first);
+ await tester.pumpAndSettle();
+ await shot(tester, '02_what_it_does');
+ await tester.tap(find.text('Got it'));
+ await tester.pumpAndSettle();
+
+ await tester.tap(find.text('Connect to VModal'));
+ await tester.pumpAndSettle();
+ await shot(tester, '03_api_key');
+ await tester.tap(find.widgetWithText(FilledButton, 'Connect'));
+ await waitFor(tester, find.text('Key active'));
+ await wait(tester, 8);
+ await shot(tester, '04_uploaded_videos');
+
+ // send the bundled clips if the collection is empty
+ if (find.text('Upload and index').evaluate().isNotEmpty) {
+ await tester.tap(find.text('Upload and index'));
+ await wait(tester, 4);
+ await shot(tester, '05_uploading');
+ await waitFor(tester, find.textContaining('Indexing'));
+ await shot(tester, '06_indexing');
+ await waitFor(tester, find.textContaining('VIDEOS UPLOADED'));
+ await wait(tester, 3);
+ await shot(tester, '07_indexed');
+ }
+
+ await search(tester, 'a bird');
+ await wait(tester, 8);
+ await shot(tester, '08_search_bird');
+
+ await search(tester, 'clouds and sky');
+ await wait(tester, 8);
+ await shot(tester, '09_search_clouds');
+
+ await search(tester, 'an animal');
+ await wait(tester, 8);
+ await shot(tester, '10_search_animal');
+
+ // by picture. The picker is native iOS and no driver can tap it, so the
+ // search itself is triggered through the controller with the same bundled
+ // picture the button would hand over, and the picker is shown last since
+ // nothing can dismiss it.
+ final GalleryView view = tester.widget<GalleryView>(
+ find.byType(GalleryView),
+ );
+ // The button clears the typed query; do the same so the screenshot does not
+ // show a stale one next to picture results.
+ await tester.enterText(find.byType(TextField).first, '');
+ await tester.pump(const Duration(milliseconds: 300));
+ await view.controller.searchByAsset(view.scene, 'assets/queries/bird.jpg');
+ await wait(tester, 10);
+ await shot(tester, '11_image_search_result');
+
+ await view.controller.searchByAsset(view.scene, 'assets/queries/sunset.jpg');
+ await wait(tester, 10);
+ await shot(tester, '12_image_search_sunset');
+
+ await tester.tap(find.text('Search by image'));
+ await wait(tester, 3);
+ await shot(tester, '13_picking_an_image');
+ });
+}
diff --git a/example/04_example/integration_test/demo_archive_test.dart b/example/04_example/integration_test/demo_archive_test.dart
new file mode 100644
index 0000000..59ae238
--- /dev/null
+++ b/example/04_example/integration_test/demo_archive_test.dart
@@ -0,0 +1,69 @@
+// Drives the archive tab at a human pace, for a screen recording. Expects the
+// key to be saved already from the traffic run, so this shows it being reused.
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+import 'package:sightline/gallery_view.dart';
+import 'package:sightline/main.dart';
+
+import 'demo_pace.dart';
+
+void main() {
+ IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+
+ testWidgets('media archive, at a human pace', (WidgetTester tester) async {
+ await tester.pumpWidget(const SightlineApp());
+ await tester.pumpAndSettle();
+ await pause(tester, 1200);
+
+ await tapGently(tester, find.text('Archive'));
+ await pause(tester, 1500);
+
+ await tapGently(tester, find.byIcon(Icons.info_outline).first);
+ await pause(tester, 3200);
+ await tapGently(tester, find.text('Got it'));
+
+ // the key is already saved from the traffic tab, so only this tab's
+ // collection is needed here
+ final Finder setup = find.text('Set the collection').evaluate().isNotEmpty
+ ? find.text('Set the collection')
+ : find.text('Add your key');
+ if (setup.evaluate().isNotEmpty) {
+ await tapGently(tester, setup);
+ await pause(tester, 1200);
+ await typeLikeAPerson(
+ tester,
+ find.byKey(const Key('setup-collection')),
+ 'media_archive',
+ );
+ await pause(tester, 900);
+ await tapGently(tester, find.widgetWithText(FilledButton, 'Connect'));
+ await waitFor(tester, find.text('Key active'));
+ await pause(tester, 3500);
+ }
+
+ // read the list of what is in there
+ await pause(tester, 2500);
+
+ for (final String query in <String>['a bird', 'an animal', 'clouds']) {
+ await typeLikeAPerson(tester, find.byType(TextField).first, query);
+ await tester.testTextInput.receiveAction(TextInputAction.search);
+ await pause(tester, 4500);
+ await scrollDown(tester, 300);
+ await pause(tester, 2500);
+ await scrollUp(tester, 300);
+ await pause(tester, 800);
+ }
+
+ // and by picture instead of words
+ final GalleryView view = tester.widget<GalleryView>(
+ find.byType(GalleryView),
+ );
+ await tester.enterText(find.byType(TextField).first, '');
+ await pause(tester, 600);
+ await view.controller.searchByAsset(view.scene, 'assets/queries/sunset.jpg');
+ await pause(tester, 5000);
+ await scrollDown(tester, 300);
+ await pause(tester, 3000);
+ });
+}
diff --git a/example/04_example/integration_test/demo_pace.dart b/example/04_example/integration_test/demo_pace.dart
new file mode 100644
index 0000000..3118cc2
--- /dev/null
+++ b/example/04_example/integration_test/demo_pace.dart
@@ -0,0 +1,58 @@
+import 'package:flutter/widgets.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+/// Timings that make a driven run look like someone using the app rather than
+/// a machine firing taps. Used only by the demo recordings.
+
+/// Pumps for [ms] of real time.
+Future<void> pause(WidgetTester tester, int ms) async {
+ for (int i = 0; i < ms ~/ 50; i++) {
+ await tester.pump(const Duration(milliseconds: 50));
+ }
+}
+
+/// Taps with a beat either side, so the recording does not jump.
+Future<void> tapGently(WidgetTester tester, Finder finder) async {
+ await pause(tester, 500);
+ await tester.tap(finder);
+ await pause(tester, 700);
+}
+
+/// Types a character at a time, at about the speed of a thumb.
+Future<void> typeLikeAPerson(
+ WidgetTester tester,
+ Finder field,
+ String text, {
+ int perCharMs = 70,
+}) async {
+ await tester.tap(field);
+ await pause(tester, 400);
+ for (int i = 1; i <= text.length; i++) {
+ await tester.enterText(field, text.substring(0, i));
+ await pause(tester, perCharMs);
+ }
+ await pause(tester, 400);
+}
+
+Future<void> scrollDown(WidgetTester tester, double by) async {
+ await tester.drag(find.byType(Scrollable).first, Offset(0, -by));
+ await pause(tester, 600);
+}
+
+Future<void> scrollUp(WidgetTester tester, double by) async {
+ await tester.drag(find.byType(Scrollable).first, Offset(0, by));
+ await pause(tester, 600);
+}
+
+/// Waits for something to appear, pumping in real time.
+Future<bool> waitFor(
+ WidgetTester tester,
+ Finder finder, {
+ int timeout = 120,
+}) async {
+ for (int i = 0; i < timeout * 10; i++) {
+ await tester.pump(const Duration(milliseconds: 100));
+ if (finder.evaluate().isNotEmpty) return true;
+ }
+ return false;
+}
diff --git a/example/04_example/integration_test/demo_traffic_test.dart b/example/04_example/integration_test/demo_traffic_test.dart
new file mode 100644
index 0000000..139da66
--- /dev/null
+++ b/example/04_example/integration_test/demo_traffic_test.dart
@@ -0,0 +1,96 @@
+// Drives the traffic tab at a human pace, for a screen recording. Not a test of
+// anything: no screenshots, no assertions beyond needing the app to work.
+//
+// xcrun simctl pbcopy booted < key.txt
+// xcrun simctl io booted recordVideo out.mov &
+// flutter drive --driver test_driver/integration_test.dart \
+// --target integration_test/demo_traffic_test.dart -d <device>
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+import 'package:sightline/main.dart';
+
+import 'dart:io';
+
+import 'demo_pace.dart';
+
+void main() {
+ IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+
+ /// The key the capture script left for this run. Never in the repo.
+ String demoKey() {
+ final File file = File(
+ '${Directory.systemTemp.parent.path}/Documents/.demo_key',
+ );
+ return file.existsSync() ? file.readAsStringSync().trim() : '';
+ }
+
+ testWidgets('traffic camera, at a human pace', (WidgetTester tester) async {
+ await tester.pumpWidget(const SightlineApp());
+ await tester.pumpAndSettle();
+ await pause(tester, 1800);
+
+ // read the panel first, the way someone new to it would
+ await tapGently(tester, find.byIcon(Icons.info_outline).first);
+ await pause(tester, 3200);
+ await tapGently(tester, find.text('Got it'));
+
+ // setup: the key, then a collection to work in, then ask it to remember.
+ // Typed rather than pasted: iOS interrupts a programmatic clipboard read
+ // with a permission prompt, which stalls a recording.
+ await tapGently(tester, find.text('Add your key'));
+ await pause(tester, 900);
+ await typeLikeAPerson(
+ tester,
+ find.byKey(const Key('setup-api-key')),
+ demoKey(),
+ perCharMs: 25,
+ );
+ await pause(tester, 600);
+ await typeLikeAPerson(
+ tester,
+ find.byKey(const Key('setup-collection')),
+ 'traffic_camera',
+ );
+ await pause(tester, 700);
+ await tapGently(tester, find.byType(Switch).first);
+ await pause(tester, 1200);
+ await tapGently(tester, find.widgetWithText(FilledButton, 'Connect'));
+ await waitFor(tester, find.text('KEY ACTIVE'));
+ await pause(tester, 1500);
+
+ // send the clip up and watch it index
+ if (find.text('Upload and index').evaluate().isNotEmpty) {
+ await tapGently(tester, find.text('Upload and index'));
+ await waitFor(tester, find.text('SEARCHABLE'), timeout: 300);
+ await pause(tester, 1500);
+ }
+
+ // three searches, reading the results between each
+ for (final String query in <String>[
+ 'pedestrians on a zebra crossing',
+ 'a bus waiting at the junction',
+ ]) {
+ await tapGently(tester, find.text(query));
+ await pause(tester, 3500);
+ await scrollDown(tester, 320);
+ await pause(tester, 2500);
+ await scrollUp(tester, 320);
+ }
+
+ // open one frame full size
+ await tapGently(tester, find.byType(Image).first);
+ await pause(tester, 3000);
+ await tester.tapAt(const Offset(20, 60));
+ await pause(tester, 1200);
+
+ // a colour, then something that is not there at all
+ await typeLikeAPerson(tester, find.byType(TextField).first, 'a red car');
+ await tester.testTextInput.receiveAction(TextInputAction.search);
+ await pause(tester, 4000);
+
+ await typeLikeAPerson(tester, find.byType(TextField).first, 'a giraffe');
+ await tester.testTextInput.receiveAction(TextInputAction.search);
+ await pause(tester, 4000);
+ });
+}
diff --git a/example/04_example/integration_test/traffic_walkthrough_test.dart b/example/04_example/integration_test/traffic_walkthrough_test.dart
new file mode 100644
index 0000000..ad6af52
--- /dev/null
+++ b/example/04_example/integration_test/traffic_walkthrough_test.dart
@@ -0,0 +1,141 @@
+// Drives the traffic tab end to end and captures a screenshot at each step, so
+// the delivery set can be regenerated on any device with one command:
+//
+// flutter drive --driver test_driver/integration_test.dart \
+// --target integration_test/traffic_walkthrough_test.dart -d <device>
+//
+// Expects the collection to be empty, so the upload and indexing steps are
+// visible, and a key already remembered by a previous debug run.
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+import 'package:sightline/main.dart';
+
+void main() {
+ IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+
+ /// Signals the capture script and waits for it to take the shot. Screenshots
+ /// come from outside the app so they carry the status bar and a device frame,
+ /// which the in-test capture cannot provide.
+ /// The key the capture script left for this run. Never in the repo.
+ String demoKey() {
+ final File file = File(
+ '${Directory.systemTemp.parent.path}/Documents/.demo_key',
+ );
+ return file.existsSync() ? file.readAsStringSync().trim() : '';
+ }
+
+ Future<void> shot(WidgetTester tester, String name) async {
+ final Directory docs = Directory(
+ '${Directory.systemTemp.parent.path}/Documents',
+ );
+ final File flag = File('${docs.path}/.shot_$name');
+ flag.writeAsStringSync('');
+ for (int i = 0; i < 240; i++) {
+ await tester.pump(const Duration(milliseconds: 250));
+ if (!flag.existsSync()) return;
+ }
+ throw StateError('nobody captured $name; is tool/shoot.sh running?');
+ }
+
+ /// Pumps for [seconds] real time, since indexing happens on the server.
+ Future<void> wait(WidgetTester tester, int seconds) async {
+ for (int i = 0; i < seconds * 4; i++) {
+ await tester.pump(const Duration(milliseconds: 250));
+ }
+ }
+
+ /// Pumps until [finder] appears, or gives up after [timeout] seconds.
+ Future<bool> waitFor(
+ WidgetTester tester,
+ Finder finder, {
+ int timeout = 240,
+ }) async {
+ for (int i = 0; i < timeout * 4; i++) {
+ await tester.pump(const Duration(milliseconds: 250));
+ if (finder.evaluate().isNotEmpty) return true;
+ }
+ return false;
+ }
+
+ testWidgets('traffic camera, start to results', (WidgetTester tester) async {
+ await tester.pumpWidget(const SightlineApp());
+ await tester.pumpAndSettle();
+
+ await shot(tester, '01_start');
+
+ // the explainer panel
+ await tester.tap(find.byIcon(Icons.info_outline).first);
+ await tester.pumpAndSettle();
+ await shot(tester, '02_what_it_does');
+ await tester.tap(find.text('Got it'));
+ await tester.pumpAndSettle();
+
+ // setup: the key and the collection to work in
+ await tester.tap(find.text('Add your key'));
+ await tester.pumpAndSettle();
+ final List<Finder> fields = <Finder>[
+ find.byType(TextField).at(0),
+ find.byType(TextField).at(1),
+ ];
+ await tester.enterText(fields[0], demoKey());
+ await tester.pump(const Duration(milliseconds: 300));
+ await tester.enterText(fields[1], 'traffic_camera');
+ await tester.pump(const Duration(milliseconds: 600));
+ await shot(tester, '03_setup');
+
+ await tester.tap(find.widgetWithText(FilledButton, 'Connect'));
+ await waitFor(tester, find.text('KEY ACTIVE'));
+ await shot(tester, '04_connected');
+
+ // upload the bundled clip
+ final bool canUpload = await waitFor(
+ tester,
+ find.text('Upload and index'),
+ timeout: 30,
+ );
+ expect(canUpload, isTrue, reason: 'no upload action appeared');
+ await tester.tap(find.text('Upload and index'));
+ await wait(tester, 3);
+ await shot(tester, '05_uploading');
+
+ await waitFor(tester, find.text('INDEXING'));
+ await shot(tester, '06_indexing');
+
+ final bool ready = await waitFor(tester, find.text('SEARCHABLE'));
+ expect(ready, isTrue, reason: 'indexing never finished');
+ await shot(tester, '07_searchable');
+
+ // a query with obvious hits
+ await tester.tap(find.text('pedestrians on a zebra crossing'));
+ await waitFor(tester, find.textContaining('MOMENTS'));
+ await wait(tester, 4);
+ await shot(tester, '08_results_pedestrians');
+
+ // one frame, full size
+ await tester.tap(find.byType(Image).first);
+ await tester.pumpAndSettle();
+ await shot(tester, '09_frame_detail');
+ await tester.tapAt(const Offset(20, 60));
+ await tester.pumpAndSettle();
+
+ // a second query, to show the counts differ
+ await tester.tap(find.text('a bus waiting at the junction'));
+ await wait(tester, 6);
+ await shot(tester, '10_results_bus');
+
+ // colour and object together, which this clip answers well
+ await tester.enterText(find.byType(TextField).first, 'a red car');
+ await tester.testTextInput.receiveAction(TextInputAction.search);
+ await wait(tester, 6);
+ await shot(tester, '11_results_red_car');
+
+ // something that is not in the footage
+ await tester.enterText(find.byType(TextField).first, 'a giraffe');
+ await tester.testTextInput.receiveAction(TextInputAction.search);
+ await wait(tester, 6);
+ await shot(tester, '12_no_match');
+ });
+}
diff --git a/example/04_example/ios/.gitignore b/example/04_example/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/example/04_example/ios/.gitignore
@@ -0,0 +1,34 @@
+**/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/example/04_example/ios/Flutter/AppFrameworkInfo.plist b/example/04_example/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..391a902
--- /dev/null
+++ b/example/04_example/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>App</string>
+ <key>CFBundleIdentifier</key>
+ <string>io.flutter.flutter.app</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>App</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+</dict>
+</plist>
diff --git a/example/04_example/ios/Flutter/Debug.xcconfig b/example/04_example/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/example/04_example/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/example/04_example/ios/Flutter/Release.xcconfig b/example/04_example/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/example/04_example/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/example/04_example/ios/Runner.xcodeproj/project.pbxproj b/example/04_example/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..13d532a
--- /dev/null
+++ b/example/04_example/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,647 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; };
+ 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; };
+ 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 */; };
+/* 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 = "<group>"; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+ 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
+ 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = "<group>"; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
+ 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 = "<group>"; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "<group>";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */,
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "<group>";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ );
+ sourceTree = "<group>";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 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 */,
+ 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 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;
+ packageProductDependencies = (
+ 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */,
+ );
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ 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;
+ packageReferences = (
+ 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
+ );
+ 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 */,
+ 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift 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 = "<group>";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ 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;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ 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 = 13.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 = B5WV979HM4;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.brpetrov.sightline;
+ 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;
+ 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.brpetrov.sightline.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;
+ 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.brpetrov.sightline.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;
+ 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.brpetrov.sightline.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;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ 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;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ 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 = 13.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;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ 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;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ 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 = 13.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 = B5WV979HM4;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.brpetrov.sightline;
+ 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 = B5WV979HM4;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.brpetrov.sightline;
+ 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 */
+
+/* Begin XCLocalSwiftPackageReference section */
+ 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
+ isa = XCLocalSwiftPackageReference;
+ relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
+ };
+/* End XCLocalSwiftPackageReference section */
+
+/* Begin XCSwiftPackageProductDependency section */
+ 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = {
+ isa = XCSwiftPackageProductDependency;
+ productName = FlutterGeneratedPluginSwiftPackage;
+ };
+/* End XCSwiftPackageProductDependency section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:">
+ </FileRef>
+</Workspace>
diff --git a/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/example/04_example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>PreviewsEnabled</key>
+ <false/>
+</dict>
+</plist>
diff --git a/example/04_example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/04_example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..c3fedb2
--- /dev/null
+++ b/example/04_example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "1510"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <PreActions>
+ <ExecutionAction
+ ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
+ <ActionContent
+ title = "Run Prepare Flutter Framework Script"
+ scriptText = "/bin/sh &quot;$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh&quot; prepare&#10;">
+ <EnvironmentBuildable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </EnvironmentBuildable>
+ </ActionContent>
+ </ExecutionAction>
+ </PreActions>
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <Testables>
+ <TestableReference
+ skipped = "NO"
+ parallelizable = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "331C8080294A63A400263BE5"
+ BuildableName = "RunnerTests.xctest"
+ BlueprintName = "RunnerTests"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ enableGPUValidationMode = "1"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Profile"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/example/04_example/ios/Runner.xcworkspace/contents.xcworkspacedata b/example/04_example/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/example/04_example/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "group:Runner.xcodeproj">
+ </FileRef>
+</Workspace>
diff --git a/example/04_example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/04_example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/example/04_example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/example/04_example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/04_example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/example/04_example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>PreviewsEnabled</key>
+ <false/>
+</dict>
+</plist>
diff --git a/example/04_example/ios/Runner/AppDelegate.swift b/example/04_example/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..c30b367
--- /dev/null
+++ b/example/04_example/ios/Runner/AppDelegate.swift
@@ -0,0 +1,16 @@
+import Flutter
+import UIKit
+
+@main
+@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+
+ func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
+ GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
+ }
+}
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "[email protected]",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "[email protected]",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..7353c41
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..6ed2d93
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..4cd7b00
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..fe73094
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..321773c
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..502f463
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..e9f5fea
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..84ac32a
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..8953cba
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..0467bf1
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "[email protected]",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "[email protected]",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differ
diff --git a/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/example/04_example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# 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/example/04_example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/example/04_example/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/example/04_example/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="EHf-IW-A2E">
+ <objects>
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
+ <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews>
+ <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
+ </imageView>
+ </subviews>
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+ <constraints>
+ <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
+ <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
+ </constraints>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="53" y="375"/>
+ </scene>
+ </scenes>
+ <resources>
+ <image name="LaunchImage" width="168" height="185"/>
+ </resources>
+</document>
diff --git a/example/04_example/ios/Runner/Base.lproj/Main.storyboard b/example/04_example/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/example/04_example/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+ </dependencies>
+ <scenes>
+ <!--Flutter View Controller-->
+ <scene sceneID="tne-QT-ifu">
+ <objects>
+ <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+ <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+</document>
diff --git a/example/04_example/ios/Runner/Info.plist b/example/04_example/ios/Runner/Info.plist
new file mode 100644
index 0000000..2e3b09a
--- /dev/null
+++ b/example/04_example/ios/Runner/Info.plist
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CADisableMinimumFrameDurationOnPhone</key>
+ <true/>
+ <key>UIFileSharingEnabled</key>
+ <true/>
+ <key>LSSupportsOpeningDocumentsInPlace</key>
+ <true/>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
+ <key>CFBundleDisplayName</key>
+ <string>Sightline</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>sightline</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$(FLUTTER_BUILD_NAME)</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>$(FLUTTER_BUILD_NUMBER)</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIApplicationSceneManifest</key>
+ <dict>
+ <key>UIApplicationSupportsMultipleScenes</key>
+ <false/>
+ <key>UISceneConfigurations</key>
+ <dict>
+ <key>UIWindowSceneSessionRoleApplication</key>
+ <array>
+ <dict>
+ <key>UISceneClassName</key>
+ <string>UIWindowScene</string>
+ <key>UISceneConfigurationName</key>
+ <string>flutter</string>
+ <key>UISceneDelegateClassName</key>
+ <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
+ <key>UISceneStoryboardFile</key>
+ <string>Main</string>
+ </dict>
+ </array>
+ </dict>
+ </dict>
+ <key>UIApplicationSupportsIndirectInputEvents</key>
+ <true/>
+ <key>UILaunchStoryboardName</key>
+ <string>LaunchScreen</string>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
diff --git a/example/04_example/ios/Runner/Runner-Bridging-Header.h b/example/04_example/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/example/04_example/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/example/04_example/ios/Runner/SceneDelegate.swift b/example/04_example/ios/Runner/SceneDelegate.swift
new file mode 100644
index 0000000..b9ce8ea
--- /dev/null
+++ b/example/04_example/ios/Runner/SceneDelegate.swift
@@ -0,0 +1,6 @@
+import Flutter
+import UIKit
+
+class SceneDelegate: FlutterSceneDelegate {
+
+}
diff --git a/example/04_example/ios/RunnerTests/RunnerTests.swift b/example/04_example/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/example/04_example/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+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/example/04_example/pubspec.yaml b/example/04_example/pubspec.yaml
new file mode 100644
index 0000000..d9c7735
--- /dev/null
+++ b/example/04_example/pubspec.yaml
@@ -0,0 +1,31 @@
+name: sightline
+description: >-
+ Search inside video by describing what you are looking for. A demo app for the
+ VModal Flutter SDK, shown as two very different products on one codebase.
+publish_to: 'none'
+version: 0.1.0+1
+
+environment:
+ sdk: ^3.12.2
+
+dependencies:
+ file_selector: ^1.1.0
+ flutter:
+ sdk: flutter
+ vmodal_sdk_flutter:
+ git:
+ url: https://github.com/v-modal/vmodal_sdk_flutter.git
+ ref: 725ce8e
+
+dev_dependencies:
+ flutter_lints: ^6.0.0
+ flutter_test:
+ sdk: flutter
+ integration_test:
+ sdk: flutter
+
+flutter:
+ uses-material-design: true
+ assets:
+ - assets/footage/
+ - assets/queries/
diff --git a/example/04_example/test/widget_test.dart b/example/04_example/test/widget_test.dart
new file mode 100644
index 0000000..6e38e3f
--- /dev/null
+++ b/example/04_example/test/widget_test.dart
@@ -0,0 +1,41 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:sightline/main.dart';
+
+void main() {
+ testWidgets('both demos are reachable and each brings its own look', (
+ WidgetTester tester,
+ ) async {
+ await tester.pumpWidget(const SightlineApp());
+
+ expect(find.text('Traffic camera'), findsOneWidget);
+ final Color dark = tester
+ .widget<MaterialApp>(find.byType(MaterialApp))
+ .theme!
+ .scaffoldBackgroundColor;
+
+ await tester.tap(find.text('Archive'));
+ await tester.pumpAndSettle();
+
+ expect(find.text('Find the correct video'), findsOneWidget);
+ final Color light = tester
+ .widget<MaterialApp>(find.byType(MaterialApp))
+ .theme!
+ .scaffoldBackgroundColor;
+
+ expect(light, isNot(dark));
+ });
+
+ testWidgets('nothing can be searched before setup', (
+ WidgetTester tester,
+ ) async {
+ await tester.pumpWidget(const SightlineApp());
+
+ expect(find.text('Add your key'), findsOneWidget);
+ expect(find.text('Upload and index'), findsNothing);
+ expect(
+ tester.widget<TextField>(find.byType(TextField).first).enabled,
+ isFalse,
+ );
+ });
+}
diff --git a/example/04_example/test_driver/integration_test.dart b/example/04_example/test_driver/integration_test.dart
new file mode 100644
index 0000000..1924bd2
--- /dev/null
+++ b/example/04_example/test_driver/integration_test.dart
@@ -0,0 +1,15 @@
+import 'dart:io';
+
+import 'package:integration_test/integration_test_driver_extended.dart';
+
+Future<void> main() async {
+ await integrationDriver(
+ onScreenshot: (String name, List<int> bytes, [Map<String, Object?>? args]) async {
+ final File file = File('screenshots/$name.png');
+ file.parent.createSync(recursive: true);
+ file.writeAsBytesSync(bytes);
+ stdout.writeln('saved screenshots/$name.png');
+ return true;
+ },
+ );
+}
diff --git a/example/04_example/tool/dev_run.sh b/example/04_example/tool/dev_run.sh
new file mode 100755
index 0000000..1553442
--- /dev/null
+++ b/example/04_example/tool/dev_run.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build, install and launch a debug build on the booted iOS simulator.
+#
+# tool/dev_run.sh
+# FLUTTER=/path/to/flutter tool/dev_run.sh
+#
+# The API key is never passed here. Paste it into the app once; a debug build
+# remembers it between launches so a demo run does not need it again.
+set -euo pipefail
+
+BUNDLE_ID="com.brpetrov.sightline"
+FLUTTER="${FLUTTER:-flutter}"
+
+"$FLUTTER" build ios --simulator --debug
+xcrun simctl terminate booted "$BUNDLE_ID" 2>/dev/null || true
+xcrun simctl install booted build/ios/iphonesimulator/Runner.app
+xcrun simctl launch booted "$BUNDLE_ID"
diff --git a/example/04_example/tool/shoot.sh b/example/04_example/tool/shoot.sh
new file mode 100755
index 0000000..745c023
--- /dev/null
+++ b/example/04_example/tool/shoot.sh
@@ -0,0 +1,58 @@
+#!/usr/bin/env bash
+# Captures framed screenshots while an integration test drives the app, and
+# keeps the device fixtures in place while it runs.
+#
+# The test writes a flag file into the app's Documents folder at each screenshot
+# point and waits for it to disappear. This watches for those flags, captures
+# the device screen, frames it, and deletes the flag so the test carries on.
+#
+# It re-resolves the container every pass, because installing the app moves it,
+# and it plants the API key there so a driven run can connect without the key
+# ever appearing in the test, the repo or a command.
+#
+# tool/shoot.sh &
+# flutter drive --driver test_driver/integration_test.dart --target <test>
+set -uo pipefail
+
+BUNDLE_ID="com.brpetrov.sightline"
+OUT="${OUT:-../screenshots}"
+BORDER="${BORDER:-26}"
+KEY_FILE="${KEY_FILE:-../../../secrets.md}"
+DEADLINE=$(( $(date +%s) + 900 ))
+
+mkdir -p "$OUT"
+key=$(grep -o 'ak_[A-Za-z0-9]\{20,\}' "$KEY_FILE" 2>/dev/null | head -1)
+[ -n "$key" ] && echo "key found for planting" || echo "no key file at $KEY_FILE"
+
+while [ "$(date +%s)" -lt "$DEADLINE" ]; do
+ docs="$(xcrun simctl get_app_container booted "$BUNDLE_ID" data 2>/dev/null)/Documents"
+ if [ -d "$docs" ]; then
+ # A key for the driven run to type into the sheet. The app never reads
+ # this file; only the walkthrough does, which keeps the key out of the repo
+ # and still shows setup happening on screen.
+ if [ -n "$key" ] && [ ! -s "$docs/.demo_key" ]; then
+ printf '%s' "$key" > "$docs/.demo_key"
+ echo "planted a key for the walkthrough to type"
+ fi
+ # PLANT_SETTINGS reproduces "the key was saved on a previous run", which a
+ # clean install would otherwise wipe between two driven runs.
+ if [ -n "${PLANT_SETTINGS:-}" ] && [ -n "$key" ] && \
+ [ ! -s "$docs/sightline.json" ]; then
+ printf '{"apiKey":"%s","collections":{"traffic":"%s"},"remember":true}' \
+ "$key" "${TRAFFIC_COLLECTION:-traffic_camera}" > "$docs/sightline.json"
+ echo "planted saved settings"
+ fi
+ flag=$(ls -a "$docs" 2>/dev/null | grep '^\.shot_' | head -1)
+ if [ -n "$flag" ]; then
+ name="${flag#.shot_}"
+ raw="/tmp/shot_raw_$$.png"
+ xcrun simctl io booted screenshot --mask=black "$raw" >/dev/null 2>&1
+ ffmpeg -v error -y -i "$raw" \
+ -filter_complex "pad=iw+${BORDER}*2:ih+${BORDER}*2:${BORDER}:${BORDER}:black" \
+ "$OUT/$name.png"
+ rm -f "$raw" "$docs/$flag"
+ echo "captured $OUT/$name.png"
+ fi
+ fi
+ sleep 0.3
+done
diff --git a/example/readme.md b/example/readme.md
new file mode 100644
index 0000000..ddedb4a
--- /dev/null
+++ b/example/readme.md
@@ -0,0 +1,139 @@
+# VModal Flutter SDK examples and capabilities
+
+This folder contains runnable, compile-checked examples for the VModal Flutter
+SDK. The SDK is a UI-free Dart client: your Flutter application owns login,
+state management, file selection, screens, and lifecycle decisions, while the
+SDK owns typed VModal API calls, request and response models, streamed media
+upload, cancellation, and error handling.
+
+## Quick links
+
+| Resource | Link |
+|---|---|
+| Discord support | [Join the V-Modal AI Discord](https://discord.gg/XGxgBQqkaY) |
+| Flutter SDK reference | [v-modal.github.io/vmodal_sdk_flutter](https://v-modal.github.io/vmodal_sdk_flutter/) |
+| Demo app and community | [r/v_modal on Reddit](https://www.reddit.com/r/v_modal/) |
+| API key | [Request a VModal API key](https://v-modal.com/page/contact.ts) |
+
+## Example applications
+
+| Example | Focus | Capabilities shown |
+|---|---|---|
+| [`01_full_app`](01_full_app/README.md) | End-to-end mobile UI | Runtime API key, identity resolution, collection and index discovery, video upload, index creation, natural-language search, and image-result rendering. |
+| [`02_users`](02_users/README.md) | Content organization patterns | Shared global search, private per-user collections, multiple streams per user, and business/product catalog layouts. |
+| [`03_cctv`](03_cctv/README.md) | Timestamped surveillance media | CCTV filename and timestamp metadata, searchable tags/text, image indexing, and absolute-time metadata search. |
+
+## SDK capabilities
+
+### Project, collection, and stream organization
+
+- Configure a `VModalProject` with `VModal.configure` or adopt an existing
+ low-level client through `VModal.fromClient`.
+- Create immutable `VModalScope` values for a logical project, collection, and
+ stream. A scope keeps upload, indexing, and search calls coupled to the same
+ content location.
+- List the collections visible under the configured project.
+- Model one global library, a private collection for each app user, multiple
+ streams within one collection, or a product/business catalog.
+- Close the project when the corresponding application session ends.
+
+### Runtime authentication and configuration
+
+- Supply an API key at runtime with `ApiKeyProvider` or
+ `MutableApiKeyProvider`; the SDK does not render login UI or persist keys.
+- Check gateway health, validate credentials, and resolve the authenticated
+ identity with `auth.me()`.
+- Rotate or clear an in-memory runtime key when the host application changes
+ session or signs the user out.
+- Use typed configuration, timeouts, retry behavior, and cancellation tokens.
+
+### Video and media upload
+
+- Stream an app-readable `File` through `UploadSource` without loading the
+ whole media file into memory.
+- Use signed single-file upload as the production default.
+- Observe live upload progress through `UploadTask.progress` and await the
+ final response through `UploadTask.result`.
+- Cancel an individual operation with `UploadTask.cancel()` or a
+ `CancellationToken`.
+- Upload one file, upload a bulk set, add existing assets, and update asset or
+ collection descriptions through the typed resource APIs.
+- Use direct multipart upload only when explicitly selected; it is an
+ experimental capability.
+
+### CCTV and media metadata
+
+- Send a caller-selected public video filename.
+- Attach searchable metadata text and ordered metadata tags.
+- Include an offset-aware recording start time using `startDatetimeUser`.
+- Receive the backend-normalized timestamp and canonical UTC epoch value in
+ the upload response.
+- Reprocess media explicitly when the use case requires it.
+- Upload metadata JSONL through the collection metadata resource.
+
+### Index lifecycle
+
+- List existing index jobs for a collection and stream.
+- Create image/vector indexes with typed options for mode, modality, version,
+ embedding model, index type, insertion mode, reprocessing, and date bounds.
+- Query index status, use an indexed version for a search, and delete an index
+ with an explicit confirmation option.
+- Keep UI states separate for empty, queued, ready, failed, and cancelled work.
+
+### Search and retrieval
+
+- Search video and image-derived moments with natural-language queries.
+- Select search sources such as image, ASR, or OCR when supported by the
+ backend collection.
+- Apply limits, metadata-text filters, and a specific index version.
+- Search within paired absolute date/time bounds; the start is inclusive and
+ the end is exclusive.
+- Submit a bounded batch of typed search requests through the advanced client.
+- Read typed counts, result records, execution time, and raw response fields.
+
+### Images and result delivery
+
+- Resolve one image URL or a batch of image URLs for search results.
+- Download result images into memory, a sink, or an atomically written file.
+- Refresh image lookup when a presigned URL has expired rather than attaching
+ the VModal bearer credential to that URL.
+
+### Advanced resources
+
+- Access typed low-level resources through `VmodalClient`: `auth`, `searches`,
+ `collections`, `indexes`, `admin`, `r2`, and `images`.
+- Read account usage, cache statistics, and user statistics where the API key
+ permits those administrative operations.
+- Request R2 presigned upload URLs for compatible advanced workflows.
+- Use the transport abstraction for custom or test transports while retaining
+ typed requests, responses, errors, response-size limits, and cancellation.
+
+## Platform and application boundaries
+
+- Supported targets: Flutter applications for Android and iOS.
+- Not included: Flutter Web, widgets, a login screen, key persistence, file
+ picking, application state management, and background scheduling.
+- The host application should retain its API key in memory only, pass an
+ app-readable selected file to `UploadSource`, and close project/client
+ resources when its session ends.
+
+## Recommended validation order
+
+```text
+runtime API key
+ -> auth.me()
+ -> list collections
+ -> list index jobs
+ -> upload media if needed
+ -> create or wait for an index
+ -> search the same immutable scope
+ -> resolve and display result images
+```
+
+Run the package checks from `uinterface/sdk_flutter`:
+
+```bash
+bash build.sh pub_get
+bash build.sh analyze
+bash build.sh test
+```
diff --git a/test/regression_manifest_test.dart b/test/regression_manifest_test.dart
index 1431a82..db4ed25 100644
--- a/test/regression_manifest_test.dart
+++ b/test/regression_manifest_test.dart
@@ -56,6 +56,7 @@ void main() {
'lib/src/routes.g.dart',
'tool/check_route_sync.dart',
'tool/release_manifest.dart',
+ 'example/readme.md',
'example/01_full_app/lib/main.dart',
'example/02_users/README.md',
'example/02_users/lib/user_examples.dart',
@@ -161,6 +162,7 @@ void main() {
'test.sh',
'tool/live_test.dart',
'tool/perf_benchmark.dart',
+ 'example/readme.md',
'example/01_full_app/README.md',
'example/01_full_app/lib/main.dart',
'example/01_full_app/asset/video_10frames.mp4',