@@ -29,15 +29,6 @@ def aztec
2929 pod 'WordPress-Editor-iOS' , '~> 1.19.11'
3030end
3131
32- def gravatar
33- # pod 'Gravatar', path: '../Gravatar-SDK-iOS'
34- # pod 'GravatarUI', path: '../Gravatar-SDK-iOS'
35- # pod 'Gravatar', git: 'https://github.com/Automattic/Gravatar-SDK-iOS', commit: ''
36- # pod 'GravatarUI', git: 'https://github.com/Automattic/Gravatar-SDK-iOS', commit: ''
37- pod 'Gravatar' , '2.0.0'
38- pod 'GravatarUI' , '2.0.0'
39- end
40-
4132abstract_target 'Apps' do
4233 project 'WordPress/WordPress.xcodeproj'
4334
@@ -55,20 +46,9 @@ abstract_target 'Apps' do
5546 pod 'AppCenter' , app_center_version , configurations : app_center_configurations
5647 pod 'AppCenter/Distribute' , app_center_version , configurations : app_center_configurations
5748
58- pod 'FSInteractiveMap' , git : 'https://github.com/wordpress-mobile/FSInteractiveMap.git' , tag : '0.2.0'
59- pod 'CropViewController' , '2.5.3'
60-
6149 ## Automattic libraries
6250 ## ====================
6351 ##
64- gravatar
65-
66- # Production
67-
68- pod 'MediaEditor' , '~> 1.2' , '>= 1.2.2'
69- # pod 'MediaEditor', git: 'https://github.com/wordpress-mobile/MediaEditor-iOS.git', commit: ''
70- # pod 'MediaEditor', path: '../MediaEditor-iOS'
71-
7252 aztec
7353
7454 ## WordPress App iOS
@@ -132,39 +112,6 @@ abstract_target 'Tools' do
132112 pod 'SwiftLint' , swiftlint_version
133113end
134114
135- # Static Frameworks:
136- # ============
137- #
138- # Make all pods that are not shared across multiple targets into static frameworks by overriding the static_framework? function to return true
139- # Linking the shared frameworks statically would lead to duplicate symbols
140- # A future version of CocoaPods may make this easier to do. See https://github.com/CocoaPods/CocoaPods/issues/7428
141- shared_targets = %w[ WordPressFlux ]
142- dyanmic_framework_pods = %w[ WordPressFlux ]
143- # Statically linking Sentry results in a conflict with `NSDictionary.objectAtKeyPath`, but dynamically
144- # linking it resolves this.
145- dyanmic_framework_pods += %w[ Sentry SentryPrivate ]
146- pre_install do |installer |
147- static = [ ]
148- dynamic = [ ]
149- installer . pod_targets . each do |pod |
150- use_dynamic_frameworks = false
151- use_dynamic_frameworks = true if dyanmic_framework_pods . include? pod . name
152-
153- # If this pod is a dependency of one of our shared targets, it must be linked dynamically
154- use_dynamic_frameworks = true if pod . target_definitions . any? { |t | shared_targets . include? t . name }
155-
156- if use_dynamic_frameworks
157- dynamic << pod
158- pod . instance_variable_set ( :@build_type , Pod ::BuildType . dynamic_framework )
159- else
160- static << pod
161- pod . instance_variable_set ( :@build_type , Pod ::BuildType . static_framework )
162- end
163- end
164- puts "Installing #{ static . count } pods as static frameworks"
165- puts "Installing #{ dynamic . count } pods as dynamic frameworks"
166- end
167-
168115post_install do |installer |
169116 gutenberg_post_install ( installer : installer )
170117
0 commit comments