Skip to content

Commit

Permalink
Merge 2d7e91b into a0ad239
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored Oct 29, 2024
2 parents a0ad239 + 2d7e91b commit 440895f
Show file tree
Hide file tree
Showing 248 changed files with 1,009 additions and 376 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#import "FBLPromises.h"
#endif

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;

#import "Crashlytics/Crashlytics/FIRCLSUserDefaults/FIRCLSUserDefaults.h"

Expand Down
7 changes: 6 additions & 1 deletion Crashlytics/Crashlytics/FIRCrashlytics.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
#import "Crashlytics/Crashlytics/Private/FIRCLSOnDemandModel_Private.h"
#import "Crashlytics/Crashlytics/Private/FIRExceptionModel_Private.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreInternal;
@import FirebaseCoreExtension;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

#import "FirebaseInstallations/Source/Library/Private/FirebaseInstallationsInternal.h"
#import "Interop/Analytics/Public/FIRAnalyticsInterop.h"

Expand Down
6 changes: 5 additions & 1 deletion Crashlytics/Crashlytics/Helpers/FIRCLSLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

#import "Crashlytics/Crashlytics/Helpers/FIRCLSLogger.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreInternal;
@import FirebaseCoreExtension;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

FIRLoggerService kFIRLoggerCrashlytics = @"[FirebaseCrashlytics]";

Expand Down
3 changes: 2 additions & 1 deletion Crashlytics/Shared/FIRCLSConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// limitations under the License.

#import "Crashlytics/Shared/FIRCLSConstants.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

@import FirebaseCoreExtension;

#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
Expand Down
3 changes: 2 additions & 1 deletion Crashlytics/UnitTests/FIRCLSConstantsTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#import <XCTest/XCTest.h>

#import "Crashlytics/Shared/FIRCLSConstants.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

@import FirebaseCoreExtension;

#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
Expand Down
6 changes: 5 additions & 1 deletion Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
#import <XCTest/XCTest.h>

#import "Crashlytics/Crashlytics/Controllers/FIRCLSMetricKitManager.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

#if CLS_METRICKIT_SUPPORTED

Expand Down
5 changes: 5 additions & 0 deletions Crashlytics/UnitTests/FIRCLSOnDemandModelTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
#import "Crashlytics/Crashlytics/DataCollection/FIRCLSDataCollectionToken.h"
#import "Crashlytics/Crashlytics/Settings/Models/FIRCLSApplicationIdentifierModel.h"

@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

#define TEST_GOOGLE_APP_ID (@"1:632950151350:ios:d5b0d08d4f00f4b1")

@interface FIRCLSOnDemandModelTests : XCTestCase
Expand Down
5 changes: 4 additions & 1 deletion Crashlytics/UnitTests/FIRCLSReportManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

#if __has_include(<FBLPromises/FBLPromises.h>)
#import <FBLPromises/FBLPromises.h>
Expand Down
2 changes: 1 addition & 1 deletion Crashlytics/UnitTests/Mocks/FIRAppFake.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;

@interface FIRAppFake : NSObject

Expand Down
2 changes: 1 addition & 1 deletion Firebase.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Simplify your app development, grow your user base, and monetize more effectivel
end

s.subspec 'CoreOnly' do |ss|
ss.dependency 'FirebaseCore', '11.5.0'
ss.dependency 'FirebaseCore', '12.0.0'
ss.source_files = 'CoreOnly/Sources/Firebase.h'
ss.preserve_paths = 'CoreOnly/Sources/module.modulemap'
if ENV['FIREBASE_POD_REPO_FOR_DEV_POD'] then
Expand Down
4 changes: 2 additions & 2 deletions FirebaseABTesting.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Firebase Cloud Messaging and Firebase Remote Config in your app.
s.source_files = [
base_dir + '**/*.[mh]',
'Interop/Analytics/Public/*.h',
'FirebaseCore/Extension/*.h',
]
s.resource_bundles = {
"#{s.module_name}_Privacy" => 'FirebaseABTesting/Sources/Resources/PrivacyInfo.xcprivacy'
Expand All @@ -52,7 +51,8 @@ Firebase Cloud Messaging and Firebase Remote Config in your app.
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
}
s.dependency 'FirebaseCore', '11.5'
s.dependency 'FirebaseCore', '12.0'
s.dependency 'FirebaseCoreExtension', '12.0'

s.test_spec 'unit' do |unit_tests|
unit_tests.scheme = { :code_coverage => true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@

#import "FirebaseABTesting/Sources/ABTConstants.h"
#import "FirebaseABTesting/Sources/Public/FirebaseABTesting/FIRLifecycleEvents.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "Interop/Analytics/Public/FIRAnalyticsInterop.h"

@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

@implementation ABTConditionalUserPropertyController {
dispatch_queue_t _analyticOperationQueue;
id<FIRAnalyticsInterop> _Nullable _analytics;
Expand Down
3 changes: 1 addition & 2 deletions FirebaseABTesting/Sources/ABTConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

#import <Foundation/Foundation.h>
#import "FirebaseCore/Extension/FIRLogger.h"

#define ABT_MSEC_PER_SEC 1000ull

Expand Down Expand Up @@ -47,4 +46,4 @@ typedef NS_ENUM(NSUInteger, ABTInternalErrorCode) {

#pragma mark - Logger Service String

extern FIRLoggerService kFIRLoggerABTesting;
extern NSString *kFIRLoggerABTesting;
10 changes: 8 additions & 2 deletions FirebaseABTesting/Sources/FIRExperimentController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@
#import "FirebaseABTesting/Sources/ABTConstants.h"
#import "FirebaseABTesting/Sources/Private/ABTExperimentPayload.h"
#import "FirebaseABTesting/Sources/Public/FirebaseABTesting/FIRLifecycleEvents.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

#import "Interop/Analytics/Public/FIRAnalyticsInterop.h"

@import FirebaseCore;
@import FirebaseCoreExtension;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

/// Logger Service String.
FIRLoggerService kFIRLoggerABTesting = @"[FirebaseABTesting]";
NSString *kFIRLoggerABTesting = @"[FirebaseABTesting]";

/// Default experiment overflow policy.
const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
#import "FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.h"
#import "FirebaseABTesting/Tests/Unit/ABTTestUniversalConstants.h"
#import "FirebaseABTesting/Tests/Unit/Utilities/ABTTestUtilities.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

@import FirebaseCore;
@import FirebaseCoreExtension;

@interface ABTConditionalUserPropertyController (ExposedForTest)
- (NSInteger)maxNumberOfExperimentsOfOrigin:(NSString *)origin;
Expand Down
1 change: 0 additions & 1 deletion FirebaseABTesting/Tests/Unit/FIRExperimentControllerTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#import "FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.h"
#import "FirebaseABTesting/Tests/Unit/ABTTestUniversalConstants.h"
#import "FirebaseABTesting/Tests/Unit/Utilities/ABTTestUtilities.h"
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "Interop/Analytics/Public/FIRAnalyticsInterop.h"

extern ABTExperimentPayload *ABTDeserializeExperimentPayload(NSData *payload);
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAnalytics.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pod::Spec.new do |s|
s.libraries = 'c++', 'sqlite3', 'z'
s.frameworks = 'StoreKit'

s.dependency 'FirebaseCore', '11.5'
s.dependency 'FirebaseCore', '12.0'
s.dependency 'FirebaseInstallations', '~> 11.0'
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 8.0'
s.dependency 'GoogleUtilities/MethodSwizzler', '~> 8.0'
Expand Down
4 changes: 2 additions & 2 deletions FirebaseAppCheck.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Pod::Spec.new do |s|

s.source_files = [
base_dir + 'Sources/**/*.[mh]',
'FirebaseCore/Extension/*.h',
]
s.public_header_files = base_dir + 'Sources/Public/FirebaseAppCheck/*.h'

Expand All @@ -46,7 +45,8 @@ Pod::Spec.new do |s|

s.dependency 'AppCheckCore', '~> 11.0'
s.dependency 'FirebaseAppCheckInterop', '~> 11.0'
s.dependency 'FirebaseCore', '11.5'
s.dependency 'FirebaseCore', '12.0'
s.dependency 'FirebaseCoreExtension', '12.0'
s.dependency 'GoogleUtilities/Environment', '~> 8.0'
s.dependency 'GoogleUtilities/UserDefaults', '~> 8.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/FIRApp+AppCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCore;

NS_ASSUME_NONNULL_BEGIN

Expand Down
7 changes: 7 additions & 0 deletions FirebaseAppCheck/Sources/Core/FIRAppCheck.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckTokenResult.h"
#import "FirebaseAppCheck/Sources/Core/FIRInternalAppCheckProvider.h"

@import FirebaseCore;
@import FirebaseCoreExtension;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

NS_ASSUME_NONNULL_BEGIN

/// A notification with the specified name is sent to the default notification center
Expand Down
6 changes: 5 additions & 1 deletion FirebaseAppCheck/Sources/Core/FIRAppCheckComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheck+Internal.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheck.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 1 addition & 3 deletions FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#import <AppCheckCore/AppCheckCore.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

extern FIRLoggerService kFIRLoggerAppCheck;
extern NSString *kFIRLoggerAppCheck;

// FIRAppCheck.m
FOUNDATION_EXPORT NSString *const kFIRLoggerAppCheckMessageCodeProviderFactoryIsMissing;
Expand Down
8 changes: 6 additions & 2 deletions FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCore;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

NS_ASSUME_NONNULL_BEGIN

FIRLoggerService kFIRLoggerAppCheck = @"[FirebaseAppCheck]";
NSString *kFIRLoggerAppCheck = @"[FirebaseAppCheck]";

// FIRAppCheck.m
NSString *const kFIRLoggerAppCheckMessageCodeProviderFactoryIsMissing = @"I-FAA002001";
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#import <GoogleUtilities/GULUserDefaults.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCore;

@implementation FIRAppCheckValidator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckDebugProvider.h"

@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

NS_ASSUME_NONNULL_BEGIN

@implementation FIRAppCheckDebugProviderFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCoreExtension;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppAttestProvider.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCore;
@import FirebaseCoreExtension;

static NSString *const kAppName = @"test_app_name";
static NSString *const kAppID = @"test_app_id";
Expand Down
6 changes: 6 additions & 0 deletions FirebaseAppCheck/Tests/Unit/Core/FIRAppCheckLoggerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

#import <AppCheckCore/AppCheckCore.h>

@import FirebaseCore;
@import FirebaseCoreInternal;
#if SWIFT_PACKAGE
@import FirebaseCoreInternalObjC;
#endif

@interface FIRAppCheckLoggerTests : XCTestCase
@end

Expand Down
3 changes: 2 additions & 1 deletion FirebaseAppCheck/Tests/Unit/Core/FIRAppCheckSettingsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
@import FirebaseCore;
@import FirebaseCoreExtension;

@interface FIRAppCheckSettingsTests : XCTestCase

Expand Down
Loading

0 comments on commit 440895f

Please sign in to comment.