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
0efc06ca
Unverified
Commit
0efc06ca
authored
Jan 18, 2018
by
xster
Committed by
GitHub
Jan 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable cocoapods stats in Podfile template (#13945)
parent
521bdaea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
20 deletions
+42
-20
Podfile
examples/flutter_gallery/ios/Podfile
+36
-20
Podfile-objc
packages/flutter_tools/templates/cocoapods/Podfile-objc
+3
-0
Podfile-swift
packages/flutter_tools/templates/cocoapods/Podfile-swift
+3
-0
No files found.
examples/flutter_gallery/ios/Podfile
View file @
0efc06ca
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
if
ENV
[
'FLUTTER_FRAMEWORK_DIR'
]
==
nil
abort
(
'Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework'
)
end
target
'Runner'
do
use_frameworks!
# Pods for Runner
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV
[
'COCOAPODS_DISABLE_STATS'
]
=
'true'
# Flutter Pods
pod
'Flutter'
,
:path
=>
ENV
[
'FLUTTER_FRAMEWORK_DIR'
]
if
File
.
exists?
'../.flutter-plugins'
flutter_root
=
File
.
expand_path
(
'..'
)
File
.
foreach
(
'../.flutter-plugins'
)
{
|
line
|
plugin
=
line
.
split
(
pattern
=
'='
)
def
parse_KV_file
(
file
,
seperator
=
'='
)
file_abs_path
=
File
.
expand_path
(
file
)
if
!
File
.
exists?
file_abs_path
return
[];
end
pods_ary
=
[]
skip_line_start_symbols
=
[
"#"
,
"/"
]
File
.
foreach
(
file_abs_path
)
{
|
line
|
next
if
skip_line_start_symbols
.
any?
{
|
symbol
|
line
=~
/^\s*
#{
symbol
}
/
}
plugin
=
line
.
split
(
pattern
=
seperator
)
if
plugin
.
length
==
2
name
=
plugin
[
0
].
strip
()
pod
name
=
plugin
[
0
].
strip
()
path
=
plugin
[
1
].
strip
()
resolved_path
=
File
.
expand_path
(
"
#{
path
}
/ios"
,
flutter_root
)
pod
name
,
:path
=>
resolved_path
podpath
=
File
.
expand_path
(
"
#{
path
}
"
,
file_abs_path
)
pod
s_ary
.
push
({
:name
=>
podname
,
:path
=>
podpath
});
else
puts
"Invalid plugin specification:
#{
line
}
"
end
}
}
return
pods_ary
end
target
'Runner'
do
# Flutter Pods
generated_xcode_build_settings
=
parse_KV_file
(
"./Flutter/Generated.xcconfig"
)
if
generated_xcode_build_settings
.
empty?
puts
"Generated.xcconfig must exist. If you're running pod install manually, make sure flutter build or flutter run is executed once first."
end
generated_xcode_build_settings
.
map
{
|
p
|
if
p
[
:name
]
==
'FLUTTER_FRAMEWORK_DIR'
pod
'Flutter'
,
:path
=>
p
[
:path
]
end
}
# Plugin Pods
plugin_pods
=
parse_KV_file
(
"../.flutter-plugins"
)
plugin_pods
.
map
{
|
p
|
pod
p
[
:name
],
:path
=>
File
.
expand_path
(
"ios"
,
p
[
:path
])
}
end
post_install
do
|
installer
|
...
...
@@ -35,4 +51,4 @@ post_install do |installer|
config
.
build_settings
[
'ENABLE_BITCODE'
]
=
'NO'
end
end
end
end
\ No newline at end of file
packages/flutter_tools/templates/cocoapods/Podfile-objc
View file @
0efc06ca
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
def parse_KV_file(file,seperator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
...
...
packages/flutter_tools/templates/cocoapods/Podfile-swift
View file @
0efc06ca
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
def parse_KV_file(file,seperator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
...
...
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