Skip to content

Commit 0024df9

Browse files
authored
Add the leak_vm meta-data in add-to-app sample. (flutter#996)
1 parent e20b4a1 commit 0024df9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@
3737
android:hardwareAccelerated="true"
3838
android:windowSoftInputMode="adjustResize"
3939
/>
40+
<!-- Whether leave or clean up the VM after the last shell shuts down. If your want to let
41+
your app destroy the last shell and re-create shells more quickly, set it to true,
42+
otherwise if you want to clean up the memory of the leak VM, set it to false.
43+
(This setting works after the Flutter 2.10 stable version.)
44+
View https://github.com/flutter/flutter/issues/95903 for more detail. -->
45+
<meta-data
46+
android:name="io.flutter.embedding.android.LeakVM"
47+
android:value="false"
48+
/>
4049
</application>
4150

4251
</manifest>

0 commit comments

Comments
 (0)