Skip to content

Commit eedc0e7

Browse files
committed
fix: change BundleIdentifier for io.cozy.pass.desktop
We wan't to adapt the BundleIdentifier to avoid conflict with Bitwarden extension if installed in parallel of Cozy Pass extension
1 parent 877c8e8 commit eedc0e7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/browser/safariApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class SafariApp {
88
return new Promise(resolve => {
99
const now = new Date();
1010
const messageId = now.getTime().toString() + '_' + Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
11-
(browser as any).runtime.sendNativeMessage('com.bitwarden.desktop', {
11+
(browser as any).runtime.sendNativeMessage('io.cozy.pass.desktop', {
1212
id: messageId,
1313
command: command,
1414
data: data,

src/safari/desktop.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
"@executable_path/../../../../Frameworks",
449449
);
450450
MACOSX_DEPLOYMENT_TARGET = 10.14;
451-
PRODUCT_BUNDLE_IDENTIFIER = com.bitwarden.desktop.safari;
451+
PRODUCT_BUNDLE_IDENTIFIER = io.cozy.pass.desktop.safari;
452452
PRODUCT_NAME = "$(TARGET_NAME)";
453453
SKIP_INSTALL = YES;
454454
SWIFT_VERSION = 5.0;
@@ -472,7 +472,7 @@
472472
"@executable_path/../../../../Frameworks",
473473
);
474474
MACOSX_DEPLOYMENT_TARGET = 10.14;
475-
PRODUCT_BUNDLE_IDENTIFIER = com.bitwarden.desktop.safari;
475+
PRODUCT_BUNDLE_IDENTIFIER = io.cozy.pass.desktop.safari;
476476
PRODUCT_NAME = "$(TARGET_NAME)";
477477
SKIP_INSTALL = YES;
478478
SWIFT_VERSION = 5.0;
@@ -496,7 +496,7 @@
496496
"@executable_path/../Frameworks",
497497
);
498498
MACOSX_DEPLOYMENT_TARGET = 10.14;
499-
PRODUCT_BUNDLE_IDENTIFIER = com.bitwarden.desktop;
499+
PRODUCT_BUNDLE_IDENTIFIER = io.cozy.pass.desktop;
500500
PRODUCT_NAME = "$(TARGET_NAME)";
501501
SWIFT_VERSION = 5.0;
502502
};
@@ -520,7 +520,7 @@
520520
"@executable_path/../Frameworks",
521521
);
522522
MACOSX_DEPLOYMENT_TARGET = 10.14;
523-
PRODUCT_BUNDLE_IDENTIFIER = com.bitwarden.desktop;
523+
PRODUCT_BUNDLE_IDENTIFIER = io.cozy.pass.desktop;
524524
PRODUCT_NAME = "$(TARGET_NAME)";
525525
SWIFT_VERSION = 5.0;
526526
};

src/safari/desktop/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import SafariServices.SFSafariApplication
33
import SafariServices.SFSafariExtensionManager
44

55
let appName = "desktop"
6-
let extensionBundleIdentifier = "com.bitwarden.desktop.Extension"
6+
let extensionBundleIdentifier = "io.cozy.pass.desktop.Extension"
77

88
class ViewController: NSViewController {
99

src/safari/safari/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<string>A secure and free password manager for all of your devices.</string>
3636
<key>SFSafariAppExtensionBundleIdentifiersToReplace</key>
3737
<array>
38-
<string>com.bitwarden.desktop.safari</string>
38+
<string>io.cozy.pass.desktop.safari</string>
3939
</array>
4040
</dict>
4141
</plist>

0 commit comments

Comments
 (0)