Skip to content

Commit c697a1e

Browse files
committed
Fix #92
1 parent f2505a7 commit c697a1e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/postlink

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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() {
360365
Promise.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 */

0 commit comments

Comments
 (0)