Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
03a45dc3
Unverified
Commit
03a45dc3
authored
Oct 10, 2019
by
Jonah Williams
Committed by
GitHub
Oct 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for Android x86_64 ABI to Flutter (#42401)
parent
53636374
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
15 deletions
+22
-15
build.dart
packages/flutter_tools/lib/src/base/build.dart
+1
-0
build_info.dart
packages/flutter_tools/lib/src/build_info.dart
+1
-0
cache.dart
packages/flutter_tools/lib/src/cache.dart
+5
-0
build_aar.dart
packages/flutter_tools/lib/src/commands/build_aar.dart
+1
-1
build_aot.dart
packages/flutter_tools/lib/src/commands/build_aot.dart
+1
-1
build_apk.dart
packages/flutter_tools/lib/src/commands/build_apk.dart
+1
-1
build_appbundle.dart
packages/flutter_tools/lib/src/commands/build_appbundle.dart
+2
-2
gradle_test.dart
...flutter_tools/test/general.shard/android/gradle_test.dart
+2
-2
build_apk_test.dart
...ter_tools/test/general.shard/commands/build_apk_test.dart
+4
-4
build_appbundle_test.dart
...ols/test/general.shard/commands/build_appbundle_test.dart
+4
-4
No files found.
packages/flutter_tools/lib/src/base/build.dart
View file @
03a45dc3
...
...
@@ -327,6 +327,7 @@ class AOTSnapshotter {
return
const
<
TargetPlatform
>[
TargetPlatform
.
android_arm
,
TargetPlatform
.
android_arm64
,
TargetPlatform
.
android_x64
,
TargetPlatform
.
ios
,
TargetPlatform
.
darwin_x64
,
].
contains
(
platform
);
...
...
packages/flutter_tools/lib/src/build_info.dart
View file @
03a45dc3
...
...
@@ -90,6 +90,7 @@ class AndroidBuildInfo {
this
.
targetArchs
=
const
<
AndroidArch
>[
AndroidArch
.
armeabi_v7a
,
AndroidArch
.
arm64_v8a
,
AndroidArch
.
x86_64
,
],
this
.
splitPerAbi
=
false
,
this
.
shrink
=
false
,
...
...
packages/flutter_tools/lib/src/cache.dart
View file @
03a45dc3
...
...
@@ -1193,6 +1193,8 @@ const List<List<String>> _osxBinaryDirs = <List<String>>[
<
String
>[
'android-arm-release/darwin-x64'
,
'android-arm-release/darwin-x64.zip'
],
<
String
>[
'android-arm64-profile/darwin-x64'
,
'android-arm64-profile/darwin-x64.zip'
],
<
String
>[
'android-arm64-release/darwin-x64'
,
'android-arm64-release/darwin-x64.zip'
],
<
String
>[
'android-x64-profile/darwin-x64'
,
'android-x64-profile/darwin-x64.zip'
],
<
String
>[
'android-x64-release/darwin-x64'
,
'android-x64-release/darwin-x64.zip'
],
];
const
List
<
List
<
String
>>
_linuxBinaryDirs
=
<
List
<
String
>>[
...
...
@@ -1200,6 +1202,7 @@ const List<List<String>> _linuxBinaryDirs = <List<String>>[
<
String
>[
'android-arm-release/linux-x64'
,
'android-arm-release/linux-x64.zip'
],
<
String
>[
'android-arm64-profile/linux-x64'
,
'android-arm64-profile/linux-x64.zip'
],
<
String
>[
'android-arm64-release/linux-x64'
,
'android-arm64-release/linux-x64.zip'
],
<
String
>[
'android-x64-profile/linux-x64'
,
'android-x64-profile/linux-x64.zip'
],
<
String
>[
'android-x64-release/linux-x64'
,
'android-x64-release/linux-x64.zip'
],
];
...
...
@@ -1208,6 +1211,8 @@ const List<List<String>> _windowsBinaryDirs = <List<String>>[
<
String
>[
'android-arm-release/windows-x64'
,
'android-arm-release/windows-x64.zip'
],
<
String
>[
'android-arm64-profile/windows-x64'
,
'android-arm64-profile/windows-x64.zip'
],
<
String
>[
'android-arm64-release/windows-x64'
,
'android-arm64-release/windows-x64.zip'
],
<
String
>[
'android-x64-profile/windows-x64'
,
'android-x64-profile/windows-x64.zip'
],
<
String
>[
'android-x64-release/windows-x64'
,
'android-x64-release/windows-x64.zip'
],
];
const
List
<
List
<
String
>>
_iosBinaryDirs
=
<
List
<
String
>>[
...
...
packages/flutter_tools/lib/src/commands/build_aar.dart
View file @
03a45dc3
...
...
@@ -20,7 +20,7 @@ class BuildAarCommand extends BuildSubCommand {
argParser
..
addMultiOption
(
'target-platform'
,
splitCommas:
true
,
defaultsTo:
<
String
>[
'android-arm'
,
'android-arm64'
],
defaultsTo:
<
String
>[
'android-arm'
,
'android-arm64'
,
'android-x64'
],
allowed:
<
String
>[
'android-arm'
,
'android-arm64'
,
'android-x86'
,
'android-x64'
],
help:
'The target platform for which the project is compiled.'
,
)
...
...
packages/flutter_tools/lib/src/commands/build_aot.dart
View file @
03a45dc3
...
...
@@ -31,7 +31,7 @@ class BuildAotCommand extends BuildSubCommand with TargetPlatformBasedDevelopmen
..
addOption
(
'output-dir'
,
defaultsTo:
getAotBuildDirectory
())
..
addOption
(
'target-platform'
,
defaultsTo:
'android-arm'
,
allowed:
<
String
>[
'android-arm'
,
'android-arm64'
,
'ios'
],
allowed:
<
String
>[
'android-arm'
,
'android-arm64'
,
'ios'
,
'android-x64'
],
)
..
addFlag
(
'quiet'
,
defaultsTo:
false
)
..
addFlag
(
'report-timings'
,
...
...
packages/flutter_tools/lib/src/commands/build_apk.dart
View file @
03a45dc3
...
...
@@ -31,7 +31,7 @@ class BuildApkCommand extends BuildSubCommand {
)
..
addMultiOption
(
'target-platform'
,
splitCommas:
true
,
defaultsTo:
<
String
>[
'android-arm'
,
'android-arm64'
],
defaultsTo:
<
String
>[
'android-arm'
,
'android-arm64'
,
'android-x64'
],
allowed:
<
String
>[
'android-arm'
,
'android-arm64'
,
'android-x86'
,
'android-x64'
],
help:
'The target platform for which the app is compiled.'
,
);
...
...
packages/flutter_tools/lib/src/commands/build_appbundle.dart
View file @
03a45dc3
...
...
@@ -25,8 +25,8 @@ class BuildAppBundleCommand extends BuildSubCommand {
..
addFlag
(
'track-widget-creation'
,
negatable:
false
,
hide:
!
verboseHelp
)
..
addMultiOption
(
'target-platform'
,
splitCommas:
true
,
defaultsTo:
<
String
>[
'android-arm'
,
'android-arm64'
],
allowed:
<
String
>[
'android-arm'
,
'android-arm64'
],
defaultsTo:
<
String
>[
'android-arm'
,
'android-arm64'
,
'android-x64'
],
allowed:
<
String
>[
'android-arm'
,
'android-arm64'
,
'android-x64'
],
help:
'The target platform for which the app is compiled.'
,
);
}
...
...
packages/flutter_tools/test/general.shard/android/gradle_test.dart
View file @
03a45dc3
...
...
@@ -1267,7 +1267,7 @@ plugin2=${plugin2.path}
'-Pflutter-root=
$flutterRoot
'
,
'-Poutput-dir=
${buildDirectory.path}
'
,
'-Pis-plugin=true'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'assembleAarRelease'
,
],
environment:
anyNamed
(
'environment'
),
...
...
@@ -1281,7 +1281,7 @@ plugin2=${plugin2.path}
'-Pflutter-root=
$flutterRoot
'
,
'-Poutput-dir=
${buildDirectory.path}
'
,
'-Pis-plugin=true'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'assembleAarRelease'
,
],
environment:
anyNamed
(
'environment'
),
...
...
packages/flutter_tools/test/general.shard/commands/build_apk_test.dart
View file @
03a45dc3
...
...
@@ -42,7 +42,7 @@ void main() {
final
BuildApkCommand
command
=
await
runBuildApkCommand
(
projectPath
);
expect
(
await
command
.
usageValues
,
containsPair
(
CustomDimensions
.
commandBuildApkTargetPlatform
,
'android-arm,android-arm64'
));
containsPair
(
CustomDimensions
.
commandBuildApkTargetPlatform
,
'android-arm,android-arm64
,android-x64
'
));
},
overrides:
<
Type
,
Generator
>{
AndroidBuilder:
()
=>
FakeAndroidBuilder
(),
...
...
@@ -209,7 +209,7 @@ flutter:
'-Ptarget=
${fs.path.join(tempDir.path, 'flutter_project', 'lib', 'main.dart')}
'
,
'-Ptrack-widget-creation=false'
,
'-Pshrink=true'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'assembleRelease'
,
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
...
...
@@ -241,7 +241,7 @@ flutter:
'-q'
,
'-Ptarget=
${fs.path.join(tempDir.path, 'flutter_project', 'lib', 'main.dart')}
'
,
'-Ptrack-widget-creation=false'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'assembleRelease'
,
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
...
...
@@ -267,7 +267,7 @@ flutter:
'-Ptarget=
${fs.path.join(tempDir.path, 'flutter_project', 'lib', 'main.dart')}
'
,
'-Ptrack-widget-creation=false'
,
'-Pshrink=true'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'assembleRelease'
,
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
...
...
packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart
View file @
03a45dc3
...
...
@@ -42,7 +42,7 @@ void main() {
final
BuildAppBundleCommand
command
=
await
runBuildAppBundleCommand
(
projectPath
);
expect
(
await
command
.
usageValues
,
containsPair
(
CustomDimensions
.
commandBuildAppBundleTargetPlatform
,
'android-arm,android-arm64'
));
containsPair
(
CustomDimensions
.
commandBuildAppBundleTargetPlatform
,
'android-arm,android-arm64
,android-x64
'
));
},
overrides:
<
Type
,
Generator
>{
AndroidBuilder:
()
=>
FakeAndroidBuilder
(),
...
...
@@ -198,7 +198,7 @@ flutter:
'-Ptarget=
${fs.path.join(tempDir.path, 'flutter_project', 'lib', 'main.dart')}
'
,
'-Ptrack-widget-creation=false'
,
'-Pshrink=true'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'bundleRelease'
,
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
...
...
@@ -232,7 +232,7 @@ flutter:
'-q'
,
'-Ptarget=
${fs.path.join(tempDir.path, 'flutter_project', 'lib', 'main.dart')}
'
,
'-Ptrack-widget-creation=false'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'bundleRelease'
,
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
...
...
@@ -258,7 +258,7 @@ flutter:
'-Ptarget=
${fs.path.join(tempDir.path, 'flutter_project', 'lib', 'main.dart')}
'
,
'-Ptrack-widget-creation=false'
,
'-Pshrink=true'
,
'-Ptarget-platform=android-arm,android-arm64'
,
'-Ptarget-platform=android-arm,android-arm64
,android-x64
'
,
'bundleRelease'
,
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment