Bumps [espresso](https://github.com/flutter/packages/tree/main/packages) from 0.3.0+10 to 0.4.0. <details> <summary>Commits</summary> <ul> <li><a href="007ec6676f"><code>007ec66</code></a> Update espresso dependencies (<a href="https://github.com/flutter/packages/tree/main/packages/issues/7048">#7048</a>)</li> <li><a href="01527175e3"><code>0152717</code></a> [camera] Fix iOS torch mode regression (<a href="https://github.com/flutter/packages/tree/main/packages/issues/7085">#7085</a>)</li> <li><a href="4063b20243"><code>4063b20</code></a> [google_maps_flutter] Convert Obj-C->Dart calls to Pigeon (<a href="https://github.com/flutter/packages/tree/main/packages/issues/7086">#7086</a>)</li> <li><a href="8e6ac90614"><code>8e6ac90</code></a> [camera_avfoundation] fix sample times not being numeric after pause/resume. ...</li> <li><a href="5cc641822e"><code>5cc6418</code></a> [camera] Convert Windows to Pigeon (<a href="https://github.com/flutter/packages/tree/main/packages/issues/6925">#6925</a>)</li> <li><a href="f34184e658"><code>f34184e</code></a> [camera] Deprecate <code>maxDuration</code> in platform interface (<a href="https://github.com/flutter/packages/tree/main/packages/issues/7078">#7078</a>)</li> <li><a href="edb38e0eb4"><code>edb38e0</code></a> [google_maps_flutter] Semi-convert remaining iOS host API calls to Pigeon (<a href="https://github.com/flutter/packages/tree/main/packages/issues/7">#7</a>...</li> <li><a href="47a92dbdea"><code>47a92db</code></a> [path_provider] Remove <code>win32</code> (<a href="https://github.com/flutter/packages/tree/main/packages/issues/7073">#7073</a>)</li> <li><a href="9627de9141"><code>9627de9</code></a> [google_maps_flutter] Move iOS inspector to Pigeon (<a href="https://github.com/flutter/packages/tree/main/packages/issues/6937">#6937</a>)</li> <li><a href="cbfffa6502"><code>cbfffa6</code></a> [camera]: Bump com.android.tools.build:gradle from 7.3.0 to 8.5.0 in /package...</li> <li>Additional commits viewable in <a href="https://github.com/flutter/packages/commits/espresso-v0.4.0/packages">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
prebuild_module
Embeds a full screen instance of Flutter as a prebuilt library that can be loaded into an existing iOS or Android app.
Description
These apps are essentially identical to android_fullscreen and
ios_fullscreen, respectively, with one key difference. Rather than being set
up to compile the flutter_module from source each time the app is built, they
import a the module as a prebuilt aar (Android) or framework (iOS). This can
be useful for teams that don't want to require every developer working on the
app to have the Flutter toolchain installed on their local machines.
Prior to building either project for the first time, the flutter_module needs
to be built.
Building for android_using_prebuilt_module
To build flutter_module as an aar, run this command from the flutter_module
directory:
flutter build aar
It will produce aar files for debug, profile, and release mode. The Android
app is configured to import the appropriate aar based on its own build
configuration, so if you build a debug version of the app, it will look
for the debug aar, and so on.
If the flutter_module project is updated, the aar files must be rebuilt via
one of the commands above in order for those changes to appear in the app.
Building for ios_using_prebuilt_module
To build flutter_module as a set of frameworks, run this command from the
flutter_module directory:
flutter build ios-framework --xcframework --output=../ios_using_prebuilt_module/Flutter
This will output frameworks for debug, profile, and release modes into
ios_using_prebuilt_module/Flutter. The project file for
ios_using_prebuilt_module has been configured to find the frameworks there.
For more information on how to modify an existing iOS app to reference prebuilt Flutter frameworks, see this article in the Flutter GitHub wiki:
https://flutter.dev/docs/development/add-to-app/ios/project-setup
tl;dr
If you're just looking to get up and running quickly, these bash commands will fetch packages and set up dependencies (note that the above commands assume you're building for both iOS and Android, with both toolchains installed):
#!/bin/bash
set -e
cd flutter_module/
flutter pub get
# For Android builds:
flutter build aar
open -a "Android Studio" ../android_using_prebuilt_module/ # macOS only
# Or open the ../android_using_prebuilt_module folder in Android Studio for
# other platforms.
# For iOS builds:
flutter build ios-framework --xcframework --output=../ios_using_prebuilt_module/Flutter
open ../ios_using_prebuilt_module/IOSUsingPrebuiltModule.xcodeproj
Requirements
- Flutter
- Android
- Android Studio
- iOS
- Xcode
- Cocoapods
Questions/issues
See add_to_app/README.md for further help.