react_native_util 0.3.1 → 0.3.2
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 +4 -4
- data/README.md +27 -1
- data/lib/react_native_util/cli.rb +12 -3
- data/lib/react_native_util/metadata.rb +6 -3
- metadata +20 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4495b59cc2e3fe5dc64a4c39d2c1392ba78eac7dd0416951d2adfb91b261ad0b
|
4
|
+
data.tar.gz: 861b5462fc20ef9d5a270ed84b1f152261e8ca62d2c1c80a1000194f44bcdba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58cda62803a11796d7d231126189ee4c4f81a9fa9b44e93ea3af82349244c17d620d8a9ee79ef7a92706f43caf0ab538c5a972ffd3a10c36c302c6dd9d36b094
|
7
|
+
data.tar.gz: 38b5639df1425eca480333a181b168b22362ecb51c1e9036f5788c448601fdb82eef9a1157b3f09ad2626d4ef090f4e7be6dc7a493ea4ef302ba9e362f89a595
|
data/README.md
CHANGED
@@ -9,6 +9,12 @@
|
|
9
9
|
|
10
10
|
Community utility CLI for React Native projects.
|
11
11
|
|
12
|
+
Converts a project created with `react-native init` to use CocoaPods with the
|
13
|
+
React pod from node_modules. This preserves compatibility with
|
14
|
+
`react-native link`. A converted project will still start the Metro packager
|
15
|
+
automatically via a Run Script build phase in the Xcode project. This is an
|
16
|
+
alternative to performing manual surgery on a project in Xcode.
|
17
|
+
|
12
18
|
## Prerequisites
|
13
19
|
|
14
20
|
_macOS required_
|
@@ -63,11 +69,26 @@ rn react_pod -h
|
|
63
69
|
|
64
70
|
## Try it out
|
65
71
|
|
66
|
-
Convert examples/TestApp
|
72
|
+
Convert examples/TestApp.
|
67
73
|
|
74
|
+
First install dependencies.
|
68
75
|
```bash
|
69
76
|
bundle check || bundle install
|
77
|
+
```
|
78
|
+
|
79
|
+
Then use the Rake task
|
80
|
+
```bash
|
70
81
|
bundle exec rake react_pod
|
82
|
+
```
|
83
|
+
|
84
|
+
or the CLI.
|
85
|
+
```bash
|
86
|
+
cd examples/TestApp
|
87
|
+
bundle exec rn react_pod
|
88
|
+
```
|
89
|
+
|
90
|
+
Finally see the changes.
|
91
|
+
```bash
|
71
92
|
git status
|
72
93
|
```
|
73
94
|
|
@@ -136,3 +157,8 @@ Dir.chdir '/path/to/rn/project' do
|
|
136
157
|
end
|
137
158
|
end
|
138
159
|
```
|
160
|
+
|
161
|
+
## Documentation
|
162
|
+
|
163
|
+
Hosted [Yard](https://yardoc.org) documentation available at
|
164
|
+
https://www.rubydoc.info/gems/react_native_util.
|
@@ -10,13 +10,22 @@ module ReactNativeUtil
|
|
10
10
|
def run
|
11
11
|
program :name, SUMMARY
|
12
12
|
program :version, VERSION
|
13
|
-
program :description,
|
13
|
+
program :description, <<DESC
|
14
|
+
[Work in progress] Converts a project created with <%= color 'react-native init', BOLD %> to use
|
15
|
+
CocoaPods with the React pod from node_modules. <%= color '#{NAME} react_pod -h', BOLD %>
|
16
|
+
for more information.
|
17
|
+
DESC
|
14
18
|
|
15
19
|
command :react_pod do |c|
|
16
20
|
c.syntax = "#{NAME} react_pod [OPTIONS]"
|
17
21
|
c.summary = 'Convert a React Native app to use the React pod from node_modules.'
|
18
|
-
c.description =
|
19
|
-
|
22
|
+
c.description = <<DESC
|
23
|
+
[Work in progress] Converts a project created with <%= color 'react-native init', BOLD %> to use
|
24
|
+
CocoaPods with the React pod from node_modules. This preserves compatibility
|
25
|
+
with <%= color 'react-native link', BOLD %>. A converted project will still start the Metro packager
|
26
|
+
automatically via a Run Script build phase in the Xcode project. This is an
|
27
|
+
alternative to performing manual surgery on a project in Xcode.
|
28
|
+
DESC
|
20
29
|
|
21
30
|
c.option '--[no-]repo-update', 'Update the local podspec repo (default: update; env. var. REACT_NATIVE_UTIL_REPO_UPDATE)'
|
22
31
|
|
@@ -1,8 +1,11 @@
|
|
1
1
|
# Conversion tools for React Native projects
|
2
2
|
module ReactNativeUtil
|
3
3
|
NAME = 'react_native_util'
|
4
|
-
VERSION = '0.3.
|
4
|
+
VERSION = '0.3.2'
|
5
5
|
SUMMARY = 'Community utility CLI for React Native projects'
|
6
|
-
DESCRIPTION = '
|
7
|
-
|
6
|
+
DESCRIPTION = 'Converts a project created with react-native init to use CocoaPods with the ' \
|
7
|
+
'React pod from node_modules. This preserves compatibility with ' \
|
8
|
+
'react-native link. A converted project will still start the Metro packager ' \
|
9
|
+
'automatically via a Run Script build phase in the Xcode project. This is an ' \
|
10
|
+
'alternative to performing manual surgery on a project in Xcode.'
|
8
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_native_util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Dee
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.16'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pattern_patch
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.5'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.5'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: pry
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,8 +220,11 @@ dependencies:
|
|
206
220
|
- - "~>"
|
207
221
|
- !ruby/object:Gem::Version
|
208
222
|
version: '0.9'
|
209
|
-
description:
|
210
|
-
the React pod from node_modules.
|
223
|
+
description: Converts a project created with react-native init to use CocoaPods with
|
224
|
+
the React pod from node_modules. This preserves compatibility with react-native
|
225
|
+
link. A converted project will still start the Metro packager automatically via
|
226
|
+
a Run Script build phase in the Xcode project. This is an alternative to performing
|
227
|
+
manual surgery on a project in Xcode.
|
211
228
|
email:
|
212
229
|
- jgvdthree@gmail.com
|
213
230
|
executables:
|