Skip to content

Commit cb51bfe

Browse files
committed
fix extension plist build issues
1 parent 7b34494 commit cb51bfe

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

packages/mobile/ios/Quiet.xcodeproj/project.pbxproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -657,24 +657,24 @@
657657
/* End PBXFileReference section */
658658

659659
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
660-
EB4DC8012F608A3300EFD23F /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
660+
EB611A772F60ADD1000CA1A2 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
661661
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
662662
membershipExceptions = (
663-
Info.plist,
663+
KeychainHelper.swift,
664664
);
665-
target = EB4DC7F82F608A3300EFD23F /* QuietNotificationServiceExtension */;
665+
target = 13B07F861A680F5B00A75B9A /* Quiet */;
666666
};
667-
EB4DC80B2F608B3A00EFD23F /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
667+
EBE628BC2F60AFB00062530D /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
668668
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
669669
membershipExceptions = (
670-
KeychainHelper.swift,
670+
Info.plist,
671671
);
672-
target = 13B07F861A680F5B00A75B9A /* Quiet */;
672+
target = EB4DC7F82F608A3300EFD23F /* QuietNotificationServiceExtension */;
673673
};
674674
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
675675

676676
/* Begin PBXFileSystemSynchronizedRootGroup section */
677-
EB4DC7FA2F608A3300EFD23F /* QuietNotificationServiceExtension */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (EB4DC80B2F608B3A00EFD23F /* PBXFileSystemSynchronizedBuildFileExceptionSet */, EB4DC8012F608A3300EFD23F /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = QuietNotificationServiceExtension; sourceTree = "<group>"; };
677+
EB4DC7FA2F608A3300EFD23F /* QuietNotificationServiceExtension */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (EB611A772F60ADD1000CA1A2 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, EBE628BC2F60AFB00062530D /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = QuietNotificationServiceExtension; sourceTree = "<group>"; };
678678
/* End PBXFileSystemSynchronizedRootGroup section */
679679

680680
/* Begin PBXFrameworksBuildPhase section */
@@ -5777,7 +5777,7 @@
57775777
DEVELOPMENT_TEAM = XG66F95CNS;
57785778
ENABLE_USER_SCRIPT_SANDBOXING = YES;
57795779
GCC_C_LANGUAGE_STANDARD = gnu17;
5780-
GENERATE_INFOPLIST_FILE = YES;
5780+
GENERATE_INFOPLIST_FILE = NO;
57815781
INFOPLIST_FILE = QuietNotificationServiceExtension/Info.plist;
57825782
INFOPLIST_KEY_CFBundleDisplayName = QuietNotificationServiceExtension;
57835783
INFOPLIST_KEY_NSHumanReadableCopyright = "";
@@ -5825,7 +5825,7 @@
58255825
DEVELOPMENT_TEAM = CTYKSWN9T4;
58265826
ENABLE_USER_SCRIPT_SANDBOXING = YES;
58275827
GCC_C_LANGUAGE_STANDARD = gnu17;
5828-
GENERATE_INFOPLIST_FILE = YES;
5828+
GENERATE_INFOPLIST_FILE = NO;
58295829
INFOPLIST_FILE = QuietNotificationServiceExtension/Info.plist;
58305830
INFOPLIST_KEY_CFBundleDisplayName = QuietNotificationServiceExtension;
58315831
INFOPLIST_KEY_NSHumanReadableCopyright = "";

packages/mobile/ios/Quiet/FirebaseMessagingModule.swift

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ import FirebaseMessaging
44

55
@objc(FirebaseMessagingModule)
66
class FirebaseMessagingModule: RCTEventEmitter {
7-
7+
88
static let FCM_TOKEN_RECEIVED = "fcmTokenReceived"
99
static let FCM_TOKEN_REFRESHED = "fcmTokenRefreshed"
10-
10+
1111
override static func requiresMainQueueSetup() -> Bool {
1212
return true
1313
}
14-
14+
1515
override func supportedEvents() -> [String]! {
1616
return [
1717
FirebaseMessagingModule.FCM_TOKEN_RECEIVED,
1818
FirebaseMessagingModule.FCM_TOKEN_REFRESHED
1919
]
2020
}
21-
21+
2222
@objc
2323
func getToken(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
2424
Messaging.messaging().token { token, error in
@@ -31,7 +31,7 @@ class FirebaseMessagingModule: RCTEventEmitter {
3131
}
3232
}
3333
}
34-
34+
3535
@objc
3636
func deleteToken(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
3737
Messaging.messaging().deleteToken { error in
@@ -42,7 +42,7 @@ class FirebaseMessagingModule: RCTEventEmitter {
4242
}
4343
}
4444
}
45-
45+
4646
@objc
4747
func subscribeToTopic(_ topic: String, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
4848
Messaging.messaging().subscribe(toTopic: topic) { error in
@@ -53,7 +53,7 @@ class FirebaseMessagingModule: RCTEventEmitter {
5353
}
5454
}
5555
}
56-
56+
5757
@objc
5858
func unsubscribeFromTopic(_ topic: String, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
5959
Messaging.messaging().unsubscribe(fromTopic: topic) { error in
@@ -64,18 +64,9 @@ class FirebaseMessagingModule: RCTEventEmitter {
6464
}
6565
}
6666
}
67-
67+
6868
@objc
6969
func setEncryptionKey(_ key: String) {
70-
guard let keyData = key.data(using: .utf8) else {
71-
print("Error: Invalid encryption key format")
72-
return
73-
}
74-
KeychainHelper.shared.save(
75-
service: "com.quiet.notifications",
76-
account: "encryptionKey",
77-
data: keyData
78-
)
7970
}
8071

8172
@objc

0 commit comments

Comments
 (0)