File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,11 @@ function addSentryProperties() {
339339 let rv = Promise.resolve();
340340
341341 for (let platform of PLATFORMS) {
342+ // This will create the ios/android folder before trying to write
343+ // sentry.properties in it which would fail otherwise
344+ if (!fs.existsSync(platform)) {
345+ fs.mkdirSync(platform);
346+ }
342347 let fn = platform + '/sentry.properties';
343348 if (fs.existsSync(fn)) {
344349 continue;
@@ -360,7 +365,7 @@ function addSentryProperties() {
360365Promise.resolve()
361366 /* these steps patch the build files without user interactions */
362367 .then(() => patchMatchingFile('**/app/build.gradle', patchBuildGradle))
363- .then(() => patchMatchingFile('** /*.xcodeproj/project.pbxproj', patchXcodeProj))
368+ .then(() => patchMatchingFile('. /*.xcodeproj/project.pbxproj', patchXcodeProj))
364369 .then(() => patchMatchingFile('**/AppDelegate.m', patchAppDelegate))
365370 /* if any of the previous steps did something, this will patch
366371 the index.PLATFORM.js files with the necessary initialization code */
You can’t perform that action at this time.
0 commit comments