Unverified Commit 6c6c7ba8 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] ensure x64 is built if target-platforms is not specified (#62096)

In the add-2-app case, users may not specify the android target platforms field, but this only defaults to arm builds. Add x64 to the default list.

Fixes #62095
parent 523afbe5
...@@ -51,6 +51,8 @@ Future<void> main() async { ...@@ -51,6 +51,8 @@ Future<void> main() async {
'lib/armeabi-v7a/libapp.so', 'lib/armeabi-v7a/libapp.so',
'lib/arm64-v8a/libflutter.so', 'lib/arm64-v8a/libflutter.so',
'lib/arm64-v8a/libapp.so', 'lib/arm64-v8a/libapp.so',
'lib/x86_64/libflutter.so',
'lib/x86_64/libapp.so',
], apkFiles); ], apkFiles);
checkCollectionDoesNotContain<String>(debugAssets, apkFiles); checkCollectionDoesNotContain<String>(debugAssets, apkFiles);
......
...@@ -77,6 +77,7 @@ class FlutterPlugin implements Plugin<Project> { ...@@ -77,6 +77,7 @@ class FlutterPlugin implements Plugin<Project> {
private static final List DEFAULT_PLATFORMS = [ private static final List DEFAULT_PLATFORMS = [
PLATFORM_ARM32, PLATFORM_ARM32,
PLATFORM_ARM64, PLATFORM_ARM64,
PLATFORM_X86_64,
] ]
// The name prefix for flutter builds. This is used to identify gradle tasks // The name prefix for flutter builds. This is used to identify gradle tasks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment