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
c182e0e5
Unverified
Commit
c182e0e5
authored
Nov 27, 2017
by
Todd Volkert
Committed by
GitHub
Nov 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused `pushFile` methods in ios classes (#13215)
parent
c25558d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
46 deletions
+0
-46
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+0
-25
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+0
-21
No files found.
packages/flutter_tools/lib/src/ios/devices.dart
View file @
c182e0e5
...
...
@@ -43,16 +43,10 @@ class IOSDevice extends Device {
IOSDevice
(
String
id
,
{
this
.
name
,
String
sdkVersion
})
:
_sdkVersion
=
sdkVersion
,
super
(
id
)
{
_installerPath
=
_checkForCommand
(
'ideviceinstaller'
);
_iproxyPath
=
_checkForCommand
(
'iproxy'
);
_pusherPath
=
_checkForCommand
(
'ios-deploy'
,
'To copy files to iOS devices, please install ios-deploy. To install, run:
\n
'
'brew install ios-deploy'
);
}
String
_installerPath
;
String
_iproxyPath
;
String
_pusherPath
;
final
String
_sdkVersion
;
...
...
@@ -302,25 +296,6 @@ class IOSDevice extends Device {
return
false
;
}
Future
<
bool
>
pushFile
(
ApplicationPackage
app
,
String
localFile
,
String
targetFile
)
async
{
if
(
platform
.
isMacOS
)
{
runSync
(<
String
>[
_pusherPath
,
'-t'
,
'1'
,
'--bundle_id'
,
app
.
id
,
'--upload'
,
localFile
,
'--to'
,
targetFile
]);
return
true
;
}
else
{
return
false
;
}
}
@override
Future
<
TargetPlatform
>
get
targetPlatform
async
=>
TargetPlatform
.
ios
;
...
...
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
c182e0e5
...
...
@@ -211,17 +211,6 @@ class IOSSimulator extends Device {
String
get
xcrunPath
=>
fs
.
path
.
join
(
'/usr'
,
'bin'
,
'xcrun'
);
String
_getSimulatorPath
()
{
return
fs
.
path
.
join
(
homeDirPath
,
'Library'
,
'Developer'
,
'CoreSimulator'
,
'Devices'
,
id
);
}
String
_getSimulatorAppHomeDirectory
(
ApplicationPackage
app
)
{
final
String
simulatorPath
=
_getSimulatorPath
();
if
(
simulatorPath
==
null
)
return
null
;
return
fs
.
path
.
join
(
simulatorPath
,
'data'
);
}
@override
Future
<
bool
>
isAppInstalled
(
ApplicationPackage
app
)
{
return
SimControl
.
instance
.
isInstalled
(
id
,
app
.
id
);
...
...
@@ -425,16 +414,6 @@ class IOSSimulator extends Device {
return
false
;
}
Future
<
bool
>
pushFile
(
ApplicationPackage
app
,
String
localFile
,
String
targetFile
)
async
{
if
(
platform
.
isMacOS
)
{
final
String
simulatorHomeDirectory
=
_getSimulatorAppHomeDirectory
(
app
);
await
runCheckedAsync
(<
String
>[
'cp'
,
localFile
,
fs
.
path
.
join
(
simulatorHomeDirectory
,
targetFile
)]);
return
true
;
}
return
false
;
}
String
get
logFilePath
{
return
fs
.
path
.
join
(
homeDirPath
,
'Library'
,
'Logs'
,
'CoreSimulator'
,
id
,
'system.log'
);
}
...
...
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