text
stringlengths 1
474
|
|---|
Next build number
|
Xcode Cloud defaults the build number for new workflows to 1 and increments
|
it per successful build. If you’re using an existing app with a higher build
|
number, you’ll need to configure Xcode Cloud to use the correct build number
|
for its builds by simply specifying the Next Build Number in your iteration.Check out Setting the next build number for Xcode Cloud builds for more
|
information.
|
<topic_end>
|
<topic_start>Add Flutter to an existing app
|
<topic_end>
|
<topic_start>
|
Add-to-app
|
It’s sometimes not practical to rewrite your entire application in
|
Flutter all at once. For those situations,
|
Flutter can be integrated into your existing
|
application piecemeal, as a library or module.
|
That module can then be imported into your Android or iOS
|
(currently supported platforms) app to render a part of your
|
app’s UI in Flutter. Or, just to run shared Dart logic.In a few steps, you can bring the productivity and the expressiveness of
|
Flutter into your own app.The add-to-app feature supports integrating multiple instances of any screen size.
|
This can help scenarios such as a hybrid navigation stack with mixed
|
native and Flutter screens, or a page with multiple partial-screen Flutter
|
views.Having multiple Flutter instances allows each instance to maintain
|
independent application and UI state while using minimal
|
memory resources. See more in the multiple Flutters page.<topic_end>
|
<topic_start>
|
Supported features
|
<topic_end>
|
<topic_start>
|
Add to Android applications
|
<topic_end>
|
<topic_start>
|
Add to iOS applications
|
See our add-to-app GitHub Samples repository
|
for sample projects in Android and iOS that import
|
a Flutter module for UI.<topic_end>
|
<topic_start>
|
Get started
|
To get started, see our project integration guide for
|
Android and iOS:<topic_end>
|
<topic_start>
|
API usage
|
After Flutter is integrated into your project,
|
see our API usage guides at the following links:<topic_end>
|
<topic_start>
|
Limitations
|
<topic_end>
|
<topic_start>Add Flutter to Android
|
<topic_end>
|
<topic_start>
|
Topics
|
<topic_end>
|
<topic_start>Integrate a Flutter module into your Android project
|
Flutter can be embedded into your existing Android
|
application piecemeal, as a source code Gradle
|
subproject or as AARs.The integration flow can be done using the Android Studio
|
IDE with the Flutter plugin or manually.warning Warning
|
Your existing Android app might support architectures
|
such as mips or x86. Flutter currently only supports
|
building ahead-of-time (AOT) compiled libraries
|
for x86_64, armeabi-v7a, and arm64-v8a.Consider using the abiFilters Android Gradle
|
Plugin API to limit the supported architectures in your APK.
|
Doing this avoids a missing libflutter.so runtime crash,
|
for example:
|
<code_start>android {
|
//...
|
defaultConfig {
|
ndk {
|
// Filter for architectures supported by Flutter.
|
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
|
}
|
}
|
}<code_end>
|
The Flutter engine has an x86 and x86_64 version.
|
When using an emulator in debug Just-In-Time (JIT) mode,
|
the Flutter module still runs correctly.<topic_end>
|
<topic_start>
|
Integrate your Flutter module
|
<topic_end>
|
<topic_start>Integrate with Android Studio
|
The Android Studio IDE can help integrate your Flutter module.
|
Using Android Studio, you can edit both your Android and Flutter code
|
in the same IDE.You can also use IntelliJ Flutter plugin functionality like
|
Dart code completion, hot reload, and widget inspector.Android Studio supports add-to-app flows on Android Studio 2022.2 or later
|
with the Flutter plugin for IntelliJ.
|
To build your app, the Android Studio plugin configures your
|
Android project to add your Flutter module as a dependency.Open your Android project in Android Studio.Go to File > New > New Project….
|
The New Project dialog displays.Click Flutter.If asked to provide your Flutter SDK path, do so and click Next.Complete the configuration of your Flutter module.If you have an existing project:If you need to create a new Flutter project:Click Finish.lightbulb Tip
|
By default, your project’s Project pane might show the ‘Android’ view.
|
If you can’t see your new Flutter files in the Project pane,
|
set your Project pane to display Project Files.
|
This shows all files without filtering.<topic_end>
|
<topic_start>Integrate without Android Studio
|
To integrate a Flutter module with an existing Android app
|
manually, without using Flutter’s Android Studio plugin,
|
follow these steps:<topic_end>
|
<topic_start>Create a Flutter module
|
Let’s assume that you have an existing Android app at
|
some/path/MyApp, and that you want your Flutter
|
project as a sibling:This creates a some/path/flutter_module/ Flutter module project
|
with some Dart code to get you started and an .android/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.