react_native_util 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f874dfbe6f26ca09e59e9392f1e6591d09148b6a34aba766a41feea3bb2957e
4
- data.tar.gz: 6ccfddce4c25414ef398924bb426dc0191851fb40c1ad6477e19f1eb3970b6cf
3
+ metadata.gz: c6483a9844f4e819904989adf0b529e3e20f18d079ac415f05099fdd1a236937
4
+ data.tar.gz: b652f3774292a839d4573dd9c29fd3d121399c3ccb94b906e5ce417bcca6644c
5
5
  SHA512:
6
- metadata.gz: 798ac753cc2ca53970ee8def6a65f24159a69b300e1259864ee59bc9d888aed2323d282bf053e7a78dd9d57f1f4f267d56b471ab0e0bb02ea365aff2ff4e9f13
7
- data.tar.gz: bfd1a390de9180aed09a3a7da175a938a25743c99233937b499a21eab4c04961d6d35553f1676c44af4f3db3b89705f762dbb377c434b55ff8d602365a5dfaf4
6
+ metadata.gz: 719d0c4ca2dbd817aa643fb21038afe6a93c50179e7d6e3ac63770ff57a8a886acdf0d7cb953ccd96ec5d79907f1f87a167777ca9ae4603d8a1a09f0f9c1c303
7
+ data.tar.gz: 24219623bf2451e9959aa6f246ba4e2de00b1ab6e85b474740e886863acbb29e454efb48876b58d68e38edc3da85f069023b538ab2efa16f6fdde8d84fec5c80
data/README.md CHANGED
@@ -13,12 +13,25 @@ Community utility CLI for React Native projects.
13
13
 
14
14
  _macOS required_
15
15
 
16
- It's not necessary to install yarn or react-native-cli separately when
17
- installing from the Homebrew tap with `brew install jdee/tap/react_native_util`.
18
- They will be installed as required dependencies. If they are not present when
19
- running from RubyGems, the react_pod command will fail.
16
+ The react_pod command requires `yarn` from Homebrew and the `react-native-cli`.
17
+ If installing react_native_util from the Homebrew tap, `yarn` will be
18
+ automatically installed if not present. The `react-native-cli` may also be
19
+ installed from Homebrew if desired:
20
+
21
+ ```bash
22
+ brew install jdee/tap/react_native_util --with-react-native-cli
23
+ ```
24
+
25
+ If running from RubyGems, please make sure these packages are installed:
20
26
  ```bash
21
27
  brew install yarn
28
+ ```
29
+
30
+ ```bash
31
+ npm install -g react-native-cli
32
+ ```
33
+ or
34
+ ```
22
35
  brew install react-native-cli
23
36
  ```
24
37
 
@@ -95,13 +108,13 @@ _Typical command output:_
95
108
 
96
109
  Add to Rakefile:
97
110
  ```Ruby
98
- require 'react_native_util/rake/react_pod_task'
111
+ require 'react_native_util/rake'
99
112
  ReactNativeUtil::Rake::ReactPodTask.new
100
113
  ```
101
114
 
102
115
  Customize:
103
116
  ```Ruby
104
- require 'react_native_util/rake/react_pod_task'
117
+ require 'react_native_util/rake'
105
118
  ReactNativeUtil::Rake::ReactPodTask.new(
106
119
  :react_pod, # task name
107
120
  'Convert project to use React pod', # description
@@ -1,7 +1,7 @@
1
1
  # Conversion tools for React Native projects
2
2
  module ReactNativeUtil
3
3
  NAME = 'react_native_util'
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  SUMMARY = 'Community utility CLI for React Native projects'
6
6
  DESCRIPTION = 'Automatically modifies a project created with react-native ' \
7
7
  'init to use the React pod from node_modules.'
@@ -103,13 +103,6 @@ module ReactNativeUtil
103
103
  # Libraries group. Adjusts paths in the script to account for the different
104
104
  # project location. If the relevant build phase is not found, a warning is
105
105
  # logged, and this step is skipped.
106
- #
107
- # TODO: The build phase is added after all other build phases. Ideally it
108
- # can be moved to the beginning. The packager is independent of the Xcode
109
- # build process. It may be started at any time. Starting it early is an
110
- # optimization that allows it to load while the build is in progress.
111
- # Currently it's possible to simply drag the build phase in Xcode to a
112
- # higher position after running the react_pod command.
113
106
  def add_packager_script_from(react_project)
114
107
  old_packager_phase = react_project.packager_phase
115
108
  unless old_packager_phase
@@ -122,6 +115,13 @@ module ReactNativeUtil
122
115
 
123
116
  phase = app_target.new_shell_script_build_phase old_packager_phase.name
124
117
  phase.shell_script = script
118
+
119
+ # Move packager script to first position. This is independent of the
120
+ # entire Xcode build process. As an optimization, the packager can
121
+ # load its dependencies in parallel. This is the way it is on the
122
+ # original React.xcodeproj.
123
+ app_target.build_phases.delete phase
124
+ app_target.build_phases.insert 0, phase
125
125
  end
126
126
 
127
127
  # All static libraries from the Libraries group
@@ -5,7 +5,7 @@ require_relative '../converter'
5
5
  module ReactNativeUtil
6
6
  module Rake
7
7
  # Rakefile:
8
- # require 'react_native_util/rake/react_pod_task'
8
+ # require 'react_native_util/rake'
9
9
  # ReactNativeUtil::Rake::ReactPodTask.new chdir: '/path/to/rn/app'
10
10
  class ReactPodTask < ::Rake::TaskLib
11
11
  include Util
@@ -0,0 +1 @@
1
+ require_relative 'rake/react_pod_task'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_native_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Dee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-12 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -230,6 +230,7 @@ files:
230
230
  - lib/react_native_util/exceptions.rb
231
231
  - lib/react_native_util/metadata.rb
232
232
  - lib/react_native_util/project.rb
233
+ - lib/react_native_util/rake.rb
233
234
  - lib/react_native_util/rake/react_pod_task.rb
234
235
  - lib/react_native_util/util.rb
235
236
  homepage: https://github.com/jdee/react_native_util