Skip to content

Commit 41c612b

Browse files
authored
Rename CRASHLYTICS_INTERNAL to CRASHLYTICS_1P (#6957)
1 parent 6e5f02d commit 41c612b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Crashlytics/Crashlytics/DataCollection/FIRCLSDataCollectionArbiter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ + (BOOL)isCrashlyticsCollectionEnabledWithApp:(FIRApp *)app withAppInfo:(NSDicti
101101
[firebaseCrashlyticsCollectionEnabled isKindOfClass:[NSNumber class]]) {
102102
return [firebaseCrashlyticsCollectionEnabled boolValue];
103103
}
104-
#ifdef CRASHLYTICS_INTERNAL
104+
#ifdef CRASHLYTICS_1P
105105
return NO;
106106
#else
107107
return [app isDataCollectionDefaultEnabled];

Crashlytics/Crashlytics/Models/FIRCLSSettings.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ - (BOOL)collectReportsEnabled {
304304
}
305305

306306
- (BOOL)shouldUseNewReportEndpoint {
307-
#ifdef CRASHLYTICS_INTERNAL
307+
#ifdef CRASHLYTICS_1P
308308
return YES;
309309
#else
310310
NSNumber *value = [self appSettings][@"report_upload_variant"];

Crashlytics/UnitTests/FIRCLSDataCollectionArbiterTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ - (void)tearDown {
5252
- (void)testNothingSet {
5353
self.fakeApp.isDefaultCollectionEnabled = YES;
5454
FIRCLSDataCollectionArbiter *arbiter = [self arbiterWithDictionary:@{}];
55-
#ifdef CRASHLYTICS_INTERNAL
55+
#ifdef CRASHLYTICS_1P
5656
XCTAssertFalse([arbiter isCrashlyticsCollectionEnabled]);
5757
#else
5858
// It should be YES by default for 3P users.

Crashlytics/UnitTests/FIRCLSSettingsTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ - (void)testLegacyReportEndpointSettings {
489489
[self.settings cacheSettingsWithGoogleAppID:TestGoogleAppID currentTimestamp:currentTimestamp];
490490

491491
XCTAssertNil(error, "%@", error);
492-
#ifdef CRASHLYTICS_INTERNAL
492+
#ifdef CRASHLYTICS_1P
493493
XCTAssertTrue(self.settings.shouldUseNewReportEndpoint);
494494
#else
495495
XCTAssertFalse(self.settings.shouldUseNewReportEndpoint);

0 commit comments

Comments
 (0)