Skip to content

Commit

Permalink
fix(cordova): patch CDVCapture bundle path (#2342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jan 16, 2020
1 parent 9226d77 commit 3f4bd1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/ios/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ function copyPluginsNativeFiles(config: Config, cordovaPlugins: Plugin[]) {
fileContent = fileContent.replace('@import Firebase;', '#import <Firebase/Firebase.h>');
writeFileSync(fileDest, fileContent, 'utf8');
}
if (fileContent.includes('[NSBundle bundleForClass:[self class]]')) {
if (fileContent.includes('[NSBundle bundleForClass:[self class]]') || fileContent.includes('[NSBundle bundleForClass:[CDVCapture class]]')) {
fileContent = fileContent.replace('[NSBundle bundleForClass:[self class]]', '[NSBundle mainBundle]');
fileContent = fileContent.replace('[NSBundle bundleForClass:[CDVCapture class]]', '[NSBundle mainBundle]');
writeFileSync(fileDest, fileContent, 'utf8');
}
}
Expand Down

0 comments on commit 3f4bd1a

Please sign in to comment.