Browse Source

refactor(podfile): remove unnecessary use_native_modules! (#70)

- removing use_native_modules! fixes the warning of trying linking
  @react-native-community/bob
luancurti 4 years ago
parent
commit
2e542e71c9
No account linked to committer's email address
2 changed files with 68 additions and 75 deletions
  1. 9
    16
      example/ios/Podfile
  2. 59
    59
      example/ios/Podfile.lock

+ 9
- 16
example/ios/Podfile View File

1
-require_relative '../../node_modules/react-native/scripts/react_native_pods'
2
-require_relative '../../node_modules/@react-native-community/cli-platform-ios/native_modules'
1
+$root_path = "../.."
2
+$node_modules = "#{$root_path}/node_modules"
3
+$react_native_path = "#{$node_modules}/react-native"
3
 
4
 
4
-platform :ios, '10.0'
5
+require_relative "#{$node_modules}/react-native/scripts/react_native_pods"
6
+require_relative "#{$node_modules}/@react-native-community/cli-platform-ios/native_modules"
5
 
7
 
6
-target 'SafeAreaViewExample' do
7
-  config = use_native_modules!
8
+platform :ios, "10.0"
8
 
9
 
9
-  use_react_native!(:path => config["reactNativePath"])
10
+target "SafeAreaViewExample" do
11
+  use_react_native!(path: $react_native_path)
10
 
12
 
11
-  pod 'react-native-safe-area-context', :path => '../../'
12
-
13
-  # Enables Flipper.
14
-  #
15
-  # Note that if you have use_frameworks! enabled, Flipper will not work and
16
-  # you should disable these next few lines.
17
-  # use_flipper!
18
-  # post_install do |installer|
19
-  #   flipper_post_install(installer)
20
-  # end
13
+  pod "react-native-safe-area-context", :path => $root_path
21
 end
14
 end
22
 
15
 

+ 59
- 59
example/ios/Podfile.lock View File

185
     - React-cxxreact (= 0.63.0-rc.0)
185
     - React-cxxreact (= 0.63.0-rc.0)
186
     - React-jsi (= 0.63.0-rc.0)
186
     - React-jsi (= 0.63.0-rc.0)
187
   - React-jsinspector (0.63.0-rc.0)
187
   - React-jsinspector (0.63.0-rc.0)
188
-  - react-native-safe-area-context (1.0.0-beta.0):
188
+  - react-native-safe-area-context (1.0.0-beta.2):
189
     - React
189
     - React
190
   - React-RCTActionSheet (0.63.0-rc.0):
190
   - React-RCTActionSheet (0.63.0-rc.0):
191
     - React-Core/RCTActionSheetHeaders (= 0.63.0-rc.0)
191
     - React-Core/RCTActionSheetHeaders (= 0.63.0-rc.0)
250
   - Yoga (1.14.0)
250
   - Yoga (1.14.0)
251
 
251
 
252
 DEPENDENCIES:
252
 DEPENDENCIES:
253
-  - DoubleConversion (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
254
-  - FBLazyVector (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/FBLazyVector`)
255
-  - FBReactNativeSpec (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/FBReactNativeSpec`)
256
-  - Folly (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/third-party-podspecs/Folly.podspec`)
257
-  - glog (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/third-party-podspecs/glog.podspec`)
258
-  - RCTRequired (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/RCTRequired`)
259
-  - RCTTypeSafety (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/TypeSafety`)
260
-  - React (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/`)
261
-  - React-callinvoker (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/callinvoker`)
262
-  - React-Core (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/`)
263
-  - React-Core/DevSupport (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/`)
264
-  - React-Core/RCTWebSocket (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/`)
265
-  - React-CoreModules (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/React/CoreModules`)
266
-  - React-cxxreact (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/cxxreact`)
267
-  - React-jsi (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/jsi`)
268
-  - React-jsiexecutor (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/jsiexecutor`)
269
-  - React-jsinspector (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/jsinspector`)
270
-  - react-native-safe-area-context (from `../../`)
271
-  - React-RCTActionSheet (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/ActionSheetIOS`)
272
-  - React-RCTAnimation (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/NativeAnimation`)
273
-  - React-RCTBlob (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Blob`)
274
-  - React-RCTImage (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Image`)
275
-  - React-RCTLinking (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/LinkingIOS`)
276
-  - React-RCTNetwork (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Network`)
277
-  - React-RCTSettings (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Settings`)
278
-  - React-RCTText (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Text`)
279
-  - React-RCTVibration (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Vibration`)
280
-  - ReactCommon/turbomodule/core (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon`)
281
-  - Yoga (from `/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/yoga`)
253
+  - DoubleConversion (from `../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
254
+  - FBLazyVector (from `../../node_modules/react-native/Libraries/FBLazyVector`)
255
+  - FBReactNativeSpec (from `../../node_modules/react-native/Libraries/FBReactNativeSpec`)
256
+  - Folly (from `../../node_modules/react-native/third-party-podspecs/Folly.podspec`)
257
+  - glog (from `../../node_modules/react-native/third-party-podspecs/glog.podspec`)
258
+  - RCTRequired (from `../../node_modules/react-native/Libraries/RCTRequired`)
259
+  - RCTTypeSafety (from `../../node_modules/react-native/Libraries/TypeSafety`)
260
+  - React (from `../../node_modules/react-native/`)
261
+  - React-callinvoker (from `../../node_modules/react-native/ReactCommon/callinvoker`)
262
+  - React-Core (from `../../node_modules/react-native/`)
263
+  - React-Core/DevSupport (from `../../node_modules/react-native/`)
264
+  - React-Core/RCTWebSocket (from `../../node_modules/react-native/`)
265
+  - React-CoreModules (from `../../node_modules/react-native/React/CoreModules`)
266
+  - React-cxxreact (from `../../node_modules/react-native/ReactCommon/cxxreact`)
267
+  - React-jsi (from `../../node_modules/react-native/ReactCommon/jsi`)
268
+  - React-jsiexecutor (from `../../node_modules/react-native/ReactCommon/jsiexecutor`)
269
+  - React-jsinspector (from `../../node_modules/react-native/ReactCommon/jsinspector`)
270
+  - react-native-safe-area-context (from `../..`)
271
+  - React-RCTActionSheet (from `../../node_modules/react-native/Libraries/ActionSheetIOS`)
272
+  - React-RCTAnimation (from `../../node_modules/react-native/Libraries/NativeAnimation`)
273
+  - React-RCTBlob (from `../../node_modules/react-native/Libraries/Blob`)
274
+  - React-RCTImage (from `../../node_modules/react-native/Libraries/Image`)
275
+  - React-RCTLinking (from `../../node_modules/react-native/Libraries/LinkingIOS`)
276
+  - React-RCTNetwork (from `../../node_modules/react-native/Libraries/Network`)
277
+  - React-RCTSettings (from `../../node_modules/react-native/Libraries/Settings`)
278
+  - React-RCTText (from `../../node_modules/react-native/Libraries/Text`)
279
+  - React-RCTVibration (from `../../node_modules/react-native/Libraries/Vibration`)
280
+  - ReactCommon/turbomodule/core (from `../../node_modules/react-native/ReactCommon`)
281
+  - Yoga (from `../../node_modules/react-native/ReactCommon/yoga`)
282
 
282
 
283
 SPEC REPOS:
283
 SPEC REPOS:
284
   trunk:
284
   trunk:
286
 
286
 
287
 EXTERNAL SOURCES:
287
 EXTERNAL SOURCES:
288
   DoubleConversion:
288
   DoubleConversion:
289
-    :podspec: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
289
+    :podspec: "../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
290
   FBLazyVector:
290
   FBLazyVector:
291
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/FBLazyVector"
291
+    :path: "../../node_modules/react-native/Libraries/FBLazyVector"
292
   FBReactNativeSpec:
292
   FBReactNativeSpec:
293
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/FBReactNativeSpec"
293
+    :path: "../../node_modules/react-native/Libraries/FBReactNativeSpec"
294
   Folly:
294
   Folly:
295
-    :podspec: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/third-party-podspecs/Folly.podspec"
295
+    :podspec: "../../node_modules/react-native/third-party-podspecs/Folly.podspec"
296
   glog:
296
   glog:
297
-    :podspec: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/third-party-podspecs/glog.podspec"
297
+    :podspec: "../../node_modules/react-native/third-party-podspecs/glog.podspec"
298
   RCTRequired:
298
   RCTRequired:
299
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/RCTRequired"
299
+    :path: "../../node_modules/react-native/Libraries/RCTRequired"
300
   RCTTypeSafety:
300
   RCTTypeSafety:
301
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/TypeSafety"
301
+    :path: "../../node_modules/react-native/Libraries/TypeSafety"
302
   React:
302
   React:
303
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/"
303
+    :path: "../../node_modules/react-native/"
304
   React-callinvoker:
304
   React-callinvoker:
305
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/callinvoker"
305
+    :path: "../../node_modules/react-native/ReactCommon/callinvoker"
306
   React-Core:
306
   React-Core:
307
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/"
307
+    :path: "../../node_modules/react-native/"
308
   React-CoreModules:
308
   React-CoreModules:
309
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/React/CoreModules"
309
+    :path: "../../node_modules/react-native/React/CoreModules"
310
   React-cxxreact:
310
   React-cxxreact:
311
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/cxxreact"
311
+    :path: "../../node_modules/react-native/ReactCommon/cxxreact"
312
   React-jsi:
312
   React-jsi:
313
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/jsi"
313
+    :path: "../../node_modules/react-native/ReactCommon/jsi"
314
   React-jsiexecutor:
314
   React-jsiexecutor:
315
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/jsiexecutor"
315
+    :path: "../../node_modules/react-native/ReactCommon/jsiexecutor"
316
   React-jsinspector:
316
   React-jsinspector:
317
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/jsinspector"
317
+    :path: "../../node_modules/react-native/ReactCommon/jsinspector"
318
   react-native-safe-area-context:
318
   react-native-safe-area-context:
319
-    :path: "../../"
319
+    :path: "../.."
320
   React-RCTActionSheet:
320
   React-RCTActionSheet:
321
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/ActionSheetIOS"
321
+    :path: "../../node_modules/react-native/Libraries/ActionSheetIOS"
322
   React-RCTAnimation:
322
   React-RCTAnimation:
323
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/NativeAnimation"
323
+    :path: "../../node_modules/react-native/Libraries/NativeAnimation"
324
   React-RCTBlob:
324
   React-RCTBlob:
325
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Blob"
325
+    :path: "../../node_modules/react-native/Libraries/Blob"
326
   React-RCTImage:
326
   React-RCTImage:
327
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Image"
327
+    :path: "../../node_modules/react-native/Libraries/Image"
328
   React-RCTLinking:
328
   React-RCTLinking:
329
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/LinkingIOS"
329
+    :path: "../../node_modules/react-native/Libraries/LinkingIOS"
330
   React-RCTNetwork:
330
   React-RCTNetwork:
331
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Network"
331
+    :path: "../../node_modules/react-native/Libraries/Network"
332
   React-RCTSettings:
332
   React-RCTSettings:
333
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Settings"
333
+    :path: "../../node_modules/react-native/Libraries/Settings"
334
   React-RCTText:
334
   React-RCTText:
335
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Text"
335
+    :path: "../../node_modules/react-native/Libraries/Text"
336
   React-RCTVibration:
336
   React-RCTVibration:
337
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/Libraries/Vibration"
337
+    :path: "../../node_modules/react-native/Libraries/Vibration"
338
   ReactCommon:
338
   ReactCommon:
339
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon"
339
+    :path: "../../node_modules/react-native/ReactCommon"
340
   Yoga:
340
   Yoga:
341
-    :path: "/Users/janic/Developer/react-native-safe-area-context/node_modules/react-native/ReactCommon/yoga"
341
+    :path: "../../node_modules/react-native/ReactCommon/yoga"
342
 
342
 
343
 SPEC CHECKSUMS:
343
 SPEC CHECKSUMS:
344
   boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
344
   boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
357
   React-jsi: 87b6b899f6c81c29487d0416969c261b73f46a2d
357
   React-jsi: 87b6b899f6c81c29487d0416969c261b73f46a2d
358
   React-jsiexecutor: 0ca3a8a0a65f9eb9aec3273c4cf44f6d31277937
358
   React-jsiexecutor: 0ca3a8a0a65f9eb9aec3273c4cf44f6d31277937
359
   React-jsinspector: 09b8cb3fefdf81b2889a13cc1a645e905e514ddb
359
   React-jsinspector: 09b8cb3fefdf81b2889a13cc1a645e905e514ddb
360
-  react-native-safe-area-context: 7493344a8026a5b0c6a23fc0b8d6f2ec0925369c
360
+  react-native-safe-area-context: d480295e19c27f5bc211bf5e31d4ef4fdac2f0e2
361
   React-RCTActionSheet: b6d2445d7317359997ed0c650421d0a0b9dd58cb
361
   React-RCTActionSheet: b6d2445d7317359997ed0c650421d0a0b9dd58cb
362
   React-RCTAnimation: 2f48bd93a4f5317cd5ab7189c6b5e469b60fb7bf
362
   React-RCTAnimation: 2f48bd93a4f5317cd5ab7189c6b5e469b60fb7bf
363
   React-RCTBlob: b8da9c90135ee183f3ad35b521313390370b5ed2
363
   React-RCTBlob: b8da9c90135ee183f3ad35b521313390370b5ed2
370
   ReactCommon: 14ae20c83bd846c1790e45ad95e0f0717dcd034f
370
   ReactCommon: 14ae20c83bd846c1790e45ad95e0f0717dcd034f
371
   Yoga: 5ffb724bde6d20a1828a1dc9a368085f404a1203
371
   Yoga: 5ffb724bde6d20a1828a1dc9a368085f404a1203
372
 
372
 
373
-PODFILE CHECKSUM: 415a49fe5a4e3b91cc8d99745989ac2562ebb4f4
373
+PODFILE CHECKSUM: c6a3f4efa49838adde4e4d6ee3c894309fdef069
374
 
374
 
375
 COCOAPODS: 1.9.1
375
 COCOAPODS: 1.9.1