Skip to content

Commit a21016f

Browse files
authored
Merge pull request #1016 from Microsoft/cleanup/rename-internal-configure
Rename internal configure: to configureWith: and remove a // FIXME
2 parents 3c89714 + 42b8b02 commit a21016f

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

AppCenter/AppCenter/Internals/MSAppCenterPrivate.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
* @discussion This may be called only once per application process lifetime.
2020
* @param appSecret A unique and secret key used to identify the application.
2121
*/
22-
// FIXME: Rename to configureWithAppSecret
23-
- (BOOL)configure:(NSString *)appSecret;
22+
- (BOOL)configureWithAppSecret:(NSString *)appSecret;
2423

2524
@end

AppCenter/AppCenter/MSAppCenter.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ + (instancetype)sharedInstance {
5959
#pragma mark - public
6060

6161
+ (void)configureWithAppSecret:(NSString *)appSecret {
62-
[[self sharedInstance] configure:appSecret];
62+
[[self sharedInstance] configureWithAppSecret:appSecret];
6363
}
6464

6565
+ (void)start:(NSString *)appSecret withServices:(NSArray<Class> *)services {
@@ -192,7 +192,7 @@ - (instancetype)init {
192192
* Configuring without an app secret is valid. If that is the case, the app secret will
193193
* not be set.
194194
*/
195-
- (BOOL)configure:(NSString *)appSecret {
195+
- (BOOL)configureWithAppSecret:(NSString *)appSecret {
196196
@synchronized(self) {
197197
BOOL success = false;
198198
if (self.sdkConfigured) {
@@ -235,7 +235,7 @@ - (BOOL)configure:(NSString *)appSecret {
235235

236236
- (void)start:(NSString *)appSecret withServices:(NSArray<Class> *)services {
237237
@synchronized(self) {
238-
BOOL configured = [self configure:appSecret];
238+
BOOL configured = [self configureWithAppSecret:appSecret];
239239
if (configured && services) {
240240
MSLogVerbose([MSAppCenter logTag], @"Prepare to start services: %@", [services componentsJoinedByString:@", "]);
241241
NSArray *sortedServices = [self sortServices:services];

AppCenter/AppCenterTests/MSAppCenterTests.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ - (void)testAppIsBackgrounded {
499499

500500
// If
501501
id<MSChannelGroupProtocol> channelGroup = OCMProtocolMock(@protocol(MSChannelGroupProtocol));
502-
[self.sut configure:@"AnAppSecret"];
502+
[self.sut configureWithAppSecret:@"AnAppSecret"];
503503
self.sut.channelGroup = channelGroup;
504504

505505
// When
@@ -513,7 +513,7 @@ - (void)testAppIsForegrounded {
513513

514514
// If
515515
id<MSChannelGroupProtocol> channelGroup = OCMProtocolMock(@protocol(MSChannelGroupProtocol));
516-
[self.sut configure:@"AnAppSecret"];
516+
[self.sut configureWithAppSecret:@"AnAppSecret"];
517517
self.sut.channelGroup = channelGroup;
518518

519519
// When

0 commit comments

Comments
 (0)