V- Modal AI: Visual Video / Image Search - Flutter Video SDK
Dart android-sdkflutterflutter-appflutter-packageflutter-sdkflutter-videoflutter-video-editingflutter-video-playerflutter-video-sdkflutter-videosflutter-videosdkmobile-videomobile-video-editor-sdkmobile-video-sdkvideo-editingvideo-sdkvideo-searchvideo-search-enginevideo-streaming
Add Framebase video search example
Podyriako Bohdan44b8e8a98a0c
diff --git a/build.sh b/build.shindex 22b7642..e34c842 100755--- a/build.sh+++ b/build.sh@@ -43,6 +43,7 @@ sdk_pub_get() {(cd example/02_users && sdk_flutter pub get)(cd example/03_cctv && sdk_flutter pub get)(cd example/04_example && sdk_flutter pub get)+ (cd example/05_framebase && sdk_flutter pub get)}sdk_format() {@@ -50,7 +51,7 @@ sdk_format() {## Usage:bash build.sh format'- sdk_dart format --output=none --set-exit-if-changed lib test tool example/01_full_app/lib example/01_full_app/test example/02_users/lib example/02_users/test example/03_cctv/bin example/03_cctv/lib example/03_cctv/test example/04_example/lib example/04_example/test example/04_example/integration_test+ sdk_dart format --output=none --set-exit-if-changed lib test tool example/01_full_app/lib example/01_full_app/test example/02_users/lib example/02_users/test example/03_cctv/bin example/03_cctv/lib example/03_cctv/test example/04_example/lib example/04_example/test example/04_example/integration_test example/05_framebase/lib example/05_framebase/test}sdk_analyze() {@@ -63,6 +64,7 @@ sdk_analyze() {(cd example/02_users && sdk_flutter analyze)(cd example/03_cctv && sdk_flutter analyze)(cd example/04_example && sdk_flutter analyze)+ (cd example/05_framebase && sdk_flutter analyze)}sdk_test() {@@ -75,6 +77,7 @@ sdk_test() {(cd example/02_users && sdk_flutter test)(cd example/03_cctv && sdk_flutter test)(cd example/04_example && sdk_flutter test)+ (cd example/05_framebase && sdk_flutter test)}sdk_example_android() {@@ -137,6 +140,7 @@ sdk_clean() {(cd example/02_users && sdk_flutter clean)(cd example/03_cctv && sdk_flutter clean)(cd example/04_example && sdk_flutter clean)+ (cd example/05_framebase && sdk_flutter clean)}sdk_help() {diff --git a/example/05_framebase/.gitignore b/example/05_framebase/.gitignorenew file mode 100644index 0000000..246670b--- /dev/null+++ b/example/05_framebase/.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++# Generated screenshot output+screenshots/diff --git a/example/05_framebase/.metadata b/example/05_framebase/.metadatanew file mode 100644index 0000000..cc2cda6--- /dev/null+++ b/example/05_framebase/.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: "cc0734ac716fbb8b90f3f9db8020958b1553afa7"+ channel: "stable"++project_type: app++# Tracks metadata for the flutter migrate command+migration:+ platforms:+ - platform: root+ create_revision: cc0734ac716fbb8b90f3f9db8020958b1553afa7+ base_revision: cc0734ac716fbb8b90f3f9db8020958b1553afa7+ - platform: android+ create_revision: cc0734ac716fbb8b90f3f9db8020958b1553afa7+ base_revision: cc0734ac716fbb8b90f3f9db8020958b1553afa7+ - platform: ios+ create_revision: cc0734ac716fbb8b90f3f9db8020958b1553afa7+ base_revision: cc0734ac716fbb8b90f3f9db8020958b1553afa7++ # 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/05_framebase/LICENSE b/example/05_framebase/LICENSEnew file mode 100644index 0000000..b81f341--- /dev/null+++ b/example/05_framebase/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/05_framebase/MEDIA_SOURCES.md b/example/05_framebase/MEDIA_SOURCES.mdnew file mode 100644index 0000000..27f2da1--- /dev/null+++ b/example/05_framebase/MEDIA_SOURCES.md@@ -0,0 +1,13 @@+# Street archive — media provenance++All three videos are licensed stock footage from Pexels, not recordings made by the app author. They form one theme: street intersections, pedestrians, buses, and city traffic. No source audio is included, so this app tests visual search only, not ASR or audio search.++| Local video | Author / original | App edit |+| --- | --- | --- |+| `neighborhood_crossing.mp4` | David McBee — [San Francisco street crossing](https://www.pexels.com/video/a-city-street-with-cars-and-pedestrians-crossing-the-street-26732129/) | 55.2 s, 960 px wide, H.264, 25 fps, audio removed |+| `downtown_traffic.mp4` | Richard L — [Singapore city intersection](https://www.pexels.com/video/busy-city-intersection-with-traffic-and-pedestrians-33049294/) | 15.8 s, 960 px wide, H.264, 25 fps, audio removed |+| `evening_junction.mp4` | Israyosoy S. — [Mexico City street](https://www.pexels.com/video/a-city-street-with-cars-and-people-walking-20474313/) | First 75 s, 960 px wide, H.264, 25 fps, audio removed |++The files are bundled under `assets/videos`. Matching JPEG covers under `assets/stills` were extracted at 00:03 from each local MP4. Search results are separately retrieved from the live index; the bundled covers are never substituted for search results.++[Pexels license](https://www.pexels.com/license/) permits free use and modification. Credit is provided here even though attribution is not required. Do not imply endorsement by the people, businesses, or footage authors depicted. Location labels describe source footage, not GPS metadata generated by the app.diff --git a/example/05_framebase/README.md b/example/05_framebase/README.mdnew file mode 100644index 0000000..7b5ec37--- /dev/null+++ b/example/05_framebase/README.md@@ -0,0 +1,92 @@+# Framebase++Framebase is a product-style Flutter example for finding moments inside a+small video library with natural-language visual search. It demonstrates the+complete mobile flow: runtime authentication, streamed uploads, asynchronous+indexing, grouped frame results, and playback of the local source video at the+returned timestamp.++The bundled library contains three short city-street recordings. Try searches+such as `A bus on a city street`, `People crossing the street`, or+`Cars at an intersection`.++## Run the example++From the SDK repository root, install the reviewed Flutter toolchain and fetch+all dependencies:++```bash+bash install.sh install+bash build.sh pub_get+```++Then select an Android or iOS device and run Framebase:++```bash+flutter_bin="$(bash install.sh flutter_bin)"+cd example/05_framebase+"$flutter_bin" run --device-id DEVICE_ID+```++Open **Search settings** from the library menu, enter a valid VModal API key,+and connect. The key is held in memory only. It is not stored, logged, bundled+as an asset, or compiled into the application.++Framebase uses the application-owned collection `framebase_streets` and stream+`street_study` inside the authenticated account. If that collection has no+ready image index, choose **Prepare videos for search**. The app copies its+bundled assets to app-accessible files, uploads them with progress, creates an+image index, polls the job until it is ready, and then enables search.++Uploading and indexing use the authenticated account and may consume service+quota. The app never deletes remote data. Imported MP4 files must be smaller+than 100 MB and are copied into the app's support directory before upload.++## What the code demonstrates++- `MutableApiKeyProvider` and `auth.me()` for runtime authentication.+- `UploadSource.fromFile`, upload progress, and cancellation.+- Image-index creation and status polling.+- Collection-version discovery before search.+- Natural-language video search with an explicit distance cutoff.+- One bulk URL lookup followed by cancellable image retrieval.+- Defensive mapping of filenames, result indexes, and relative timestamps.+- Grouping nearby matches from the same source video.+- Opening a local video at the timestamp returned by search.+- Stale-search cancellation and client cleanup during widget disposal.++The cutoff is an application policy, not a confidence percentage. A broad+nearest-neighbour search can return the closest available street frame even+when the requested subject is absent. Framebase therefore offers a focused+mode that omits weaker matches and an optional looser mode.++Application state such as copied file paths, upload flags, pending index jobs,+and operation history is stored locally. Credentials, search responses,+temporary image URLs, and image bytes are not persisted. Persisted upload state+is tied to the authenticated user identifier and is reset when the user changes.++## Validation++From the SDK repository root:++```bash+bash build.sh format+bash build.sh analyze+bash build.sh test+```++Framebase has offline tests for result mapping, timestamp handling, cancellation,+cutoff enforcement, narrow layouts, grouped results, runtime-key error handling,+and navigation. Live upload, indexing, search, and playback require an API key+and a physical device or emulator.++Android was validated on a physical device. The iOS project is included, but+iOS runtime validation requires macOS and Xcode.++## Footage and license++The bundled clips are edited Pexels stock footage with audio removed. Exact+source links and transformations are recorded in+[`MEDIA_SOURCES.md`](MEDIA_SOURCES.md). The example source is available under+the [MIT License](LICENSE); the bundled footage remains subject to the+[Pexels license](https://www.pexels.com/license/).diff --git a/example/05_framebase/analysis_options.yaml b/example/05_framebase/analysis_options.yamlnew file mode 100644index 0000000..0d29021--- /dev/null+++ b/example/05_framebase/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-optionsdiff --git a/example/05_framebase/android/.gitignore b/example/05_framebase/android/.gitignorenew file mode 100644index 0000000..be3943c--- /dev/null+++ b/example/05_framebase/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+**/*.jksdiff --git a/example/05_framebase/android/app/build.gradle.kts b/example/05_framebase/android/app/build.gradle.ktsnew file mode 100644index 0000000..16049e1--- /dev/null+++ b/example/05_framebase/android/app/build.gradle.kts@@ -0,0 +1,44 @@+plugins {+ id("com.android.application")+ id("kotlin-android")+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.+ id("dev.flutter.flutter-gradle-plugin")+}++android {+ namespace = "app.framebase.search"+ compileSdk = flutter.compileSdkVersion+ ndkVersion = flutter.ndkVersion++ compileOptions {+ sourceCompatibility = JavaVersion.VERSION_17+ targetCompatibility = JavaVersion.VERSION_17+ }++ kotlinOptions {+ jvmTarget = JavaVersion.VERSION_17.toString()+ }++ defaultConfig {+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).+ applicationId = "app.framebase.search"+ // 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")+ }+ }+}++flutter {+ source = "../.."+}diff --git a/example/05_framebase/android/app/src/debug/AndroidManifest.xml b/example/05_framebase/android/app/src/debug/AndroidManifest.xmlnew file mode 100644index 0000000..d30de11--- /dev/null+++ b/example/05_framebase/android/app/src/debug/AndroidManifest.xml@@ -0,0 +1,8 @@+<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"/>+ <application android:usesCleartextTraffic="true" />+</manifest>diff --git a/example/05_framebase/android/app/src/main/AndroidManifest.xml b/example/05_framebase/android/app/src/main/AndroidManifest.xmlnew file mode 100644index 0000000..bb9704d--- /dev/null+++ b/example/05_framebase/android/app/src/main/AndroidManifest.xml@@ -0,0 +1,46 @@+<manifest xmlns:android="http://schemas.android.com/apk/res/android">+ <uses-permission android:name="android.permission.INTERNET" />+ <application+ android:label="Framebase"+ android:name="${applicationName}"+ android:icon="@drawable/ic_framebase">+ <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/05_framebase/android/app/src/main/kotlin/app/framebase/search/MainActivity.kt b/example/05_framebase/android/app/src/main/kotlin/app/framebase/search/MainActivity.ktnew file mode 100644index 0000000..da4a200--- /dev/null+++ b/example/05_framebase/android/app/src/main/kotlin/app/framebase/search/MainActivity.kt@@ -0,0 +1,5 @@+package app.framebase.search++import io.flutter.embedding.android.FlutterActivity++class MainActivity : FlutterActivity()diff --git a/example/05_framebase/android/app/src/main/res/drawable-v21/launch_background.xml b/example/05_framebase/android/app/src/main/res/drawable-v21/launch_background.xmlnew file mode 100644index 0000000..f74085f--- /dev/null+++ b/example/05_framebase/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/05_framebase/android/app/src/main/res/drawable/ic_framebase.xml b/example/05_framebase/android/app/src/main/res/drawable/ic_framebase.xmlnew file mode 100644index 0000000..e98f31d--- /dev/null+++ b/example/05_framebase/android/app/src/main/res/drawable/ic_framebase.xml@@ -0,0 +1,7 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="108dp" android:height="108dp" android:viewportWidth="108" android:viewportHeight="108">+ <path android:fillColor="#ECE9E2" android:pathData="M0,0h108v108h-108z" />+ <path android:fillColor="@android:color/transparent" android:strokeColor="#AA4F2D"+ android:strokeWidth="6" android:strokeLineCap="square"+ android:pathData="M28,46L28,28L46,28M62,28L80,28L80,46M80,62L80,80L62,80M46,80L28,80L28,62M47,43L62,54L47,65" />+</vector>diff --git a/example/05_framebase/android/app/src/main/res/drawable/launch_background.xml b/example/05_framebase/android/app/src/main/res/drawable/launch_background.xmlnew file mode 100644index 0000000..304732f--- /dev/null+++ b/example/05_framebase/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/05_framebase/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/example/05_framebase/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngnew file mode 100644index 0000000..db77bb4Binary files /dev/null and b/example/05_framebase/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differdiff --git a/example/05_framebase/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/example/05_framebase/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngnew file mode 100644index 0000000..17987b7Binary files /dev/null and b/example/05_framebase/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differdiff --git a/example/05_framebase/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/05_framebase/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngnew file mode 100644index 0000000..09d4391Binary files /dev/null and b/example/05_framebase/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differdiff --git a/example/05_framebase/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/05_framebase/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngnew file mode 100644index 0000000..d5f1c8dBinary files /dev/null and b/example/05_framebase/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differdiff --git a/example/05_framebase/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/example/05_framebase/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngnew file mode 100644index 0000000..4d6372eBinary files /dev/null and b/example/05_framebase/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differdiff --git a/example/05_framebase/android/app/src/main/res/values-night/styles.xml b/example/05_framebase/android/app/src/main/res/values-night/styles.xmlnew file mode 100644index 0000000..06952be--- /dev/null+++ b/example/05_framebase/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/05_framebase/android/app/src/main/res/values/styles.xml b/example/05_framebase/android/app/src/main/res/values/styles.xmlnew file mode 100644index 0000000..cb1ef88--- /dev/null+++ b/example/05_framebase/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/05_framebase/android/app/src/profile/AndroidManifest.xml b/example/05_framebase/android/app/src/profile/AndroidManifest.xmlnew file mode 100644index 0000000..399f698--- /dev/null+++ b/example/05_framebase/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/05_framebase/android/build.gradle.kts b/example/05_framebase/android/build.gradle.ktsnew file mode 100644index 0000000..dbee657--- /dev/null+++ b/example/05_framebase/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/05_framebase/android/gradle.properties b/example/05_framebase/android/gradle.propertiesnew file mode 100644index 0000000..d5da727--- /dev/null+++ b/example/05_framebase/android/gradle.properties@@ -0,0 +1,6 @@+org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError+android.useAndroidX=true+# This builtInKotlin flag was added automatically by Flutter migrator+android.builtInKotlin=false+# This newDsl flag was added automatically by Flutter migrator+android.newDsl=falsediff --git a/example/05_framebase/android/gradle/wrapper/gradle-wrapper.properties b/example/05_framebase/android/gradle/wrapper/gradle-wrapper.propertiesnew file mode 100644index 0000000..e4ef43f--- /dev/null+++ b/example/05_framebase/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-8.14-all.zipdiff --git a/example/05_framebase/android/settings.gradle.kts b/example/05_framebase/android/settings.gradle.ktsnew file mode 100644index 0000000..ca7fe06--- /dev/null+++ b/example/05_framebase/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 "8.11.1" apply false+ id("org.jetbrains.kotlin.android") version "2.2.20" apply false+}++include(":app")diff --git a/example/05_framebase/assets/fonts/InstrumentSans.ttf b/example/05_framebase/assets/fonts/InstrumentSans.ttfnew file mode 100644index 0000000..3589b81Binary files /dev/null and b/example/05_framebase/assets/fonts/InstrumentSans.ttf differdiff --git a/example/05_framebase/assets/fonts/OFL.txt b/example/05_framebase/assets/fonts/OFL.txtnew file mode 100644index 0000000..d41633c--- /dev/null+++ b/example/05_framebase/assets/fonts/OFL.txt@@ -0,0 +1,93 @@+Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+https://scripts.sil.org/OFL+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/example/05_framebase/assets/stills/downtown_traffic.jpg b/example/05_framebase/assets/stills/downtown_traffic.jpgnew file mode 100644index 0000000..be50a97Binary files /dev/null and b/example/05_framebase/assets/stills/downtown_traffic.jpg differdiff --git a/example/05_framebase/assets/stills/evening_junction.jpg b/example/05_framebase/assets/stills/evening_junction.jpgnew file mode 100644index 0000000..6cda95eBinary files /dev/null and b/example/05_framebase/assets/stills/evening_junction.jpg differdiff --git a/example/05_framebase/assets/stills/neighborhood_crossing.jpg b/example/05_framebase/assets/stills/neighborhood_crossing.jpgnew file mode 100644index 0000000..9d1205fBinary files /dev/null and b/example/05_framebase/assets/stills/neighborhood_crossing.jpg differdiff --git a/example/05_framebase/assets/videos/downtown_traffic.mp4 b/example/05_framebase/assets/videos/downtown_traffic.mp4new file mode 100644index 0000000..aecbb0bBinary files /dev/null and b/example/05_framebase/assets/videos/downtown_traffic.mp4 differdiff --git a/example/05_framebase/assets/videos/evening_junction.mp4 b/example/05_framebase/assets/videos/evening_junction.mp4new file mode 100644index 0000000..04ee834Binary files /dev/null and b/example/05_framebase/assets/videos/evening_junction.mp4 differdiff --git a/example/05_framebase/assets/videos/neighborhood_crossing.mp4 b/example/05_framebase/assets/videos/neighborhood_crossing.mp4new file mode 100644index 0000000..8699a7bBinary files /dev/null and b/example/05_framebase/assets/videos/neighborhood_crossing.mp4 differdiff --git a/example/05_framebase/ios/.gitignore b/example/05_framebase/ios/.gitignorenew file mode 100644index 0000000..7a7f987--- /dev/null+++ b/example/05_framebase/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.perspectivev3diff --git a/example/05_framebase/ios/Flutter/AppFrameworkInfo.plist b/example/05_framebase/ios/Flutter/AppFrameworkInfo.plistnew file mode 100644index 0000000..391a902--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Flutter/Debug.xcconfig b/example/05_framebase/ios/Flutter/Debug.xcconfignew file mode 100644index 0000000..592ceee--- /dev/null+++ b/example/05_framebase/ios/Flutter/Debug.xcconfig@@ -0,0 +1 @@+#include "Generated.xcconfig"diff --git a/example/05_framebase/ios/Flutter/Release.xcconfig b/example/05_framebase/ios/Flutter/Release.xcconfignew file mode 100644index 0000000..592ceee--- /dev/null+++ b/example/05_framebase/ios/Flutter/Release.xcconfig@@ -0,0 +1 @@+#include "Generated.xcconfig"diff --git a/example/05_framebase/ios/Runner.xcodeproj/project.pbxproj b/example/05_framebase/ios/Runner.xcodeproj/project.pbxprojnew file mode 100644index 0000000..efa3eb3--- /dev/null+++ b/example/05_framebase/ios/Runner.xcodeproj/project.pbxproj@@ -0,0 +1,620 @@+// !$*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 */; };+ 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>"; };+ 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 = (+ );+ 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 = (+ 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;+ 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;+ 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)";+ ENABLE_BITCODE = NO;+ INFOPLIST_FILE = Runner/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = app.framebase.search;+ 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 = app.framebase.search.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 = app.framebase.search.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 = app.framebase.search.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)";+ ENABLE_BITCODE = NO;+ INFOPLIST_FILE = Runner/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = app.framebase.search;+ 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)";+ ENABLE_BITCODE = NO;+ INFOPLIST_FILE = Runner/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = app.framebase.search;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";+ SWIFT_VERSION = 5.0;+ VERSIONING_SYSTEM = "apple-generic";+ };+ name = Release;+ };+/* End XCBuildConfiguration section */++/* Begin XCConfigurationList section */+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 331C8088294A63A400263BE5 /* Debug */,+ 331C8089294A63A400263BE5 /* Release */,+ 331C808A294A63A400263BE5 /* Profile */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 97C147031CF9000F007C117D /* Debug */,+ 97C147041CF9000F007C117D /* Release */,+ 249021D3217E4FDB00AE95B9 /* Profile */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 97C147061CF9000F007C117D /* Debug */,+ 97C147071CF9000F007C117D /* Release */,+ 249021D4217E4FDB00AE95B9 /* Profile */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+/* End XCConfigurationList section */+ };+ rootObject = 97C146E61CF9000F007C117D /* Project object */;+}diff --git a/example/05_framebase/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/05_framebase/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedatanew file mode 100644index 0000000..919434a--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/05_framebase/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plistnew file mode 100644index 0000000..18d9810--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/05_framebase/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettingsnew file mode 100644index 0000000..f9b0d7c--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/05_framebase/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcschemenew file mode 100644index 0000000..e3773d4--- /dev/null+++ b/example/05_framebase/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme@@ -0,0 +1,101 @@+<?xml version="1.0" encoding="UTF-8"?>+<Scheme+ LastUpgradeVersion = "1510"+ version = "1.3">+ <BuildAction+ parallelizeBuildables = "YES"+ buildImplicitDependencies = "YES">+ <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/05_framebase/ios/Runner.xcworkspace/contents.xcworkspacedata b/example/05_framebase/ios/Runner.xcworkspace/contents.xcworkspacedatanew file mode 100644index 0000000..1d526a1--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/05_framebase/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plistnew file mode 100644index 0000000..18d9810--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/05_framebase/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettingsnew file mode 100644index 0000000..f9b0d7c--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner/AppDelegate.swift b/example/05_framebase/ios/Runner/AppDelegate.swiftnew file mode 100644index 0000000..c30b367--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.jsonnew file mode 100644index 0000000..d36b1fa--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..dc9ada4Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..7353c41Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..797d452Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..6ed2d93Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..4cd7b00Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..fe73094Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..321773cBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..797d452Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..502f463Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..0ec3034Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..0ec3034Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..e9f5feaBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..84ac32aBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..8953cbaBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]new file mode 100644index 0000000..0467bf1Binary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.jsonnew file mode 100644index 0000000..0bedcf2--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.pngnew file mode 100644index 0000000..9da19eaBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]new file mode 100644index 0000000..9da19eaBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]new file mode 100644index 0000000..9da19eaBinary files /dev/null and b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differdiff --git a/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/example/05_framebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.mdnew file mode 100644index 0000000..89c2725--- /dev/null+++ b/example/05_framebase/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 filediff --git a/example/05_framebase/ios/Runner/Base.lproj/LaunchScreen.storyboard b/example/05_framebase/ios/Runner/Base.lproj/LaunchScreen.storyboardnew file mode 100644index 0000000..f2e259c--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner/Base.lproj/Main.storyboard b/example/05_framebase/ios/Runner/Base.lproj/Main.storyboardnew file mode 100644index 0000000..f3c2851--- /dev/null+++ b/example/05_framebase/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/05_framebase/ios/Runner/Info.plist b/example/05_framebase/ios/Runner/Info.plistnew file mode 100644index 0000000..9f9d8f7--- /dev/null+++ b/example/05_framebase/ios/Runner/Info.plist@@ -0,0 +1,70 @@+<?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>CFBundleDevelopmentRegion</key>+ <string>$(DEVELOPMENT_LANGUAGE)</string>+ <key>CFBundleDisplayName</key>+ <string>Framebase</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>framebase</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/05_framebase/ios/Runner/Runner-Bridging-Header.h b/example/05_framebase/ios/Runner/Runner-Bridging-Header.hnew file mode 100644index 0000000..308a2a5--- /dev/null+++ b/example/05_framebase/ios/Runner/Runner-Bridging-Header.h@@ -0,0 +1 @@+#import "GeneratedPluginRegistrant.h"diff --git a/example/05_framebase/ios/Runner/SceneDelegate.swift b/example/05_framebase/ios/Runner/SceneDelegate.swiftnew file mode 100644index 0000000..b9ce8ea--- /dev/null+++ b/example/05_framebase/ios/Runner/SceneDelegate.swift@@ -0,0 +1,6 @@+import Flutter+import UIKit++class SceneDelegate: FlutterSceneDelegate {++}diff --git a/example/05_framebase/ios/RunnerTests/RunnerTests.swift b/example/05_framebase/ios/RunnerTests/RunnerTests.swiftnew file mode 100644index 0000000..86a7c3b--- /dev/null+++ b/example/05_framebase/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/05_framebase/lib/data/archive_controller.dart b/example/05_framebase/lib/data/archive_controller.dartnew file mode 100644index 0000000..45ad6dc--- /dev/null+++ b/example/05_framebase/lib/data/archive_controller.dart@@ -0,0 +1,508 @@+import 'dart:async';+import 'dart:convert';+import 'dart:io';++import 'package:flutter/foundation.dart';+import 'package:flutter/services.dart';+import 'package:path_provider/path_provider.dart';+import 'package:vmodal_sdk_flutter/vmodal_sdk_flutter.dart';++import 'search_gateway.dart';++class ArchiveClip {+ ArchiveClip({+ required this.id,+ required this.title,+ required this.location,+ required this.duration,+ required this.asset,+ required this.poster,+ this.path,+ this.uploaded = false,+ this.bundled = true,+ });+ final String id, title, location, asset, poster;+ final double duration;+ String? path;+ bool uploaded;+ final bool bundled;+ String get filename => '$id.mp4';+ Map<String, Object?> toJson() => {+ 'id': id,+ 'title': title,+ 'location': location,+ 'duration': duration,+ 'asset': asset,+ 'poster': poster,+ 'path': path,+ 'uploaded': uploaded,+ 'bundled': bundled,+ };+ factory ArchiveClip.fromJson(Map<String, dynamic> r) => ArchiveClip(+ id: r['id'] as String,+ title: r['title'] as String,+ location: r['location'] as String,+ duration: (r['duration'] as num).toDouble(),+ asset: r['asset'] as String,+ poster: r['poster'] as String,+ path: r['path'] as String?,+ uploaded: r['uploaded'] == true,+ bundled: r['bundled'] == true,+ );+}++List<ArchiveClip> streetClips() => [+ ArchiveClip(+ id: 'neighborhood_crossing',+ title: 'Neighborhood crossing',+ location: 'San Francisco · Daylight',+ duration: 55.2,+ asset: 'assets/videos/neighborhood_crossing.mp4',+ poster: 'assets/stills/neighborhood_crossing.jpg',+ ),+ ArchiveClip(+ id: 'downtown_traffic',+ title: 'Downtown traffic',+ location: 'Singapore · Afternoon',+ duration: 15.8,+ asset: 'assets/videos/downtown_traffic.mp4',+ poster: 'assets/stills/downtown_traffic.jpg',+ ),+ ArchiveClip(+ id: 'evening_junction',+ title: 'Evening junction',+ location: 'Mexico City · Dusk',+ duration: 75,+ asset: 'assets/videos/evening_junction.mp4',+ poster: 'assets/stills/evening_junction.jpg',+ ),+];++class ArchiveEvent {+ ArchiveEvent(this.title, this.detail, {this.error = false, DateTime? time})+ : time = time ?? DateTime.now();+ final String title, detail;+ final bool error;+ final DateTime time;+ Map<String, Object?> toJson() => {+ 'title': title,+ 'detail': detail,+ 'error': error,+ 'time': time.toIso8601String(),+ };+}++class ArchiveController extends ChangeNotifier {+ ArchiveController({this.persist = true});+ final bool persist;+ List<ArchiveClip> clips = streetClips();+ final List<ArchiveEvent> events = [];+ bool initialized = false, connecting = false, busy = false, searching = false;+ String phase = '', notice = '', activeQuery = '', pendingJob = '';+ double? progress;+ SearchBatch? batch;+ int? indexVersion;+ SearchGateway? _gateway;+ Directory? _directory;+ UploadTask<VideoUploadResponse>? _upload;+ CancellationToken? _work, _queryToken;+ int _searchGeneration = 0;+ bool _disposed = false;+ String _accountId = '';+ Future<void> _saveQueue = Future<void>.value();+ bool get connected => _gateway != null;+ bool get ready => connected && indexVersion != null;+ bool get hasPendingUploads => clips.any((c) => !c.uploaded);++ void emit() {+ if (!_disposed) notifyListeners();+ }++ Future<void> initialize() async {+ if (persist) {+ try {+ _directory = await getApplicationSupportDirectory();+ final state = File('${_directory!.path}/archive.json');+ if (await state.exists()) {+ final data =+ jsonDecode(await state.readAsString()) as Map<String, dynamic>;+ final saved = (data['clips'] as List)+ .map(+ (r) =>+ ArchiveClip.fromJson(Map<String, dynamic>.from(r as Map)),+ )+ .toList();+ clips = saved+ .where(+ (c) =>+ c.bundled || (c.path != null && File(c.path!).existsSync()),+ )+ .toList();+ if (clips.isEmpty) clips = streetClips();+ pendingJob = data['pendingJob'] as String? ?? '';+ _accountId = data['accountId'] as String? ?? '';+ for (final raw in (data['events'] as List? ?? [])) {+ final r = Map<String, dynamic>.from(raw as Map);+ events.add(+ ArchiveEvent(+ r['title'] as String,+ r['detail'] as String,+ error: r['error'] == true,+ time: DateTime.parse(r['time'] as String),+ ),+ );+ }+ }+ } on Object {+ notice =+ 'Local archive could not be restored. Built-in clips are available.';+ }+ }+ initialized = true;+ emit();+ }++ Future<void> save() {+ if (!persist || _directory == null) return Future<void>.value();+ // Snapshot and serialize writes so progress events cannot truncate each other.+ // Never serialize the client, key, response rows or signed URLs.+ final snapshot = jsonEncode({+ 'clips': clips.map((c) => c.toJson()).toList(),+ 'pendingJob': pendingJob,+ 'accountId': _accountId,+ 'events': events.take(40).map((e) => e.toJson()).toList(),+ });+ final path = '${_directory!.path}/archive.json';+ _saveQueue = _saveQueue.then((_) async {+ try {+ await File(path).writeAsString(snapshot, flush: true);+ } on Object {+ /* Optional history must not cancel network work. */+ }+ });+ return _saveQueue;+ }++ void record(String title, String detail, {bool error = false}) {+ events.insert(0, ArchiveEvent(title, detail, error: error));+ if (events.length > 40) events.removeLast();+ unawaited(save());+ emit();+ }++ Future<bool> connect(String key) async {+ if (busy || connecting) return false;+ connecting = true;+ notice = '';+ emit();+ SearchGateway? next;+ try {+ next = SearchGateway(key.trim());+ await next.connect();+ if (_disposed) {+ await next.close();+ return false;+ }+ invalidateSearch();+ if (_accountId.isNotEmpty && _accountId != next.accountId) {+ for (final clip in clips) {+ clip.uploaded = false;+ }+ pendingJob = '';+ events.clear();+ }+ _accountId = next.accountId;+ final previous = _gateway;+ _gateway = next;+ indexVersion = next.version;+ if (previous != null) await previous.close();+ record(+ 'Connected',+ indexVersion == null+ ? 'Authenticated. No street index yet.'+ : 'Authenticated · street index v$indexVersion available',+ );+ return true;+ } on Object catch (e) {+ await next?.close();+ notice = safeError(e);+ record('Connection failed', notice, error: true);+ return false;+ } finally {+ connecting = false;+ emit();+ }+ }++ Future<void> disconnect() async {+ if (busy || connecting) return;+ invalidateSearch();+ final old = _gateway;+ _gateway = null;+ indexVersion = null;+ await old?.close();+ notice = 'Disconnected. Recordings remain on this device.';+ emit();+ }++ Future<File> localFile(ArchiveClip clip) async {+ if (clip.path != null && await File(clip.path!).exists()) {+ return File(clip.path!);+ }+ if (!clip.bundled) {+ throw const FileSystemException('Recording no longer available');+ }+ _directory ??= await getApplicationSupportDirectory();+ final file = File('${_directory!.path}/${clip.filename}');+ if (!await file.exists()) {+ final data = await rootBundle.load(clip.asset);+ await file.writeAsBytes(+ data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes),+ flush: true,+ );+ }+ clip.path = file.path;+ return file;+ }++ Future<void> importFile(String path, double duration) async {+ _directory ??= await getApplicationSupportDirectory();+ final id = 'street_${DateTime.now().millisecondsSinceEpoch}';+ final file = await File(path).copy('${_directory!.path}/$id.mp4');+ final sourceName = basename(path);+ clips.add(+ ArchiveClip(+ id: id,+ title: sourceName,+ location: 'Imported recording',+ duration: duration,+ asset: '',+ poster: '',+ path: file.path,+ bundled: false,+ ),+ );+ invalidateSearch();+ await save();+ record('Recording added', '$sourceName · stored on device only');+ }++ ArchiveClip? clipFor(String filename) {+ final clean = basename(filename).toLowerCase();+ for (final clip in clips) {+ if (clean == clip.id.toLowerCase() ||+ clean == clip.filename.toLowerCase() ||+ clean.startsWith('${clip.id.toLowerCase()}.')) {+ return clip;+ }+ }+ return null;+ }++ Future<void> uploadAndIndex() async {+ final gateway = _gateway;+ if (gateway == null || busy) return;+ busy = true;+ notice = '';+ invalidateSearch();+ final token = CancellationToken();+ _work = token;+ emit();+ try {+ for (final clip in clips.where((c) => !c.uploaded)) {+ token.throwIfCanceled();+ phase = 'Uploading ${clip.title}';+ progress = 0;+ emit();+ final file = await localFile(clip);+ token.throwIfCanceled();+ final task = gateway.upload(file);+ _upload = task;+ final watch = Stopwatch()..start();+ final subscription = task.progress.listen((p) {+ progress = p.totalBytes > 0 ? p.uploadedBytes / p.totalBytes : null;+ emit();+ });+ try {+ final result = await task.result;+ if (!result.uploaded) throw const TransportException();+ clip.uploaded = true;+ record(+ 'Uploaded',+ '${clip.title} · ${(file.lengthSync() / 1048576).toStringAsFixed(1)} MB · ${(watch.elapsedMilliseconds / 1000).toStringAsFixed(1)} s',+ );+ await save();+ } finally {+ await subscription.cancel();+ _upload = null;+ }+ }+ token.throwIfCanceled();+ phase = 'Creating visual index';+ progress = null;+ emit();+ final job = await gateway.createIndex(token);+ pendingJob = job.jobId;+ await save();+ if (pendingJob.isEmpty) {+ throw const MalformedResponse('No index job identifier');+ }+ record('Index queued', 'Visual index · ${clips.length} recordings');+ await _pollIndex(gateway, token);+ } on OperationCanceled {+ notice = pendingJob.isEmpty+ ? 'Upload canceled. Completed uploads are kept.'+ : 'Stopped waiting. Indexing continues on the server; use Resume.';+ record('Operation stopped', notice);+ } on Object catch (e) {+ notice = safeError(e);+ record('Processing failed', notice, error: true);+ } finally {+ busy = false;+ phase = '';+ progress = null;+ _work = null;+ emit();+ }+ }++ Future<void> resumeIndex() async {+ final gateway = _gateway;+ if (gateway == null || busy || pendingJob.isEmpty) return;+ busy = true;+ notice = '';+ final token = CancellationToken();+ _work = token;+ emit();+ try {+ await _pollIndex(gateway, token);+ } on OperationCanceled {+ notice = 'Stopped waiting. The server job continues.';+ } on Object catch (e) {+ notice = safeError(e);+ record('Index check failed', notice, error: true);+ } finally {+ busy = false;+ phase = '';+ _work = null;+ emit();+ }+ }++ Future<void> _pollIndex(+ SearchGateway gateway,+ CancellationToken token,+ ) async {+ final watch = Stopwatch()..start();+ for (var attempt = 0; attempt < 120; attempt++) {+ token.throwIfCanceled();+ final state = await gateway.indexStatus(pendingJob, token);+ if (indexDone(state.status)) {+ await gateway.refreshVersion();+ indexVersion = gateway.version;+ pendingJob = '';+ await save();+ notice = 'Visual index is ready. Search the street archive.';+ record(+ 'Index ready',+ 'v$indexVersion · ${(watch.elapsedMilliseconds / 1000).toStringAsFixed(1)} s waiting time',+ );+ return;+ }+ if (indexFailed(state.status)) {+ pendingJob = '';+ await save();+ throw const TransportException('Server index job failed');+ }+ phase = 'Index ${state.status} · ${watch.elapsed.inSeconds}s';+ progress = null;+ emit();+ await Future.any([+ Future<void>.delayed(const Duration(seconds: 4)),+ token.whenCanceled,+ ]);+ }+ notice = 'Still processing. Use Resume to check the server job again.';+ }++ void stopWork() {+ _work?.cancel();+ _upload?.cancel();+ }++ void invalidateSearch() {+ _searchGeneration++;+ _queryToken?.cancel();+ searching = false;+ batch = null;+ emit();+ }++ Future<void> search(String query, {double maxDistance = 1.5}) async {+ final gateway = _gateway;+ if (gateway == null ||+ indexVersion == null ||+ query.trim().isEmpty ||+ busy) {+ return;+ }+ invalidateSearch();+ final generation = _searchGeneration;+ final token = CancellationToken();+ _queryToken = token;+ searching = true;+ activeQuery = query.trim();+ notice = '';+ emit();+ try {+ final result = await gateway.search(+ activeQuery,+ cancellation: token,+ maxDistance: maxDistance,+ );+ if (_disposed || generation != _searchGeneration) return;+ batch = result;+ record(+ 'Search complete',+ '“$activeQuery” · ${result.matches.length} returned · ${result.roundTripMs} ms request · ${result.serverMs.toStringAsFixed(0)} ms server',+ );+ } on OperationCanceled {+ /* A newer query owns the screen. */+ } on Object catch (e) {+ if (generation == _searchGeneration) {+ notice = safeError(e);+ record('Search failed', notice, error: true);+ }+ } finally {+ if (generation == _searchGeneration) {+ searching = false;+ emit();+ }+ }+ }++ @override+ void dispose() {+ _disposed = true;+ _queryToken?.cancel();+ stopWork();+ if (_gateway != null) unawaited(_gateway!.close());+ super.dispose();+ }+}++String safeError(Object error) {+ if (error is AuthException) {+ return 'Authentication failed. Check your API key and beta access.';+ }+ if (error is SdkException) return error.toString();+ if (error is FileSystemException) {+ return 'The local video could not be read. Import it again.';+ }+ return 'The operation could not finish. Check the connection and try again.';+}++String timeLabel(double seconds) {+ final value = seconds.isFinite ? seconds.floor().clamp(0, 86400) : 0;+ return '${(value ~/ 60).toString().padLeft(2, '0')}:${(value % 60).toString().padLeft(2, '0')}';+}diff --git a/example/05_framebase/lib/data/search_gateway.dart b/example/05_framebase/lib/data/search_gateway.dartnew file mode 100644index 0000000..a04fd8b--- /dev/null+++ b/example/05_framebase/lib/data/search_gateway.dart@@ -0,0 +1,321 @@+import 'dart:io';+import 'dart:convert';+import 'dart:typed_data';++import 'package:vmodal_sdk_flutter/vmodal_sdk_flutter.dart';++const archiveCollection = 'framebase_streets';+const archiveStream = 'street_study';++String firstText(Map<String, Object?> row, List<String> fields) {+ for (final field in fields) {+ final text = '${row[field] ?? ''}'.trim();+ if (text.isNotEmpty) return text;+ }+ return '';+}++String basename(String path) => path.replaceAll('\\', '/').split('/').last;++String hitFilename(Map<String, Object?> row) {+ final name = firstText(row, const [+ 'filename',+ 'filename_sanitized',+ 'video_filename',+ 'video',+ 'source_path',+ 'path',+ 'title',+ ]);+ if (name.isNotEmpty) return basename(name);+ var id = firstText(row, const ['item_id']);+ final stream = firstText(row, const ['stream', 'stream_name']);+ final ts = firstText(row, const ['ts_unix', 'ts_unix_13digits']);+ if (stream.isNotEmpty && id.startsWith('$stream-')) {+ id = id.substring(stream.length + 1);+ }+ if (ts.isNotEmpty && id.endsWith('-$ts')) {+ id = id.substring(0, id.length - ts.length - 1);+ }+ return basename(id);+}++String timestamp13(Map<String, Object?> row) {+ final text = firstText(row, const [+ 'ts_unix_13digits',+ 'ts_unix',+ 'timestamp_ms',+ ]);+ final value = num.tryParse(text);+ if (value == null || !value.isFinite || value < 0) return '';+ final digits = value.toInt().toString();+ if (digits.length >= 13) return digits.substring(0, 13);+ if (digits.length == 10) return '${value.toInt() * 1000}';+ return digits.padLeft(13, '0');+}++double? hitSeconds(Map<String, Object?> row) {+ for (final field in [+ 'video_time_seconds',+ 'timestamp_seconds',+ 'time_seconds',+ 'start_seconds',+ 'offset_seconds',+ 'seconds',+ 'time_sec',+ ]) {+ final n = num.tryParse('${row[field]}');+ if (n != null && n.isFinite && n >= 0) return n.toDouble();+ }+ // The live video index returns zero-padded relative milliseconds in ts_unix.+ // Epoch values are deliberately not interpreted as playback positions.+ final ms = num.tryParse(+ firstText(row, const ['ts_unix_13digits', 'ts_unix', 'timestamp_ms']),+ );+ if (ms != null && ms.isFinite && ms >= 0 && ms < 86400000) return ms / 1000;+ return null;+}++class FrameMatch {+ const FrameMatch({+ required this.row,+ required this.filename,+ required this.timestamp,+ this.imageUrl,+ this.imageBytes,+ this.seconds,+ });+ final Map<String, Object?> row;+ final String filename;+ final String timestamp;+ final String? imageUrl;+ final Uint8List? imageBytes;+ final double? seconds;+ double? get distance => num.tryParse('${row['score']}')?.toDouble();+}++class SearchBatch {+ const SearchBatch({+ required this.matches,+ required this.total,+ required this.serverMs,+ required this.roundTripMs,+ required this.imageMs,+ });+ final List<FrameMatch> matches;+ final int total;+ final double serverMs;+ final int roundTripMs;+ final int imageMs;+}++/// One session, one application-owned collection. No credentials or signed URLs+/// are persisted. The low-level SDK is used consistently for collection selectors.+class SearchGateway {+ SearchGateway(String key, {VmodalTransport? transport})+ : keys = MutableApiKeyProvider(key) {+ client = VmodalClient(+ config: SdkConfig(+ apiKeyProvider: keys,+ timeout: const Duration(seconds: 60),+ ),+ transport: transport,+ );+ }++ final MutableApiKeyProvider keys;+ late final VmodalClient client;+ String accountId = '';+ int? version;++ Future<void> connect() async {+ final profile = await client.auth.me();+ if (profile.userId?.isNotEmpty != true) {+ throw const AuthException('No authenticated identity');+ }+ accountId = profile.userId!;+ await refreshVersion();+ }++ Future<void> refreshVersion() async {+ final groups = await client.collections.listGroups(mode: 'vid_file');+ version = groups+ .findGroup(archiveCollection, mode: 'vid_file')+ ?.latestLancedbVersion;+ }++ UploadTask<VideoUploadResponse> upload(File file) =>+ client.collections.videoUpload(+ UploadSource.fromFile(file),+ collectionName: archiveCollection,+ subCollectionName: archiveStream,+ );++ Future<IndexationSubmitResponse> createIndex(+ CancellationToken cancellation,+ ) => client.indexes.createIndex(+ IndexationSubmitRequest(+ mode: 'vid_file',+ groupName: archiveCollection,+ streamName: archiveStream,+ indexType: 'vid_img_emb',+ modality: 'vid_img_emb',+ reProcess: true,+ ),+ cancellation: cancellation,+ );++ Future<IndexationStatusResponse> indexStatus(+ String job,+ CancellationToken cancellation,+ ) => client.indexes.indexStatus(job, cancellation: cancellation);++ Future<SearchBatch> search(+ String query, {+ CancellationToken? cancellation,+ String? imageQuery,+ double maxDistance = 1.5,+ }) async {+ final token = cancellation ?? CancellationToken();+ final timer = Stopwatch()..start();+ final response = await client.searches.searchVideo(+ SearchRequest(+ queryText: query,+ imageQuery: imageQuery,+ mode: 'vid_file',+ groupName: archiveCollection,+ streamName: archiveStream,+ searchSources: const ['image'],+ limit: 30,+ imageEmbScoreMin: maxDistance,+ versionLancedb: version,+ ),+ cancellation: token,+ );+ final searchMs = timer.elapsedMilliseconds;+ final rows = response.data+ .whereType<Map>()+ .map((r) => r.map((k, v) => MapEntry('$k', v)))+ .toList();+ // Enforce the displayed cutoff defensively on returned rows as well.+ // A client-filtered result is distinct from the raw server result count.+ final usable = rows.where((r) {+ final distance = num.tryParse('${r['score']}');+ return hitFilename(r).isNotEmpty &&+ distance != null &&+ distance.isFinite &&+ distance <= maxDistance;+ }).toList();+ final urls = <int, String>{};+ final imageBytes = <int, Uint8List>{};+ if (usable.isNotEmpty) {+ final resolved = await client.images.getUrlBulk(+ usable+ .map(+ (row) => <String, Object?>{+ 'mode': 'vid_file',+ 'group_name': archiveCollection,+ 'modality': 'vid_img',+ 'stream_name':+ firstText(row, const ['stream_name', 'stream']).isEmpty+ ? archiveStream+ : firstText(row, const ['stream_name', 'stream']),+ 'filename': hitFilename(row),+ if (timestamp13(row).isNotEmpty)+ 'ts_unix_13digits': timestamp13(row),+ },+ )+ .toList(),+ cancellation: token,+ );+ for (var i = 0; i < resolved.records.length; i++) {+ final row = resolved.records[i];+ final rawIndex = row['input_index'];+ final parsed = num.tryParse('$rawIndex');+ final index = rawIndex == null+ ? i+ : parsed != null && parsed.isFinite && parsed == parsed.toInt()+ ? parsed.toInt()+ : null;+ final url = '${row['url_pre_signed'] ?? ''}';+ final uri = Uri.tryParse(url);+ final valid =+ uri != null &&+ (uri.scheme == 'https' ||+ (!uri.hasScheme &&+ !uri.hasAuthority &&+ uri.path == '/api/external/v1/image/get_image'));+ if (index != null &&+ index >= 0 &&+ index < usable.length &&+ row['found'] != false &&+ valid) {+ urls.putIfAbsent(index, () => url);+ }+ }+ // The beta gateway returns relative signed image routes. Its supported+ // image-byte resource resolves those without guessing an absolute origin.+ if (urls.isNotEmpty) {+ final downloaded = await client.images.getImageBulkFromUrls(+ urls.values.toList(),+ cancellation: token,+ );+ final byUrl = <String, Uint8List>{};+ for (final row in downloaded.records) {+ final url = '${row['url_pre_signed'] ?? ''}';+ final encoded = '${row['content_base64'] ?? ''}';+ if (url.isNotEmpty && encoded.isNotEmpty) {+ try {+ byUrl[url] = base64Decode(encoded);+ } on FormatException {+ /* Keep a per-card placeholder. */+ }+ }+ }+ for (final entry in urls.entries) {+ if (byUrl[entry.value] != null) {+ imageBytes[entry.key] = byUrl[entry.value]!;+ }+ }+ }+ }+ token.throwIfCanceled();+ return SearchBatch(+ matches: [+ for (var i = 0; i < usable.length; i++)+ FrameMatch(+ row: usable[i],+ filename: hitFilename(usable[i]),+ timestamp: timestamp13(usable[i]),+ imageUrl: urls[i]?.startsWith('https://') == true ? urls[i] : null,+ imageBytes: imageBytes[i],+ seconds: hitSeconds(usable[i]),+ ),+ ],+ total: response.cntTotal,+ serverMs: response.executionTimeMs,+ roundTripMs: searchMs,+ imageMs: timer.elapsedMilliseconds - searchMs,+ );+ }++ Future<void> close() async {+ keys.close();+ await client.close();+ }+}++bool indexDone(String state) => const {+ 'success',+ 'succeeded',+ 'done',+ 'completed',+ 'ok',+}.contains(state.toLowerCase());+bool indexFailed(String state) => const {+ 'failed',+ 'failure',+ 'error',+ 'cancelled',+ 'canceled',+}.contains(state.toLowerCase());diff --git a/example/05_framebase/lib/main.dart b/example/05_framebase/lib/main.dartnew file mode 100644index 0000000..9dd93a5--- /dev/null+++ b/example/05_framebase/lib/main.dart@@ -0,0 +1,1445 @@+import 'dart:async';+import 'dart:io';+import 'dart:ui';+import 'package:file_selector/file_selector.dart';+import 'package:flutter/material.dart';+import 'package:flutter/services.dart';+import 'package:video_player/video_player.dart';+import 'data/archive_controller.dart';+import 'data/search_gateway.dart';++const paper = Color(0xFFECE9E2);+const ink = Color(0xFF252C29);+const green = Color(0xFFAA4F2D);+const secondary = Color(0xFF706F67);++void main() {+ WidgetsFlutterBinding.ensureInitialized();+ SystemChrome.setSystemUIOverlayStyle(+ const SystemUiOverlayStyle(+ statusBarColor: Colors.transparent,+ statusBarIconBrightness: Brightness.dark,+ systemNavigationBarColor: paper,+ systemNavigationBarIconBrightness: Brightness.dark,+ ),+ );+ runApp(const FramebaseApp());+}++class FramebaseApp extends StatelessWidget {+ const FramebaseApp({super.key, this.controller});+ final ArchiveController? controller;+ @override+ Widget build(BuildContext context) => MaterialApp(+ title: 'Framebase',+ debugShowCheckedModeBanner: false,+ theme: ThemeData(+ useMaterial3: true,+ fontFamily: 'Instrument Sans',+ colorScheme: ColorScheme.fromSeed(+ seedColor: green,+ surface: paper,+ brightness: Brightness.light,+ ),+ scaffoldBackgroundColor: paper,+ appBarTheme: const AppBarTheme(+ systemOverlayStyle: SystemUiOverlayStyle.dark,+ backgroundColor: Colors.transparent,+ foregroundColor: ink,+ elevation: 0,+ scrolledUnderElevation: 0,+ centerTitle: false,+ titleTextStyle: TextStyle(+ color: ink,+ fontSize: 22,+ fontWeight: FontWeight.w700,+ letterSpacing: -.6,+ ),+ ),+ textTheme: const TextTheme(+ bodyMedium: TextStyle(color: ink),+ bodySmall: TextStyle(color: secondary),+ ),+ dividerTheme: const DividerThemeData(+ color: Color(0xFFDDDFD6),+ thickness: .5,+ ),+ searchBarTheme: SearchBarThemeData(+ elevation: const WidgetStatePropertyAll(0),+ backgroundColor: const WidgetStatePropertyAll(Color(0xFFDFDCD4)),+ hintStyle: const WidgetStatePropertyAll(+ TextStyle(color: secondary, fontSize: 16),+ ),+ shape: WidgetStatePropertyAll(+ RoundedRectangleBorder(borderRadius: BorderRadius.circular(18)),+ ),+ ),+ bottomSheetTheme: const BottomSheetThemeData(+ backgroundColor: paper,+ showDragHandle: true,+ modalBarrierColor: Color(0x66000000),+ ),+ ),+ home: LibraryPage(controller: controller),+ );+}++String city(ArchiveClip clip) => clip.location.split(' · ').first;++/// Only the toolbar and overlays blur underlying content. The library itself is flat.+class Frosted extends StatelessWidget {+ const Frosted({+ super.key,+ required this.child,+ this.dark = false,+ this.radius = 0,+ });+ final Widget child;+ final bool dark;+ final double radius;+ @override+ Widget build(BuildContext context) => ClipRRect(+ borderRadius: BorderRadius.circular(radius),+ child: BackdropFilter(+ filter: ImageFilter.blur(sigmaX: 12, sigmaY: 12),+ child: ColoredBox(+ color: dark ? const Color(0xA6252C29) : const Color(0xDDECE9E2),+ child: child,+ ),+ ),+ );+}++class LibraryPage extends StatefulWidget {+ const LibraryPage({super.key, this.controller});+ final ArchiveController? controller;+ @override+ State<LibraryPage> createState() => _LibraryPageState();+}++class _LibraryPageState extends State<LibraryPage> {+ late final ArchiveController archive;+ @override+ void initState() {+ super.initState();+ archive = widget.controller ?? ArchiveController();+ unawaited(start());+ }++ Future<void> start() async {+ if (!archive.initialized) await archive.initialize();+ }++ @override+ void dispose() {+ if (widget.controller == null) archive.dispose();+ super.dispose();+ }++ void openSearch() => Navigator.push(+ context,+ MaterialPageRoute<void>(builder: (_) => SearchPage(archive: archive)),+ );++ Future<void> importVideo() async {+ if (archive.busy) return;+ VideoPlayerController? player;+ try {+ final file = await openFile(+ acceptedTypeGroups: [+ const XTypeGroup(+ label: 'MP4 video',+ extensions: ['mp4'],+ mimeTypes: ['video/mp4'],+ uniformTypeIdentifiers: ['public.mpeg-4'],+ ),+ ],+ );+ if (file == null) return;+ if (await file.length() > 100 * 1024 * 1024) {+ throw const FormatException();+ }+ player = VideoPlayerController.file(File(file.path));+ await player.initialize().timeout(const Duration(seconds: 15));+ await archive.importFile(+ file.path,+ player.value.duration.inMilliseconds / 1000,+ );+ if (mounted) {+ ScaffoldMessenger.of(context).showSnackBar(+ const SnackBar(+ content: Text(+ 'Video added. Prepare it for search when you’re ready.',+ ),+ ),+ );+ }+ } on Object {+ if (mounted) {+ ScaffoldMessenger.of(context).showSnackBar(+ const SnackBar(+ content: Text('Choose a playable MP4 smaller than 100 MB.'),+ ),+ );+ }+ } finally {+ await player?.dispose();+ }+ }++ @override+ Widget build(BuildContext context) => AnimatedBuilder(+ animation: archive,+ builder: (context, _) => Scaffold(+ extendBodyBehindAppBar: true,+ appBar: AppBar(+ title: const Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ BrandMark(),+ SizedBox(width: 10),+ Flexible(+ child: Text(+ 'Framebase',+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ ),+ ),+ ],+ ),+ flexibleSpace: const Frosted(child: SizedBox.expand()),+ actions: [+ IconButton(+ key: const Key('import'),+ tooltip: 'Add video',+ onPressed: archive.busy ? null : importVideo,+ icon: const Icon(Icons.add),+ ),+ PopupMenuButton<String>(+ key: const Key('library_menu'),+ tooltip: 'More options',+ onSelected: (value) {+ if (value == 'connection') showConnection(context, archive);+ if (value == 'history') {+ Navigator.push(+ context,+ MaterialPageRoute<void>(+ builder: (_) => HistoryPage(archive: archive),+ ),+ );+ }+ if (value == 'prepare') prepareArchive(context, archive);+ },+ itemBuilder: (_) => const [+ PopupMenuItem(+ value: 'connection',+ child: Text('Search settings'),+ ),+ PopupMenuItem(+ value: 'prepare',+ child: Text('Prepare videos for search'),+ ),+ PopupMenuItem(value: 'history', child: Text('Sync history')),+ ],+ ),+ ],+ ),+ body: ListView(+ padding: EdgeInsets.fromLTRB(+ 16,+ MediaQuery.paddingOf(context).top + kToolbarHeight + 16,+ 16,+ 96,+ ),+ children: [+ Row(+ children: [+ const Expanded(+ child: Text(+ 'Street footage',+ style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600),+ ),+ ),+ Text(+ '${archive.clips.length} videos',+ style: const TextStyle(color: secondary),+ ),+ ],+ ),+ const SizedBox(height: 12),+ for (final clip in archive.clips)+ VideoRow(+ clip: clip,+ onTap: () => showRecording(context, archive, clip),+ ),+ if (archive.busy) ...[+ const SizedBox(height: 12),+ WorkStatus(archive: archive),+ ],+ if (archive.connected && !archive.ready && !archive.busy) ...[+ const SizedBox(height: 20),+ TextButton.icon(+ key: const Key('process'),+ onPressed: () => prepareArchive(context, archive),+ icon: const Icon(Icons.cloud_upload_outlined),+ label: const Text('Prepare videos for search'),+ ),+ ],+ if (archive.connected &&+ archive.ready &&+ archive.clips.any((c) => !c.bundled && !c.uploaded) &&+ !archive.busy)+ TextButton.icon(+ onPressed: () => prepareArchive(context, archive),+ icon: const Icon(Icons.cloud_upload_outlined),+ label: const Text('Prepare added videos'),+ ),+ if (archive.events.isNotEmpty && archive.events.first.error)+ Padding(+ padding: const EdgeInsets.only(top: 16),+ child: Text(+ archive.notice,+ style: TextStyle(color: Theme.of(context).colorScheme.error),+ ),+ ),+ ],+ ),+ extendBody: true,+ bottomNavigationBar: SafeArea(+ child: Padding(+ padding: const EdgeInsets.fromLTRB(16, 8, 16, 12),+ child: SearchDock(onTap: openSearch),+ ),+ ),+ ),+ );+}++class BrandMark extends StatelessWidget {+ const BrandMark({super.key});+ @override+ Widget build(BuildContext context) => SizedBox(+ width: 23,+ height: 23,+ child: CustomPaint(painter: _BrandPainter()),+ );+}++class _BrandPainter extends CustomPainter {+ @override+ void paint(Canvas canvas, Size size) {+ final paint = Paint()+ ..color = green+ ..strokeWidth = 2.8+ ..style = PaintingStyle.stroke;+ canvas.drawPath(+ Path()+ ..moveTo(2, 9)+ ..lineTo(2, 2)+ ..lineTo(9, 2)+ ..moveTo(14, 2)+ ..lineTo(21, 2)+ ..lineTo(21, 9)+ ..moveTo(21, 14)+ ..lineTo(21, 21)+ ..lineTo(14, 21)+ ..moveTo(9, 21)+ ..lineTo(2, 21)+ ..lineTo(2, 14),+ paint,+ );+ canvas.drawLine(const Offset(9, 8), const Offset(15, 12), paint);+ canvas.drawLine(const Offset(15, 12), const Offset(9, 16), paint);+ }++ @override+ bool shouldRepaint(covariant CustomPainter oldDelegate) => false;+}++class SearchDock extends StatelessWidget {+ const SearchDock({super.key, required this.onTap});+ final VoidCallback onTap;+ @override+ Widget build(BuildContext context) => DecoratedBox(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(22),+ boxShadow: const [+ BoxShadow(+ color: Color(0x30212A24),+ blurRadius: 22,+ offset: Offset(0, 7),+ ),+ ],+ ),+ child: Frosted(+ dark: true,+ radius: 22,+ child: DecoratedBox(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(22),+ border: Border.all(+ color: Colors.white.withValues(alpha: .28),+ width: .8,+ ),+ ),+ child: Material(+ color: Colors.transparent,+ child: InkWell(+ key: const Key('open_search'),+ onTap: onTap,+ child: Padding(+ padding: const EdgeInsets.fromLTRB(20, 10, 10, 10),+ child: Row(+ children: [+ const Icon(Icons.search, color: Colors.white, size: 23),+ const SizedBox(width: 12),+ const Expanded(+ child: Text(+ 'Search your videos',+ style: TextStyle(+ fontSize: 16,+ fontWeight: FontWeight.w500,+ color: Colors.white,+ ),+ ),+ ),+ Container(+ width: 42,+ height: 42,+ decoration: BoxDecoration(+ color: const Color(0xFFE6A17F),+ borderRadius: BorderRadius.circular(13),+ ),+ child: const Icon(+ Icons.arrow_forward,+ color: ink,+ size: 21,+ ),+ ),+ ],+ ),+ ),+ ),+ ),+ ),+ ),+ );+}++class VideoRow extends StatelessWidget {+ const VideoRow({super.key, required this.clip, required this.onTap});+ final ArchiveClip clip;+ final VoidCallback onTap;+ @override+ Widget build(BuildContext context) => Padding(+ padding: const EdgeInsets.only(bottom: 14),+ child: Semantics(+ button: true,+ label: 'Play ${clip.title}',+ child: ClipRRect(+ borderRadius: BorderRadius.circular(18),+ child: AspectRatio(+ aspectRatio: 1.8,+ child: Stack(+ fit: StackFit.expand,+ children: [+ ClipPoster(clip),+ const DecoratedBox(+ decoration: BoxDecoration(+ gradient: LinearGradient(+ begin: Alignment.topCenter,+ end: Alignment.bottomCenter,+ stops: [.4, 1],+ colors: [Colors.transparent, Color(0xD919201C)],+ ),+ ),+ ),+ Positioned(+ top: 12,+ right: 12,+ child: TimeBadge(seconds: clip.duration),+ ),+ Positioned(+ left: 16,+ bottom: 16,+ right: 70,+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Text(+ clip.title,+ maxLines: 2,+ overflow: TextOverflow.ellipsis,+ style: const TextStyle(+ fontSize: 20,+ fontWeight: FontWeight.w600,+ letterSpacing: -.4,+ height: 1.12,+ color: Colors.white,+ ),+ ),+ const SizedBox(height: 5),+ Text(+ city(clip),+ style: const TextStyle(+ fontSize: 12,+ color: Color(0xFFDFE5DF),+ ),+ ),+ ],+ ),+ ),+ Positioned(+ right: 12,+ bottom: 12,+ child: Frosted(+ dark: true,+ radius: 13,+ child: Container(+ width: 44,+ height: 44,+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(13),+ border: Border.all(+ color: Colors.white.withValues(alpha: .3),+ width: .7,+ ),+ ),+ child: const Icon(+ Icons.play_arrow_rounded,+ color: Colors.white,+ size: 24,+ ),+ ),+ ),+ ),+ Positioned.fill(+ child: Material(+ color: Colors.transparent,+ child: InkWell(onTap: onTap),+ ),+ ),+ ],+ ),+ ),+ ),+ ),+ );+}++class ClipPoster extends StatelessWidget {+ const ClipPoster(this.clip, {super.key});+ final ArchiveClip clip;+ @override+ Widget build(BuildContext context) => clip.poster.isNotEmpty+ ? Image.asset(+ clip.poster,+ fit: BoxFit.cover,+ errorBuilder: (_, _, _) => const MissingFrame(),+ )+ : const MissingFrame(icon: Icons.movie_outlined);+}++class MissingFrame extends StatelessWidget {+ const MissingFrame({+ super.key,+ this.icon = Icons.image_not_supported_outlined,+ });+ final IconData icon;+ @override+ Widget build(BuildContext context) => ColoredBox(+ color: const Color(0xFFE0E3DA),+ child: Center(child: Icon(icon, color: secondary, size: 28)),+ );+}++class TimeBadge extends StatelessWidget {+ const TimeBadge({super.key, required this.seconds});+ final double seconds;+ @override+ Widget build(BuildContext context) => Frosted(+ dark: true,+ radius: 6,+ child: Padding(+ padding: const EdgeInsets.symmetric(horizontal: 7, vertical: 4),+ child: Text(+ timeLabel(seconds),+ style: const TextStyle(+ color: Colors.white,+ fontSize: 12,+ fontWeight: FontWeight.w500,+ ),+ ),+ ),+ );+}++/// Keep relevance order, but collapse nearby frames of the same recording.+Map<String, List<FrameMatch>> groupMoments(List<FrameMatch> hits) {+ final groups = <String, List<FrameMatch>>{};+ for (final hit in hits) {+ final moments = groups.putIfAbsent(hit.filename, () => []);+ final t = hit.seconds;+ if (moments.any(+ (m) => t != null && m.seconds != null && (t - m.seconds!).abs() < 6,+ )) {+ continue;+ }+ moments.add(hit);+ }+ return groups;+}++class SearchPage extends StatefulWidget {+ const SearchPage({super.key, required this.archive});+ final ArchiveController archive;+ @override+ State<SearchPage> createState() => _SearchPageState();+}++class _SearchPageState extends State<SearchPage> {+ final query = TextEditingController();+ bool broad = false;+ final expandedVideos = <String>{};+ ArchiveController get archive => widget.archive;+ @override+ void initState() {+ super.initState();+ query.text = archive.activeQuery;+ }++ @override+ void dispose() {+ query.dispose();+ super.dispose();+ }++ Future<void> search([String? text]) async {+ expandedVideos.clear();+ if (text != null) query.text = text;+ FocusManager.instance.primaryFocus?.unfocus();+ if (query.text.trim().isEmpty) return;+ if (archive.connecting) return;+ if (!archive.connected) {+ await showConnection(context, archive);+ if (!mounted || !archive.connected) return;+ }+ if (!archive.ready) {+ await prepareArchive(context, archive);+ return;+ }+ await archive.search(query.text, maxDistance: broad ? 1.5 : .85);+ }++ void options() => showModalBottomSheet<void>(+ context: context,+ builder: (_) => StatefulBuilder(+ builder: (ctx, update) => SafeArea(+ child: Column(+ mainAxisSize: MainAxisSize.min,+ children: [+ SwitchListTile(+ title: const Text('Include looser matches'),+ subtitle: const Text(+ 'Useful if the first search misses something.',+ ),+ value: broad,+ onChanged: (v) {+ setState(() => broad = v);+ update(() {});+ archive.invalidateSearch();+ },+ ),+ ListTile(+ leading: const Icon(Icons.info_outline),+ title: const Text('Search details'),+ onTap: () {+ Navigator.pop(ctx);+ showSearchDetails(context, archive);+ },+ ),+ const SizedBox(height: 12),+ ],+ ),+ ),+ ),+ );++ @override+ Widget build(BuildContext context) => AnimatedBuilder(+ animation: archive,+ builder: (context, _) {+ final batch = archive.batch;+ final groups = groupMoments(batch?.matches ?? []);+ return Scaffold(+ appBar: AppBar(+ automaticallyImplyLeading: false,+ toolbarHeight: 80,+ titleSpacing: 8,+ title: SearchBar(+ controller: query,+ hintText: 'Describe a moment',+ leading: IconButton(+ tooltip: 'Back to videos',+ icon: const Icon(Icons.arrow_back),+ onPressed: () => Navigator.pop(context),+ ),+ onChanged: (_) => archive.invalidateSearch(),+ onSubmitted: (_) => search(),+ trailing: [+ IconButton(+ key: const Key('run_search'),+ tooltip: archive.searching ? 'Cancel search' : 'Search',+ icon: Icon(archive.searching ? Icons.close : Icons.search),+ onPressed: archive.searching+ ? archive.invalidateSearch+ : () => search(),+ ),+ ],+ ),+ actions: [+ IconButton(+ key: const Key('search_options'),+ tooltip: 'Search options',+ onPressed: options,+ icon: const Icon(Icons.more_vert),+ ),+ ],+ ),+ body: Column(+ children: [+ if (archive.searching || archive.connecting)+ const LinearProgressIndicator(minHeight: 2),+ Expanded(+ child: ListView(+ padding: const EdgeInsets.fromLTRB(16, 12, 16, 32),+ children: [+ if (archive.busy) WorkStatus(archive: archive),+ if (batch == null && !archive.searching) ...[+ const Padding(+ padding: EdgeInsets.symmetric(vertical: 12),+ child: Text(+ 'Try a search',+ style: TextStyle(+ fontSize: 16,+ fontWeight: FontWeight.w500,+ ),+ ),+ ),+ for (final example in [+ 'People crossing the street',+ 'A bus on a city street',+ 'Cars at an intersection',+ ])+ ListTile(+ contentPadding: EdgeInsets.zero,+ leading: const Icon(Icons.search, size: 20),+ title: Text(+ example,+ style: const TextStyle(fontSize: 15),+ ),+ trailing: const Icon(Icons.north_west, size: 18),+ onTap: () => search(example),+ ),+ ],+ if (batch != null && groups.isEmpty) ...[+ const SizedBox(height: 56),+ const Text(+ 'No matching moments',+ textAlign: TextAlign.center,+ style: TextStyle(+ fontSize: 20,+ fontWeight: FontWeight.w500,+ ),+ ),+ const SizedBox(height: 12),+ const Text(+ 'Try a different description.',+ textAlign: TextAlign.center,+ style: TextStyle(color: secondary),+ ),+ if (!broad)+ Center(+ child: TextButton(+ onPressed: () {+ setState(() => broad = true);+ search();+ },+ child: const Text('Include looser matches'),+ ),+ ),+ ],+ if (groups.isNotEmpty) ...[+ Padding(+ padding: const EdgeInsets.only(bottom: 12),+ child: Text(+ '${groups.length} ${groups.length == 1 ? 'video' : 'videos'}',+ style: const TextStyle(color: secondary),+ ),+ ),+ for (final entry in groups.entries) ...[+ Text(+ archive.clipFor(entry.key)?.title ?? entry.key,+ style: const TextStyle(+ fontSize: 18,+ fontWeight: FontWeight.w500,+ ),+ ),+ const SizedBox(height: 4),+ Text(+ archive.clipFor(entry.key) == null+ ? 'Not stored on this device'+ : city(archive.clipFor(entry.key)!),+ style: const TextStyle(color: secondary, fontSize: 13),+ ),+ const SizedBox(height: 12),+ LayoutBuilder(+ builder: (context, constraints) {+ final count = constraints.maxWidth >= 600 ? 3 : 2;+ return GridView.builder(+ shrinkWrap: true,+ physics: const NeverScrollableScrollPhysics(),+ gridDelegate:+ SliverGridDelegateWithFixedCrossAxisCount(+ crossAxisCount: count,+ mainAxisSpacing: 10,+ crossAxisSpacing: 10,+ childAspectRatio: 16 / 10,+ ),+ itemCount: expandedVideos.contains(entry.key)+ ? entry.value.length+ : entry.value.length.clamp(0, 2),+ itemBuilder: (_, i) => MomentTile(+ key: Key('moment_${entry.key}_$i'),+ hit: entry.value[i],+ onTap: () {+ final clip = archive.clipFor(entry.key);+ if (clip != null) {+ showRecording(+ context,+ archive,+ clip,+ match: entry.value[i],+ moments: entry.value,+ );+ } else {+ ScaffoldMessenger.of(context).showSnackBar(+ const SnackBar(+ content: Text(+ 'This video is not stored on this device.',+ ),+ ),+ );+ }+ },+ ),+ );+ },+ ),+ if (entry.value.length > 2)+ Align(+ alignment: Alignment.centerLeft,+ child: TextButton(+ key: Key('expand_${entry.key}'),+ onPressed: () => setState(() {+ if (!expandedVideos.add(entry.key)) {+ expandedVideos.remove(entry.key);+ }+ }),+ child: Text(+ expandedVideos.contains(entry.key)+ ? 'Show fewer moments'+ : 'Show ${entry.value.length - 2} more moments',+ ),+ ),+ ),+ const SizedBox(height: 28),+ ],+ ],+ if (archive.notice.isNotEmpty &&+ archive.events.isNotEmpty &&+ archive.events.first.error)+ Padding(+ padding: const EdgeInsets.symmetric(vertical: 20),+ child: Text(+ archive.notice,+ style: TextStyle(+ color: Theme.of(context).colorScheme.error,+ ),+ ),+ ),+ ],+ ),+ ),+ ],+ ),+ );+ },+ );+}++class MomentTile extends StatelessWidget {+ const MomentTile({super.key, required this.hit, required this.onTap});+ final FrameMatch hit;+ final VoidCallback onTap;+ @override+ Widget build(BuildContext context) => Semantics(+ button: true,+ label:+ 'Play at ${hit.seconds == null ? 'unknown time' : timeLabel(hit.seconds!)}',+ child: ClipRRect(+ borderRadius: BorderRadius.circular(10),+ child: Stack(+ fit: StackFit.expand,+ children: [+ if (hit.imageBytes != null)+ Image.memory(+ hit.imageBytes!,+ fit: BoxFit.cover,+ errorBuilder: (_, _, _) => const MissingFrame(),+ )+ else if (hit.imageUrl != null)+ Image.network(+ hit.imageUrl!,+ fit: BoxFit.cover,+ errorBuilder: (_, _, _) => const MissingFrame(),+ )+ else+ const MissingFrame(),+ if (hit.seconds != null)+ Positioned(+ bottom: 7,+ right: 7,+ child: TimeBadge(seconds: hit.seconds!),+ ),+ Positioned.fill(+ child: Material(+ color: Colors.transparent,+ child: InkWell(onTap: onTap),+ ),+ ),+ ],+ ),+ ),+ );+}++Future<void> showRecording(+ BuildContext context,+ ArchiveController archive,+ ArchiveClip clip, {+ FrameMatch? match,+ List<FrameMatch> moments = const [],+}) => showModalBottomSheet<void>(+ context: context,+ isScrollControlled: true,+ useSafeArea: true,+ builder: (_) => RecordingSheet(+ archive: archive,+ clip: clip,+ match: match,+ moments: moments,+ ),+);++class RecordingSheet extends StatefulWidget {+ const RecordingSheet({+ super.key,+ required this.archive,+ required this.clip,+ this.match,+ this.moments = const [],+ });+ final ArchiveController archive;+ final ArchiveClip clip;+ final FrameMatch? match;+ final List<FrameMatch> moments;+ @override+ State<RecordingSheet> createState() => _RecordingSheetState();+}++class _RecordingSheetState extends State<RecordingSheet> {+ VideoPlayerController? player;+ String? error;+ @override+ void initState() {+ super.initState();+ unawaited(load());+ }++ Future<void> load() async {+ VideoPlayerController? next;+ try {+ final file = await widget.archive.localFile(widget.clip);+ next = VideoPlayerController.file(file);+ await next.initialize().timeout(const Duration(seconds: 20));+ if (!mounted) {+ await next.dispose();+ return;+ }+ final seconds = widget.match?.seconds;+ if (seconds != null &&+ seconds <= next.value.duration.inMilliseconds / 1000) {+ await next.seekTo(Duration(milliseconds: (seconds * 1000).round()));+ }+ if (!mounted) {+ await next.dispose();+ return;+ }+ next.addListener(refresh);+ setState(() => player = next);+ } on Object {+ await next?.dispose();+ if (mounted) setState(() => error = 'This video could not be opened.');+ }+ }++ void refresh() {+ if (mounted) setState(() {});+ }++ @override+ void dispose() {+ player?.removeListener(refresh);+ unawaited(player?.dispose() ?? Future.value());+ super.dispose();+ }++ @override+ Widget build(BuildContext context) {+ final p = player;+ final length = p?.value.duration.inMilliseconds.toDouble() ?? 0;+ final position = (p?.value.position.inMilliseconds.toDouble() ?? 0).clamp(+ 0.0,+ length,+ );+ return SafeArea(+ child: SingleChildScrollView(+ child: Padding(+ padding: const EdgeInsets.fromLTRB(16, 0, 16, 24),+ child: Column(+ mainAxisSize: MainAxisSize.min,+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Row(+ children: [+ Expanded(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Text(+ widget.clip.title,+ style: const TextStyle(+ fontSize: 20,+ fontWeight: FontWeight.w500,+ ),+ ),+ const SizedBox(height: 4),+ Text(+ city(widget.clip),+ style: const TextStyle(color: secondary),+ ),+ ],+ ),+ ),+ IconButton(+ tooltip: 'Close recording',+ onPressed: () => Navigator.pop(context),+ icon: const Icon(Icons.close),+ ),+ ],+ ),+ const SizedBox(height: 20),+ ClipRRect(+ borderRadius: BorderRadius.circular(16),+ child: AspectRatio(+ aspectRatio: p?.value.aspectRatio ?? 16 / 9,+ child: Stack(+ fit: StackFit.expand,+ children: [+ if (p != null)+ VideoPlayer(p)+ else+ ClipPoster(widget.clip),+ if (p == null && error == null)+ const Center(child: CircularProgressIndicator()),+ if (p != null)+ Positioned(+ left: 8,+ right: 8,+ bottom: 8,+ child: PlaybackControls(player: p),+ ),+ ],+ ),+ ),+ ),+ if (error != null)+ Padding(padding: const EdgeInsets.all(16), child: Text(error!)),+ if (p != null) ...[+ if (widget.moments.length > 1) ...[+ const SizedBox(height: 16),+ const Text(+ 'Other moments',+ style: TextStyle(color: secondary),+ ),+ const SizedBox(height: 8),+ SizedBox(+ height: 86,+ child: ListView.separated(+ scrollDirection: Axis.horizontal,+ itemCount: widget.moments.length,+ separatorBuilder: (_, _) => const SizedBox(width: 8),+ itemBuilder: (_, i) {+ final hit = widget.moments[i];+ final active =+ hit.seconds != null &&+ (position / 1000 - hit.seconds!).abs() < 3;+ return Container(+ width: 118,+ padding: const EdgeInsets.all(2),+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(13),+ border: Border.all(+ color: active ? green : Colors.transparent,+ width: 2,+ ),+ ),+ child: MomentTile(+ hit: hit,+ onTap: () {+ if (hit.seconds != null) {+ p.seekTo(+ Duration(+ milliseconds: (hit.seconds! * 1000).round(),+ ),+ );+ }+ },+ ),+ );+ },+ ),+ ),+ ],+ ],+ ],+ ),+ ),+ ),+ );+ }+}++class PlaybackControls extends StatelessWidget {+ const PlaybackControls({super.key, required this.player});+ final VideoPlayerController player;+ @override+ Widget build(BuildContext context) {+ final value = player.value;+ final length = value.duration.inMilliseconds.toDouble();+ final position = value.position.inMilliseconds.toDouble().clamp(+ 0.0,+ length,+ );+ return Frosted(+ dark: true,+ radius: 12,+ child: Padding(+ padding: const EdgeInsets.only(right: 10),+ child: Row(+ children: [+ IconButton(+ key: const Key('play_pause'),+ tooltip: value.isPlaying ? 'Pause' : 'Play',+ onPressed: () => value.isPlaying ? player.pause() : player.play(),+ icon: Icon(+ value.isPlaying+ ? Icons.pause_rounded+ : Icons.play_arrow_rounded,+ color: Colors.white,+ ),+ ),+ Expanded(+ child: SliderTheme(+ data: SliderTheme.of(context).copyWith(+ trackHeight: 2,+ activeTrackColor: const Color(0xFFF2B28F),+ inactiveTrackColor: Colors.white30,+ thumbColor: Colors.white,+ thumbShape: const RoundSliderThumbShape(+ enabledThumbRadius: 5,+ ),+ overlayShape: const RoundSliderOverlayShape(+ overlayRadius: 14,+ ),+ ),+ child: Slider(+ value: position,+ max: length > 0 ? length : 1,+ semanticFormatterCallback: (v) => timeLabel(v / 1000),+ onChanged: (v) =>+ player.seekTo(Duration(milliseconds: v.round())),+ ),+ ),+ ),+ Text(+ '${timeLabel(position / 1000)} / ${timeLabel(length / 1000)}',+ style: const TextStyle(+ fontSize: 11,+ color: Colors.white,+ fontFeatures: [FontFeature.tabularFigures()],+ ),+ ),+ ],+ ),+ ),+ );+ }+}++Future<void> showConnection(BuildContext context, ArchiveController archive) =>+ showModalBottomSheet<void>(+ context: context,+ isScrollControlled: true,+ useSafeArea: true,+ builder: (_) => ConnectionSheet(archive: archive),+ );++class ConnectionSheet extends StatefulWidget {+ const ConnectionSheet({super.key, required this.archive});+ final ArchiveController archive;+ @override+ State<ConnectionSheet> createState() => _ConnectionSheetState();+}++class _ConnectionSheetState extends State<ConnectionSheet> {+ final input = TextEditingController();+ @override+ void dispose() {+ input.dispose();+ super.dispose();+ }++ Future<void> connect() async {+ final value = input.text.trim();+ if (value.isEmpty) return;+ input.clear();+ FocusManager.instance.primaryFocus?.unfocus();+ final ok = await widget.archive.connect(value);+ if (mounted && ok) Navigator.pop(context);+ }++ @override+ Widget build(BuildContext context) => AnimatedBuilder(+ animation: widget.archive,+ builder: (context, _) => SafeArea(+ child: SingleChildScrollView(+ padding: EdgeInsets.fromLTRB(+ 24,+ 0,+ 24,+ MediaQuery.viewInsetsOf(context).bottom + 24,+ ),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ mainAxisSize: MainAxisSize.min,+ children: [+ const Text(+ 'Search settings',+ style: TextStyle(fontSize: 22, fontWeight: FontWeight.w500),+ ),+ const SizedBox(height: 16),+ Text(+ widget.archive.connected+ ? 'Connected to the search service.'+ : 'Connect to search inside your videos.',+ ),+ const SizedBox(height: 20),+ TextField(+ key: const Key('api_key'),+ controller: input,+ obscureText: true,+ autocorrect: false,+ enableSuggestions: false,+ enableIMEPersonalizedLearning: false,+ onSubmitted: (_) => connect(),+ decoration: const InputDecoration(+ labelText: 'API key',+ border: OutlineInputBorder(),+ ),+ ),+ const SizedBox(height: 16),+ if (widget.archive.notice.isNotEmpty && !widget.archive.connected)+ Text(widget.archive.notice),+ const SizedBox(height: 8),+ Row(+ mainAxisAlignment: MainAxisAlignment.end,+ children: [+ if (widget.archive.connected)+ TextButton(+ onPressed: widget.archive.busy || widget.archive.connecting+ ? null+ : () async {+ await widget.archive.disconnect();+ if (context.mounted) Navigator.pop(context);+ },+ child: const Text('Disconnect'),+ ),+ const SizedBox(width: 8),+ FilledButton(+ key: const Key('connect_button'),+ onPressed: widget.archive.busy || widget.archive.connecting+ ? null+ : connect,+ child: Text(+ widget.archive.connecting ? 'Connecting…' : 'Connect',+ ),+ ),+ ],+ ),+ ],+ ),+ ),+ ),+ );+}++Future<void> prepareArchive(+ BuildContext context,+ ArchiveController archive,+) async {+ if (archive.busy) return;+ if (!archive.connected) {+ await showConnection(context, archive);+ if (!context.mounted || !archive.connected) return;+ }+ if (archive.pendingJob.isNotEmpty) {+ unawaited(archive.resumeIndex());+ return;+ }+ final count = archive.clips.where((c) => !c.uploaded).length;+ final confirmed = await showDialog<bool>(+ context: context,+ builder: (ctx) => AlertDialog(+ title: const Text('Prepare videos for search?'),+ content: Text(+ count == 0+ ? 'Rebuild the visual index for these videos?'+ : '$count videos will be uploaded to the search service. This can take a minute.',+ ),+ actions: [+ TextButton(+ onPressed: () => Navigator.pop(ctx, false),+ child: const Text('Cancel'),+ ),+ FilledButton(+ onPressed: () => Navigator.pop(ctx, true),+ child: const Text('Prepare'),+ ),+ ],+ ),+ );+ if (confirmed == true) unawaited(archive.uploadAndIndex());+}++class WorkStatus extends StatelessWidget {+ const WorkStatus({super.key, required this.archive});+ final ArchiveController archive;+ @override+ Widget build(BuildContext context) => Padding(+ padding: const EdgeInsets.symmetric(vertical: 12),+ child: Column(+ children: [+ LinearProgressIndicator(value: archive.progress, minHeight: 3),+ Row(+ children: [+ Expanded(+ child: Text(archive.phase, style: const TextStyle(fontSize: 13)),+ ),+ TextButton(+ onPressed: archive.stopWork,+ child: Text(+ archive.pendingJob.isEmpty ? 'Cancel' : 'Stop waiting',+ ),+ ),+ ],+ ),+ ],+ ),+ );+}++class HistoryPage extends StatelessWidget {+ const HistoryPage({super.key, required this.archive});+ final ArchiveController archive;+ @override+ Widget build(BuildContext context) => AnimatedBuilder(+ animation: archive,+ builder: (context, _) => Scaffold(+ appBar: AppBar(title: const Text('Sync history')),+ body: ListView(+ padding: const EdgeInsets.only(bottom: 24),+ children: [+ if (archive.busy)+ Padding(+ padding: const EdgeInsets.all(16),+ child: WorkStatus(archive: archive),+ ),+ if (archive.events.isEmpty)+ const Padding(+ padding: EdgeInsets.all(24),+ child: Text('No uploads or searches yet.'),+ ),+ for (final event in archive.events)+ ListTile(+ leading: Icon(+ event.error ? Icons.error_outline : Icons.check,+ size: 20,+ ),+ title: Text(event.title),+ subtitle: Text(event.detail),+ ),+ ],+ ),+ ),+ );+}++Future<void> showSearchDetails(+ BuildContext context,+ ArchiveController archive,+) => showModalBottomSheet<void>(+ context: context,+ isScrollControlled: true,+ useSafeArea: true,+ builder: (_) {+ final batch = archive.batch;+ return SafeArea(+ child: SingleChildScrollView(+ padding: const EdgeInsets.fromLTRB(24, 0, 24, 24),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ mainAxisSize: MainAxisSize.min,+ children: [+ const Text('Search details', style: TextStyle(fontSize: 22)),+ const SizedBox(height: 16),+ if (batch == null)+ const Text('Run a search first.')+ else ...[+ Text(+ 'Server results: ${batch.total}\nWithin distance filter: ${batch.matches.length}\n'+ 'Search request: ${batch.roundTripMs} ms\nServer execution: ${batch.serverMs.toStringAsFixed(0)} ms\n'+ 'Frame retrieval: ${batch.imageMs} ms',+ ),+ const SizedBox(height: 16),+ const Text(+ 'Nearby frames from the same video are combined in the results. Distance is similarity, not confidence.',+ ),+ ],+ ],+ ),+ ),+ );+ },+);diff --git a/example/05_framebase/pubspec.lock b/example/05_framebase/pubspec.locknew file mode 100644index 0000000..e13653f--- /dev/null+++ b/example/05_framebase/pubspec.lock@@ -0,0 +1,616 @@+# Generated by pub+# See https://dart.dev/tools/pub/glossary#lockfile+packages:+ args:+ dependency: transitive+ description:+ name: args+ sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04+ url: "https://pub.dev"+ source: hosted+ version: "2.7.0"+ async:+ dependency: transitive+ description:+ name: async+ sha256: e2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37+ url: "https://pub.dev"+ source: hosted+ version: "2.13.1"+ boolean_selector:+ dependency: transitive+ description:+ name: boolean_selector+ sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"+ url: "https://pub.dev"+ source: hosted+ version: "2.1.2"+ characters:+ dependency: transitive+ description:+ name: characters+ sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b+ url: "https://pub.dev"+ source: hosted+ version: "1.4.1"+ clock:+ dependency: transitive+ description:+ name: clock+ sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b+ url: "https://pub.dev"+ source: hosted+ version: "1.1.2"+ code_assets:+ dependency: transitive+ description:+ name: code_assets+ sha256: bf394f466ba9205f1812a0433b392d6af280f155f56651eda7c18cc32ed493b8+ url: "https://pub.dev"+ source: hosted+ version: "1.2.1"+ collection:+ dependency: transitive+ description:+ name: collection+ sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"+ url: "https://pub.dev"+ source: hosted+ version: "1.19.1"+ cross_file:+ dependency: transitive+ description:+ name: cross_file+ sha256: f141ea4f277af142a0356955707f6556f37b03947d39d55585981a06ca437bd6+ url: "https://pub.dev"+ source: hosted+ version: "0.3.5+5"+ crypto:+ dependency: transitive+ description:+ name: crypto+ sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf+ url: "https://pub.dev"+ source: hosted+ version: "3.0.7"+ csslib:+ dependency: transitive+ description:+ name: csslib+ sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e"+ url: "https://pub.dev"+ source: hosted+ version: "1.0.2"+ cupertino_icons:+ dependency: "direct main"+ description:+ name: cupertino_icons+ sha256: "41e005c33bd814be4d3096aff55b1908d419fde52ca656c8c47719ec745873cd"+ url: "https://pub.dev"+ source: hosted+ version: "1.0.9"+ fake_async:+ dependency: transitive+ description:+ name: fake_async+ sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"+ url: "https://pub.dev"+ source: hosted+ version: "1.3.3"+ ffi:+ dependency: transitive+ description:+ name: ffi+ sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45"+ url: "https://pub.dev"+ source: hosted+ version: "2.2.0"+ file:+ dependency: transitive+ description:+ name: file+ sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4+ url: "https://pub.dev"+ source: hosted+ version: "7.0.1"+ file_selector:+ dependency: "direct main"+ description:+ name: file_selector+ sha256: bd15e43e9268db636b53eeaca9f56324d1622af30e5c34d6e267649758c84d9a+ url: "https://pub.dev"+ source: hosted+ version: "1.1.0"+ file_selector_android:+ dependency: transitive+ description:+ name: file_selector_android+ sha256: "7c76473740e33a11343c8fce88166049230850d2f19cd8a652ea935fcb8c9206"+ url: "https://pub.dev"+ source: hosted+ version: "0.5.2+10"+ file_selector_ios:+ dependency: transitive+ description:+ name: file_selector_ios+ sha256: "97269e5307a0ab813b1fa2430bada0a96e0afb74848417f8676f64ba5de0051c"+ url: "https://pub.dev"+ source: hosted+ version: "0.5.3+6"+ file_selector_linux:+ dependency: transitive+ description:+ name: file_selector_linux+ sha256: da76400e7872ce7637ffdce12749ec24169c25f6195c28372208e65a24bcd2ab+ url: "https://pub.dev"+ source: hosted+ version: "0.9.4+1"+ file_selector_macos:+ dependency: transitive+ description:+ name: file_selector_macos+ sha256: d57c62362766b5e7ae739448650b66c6aab7a68ba7ecc65e04018652645ae0f4+ url: "https://pub.dev"+ source: hosted+ version: "0.9.5+1"+ file_selector_platform_interface:+ dependency: transitive+ description:+ name: file_selector_platform_interface+ sha256: "35e0bd61ebcdb91a3505813b055b09b79dfdc7d0aee9c09a7ba59ae4bb13dc85"+ url: "https://pub.dev"+ source: hosted+ version: "2.7.0"+ file_selector_web:+ dependency: transitive+ description:+ name: file_selector_web+ sha256: "73181fbc5257776d8ecaa6a94ab3c8e920ad143b9132a6d984a9271dfc6928d3"+ url: "https://pub.dev"+ source: hosted+ version: "0.9.5"+ file_selector_windows:+ dependency: transitive+ description:+ name: file_selector_windows+ sha256: fbefc5fb92c6d3cbe8d284a2cd971b593bb07d2cd6da8557b81a862250b4acec+ url: "https://pub.dev"+ source: hosted+ version: "0.9.3+6"+ flutter:+ dependency: "direct main"+ description: flutter+ source: sdk+ version: "0.0.0"+ flutter_driver:+ dependency: transitive+ description: flutter+ source: sdk+ version: "0.0.0"+ flutter_lints:+ dependency: "direct dev"+ description:+ name: flutter_lints+ sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"+ url: "https://pub.dev"+ source: hosted+ version: "6.0.0"+ flutter_test:+ dependency: "direct dev"+ description: flutter+ source: sdk+ version: "0.0.0"+ flutter_web_plugins:+ dependency: transitive+ description: flutter+ source: sdk+ version: "0.0.0"+ fuchsia_remote_debug_protocol:+ dependency: transitive+ description: flutter+ source: sdk+ version: "0.0.0"+ hooks:+ dependency: transitive+ description:+ name: hooks+ sha256: "9a62a50b50b769a737bc0a8ff381f333529df3ab746b2f6b02e83760231455ba"+ url: "https://pub.dev"+ source: hosted+ version: "2.0.2"+ html:+ dependency: transitive+ description:+ name: html+ sha256: "43b67b8f43321ab066817dfac5619596c98bb1b61624e77203bb4351785f9699"+ url: "https://pub.dev"+ source: hosted+ version: "0.15.7"+ http:+ dependency: transitive+ description:+ name: http+ sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412"+ url: "https://pub.dev"+ source: hosted+ version: "1.6.0"+ http_parser:+ dependency: transitive+ description:+ name: http_parser+ sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"+ url: "https://pub.dev"+ source: hosted+ version: "4.1.2"+ integration_test:+ dependency: "direct dev"+ description: flutter+ source: sdk+ version: "0.0.0"+ jni:+ dependency: transitive+ description:+ name: jni+ sha256: f038e58b4dc2c9037f50e233175086337e0b305e356d28211bf55f21c504cbd3+ url: "https://pub.dev"+ source: hosted+ version: "1.0.3"+ jni_flutter:+ dependency: transitive+ description:+ name: jni_flutter+ sha256: b2310cdd4c18c65c081ab141a41efa94aa26c65431803703ece51996f174f351+ url: "https://pub.dev"+ source: hosted+ version: "1.0.3"+ jni_util:+ dependency: transitive+ description:+ name: jni_util+ sha256: "1ba86da04a5f2bf18fde2edb235587e70c5b0fc5bd4ba955f46b00942c3fc35f"+ url: "https://pub.dev"+ source: hosted+ version: "1.0.0"+ leak_tracker:+ dependency: transitive+ description:+ name: leak_tracker+ sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"+ url: "https://pub.dev"+ source: hosted+ version: "11.0.2"+ leak_tracker_flutter_testing:+ dependency: transitive+ description:+ name: leak_tracker_flutter_testing+ sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"+ url: "https://pub.dev"+ source: hosted+ version: "3.0.10"+ leak_tracker_testing:+ dependency: transitive+ description:+ name: leak_tracker_testing+ sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"+ url: "https://pub.dev"+ source: hosted+ version: "3.0.2"+ lints:+ dependency: transitive+ description:+ name: lints+ sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df"+ url: "https://pub.dev"+ source: hosted+ version: "6.1.0"+ logging:+ dependency: transitive+ description:+ name: logging+ sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61+ url: "https://pub.dev"+ source: hosted+ version: "1.3.0"+ matcher:+ dependency: transitive+ description:+ name: matcher+ sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861+ url: "https://pub.dev"+ source: hosted+ version: "0.12.19"+ material_color_utilities:+ dependency: transitive+ description:+ name: material_color_utilities+ sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b"+ url: "https://pub.dev"+ source: hosted+ version: "0.13.0"+ meta:+ dependency: transitive+ description:+ name: meta+ sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"+ url: "https://pub.dev"+ source: hosted+ version: "1.18.0"+ objective_c:+ dependency: transitive+ description:+ name: objective_c+ sha256: b7fb95a6d9a4f009edd63dc5ac69f07420b23a16161c6dd8660290b59c602e8e+ url: "https://pub.dev"+ source: hosted+ version: "9.5.0"+ package_config:+ dependency: transitive+ description:+ name: package_config+ sha256: ffcf4cf3d6c0b74ac43708d9f56625506e8a68aa935abe9d267a7330f320eb5d+ url: "https://pub.dev"+ source: hosted+ version: "3.0.0"+ path:+ dependency: transitive+ description:+ name: path+ sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"+ url: "https://pub.dev"+ source: hosted+ version: "1.9.1"+ path_provider:+ dependency: "direct main"+ description:+ name: path_provider+ sha256: a7f4874f987173da295a61c181b8ee71dab59b332a486b391babf26a1b884825+ url: "https://pub.dev"+ source: hosted+ version: "2.1.6"+ path_provider_android:+ dependency: transitive+ description:+ name: path_provider_android+ sha256: "69cbd515a62b94d32a7944f086b2f82b4ac40a1d45bebfc00813a430ab2dabcd"+ url: "https://pub.dev"+ source: hosted+ version: "2.3.1"+ path_provider_foundation:+ dependency: transitive+ description:+ name: path_provider_foundation+ sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699"+ url: "https://pub.dev"+ source: hosted+ version: "2.6.0"+ path_provider_linux:+ dependency: transitive+ description:+ name: path_provider_linux+ sha256: "58c2005f147315b11e9b4a7bc889cd5203e250cba8e3f012dae259b4972b5c16"+ url: "https://pub.dev"+ source: hosted+ version: "2.2.2"+ path_provider_platform_interface:+ dependency: transitive+ description:+ name: path_provider_platform_interface+ sha256: "484838772624c3a4b94f1e44a3e19897fee738f2d5c4ce448443b0417f7c9dda"+ url: "https://pub.dev"+ source: hosted+ version: "2.1.3"+ path_provider_windows:+ dependency: transitive+ description:+ name: path_provider_windows+ sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7+ url: "https://pub.dev"+ source: hosted+ version: "2.3.0"+ platform:+ dependency: transitive+ description:+ name: platform+ sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"+ url: "https://pub.dev"+ source: hosted+ version: "3.1.6"+ plugin_platform_interface:+ dependency: transitive+ description:+ name: plugin_platform_interface+ sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"+ url: "https://pub.dev"+ source: hosted+ version: "2.1.8"+ process:+ dependency: transitive+ description:+ name: process+ sha256: "4242ba3508d37e01808bdf71ad1d5bb93a8d671bf2e7450e6b1b353fb0808891"+ url: "https://pub.dev"+ source: hosted+ version: "5.0.6"+ pub_semver:+ dependency: transitive+ description:+ name: pub_semver+ sha256: "261236774e8b1d69cfc6b9eabbc96c40f25e7a2d6b171f3385d4f65d5734fb24"+ url: "https://pub.dev"+ source: hosted+ version: "2.2.1"+ record_use:+ dependency: transitive+ description:+ name: record_use+ sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed"+ url: "https://pub.dev"+ source: hosted+ version: "0.6.0"+ sky_engine:+ dependency: transitive+ description: flutter+ source: sdk+ version: "0.0.0"+ source_span:+ dependency: transitive+ description:+ name: source_span+ sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab"+ url: "https://pub.dev"+ source: hosted+ version: "1.10.2"+ stack_trace:+ dependency: transitive+ description:+ name: stack_trace+ sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"+ url: "https://pub.dev"+ source: hosted+ version: "1.12.1"+ stream_channel:+ dependency: transitive+ description:+ name: stream_channel+ sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"+ url: "https://pub.dev"+ source: hosted+ version: "2.1.4"+ string_scanner:+ dependency: transitive+ description:+ name: string_scanner+ sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"+ url: "https://pub.dev"+ source: hosted+ version: "1.4.1"+ sync_http:+ dependency: transitive+ description:+ name: sync_http+ sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"+ url: "https://pub.dev"+ source: hosted+ version: "0.3.1"+ term_glyph:+ dependency: transitive+ description:+ name: term_glyph+ sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"+ url: "https://pub.dev"+ source: hosted+ version: "1.2.2"+ test_api:+ dependency: transitive+ description:+ name: test_api+ sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"+ url: "https://pub.dev"+ source: hosted+ version: "0.7.11"+ typed_data:+ dependency: transitive+ description:+ name: typed_data+ sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006+ url: "https://pub.dev"+ source: hosted+ version: "1.4.0"+ vector_math:+ dependency: transitive+ description:+ name: vector_math+ sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b+ url: "https://pub.dev"+ source: hosted+ version: "2.2.0"+ video_player:+ dependency: "direct main"+ description:+ name: video_player+ sha256: "8c837b570dccb9ae6ff73d2e0b03c7e708bfefd3bd1194faa7f3e7f200dfc399"+ url: "https://pub.dev"+ source: hosted+ version: "2.14.0"+ video_player_android:+ dependency: transitive+ description:+ name: video_player_android+ sha256: d27054dea34d748a44f06d433a57005d2aac69944485b0abbaed3303dbcfa3f1+ url: "https://pub.dev"+ source: hosted+ version: "2.12.2"+ video_player_avfoundation:+ dependency: transitive+ description:+ name: video_player_avfoundation+ sha256: "436fd029bd1c1e303b2d95ebd76948893f3c28dab286e7235ba9dd7b22533bf0"+ url: "https://pub.dev"+ source: hosted+ version: "2.11.1"+ video_player_platform_interface:+ dependency: transitive+ description:+ name: video_player_platform_interface+ sha256: "92c0fbabe20c788e71fd10d26cea998d0d253282e65d145aed0818731cf593ce"+ url: "https://pub.dev"+ source: hosted+ version: "6.9.0"+ video_player_web:+ dependency: transitive+ description:+ name: video_player_web+ sha256: "9f3c00be2ef9b76a95d94ac5119fb843dca6f2c69e6c9968f6f2b6c9e7afbdeb"+ url: "https://pub.dev"+ source: hosted+ version: "2.4.0"+ vm_service:+ dependency: transitive+ description:+ name: vm_service+ sha256: "5f37239c4851efcef929cea7824e76df7f2f0970aef85d66bbc430afa40e72f0"+ url: "https://pub.dev"+ source: hosted+ version: "15.3.0"+ vmodal_sdk_flutter:+ dependency: "direct main"+ description:+ path: "../.."+ relative: true+ source: path+ version: "1.2.2"+ web:+ dependency: transitive+ description:+ name: web+ sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"+ url: "https://pub.dev"+ source: hosted+ version: "1.1.1"+ webdriver:+ dependency: transitive+ description:+ name: webdriver+ sha256: "2f3a14ca026957870cfd9c635b83507e0e51d8091568e90129fbf805aba7cade"+ url: "https://pub.dev"+ source: hosted+ version: "3.1.0"+ xdg_directories:+ dependency: transitive+ description:+ name: xdg_directories+ sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15"+ url: "https://pub.dev"+ source: hosted+ version: "1.1.0"+ yaml:+ dependency: transitive+ description:+ name: yaml+ sha256: f67cdd8e07d3c6329146aaef1ba043542b3134c12489f553ca9a7435d1068aea+ url: "https://pub.dev"+ source: hosted+ version: "3.1.4"+sdks:+ dart: ">=3.12.2 <4.0.0"+ flutter: ">=3.44.0"diff --git a/example/05_framebase/pubspec.yaml b/example/05_framebase/pubspec.yamlnew file mode 100644index 0000000..441f535--- /dev/null+++ b/example/05_framebase/pubspec.yaml@@ -0,0 +1,107 @@+name: framebase+description: "A street-video archive demonstrating semantic frame search and timestamp playback with VModal."+# The following line prevents the package from being accidentally published to+# pub.dev using `flutter pub publish`. This is preferred for private packages.+publish_to: 'none' # Remove this line if you wish to publish to pub.dev++# The following defines the version and build number for your application.+# A version number is three numbers separated by dots, like 1.2.43+# followed by an optional build number separated by a +.+# Both the version and the builder number may be overridden in flutter+# build by specifying --build-name and --build-number, respectively.+# In Android, build-name is used as versionName while build-number used as versionCode.+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning+# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.+# Read more about iOS versioning at+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html+# In Windows, build-name is used as the major, minor, and patch parts+# of the product and file versions while build-number is used as the build suffix.+version: 1.2.1+4++environment:+ sdk: ^3.12.2++# Dependencies specify other packages that your package needs in order to work.+# To automatically upgrade your package dependencies to the latest versions+# consider running `flutter pub upgrade --major-versions`. Alternatively,+# dependencies can be manually updated by changing the version numbers below to+# the latest version available on pub.dev. To see which dependencies have newer+# versions available, run `flutter pub outdated`.+dependencies:+ flutter:+ sdk: flutter++ vmodal_sdk_flutter:+ path: ../..++ # The following adds the Cupertino Icons font to your application.+ # Use with the CupertinoIcons class for iOS style icons.+ cupertino_icons: ^1.0.8+ file_selector: ^1.1.0+ path_provider: ^2.1.5+ video_player: ^2.10.0++dev_dependencies:+ flutter_test:+ sdk: flutter+ integration_test:+ sdk: flutter++ # The "flutter_lints" package below contains a set of recommended lints to+ # encourage good coding practices. The lint set provided by the package is+ # activated in the `analysis_options.yaml` file located at the root of your+ # package. See that file for information about deactivating specific lint+ # rules and activating additional ones.+ flutter_lints: ^6.0.0++# For information on the generic Dart part of this file, see the+# following page: https://dart.dev/tools/pub/pubspec++# The following section is specific to Flutter packages.+flutter:++ # The following line ensures that the Material Icons font is+ # included with your application, so that you can use the icons in+ # the material Icons class.+ uses-material-design: true++ assets:+ - assets/videos/+ - assets/stills/+ - assets/fonts/OFL.txt++ fonts:+ - family: Instrument Sans+ fonts:+ - asset: assets/fonts/InstrumentSans.ttf++ # To add assets to your application, add an assets section, like this:+ # assets:+ # - images/a_dot_burr.jpeg+ # - images/a_dot_ham.jpeg++ # An image asset can refer to one or more resolution-specific "variants", see+ # https://flutter.dev/to/resolution-aware-images++ # For details regarding adding assets from package dependencies, see+ # https://flutter.dev/to/asset-from-package++ # To add custom fonts to your application, add a fonts section here,+ # in this "flutter" section. Each entry in this list should have a+ # "family" key with the font family name, and a "fonts" key with a+ # list giving the asset and other descriptors for the font. For+ # example:+ # fonts:+ # - family: Schyler+ # fonts:+ # - asset: fonts/Schyler-Regular.ttf+ # - asset: fonts/Schyler-Italic.ttf+ # style: italic+ # - family: Trajan Pro+ # fonts:+ # - asset: fonts/TrajanPro.ttf+ # - asset: fonts/TrajanPro_Bold.ttf+ # weight: 700+ #+ # For details regarding fonts from package dependencies,+ # see https://flutter.dev/to/font-from-packagediff --git a/example/05_framebase/test/search_gateway_test.dart b/example/05_framebase/test/search_gateway_test.dartnew file mode 100644index 0000000..3ac6805--- /dev/null+++ b/example/05_framebase/test/search_gateway_test.dart@@ -0,0 +1,183 @@+import 'dart:convert';+import 'package:flutter_test/flutter_test.dart';+import 'package:framebase/data/search_gateway.dart';+import 'package:vmodal_sdk_flutter/vmodal_sdk_flutter.dart';++class QueueTransport implements VmodalTransport {+ QueueTransport(this.responses);+ final List<Map<String, Object?>> responses;+ final List<VmodalRequest> requests = [];+ bool closed = false;+ @override+ Future<VmodalResponse> send(VmodalRequest request) async {+ request.cancellation.throwIfCanceled();+ requests.add(request);+ return VmodalResponse(+ statusCode: 200,+ body: Stream.value(utf8.encode(jsonEncode(responses.removeAt(0)))),+ );+ }++ @override+ Future<void> close() async {+ closed = true;+ }+}++void main() {+ test(+ 'connect resolves the account and discovers the current index',+ () async {+ final transport = QueueTransport([+ {'user_id': 'account-1'},+ {+ 'total': 1,+ 'data': [+ {+ 'mode': 'vid_file',+ 'group_name': archiveCollection,+ 'lancedb_versions': ['v2', 'v4'],+ },+ ],+ },+ ]);+ final gateway = SearchGateway(+ 'test-only-placeholder',+ transport: transport,+ );++ await gateway.connect();++ expect(gateway.accountId, 'account-1');+ expect(gateway.version, 4);+ expect(transport.requests, hasLength(2));+ await gateway.close();+ },+ );++ test(+ 'bulk frames retain search order and tolerate partial missing images',+ () async {+ const route = '/api/external/v1/image/get_image';+ final transport = QueueTransport([+ {+ 'data': [+ {'title': 'first', 'ts_unix': '0000000006000', 'score': .71},+ {'title': 'second', 'ts_unix': '0000000008000', 'score': .76},+ {'title': 'missing', 'ts_unix': '0000000010000', 'score': .80},+ ],+ 'cnt_total': 3,+ 'execution_time_ms': 42.5,+ },+ {+ 'records': [+ {+ 'input_index': 1.0,+ 'found': true,+ 'url_pre_signed': '$route?test=second',+ },+ {+ 'input_index': '0',+ 'found': true,+ 'url_pre_signed': '$route?test=first',+ },+ {'input_index': 2, 'found': false},+ {+ 'input_index': -1,+ 'found': true,+ 'url_pre_signed': 'http://invalid.test',+ },+ ],+ },+ {+ 'records': [+ {+ 'url_pre_signed': '$route?test=first',+ 'content_base64': base64Encode([1, 2, 3]),+ },+ {+ 'url_pre_signed': '$route?test=second',+ 'content_base64': base64Encode([4, 5, 6]),+ },+ ],+ },+ ]);+ final gateway = SearchGateway(+ 'test-only-placeholder',+ transport: transport,+ );+ gateway.version = 2;+ final result = await gateway.search('crosswalk', maxDistance: .85);+ expect(result.matches.map((m) => m.filename), [+ 'first',+ 'second',+ 'missing',+ ]);+ expect(result.matches[0].imageBytes, [1, 2, 3]);+ expect(result.matches[1].imageBytes, [4, 5, 6]);+ expect(result.matches[2].imageBytes, isNull);+ expect(result.matches[0].imageUrl, isNull);+ expect(result.matches[0].seconds, 6);+ expect(result.serverMs, 42.5);+ final body = transport.requests.first.jsonBody as Map;+ expect(body['group_name'], archiveCollection);+ expect(body['stream_name'], archiveStream);+ expect(body['image_emb_score_min'], .85);+ await gateway.close();+ expect(transport.closed, isTrue);+ expect(() => gateway.keys.current(), throwsA(isA<AuthException>()));+ },+ );++ test('empty search does not request invented images', () async {+ final transport = QueueTransport([+ {'data': [], 'cnt_total': 0},+ ]);+ final gateway = SearchGateway(+ 'test-only-placeholder',+ transport: transport,+ );+ final result = await gateway.search('a dog on a beach');+ expect(result.matches, isEmpty);+ expect(transport.requests, hasLength(1));+ await gateway.close();+ });++ test(+ 'client cutoff rejects out-of-threshold beta results before downloading',+ () async {+ final transport = QueueTransport([+ {+ 'data': [+ {'title': 'street', 'score': .926, 'ts_unix': '0000000006000'},+ ],+ 'cnt_total': 1,+ },+ ]);+ final gateway = SearchGateway(+ 'test-only-placeholder',+ transport: transport,+ );+ final result = await gateway.search('a dog on a beach', maxDistance: .85);+ expect(result.matches, isEmpty);+ expect(result.total, 1); // Raw server count is not rewritten.+ expect(transport.requests, hasLength(1));+ await gateway.close();+ },+ );++ test('canceled search never reaches transport', () async {+ final transport = QueueTransport([]);+ final gateway = SearchGateway(+ 'test-only-placeholder',+ transport: transport,+ );+ final token = CancellationToken()..cancel();+ await expectLater(+ gateway.search('bus', cancellation: token),+ throwsA(isA<OperationCanceled>()),+ );+ expect(transport.requests, isEmpty);+ await gateway.close();+ });+}diff --git a/example/05_framebase/test/widget_test.dart b/example/05_framebase/test/widget_test.dartnew file mode 100644index 0000000..625e2e0--- /dev/null+++ b/example/05_framebase/test/widget_test.dart@@ -0,0 +1,134 @@+import 'package:flutter/material.dart';+import 'package:flutter_test/flutter_test.dart';+import 'package:framebase/main.dart';+import 'package:framebase/data/archive_controller.dart';+import 'package:framebase/data/search_gateway.dart';++void main() {+ testWidgets(+ 'search starts with two moments per video and expands on request',+ (tester) async {+ final c = ArchiveController(persist: false);+ c.batch = SearchBatch(+ matches: [+ for (final second in [0, 10, 20, 30, 40])+ FrameMatch(+ row: const {'score': .7},+ filename: 'neighborhood_crossing',+ timestamp: '$second',+ seconds: second.toDouble(),+ ),+ ],+ total: 5,+ serverMs: 10,+ roundTripMs: 20,+ imageMs: 0,+ );+ await tester.pumpWidget(MaterialApp(home: SearchPage(archive: c)));+ await tester.pumpAndSettle();+ expect(find.byType(MomentTile), findsNWidgets(2));+ await tester.tap(find.byKey(const Key('expand_neighborhood_crossing')));+ await tester.pumpAndSettle();+ expect(find.byType(MomentTile), findsNWidgets(5));+ expect(find.textContaining('ms'), findsNothing);+ c.dispose();+ },+ );+ test(+ 'invalid runtime key resets connecting and never appears in error',+ () async {+ final c = ArchiveController(persist: false);+ expect(await c.connect('invalid\nkey'), isFalse);+ expect(c.connecting, isFalse);+ expect(c.connected, isFalse);+ expect(c.notice, isNot(contains('invalid\nkey')));+ c.dispose();+ },+ );+ testWidgets('library is content first with no dashboard decoration', (+ tester,+ ) async {+ final c = ArchiveController(persist: false);+ await tester.pumpWidget(FramebaseApp(controller: c));+ await tester.pumpAndSettle();+ expect(find.text('Framebase'), findsOneWidget);+ expect(find.byType(VideoRow), findsWidgets);+ expect(c.clips.length, 3);+ for (final label in [+ 'LIVE',+ 'COLLECTION / 01',+ 'STREET ARCHIVE',+ 'Activity',+ 'Connected',+ 'Distance ≤ 0.85',+ ]) {+ expect(find.text(label), findsNothing);+ }+ expect(find.byType(NavigationBar), findsNothing);+ await tester.tap(find.byKey(const Key('open_search')));+ await tester.pumpAndSettle();+ expect(find.text('Try a search'), findsOneWidget);+ expect(find.byType(MomentTile), findsNothing);+ await tester.enterText(find.byType(TextField), 'a bus');+ await tester.pumpAndSettle();+ await tester.tap(find.byKey(const Key('run_search')));+ await tester.pumpAndSettle();+ final input = tester.widget<TextField>(find.byKey(const Key('api_key')));+ expect(input.obscureText, isTrue);+ expect(input.enableSuggestions, isFalse);+ c.dispose();+ });+ testWidgets('320px layout and secondary history route', (tester) async {+ tester.view.physicalSize = const Size(320, 680);+ tester.view.devicePixelRatio = 1;+ addTearDown(tester.view.resetPhysicalSize);+ addTearDown(tester.view.resetDevicePixelRatio);+ final c = ArchiveController(persist: false);+ await tester.pumpWidget(FramebaseApp(controller: c));+ await tester.pumpAndSettle();+ expect(tester.takeException(), isNull);+ await tester.tap(find.byKey(const Key('library_menu')));+ await tester.pumpAndSettle();+ await tester.tap(find.text('Sync history'));+ await tester.pumpAndSettle();+ expect(find.text('No uploads or searches yet.'), findsOneWidget);+ expect(tester.takeException(), isNull);+ c.dispose();+ });+ test(+ 'nearby moments collapse per video while relevance order is preserved',+ () {+ FrameMatch hit(String name, double time) => FrameMatch(+ row: const {'score': .7},+ filename: name,+ timestamp: '$time',+ seconds: time,+ );+ final grouped = groupMoments([+ hit('one', 35),+ hit('one', 36),+ hit('two', 35),+ hit('one', 22),+ hit('one', 23),+ ]);+ expect(grouped.keys, ['one', 'two']);+ expect(grouped['one']!.map((m) => m.seconds), [35, 22]);+ expect(grouped['two'], hasLength(1));+ },+ );+ test('relative video timestamps and score meaning', () {+ expect(timestamp13({'ts_unix': '0000000035000'}), '0000000035000');+ expect(hitSeconds({'ts_unix': '0000000035000'}), 35);+ expect(hitSeconds({'ts_unix': '1788510000000'}), isNull);+ expect(hitSeconds({'ts_unix': '-5'}), isNull);+ const hit = FrameMatch(+ row: {'score': .92, 'score_ui': 1.0},+ filename: 'test',+ timestamp: '0',+ );+ expect(hit.distance, .92);+ expect(timeLabel(75), '01:15');+ expect(indexDone('success'), isTrue);+ expect(indexFailed('failed'), isTrue);+ });+}diff --git a/example/readme.md b/example/readme.mdindex f9c67a7..db394fa 100644--- a/example/readme.md+++ b/example/readme.md@@ -23,6 +23,7 @@ upload, cancellation, and error handling.| [`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. || [`04_example`](04_example/README.md) | Searchable-video demo app | Traffic-camera moment search and multi-video visual discovery in one Android/iOS application. |+| [`05_framebase`](05_framebase/README.md) | Product-style street archive | Runtime authentication, bundled and picked video upload, visual indexing, grouped semantic results, and local playback at the returned timestamp. |## SDK capabilities