Skip to content

Commit 2e2dcbe

Browse files
committed
Add ignore glob instead of look in local folder for xcode projects
1 parent fb40f1e commit 2e2dcbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/ReactNativeExample/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"test": "jest"
88
},
99
"dependencies": {
10-
"react": "^16.0.0-alpha.6",
11-
"react-native": "^0.44.2",
10+
"react": "^16.0.0-alpha.12",
11+
"react-native": "^0.45.0",
1212
"react-native-sentry": "file:../../"
1313
}
1414
}

scripts/postlink

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function patchXcodeProj(contents, filename) {
343343

344344
function patchMatchingFile(pattern, func) {
345345
let matches = glob.sync(pattern, {
346-
ignore: 'node_modules/**'
346+
ignore: ['node_modules/**', 'ios/Pods/**', '**/Pods/**']
347347
});
348348
let rv = Promise.resolve();
349349
matches.forEach(function(match) {
@@ -400,7 +400,7 @@ function addSentryProperties() {
400400
Promise.resolve()
401401
/* these steps patch the build files without user interactions */
402402
.then(() => patchMatchingFile('**/app/build.gradle', patchBuildGradle))
403-
.then(() => patchMatchingFile('./*.xcodeproj/project.pbxproj', patchXcodeProj))
403+
.then(() => patchMatchingFile('**/*.xcodeproj/project.pbxproj', patchXcodeProj))
404404
.then(() => patchMatchingFile('**/AppDelegate.m', patchAppDelegate))
405405
/* if any of the previous steps did something, this will patch
406406
the index.PLATFORM.js files with the necessary initialization code */

0 commit comments

Comments
 (0)