cocoapods-fix-react-native 2018.09.11.01 → 2018.09.18.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16043d29888926a35830a166600f931a6031f80161694a285ef9ad30bf0aeac2
4
- data.tar.gz: 11807baa08e8570c4aacd30440887894161bcb2e6cebcbb723cbc7a5bad03684
3
+ metadata.gz: 7fbd4ded9651524b9c5877027e719250af35d1d93dd3ce20e7a3ac8aabd036ca
4
+ data.tar.gz: fc940fe1d8fdf9e8812d6fbafe75cb13bcc9e994189b3db504f8997411e9f8a2
5
5
  SHA512:
6
- metadata.gz: 08789f6958b527c0e03af79d294caf50db3eb786daf8e17c5bb72affda4493358a96b0d1d6c8c150fa2c79aa0c6b0e13eb6f6cbd58ed4e02c7065ebdec3c8b8a
7
- data.tar.gz: 53a5e0fe2190997ca51f788b4f6a358c22928ba1e698fd9b46d1c3aa16493a2201594ce2b966292bc13700a329e7a714923e8418c69528a2f3ad4a31840d83c1
6
+ metadata.gz: bacdc4443055c6a69900eb9f1aa4473b657f5309e56c48d200692ffe6cd92dc7b32f63e6fdea4e651d042325655a8a6b17f38723702f055c4b58ca8bbb002160
7
+ data.tar.gz: 8db0bce33cc25243924322ce8fafb4857ec4be05c9ea717c7c60e3fa490bc1810209c585a5694a888bfd518f059770ec267dd69d64ec516d7e6154c4bb788d8e
@@ -0,0 +1,39 @@
1
+ require 'cocoapods'
2
+ require 'cocoapods-fix-react-native/helpers/root_helper'
3
+
4
+ # Obtain the React Native root directory
5
+ $root = get_root
6
+
7
+ # Detect CocoaPods + Frameworks
8
+ $has_frameworks = File.exists?'Pods/Target Support Files/React/React-umbrella.h'
9
+
10
+ # Detect source file dependency in the generated Pods.xcodeproj workspace sub-project
11
+ def has_pods_project_source_file(source_filename)
12
+ pods_project = 'Pods/Pods.xcodeproj/project.pbxproj'
13
+ File.open(pods_project).grep(/#{source_filename}/).any?
14
+ end
15
+
16
+ # Detect dependent source file required for building when the given source file is present
17
+ def meets_pods_project_source_dependency(source_filename, dependent_source_filename)
18
+ has_pods_project_source_file(source_filename) ? has_pods_project_source_file(dependent_source_filename) : true
19
+ end
20
+
21
+ def detect_missing_subspec_dependency(subspec_name, source_filename, dependent_source_filename)
22
+ unless meets_pods_project_source_dependency(source_filename, dependent_source_filename)
23
+ Pod::UI.warn "#{subspec_name} subspec may be required given your current dependencies"
24
+ end
25
+ end
26
+
27
+ def detect_missing_subspecs
28
+ return unless $has_frameworks
29
+
30
+ # For CocoaPods + Frameworks, RCTNetwork and CxxBridge subspecs are necessary for DevSupport.
31
+ # When the React pod is generated it must include all the required source, and see umbrella deps.
32
+ detect_missing_subspec_dependency('RCTNetwork', 'RCTBlobManager.mm', 'RCTNetworking.mm')
33
+ detect_missing_subspec_dependency('CxxBridge', 'RCTJavaScriptLoader.mm', 'RCTCxxBridge.mm')
34
+
35
+ # RCTText itself shouldn't require DevSupport, but it depends on Core -> RCTDevSettings -> RCTPackagerClient
36
+ detect_missing_subspec_dependency('DevSupport', 'RCTDevSettings.mm', 'RCTPackagerClient.m')
37
+ end
38
+
39
+ detect_missing_subspecs
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-fix-react-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 2018.09.11.01
4
+ version: 2018.09.18.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-11 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -63,6 +63,7 @@ files:
63
63
  - lib/cocoapods-fix-react-native/versions/0_55_4-post.rb
64
64
  - lib/cocoapods-fix-react-native/versions/0_56_0-post.rb
65
65
  - lib/cocoapods-fix-react-native/versions/0_56_1-post.rb
66
+ - lib/cocoapods-fix-react-native/versions/0_57_0-post.rb
66
67
  - lib/cocoapods_plugin.rb
67
68
  - spec/command/native_spec.rb
68
69
  - spec/spec_helper.rb