Skip to content

Commit 9d41a8b

Browse files
authored
Revert source file path in podspec (#40)
1 parent af7d98f commit 9d41a8b

File tree

7 files changed

+30
-17
lines changed

7 files changed

+30
-17
lines changed

Diff for: examples/react-native-navigation/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@ Navigation.events().registerAppLaunchedListener(() => {
1616
});
1717

1818
if (__DEV__) {
19-
const {
20-
setupDefaultFlipperReporter,
21-
} = require('react-native-performance-flipper-reporter');
22-
setupDefaultFlipperReporter();
19+
require('react-native-performance-flipper-reporter').setupDefaultFlipperReporter();
2320
}

Diff for: examples/react-native-navigation/ios/Podfile.lock

+11-5
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ PODS:
238238
- React-jsinspector (0.63.3)
239239
- react-native-flipper (0.54.0):
240240
- React
241+
- react-native-performance (1.3.0):
242+
- React-Core
241243
- React-RCTActionSheet (0.63.3):
242244
- React-Core/RCTActionSheetHeaders (= 0.63.3)
243245
- React-RCTAnimation (0.63.3):
@@ -298,12 +300,12 @@ PODS:
298300
- React-Core (= 0.63.3)
299301
- React-cxxreact (= 0.63.3)
300302
- React-jsi (= 0.63.3)
301-
- ReactNativeNavigation (7.4.0):
303+
- ReactNativeNavigation (7.11.0):
302304
- React-Core
303305
- React-RCTImage
304306
- React-RCTText
305-
- ReactNativeNavigation/Core (= 7.4.0)
306-
- ReactNativeNavigation/Core (7.4.0):
307+
- ReactNativeNavigation/Core (= 7.11.0)
308+
- ReactNativeNavigation/Core (7.11.0):
307309
- React-Core
308310
- React-RCTImage
309311
- React-RCTText
@@ -349,6 +351,7 @@ DEPENDENCIES:
349351
- React-jsiexecutor (from `../../../node_modules/react-native/ReactCommon/jsiexecutor`)
350352
- React-jsinspector (from `../../../node_modules/react-native/ReactCommon/jsinspector`)
351353
- react-native-flipper (from `../../../node_modules/react-native-flipper`)
354+
- react-native-performance (from `../../../packages/react-native-performance/ios`)
352355
- React-RCTActionSheet (from `../../../node_modules/react-native/Libraries/ActionSheetIOS`)
353356
- React-RCTAnimation (from `../../../node_modules/react-native/Libraries/NativeAnimation`)
354357
- React-RCTBlob (from `../../../node_modules/react-native/Libraries/Blob`)
@@ -410,6 +413,8 @@ EXTERNAL SOURCES:
410413
:path: "../../../node_modules/react-native/ReactCommon/jsinspector"
411414
react-native-flipper:
412415
:path: "../../../node_modules/react-native-flipper"
416+
react-native-performance:
417+
:path: "../../../packages/react-native-performance/ios"
413418
React-RCTActionSheet:
414419
:path: "../../../node_modules/react-native/Libraries/ActionSheetIOS"
415420
React-RCTAnimation:
@@ -463,6 +468,7 @@ SPEC CHECKSUMS:
463468
React-jsiexecutor: b56c03e61c0dd5f5801255f2160a815f4a53d451
464469
React-jsinspector: 8e68ffbfe23880d3ee9bafa8be2777f60b25cbe2
465470
react-native-flipper: 2581111fb26a2485eb71d2b0caf4b4a21c3ba151
471+
react-native-performance: 64af1b4fc85be23eff7e7f576527690d429497b8
466472
React-RCTActionSheet: 53ea72699698b0b47a6421cb1c8b4ab215a774aa
467473
React-RCTAnimation: 1befece0b5183c22ae01b966f5583f42e69a83c2
468474
React-RCTBlob: 0b284339cbe4b15705a05e2313a51c6d8b51fa40
@@ -473,10 +479,10 @@ SPEC CHECKSUMS:
473479
React-RCTText: 65a6de06a7389098ce24340d1d3556015c38f746
474480
React-RCTVibration: 8e9fb25724a0805107fc1acc9075e26f814df454
475481
ReactCommon: 4167844018c9ed375cc01a843e9ee564399e53c3
476-
ReactNativeNavigation: a4ca957f6656172b6a7632592c101a5f75a0c9a2
482+
ReactNativeNavigation: 16d97374852c2e23f6d6b5e4ff9cd616fb037f02
477483
Yoga: 7d13633d129fd179e01b8953d38d47be90db185a
478484
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
479485

480486
PODFILE CHECKSUM: 28fed31626a666dd5021221d16812f0e36348bb3
481487

482-
COCOAPODS: 1.10.0
488+
COCOAPODS: 1.10.1

Diff for: examples/react-native-navigation/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"react-native": "0.63.3",
1515
"react-native-flipper": "0.54.0",
1616
"react-native-navigation": "^7.4.0",
17+
"react-native-performance": "^1.3.0",
1718
"react-native-performance-flipper-reporter": "^1.2.0"
1819
},
1920
"devDependencies": {

Diff for: examples/vanilla/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ import { name as appName } from './app.json';
55
AppRegistry.registerComponent(appName, () => App);
66

77
if (__DEV__) {
8-
const {
9-
setupDefaultFlipperReporter,
10-
} = require('react-native-performance-flipper-reporter');
11-
setupDefaultFlipperReporter();
8+
require('react-native-performance-flipper-reporter').setupDefaultFlipperReporter();
129
}

Diff for: examples/vanilla/ios/Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ PODS:
238238
- React-jsinspector (0.63.3)
239239
- react-native-flipper (0.54.0):
240240
- React
241-
- react-native-performance (1.1.1):
241+
- react-native-performance (1.3.0):
242242
- React-Core
243243
- React-RCTActionSheet (0.63.3):
244244
- React-Core/RCTActionSheetHeaders (= 0.63.3)
@@ -456,7 +456,7 @@ SPEC CHECKSUMS:
456456
React-jsiexecutor: b56c03e61c0dd5f5801255f2160a815f4a53d451
457457
React-jsinspector: 8e68ffbfe23880d3ee9bafa8be2777f60b25cbe2
458458
react-native-flipper: 2581111fb26a2485eb71d2b0caf4b4a21c3ba151
459-
react-native-performance: f9e4ec434df2bae46ff50541afd4d30b9f29dc06
459+
react-native-performance: 64af1b4fc85be23eff7e7f576527690d429497b8
460460
React-RCTActionSheet: 53ea72699698b0b47a6421cb1c8b4ab215a774aa
461461
React-RCTAnimation: 1befece0b5183c22ae01b966f5583f42e69a83c2
462462
React-RCTBlob: 0b284339cbe4b15705a05e2313a51c6d8b51fa40
@@ -472,4 +472,4 @@ SPEC CHECKSUMS:
472472

473473
PODFILE CHECKSUM: 30836c65ee3ef2506551d7b2ec050423977576a5
474474

475-
COCOAPODS: 1.10.0
475+
COCOAPODS: 1.10.1

Diff for: packages/react-native-performance/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ const timestamp = Date.now() - performance.timeOrigin + entry.startTime;
1414

1515
**NPM**: `npm install --save-dev react-native-performance`
1616

17+
### Manual integration
18+
19+
If your project is not set up with autolinking you need to link manually.
20+
21+
#### iOS
22+
23+
Add the following to your `Podfile` and run `pod install`:
24+
25+
```ruby
26+
pod 'react-native-performance', :path => '../node_modules/react-native-performance/ios'
27+
```
28+
1729
## Usage
1830

1931
See [`examples/vanilla`](https://github.com/oblador/flipper-plugin-react-native-performance/tree/master/examples/vanilla) for a demo of the different features.

Diff for: packages/react-native-performance/ios/react-native-performance.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.source = { :git => 'https://github.com/oblador/react-native-performance.git', :tag => "v#{s.version}" }
1313

1414
s.platform = :ios, "9.0"
15-
s.source_files = "packages/react-native-performance/ios/**/*.{h,m}"
15+
s.source_files = "**/*.{h,m}"
1616

1717
s.dependency 'React-Core'
1818
end

0 commit comments

Comments
 (0)