File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,11 @@ - (void)testCopyingProperties {
197
197
options.storageBucket = mutableString;
198
198
[mutableString appendString: @" 2" ];
199
199
XCTAssertEqualObjects (options.storageBucket , @" 1" );
200
+
201
+ mutableString = [[NSMutableString alloc ] initWithString: @" 1" ];
202
+ options.appGroupID = mutableString;
203
+ [mutableString appendString: @" 2" ];
204
+ XCTAssertEqualObjects (options.appGroupID , @" 1" );
200
205
}
201
206
202
207
- (void )testCopyWithZone {
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ - (id)copyWithZone:(NSZone *)zone {
179
179
if (newOptions) {
180
180
newOptions.optionsDictionary = self.optionsDictionary ;
181
181
newOptions.deepLinkURLScheme = self.deepLinkURLScheme ;
182
+ newOptions.appGroupID = self.appGroupID ;
182
183
newOptions.editingLocked = self.isEditingLocked ;
183
184
newOptions.usingOptionsFromDefaultPlist = self.usingOptionsFromDefaultPlist ;
184
185
}
@@ -340,6 +341,11 @@ - (void)setBundleID:(NSString *)bundleID {
340
341
_optionsDictionary[kFIRBundleID ] = [bundleID copy ];
341
342
}
342
343
344
+ - (void )setAppGroupID : (NSString *)appGroupID {
345
+ [self checkEditingLocked ];
346
+ _appGroupID = [appGroupID copy ];
347
+ }
348
+
343
349
#pragma mark - Internal instance methods
344
350
345
351
- (NSDictionary *)analyticsOptionsDictionaryWithInfoDictionary : (NSDictionary *)infoDictionary {
Original file line number Diff line number Diff line change @@ -90,6 +90,13 @@ NS_SWIFT_NAME(FirebaseOptions)
90
90
*/
91
91
@property(nonatomic, copy, nullable) NSString *storageBucket;
92
92
93
+ /* *
94
+ * The App Group identifier to share data between the application and the application extensions.
95
+ * The App Group must be configured in the application and on the Apple Developer Portal. Default
96
+ * value `nil`.
97
+ */
98
+ @property(nonatomic, copy, nullable) NSString *appGroupID;
99
+
93
100
/* *
94
101
* Initializes a customized instance of FIROptions from the file at the given plist file path. This
95
102
* will read the file synchronously from disk.
You can’t perform that action at this time.
0 commit comments