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
c8377d74
Commit
c8377d74
authored
Mar 21, 2016
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont differentiate between ios_arm and ios_x64 in flutter_tools
All artifacts for iOS are universal.
parent
3a9956fb
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
26 deletions
+15
-26
application_package.dart
packages/flutter_tools/lib/src/application_package.dart
+2
-4
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+2
-4
build_configuration.dart
packages/flutter_tools/lib/src/build_configuration.dart
+1
-2
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+1
-2
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+1
-1
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+1
-1
flutter_command_runner.dart
.../flutter_tools/lib/src/runner/flutter_command_runner.dart
+5
-10
mocks.dart
packages/flutter_tools/test/src/mocks.dart
+2
-2
No files found.
packages/flutter_tools/lib/src/application_package.dart
View file @
c8377d74
...
...
@@ -110,8 +110,7 @@ class ApplicationPackageStore {
switch
(
platform
)
{
case
TargetPlatform
.
android_arm
:
return
android
;
case
TargetPlatform
.
ios_arm
:
case
TargetPlatform
.
ios_x64
:
case
TargetPlatform
.
ios
:
return
iOS
;
case
TargetPlatform
.
darwin_x64
:
case
TargetPlatform
.
linux_x64
:
...
...
@@ -130,8 +129,7 @@ class ApplicationPackageStore {
android
=
new
AndroidApk
.
fromBuildConfiguration
(
config
);
break
;
case
TargetPlatform
.
ios_arm
:
case
TargetPlatform
.
ios_x64
:
case
TargetPlatform
.
ios
:
iOS
??=
new
IOSApp
.
fromBuildConfiguration
(
config
);
break
;
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
c8377d74
...
...
@@ -25,10 +25,8 @@ String getNameForTargetPlatform(TargetPlatform platform) {
switch
(
platform
)
{
case
TargetPlatform
.
android_arm
:
return
'android-arm'
;
case
TargetPlatform
.
ios_arm
:
return
'ios-arm'
;
case
TargetPlatform
.
ios_x64
:
return
'ios-x64'
;
case
TargetPlatform
.
ios
:
return
'ios'
;
case
TargetPlatform
.
darwin_x64
:
return
'darwin-x64'
;
case
TargetPlatform
.
linux_x64
:
...
...
packages/flutter_tools/lib/src/build_configuration.dart
View file @
c8377d74
...
...
@@ -21,8 +21,7 @@ enum HostPlatform {
enum
TargetPlatform
{
android_arm
,
ios_arm
,
ios_x64
,
ios
,
darwin_x64
,
linux_x64
}
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
c8377d74
...
...
@@ -137,8 +137,7 @@ String _getMissingPackageHintForPlatform(TargetPlatform platform) {
switch
(
platform
)
{
case
TargetPlatform
.
android_arm
:
return
'Is your project missing an android/AndroidManifest.xml?'
;
case
TargetPlatform
.
ios_arm
:
case
TargetPlatform
.
ios_x64
:
case
TargetPlatform
.
ios
:
return
'Is your project missing an ios/Info.plist?'
;
default
:
return
null
;
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
c8377d74
...
...
@@ -229,7 +229,7 @@ class IOSDevice extends Device {
}
@override
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
_arm
;
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
;
@override
DeviceLogReader
get
logReader
{
...
...
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
c8377d74
...
...
@@ -573,7 +573,7 @@ class IOSSimulator extends Device {
}
@override
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
_x64
;
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
;
@override
DeviceLogReader
get
logReader
{
...
...
packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
View file @
c8377d74
...
...
@@ -286,12 +286,7 @@ class FlutterCommandRunner extends CommandRunner {
if
(
hostPlatform
==
HostPlatform
.
mac
)
{
configs
.
add
(
new
BuildConfiguration
.
prebuilt
(
hostPlatform:
HostPlatform
.
mac
,
targetPlatform:
TargetPlatform
.
ios_arm
));
configs
.
add
(
new
BuildConfiguration
.
prebuilt
(
hostPlatform:
HostPlatform
.
mac
,
targetPlatform:
TargetPlatform
.
ios_x64
targetPlatform:
TargetPlatform
.
ios
));
}
}
else
{
...
...
@@ -323,7 +318,7 @@ class FlutterCommandRunner extends CommandRunner {
configs
.
add
(
new
BuildConfiguration
.
local
(
type:
BuildType
.
debug
,
hostPlatform:
hostPlatform
,
targetPlatform:
TargetPlatform
.
ios
_arm
,
targetPlatform:
TargetPlatform
.
ios
,
enginePath:
enginePath
,
buildPath:
globalResults
[
'ios-debug-build-path'
]
));
...
...
@@ -331,7 +326,7 @@ class FlutterCommandRunner extends CommandRunner {
configs
.
add
(
new
BuildConfiguration
.
local
(
type:
BuildType
.
debug
,
hostPlatform:
hostPlatform
,
targetPlatform:
TargetPlatform
.
ios
_x64
,
targetPlatform:
TargetPlatform
.
ios
,
enginePath:
enginePath
,
buildPath:
globalResults
[
'ios-sim-debug-build-path'
]
));
...
...
@@ -360,7 +355,7 @@ class FlutterCommandRunner extends CommandRunner {
configs
.
add
(
new
BuildConfiguration
.
local
(
type:
BuildType
.
release
,
hostPlatform:
hostPlatform
,
targetPlatform:
TargetPlatform
.
ios
_arm
,
targetPlatform:
TargetPlatform
.
ios
,
enginePath:
enginePath
,
buildPath:
globalResults
[
'ios-release-build-path'
]
));
...
...
@@ -368,7 +363,7 @@ class FlutterCommandRunner extends CommandRunner {
configs
.
add
(
new
BuildConfiguration
.
local
(
type:
BuildType
.
release
,
hostPlatform:
hostPlatform
,
targetPlatform:
TargetPlatform
.
ios
_x64
,
targetPlatform:
TargetPlatform
.
ios
,
enginePath:
enginePath
,
buildPath:
globalResults
[
'ios-sim-release-build-path'
]
));
...
...
packages/flutter_tools/test/src/mocks.dart
View file @
c8377d74
...
...
@@ -45,7 +45,7 @@ class MockAndroidDevice extends Mock implements AndroidDevice {
class
MockIOSDevice
extends
Mock
implements
IOSDevice
{
@override
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
_arm
;
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
;
@override
bool
isSupported
()
=>
true
;
...
...
@@ -53,7 +53,7 @@ class MockIOSDevice extends Mock implements IOSDevice {
class
MockIOSSimulator
extends
Mock
implements
IOSSimulator
{
@override
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
_x64
;
TargetPlatform
get
platform
=>
TargetPlatform
.
ios
;
@override
bool
isSupported
()
=>
true
;
...
...
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