Skip to content

Commit

Permalink
* Firebase updated to v10.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dkimitsa committed Sep 16, 2023
1 parent 331e9ea commit 272fa8b
Show file tree
Hide file tree
Showing 31 changed files with 269 additions and 73 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ v1.33.0 - in development
| [Charts](charts/) | 5.0.0 |
| [ClearAds](clearads/) | 3.2.4 |
| [Facebook](facebook/) | 16.1.3 |
| [Firebase](firebase/) | 10.13.0 |
| [Firebase](firebase/) | 10.15.0 |
| [Fyber](fyber/) | 8.2.2 |
| [HelpShiftX](helpshift/) | 10.2.2 |
| [InMobi](inmobi/) | 10.1.4 |
Expand Down
28 changes: 14 additions & 14 deletions firebase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ Firebase gives you functionality like analytics, databases, messaging and crash

| RoboPod | Description | Version |
|----------------------------------------------------------------------------------|------------------------------------------------|---------|
| [ios-analytics](ios-analytics/) | Firebase iOS Analytics | 10.13.0 |
| [ios-auth](ios-auth/) | Firebase iOS Authentication | 10.13.0 |
| [ios-core](ios-core/) | Firebase iOS Core | 10.13.0 |
| [ios-crashlytics](ios-crashlytics/) | Firebase iOS Crashlytics | 10.13.0 |
| [ios-database](ios-database/) | Firebase iOS DataBase | 10.13.0 |
| [ios-dylinks](ios-dylinks/) | Firebase iOS Dynamic Links | 10.13.0 |
| [ios-firestore](ios-firestore/) | Firebase iOS Firestore | 10.13.0 |
| [ios-mobile ads](ios-google-mobile-ads/) | Firebase iOS Google Mobile Ads | 10.8.0 |
| [ios-analytics](ios-analytics/) | Firebase iOS Analytics | 10.15.0 |
| [ios-auth](ios-auth/) | Firebase iOS Authentication | 10.15.0 |
| [ios-core](ios-core/) | Firebase iOS Core | 10.15.0 |
| [ios-crashlytics](ios-crashlytics/) | Firebase iOS Crashlytics | 10.15.0 |
| [ios-database](ios-database/) | Firebase iOS DataBase | 10.15.0 |
| [ios-dylinks](ios-dylinks/) | Firebase iOS Dynamic Links | 10.15.0 |
| [ios-firestore](ios-firestore/) | Firebase iOS Firestore | 10.15.0 |
| [ios-mobile ads](ios-google-mobile-ads/) | Firebase iOS Google Mobile Ads | 10.10.0 |
| [ios-mobile ads-adapters](ios-google-mobile-ads-adapters/) | Firebase iOS AdMob Adapters | |
| [ios-mobile ads-mediation-testsuite](ios-google-mobile-ads-mediation-testsuite/) | Firebase iOS Google AdMob Mediation Test Suite | 2.0.0 |
| [ios-google-sign-in](ios-google-sign-in/) | Firebase iOS Google Sign In | 7.0.0 |
| [ios-google-ump](ios-google-ump/) | Firebase iOS Google UMP | 2.1.0 |
| [ios-messaging](ios-messaging/) | Firebase iOS Messaging | 10.13.0 |
| [ios-installations](ios-installations/) | Firebase iOS Installations | 10.13.0 |
| [ios-remoteconfig](ios-remoteconfig/) | Firebase iOS Remote Config | 10.13.0 |
| [ios-storage](ios-storage/) | Firebase iOS Storage | 10.13.0 |
| [ios-appcheck](ios-appcheck/) | Firebase iOS App Check | 10.13.0 |
| [ios-messaging](ios-messaging/) | Firebase iOS Messaging | 10.15.0 |
| [ios-installations](ios-installations/) | Firebase iOS Installations | 10.15.0 |
| [ios-remoteconfig](ios-remoteconfig/) | Firebase iOS Remote Config | 10.15.0 |
| [ios-storage](ios-storage/) | Firebase iOS Storage | 10.15.0 |
| [ios-appcheck](ios-appcheck/) | Firebase iOS App Check | 10.15.0 |

## Versions

| RoboPods Version | Firebase Version |
|------------------|------------------|
| 1.33.0 | 10.13.0 |
| 1.33.0 | 10.15.0 |
| 1.32.0 | 10.11.0 |
| 1.31.0 | 10.9.0 |
| 1.30.0 | 10.7.0 |
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-analytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-analytics-ios</artifactId>
<name>RoboPods FireBase Analytics iOS v10.13.0</name>
<name>RoboPods FireBase Analytics iOS v10.15.0</name>
<packaging>jar</packaging>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-appcheck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-app-check-ios</artifactId>
<name>RoboPods FireBase App Check iOS v10.13.0</name>
<name>RoboPods FireBase App Check iOS v10.15.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,49 +21,20 @@

#pragma mark - DeviceCheck

// DeviceCheck availability was extended to watchOS in Xcode 14.
#if defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0

// Targets where DeviceCheck framework is available to be used in preprocessor conditions.
#define FIR_DEVICE_CHECK_SUPPORTED_TARGETS \
TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_WATCH

// `DeviceCheckProvider` availability.
#define FIR_DEVICE_CHECK_PROVIDER_AVAILABILITY \
API_AVAILABLE(ios(11.0), macos(10.15), tvos(11.0), watchos(9.0))

// TODO(ncooke3): Remove `#else` clause when Xcode 14 is the minimum supported Xcode.
#else // defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0

// Targets where DeviceCheck framework is available to be used in preprocessor conditions.
#define FIR_DEVICE_CHECK_SUPPORTED_TARGETS TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV

// `DeviceCheckProvider` availability.
#define FIR_DEVICE_CHECK_PROVIDER_AVAILABILITY \
API_AVAILABLE(ios(11.0), macos(10.15), tvos(11.0)) API_UNAVAILABLE(watchos)

#endif // defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0
API_AVAILABLE(ios(11.0), macos(10.15), macCatalyst(13.0), tvos(11.0), watchos(9.0))

#pragma mark - App Attest

#if defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0

// Targets where `DCAppAttestService` is available to be used in preprocessor conditions.
#define FIR_APP_ATTEST_SUPPORTED_TARGETS \
TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_WATCH

// `AppAttestProvider` availability annotations
#define FIR_APP_ATTEST_PROVIDER_AVAILABILITY \
API_AVAILABLE(macos(11.0), ios(14.0), tvos(15.0), watchos(9.0))

// TODO(ncooke3): Remove `#else` clause when Xcode 14 is the minimum supported Xcode.
#else // defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0

// Targets where `DCAppAttestService` is available to be used in preprocessor conditions.
#define FIR_APP_ATTEST_SUPPORTED_TARGETS TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV

// `AppAttestProvider` availability annotations
#define FIR_APP_ATTEST_PROVIDER_AVAILABILITY \
API_AVAILABLE(macos(11.0), ios(14.0), tvos(15.0)) API_UNAVAILABLE(watchos)

#endif // defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0
API_AVAILABLE(ios(14.0), macos(11.3), macCatalyst(14.5), tvos(15.0), watchos(9.0))
2 changes: 1 addition & 1 deletion firebase/ios-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-auth-ios</artifactId>
<name>RoboPods FireBase Auth iOS v10.13.0</name>
<name>RoboPods FireBase Auth iOS v10.15.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,18 @@ NS_SWIFT_NAME(Auth)
- (void)revokeTokenWithAuthorizationCode:(NSString *)authorizationCode
completion:(nullable void (^)(NSError *_Nullable error))completion;

#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
/** @fn initializeRecaptchaConfigWithCompletion:completion:
@brief Initializes reCAPTCHA using the settings configured for the project or
tenant.
If you change the tenant ID of the `Auth` instance, the configuration will be
reloaded.
*/
- (void)initializeRecaptchaConfigWithCompletion:
(nullable void (^)(NSError *_Nullable error))completion;
#endif

#pragma mark - User sharing

/** @fn useUserAccessGroup:error:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ typedef NS_ERROR_ENUM(FIRAuthErrorDomain, FIRAuthErrorCode){
*/
FIRAuthErrorCodeEmailChangeNeedsVerification = 17090,

/** Indicates that the request does not contain a client identifier.
*/
FIRAuthErrorCodeMissingClientIdentifier = 17093,

/** Indicates that the nonce is missing or invalid.
*/
FIRAuthErrorCodeMissingOrInvalidNonce = 17094,
Expand All @@ -418,9 +422,41 @@ typedef NS_ERROR_ENUM(FIRAuthErrorDomain, FIRAuthErrorCode){
*/
FIRAuthErrorCodeBlockingCloudFunctionError = 17105,

/** Indicates an error for when the client identifier is missing.
/** Indicates that reCAPTCHA Enterprise integration is not enabled for this project.
*/
FIRAuthErrorCodeRecaptchaNotEnabled = 17200,

/** Indicates that the reCAPTCHA token is missing from the backend request.
*/
FIRAuthErrorCodeMissingRecaptchaToken = 17201,

/** Indicates that the reCAPTCHA token sent with the backend request is invalid.
*/
FIRAuthErrorCodeInvalidRecaptchaToken = 17202,

/** Indicates that the requested reCAPTCHA action is invalid.
*/
FIRAuthErrorCodeInvalidRecaptchaAction = 17203,

/** Indicates that the client type is missing from the request.
*/
FIRAuthErrorCodeMissingClientType = 17204,

/** Indicates that the reCAPTCHA version is missing from the request.
*/
FIRAuthErrorCodeMissingRecaptchaVersion = 17205,

/** Indicates that the reCAPTCHA version sent to the backend is invalid.
*/
FIRAuthErrorCodeInvalidRecaptchaVersion = 17206,

/** Indicates that the request type sent to the backend is invalid.
*/
FIRAuthErrorCodeInvalidReqType = 17207,

/** Indicates that the reCAPTCHA SDK is not linked to the app.
*/
FIRAuthErrorCodeMissingClientIdentifier = 17993,
FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208,

/** Indicates an error occurred while attempting to access the keychain.
*/
Expand Down
2 changes: 2 additions & 0 deletions firebase/ios-auth/src/main/bro-gen/firebaseauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ classes:
name: useEmulator
'-revokeTokenWithAuthorizationCode:completion:':
name: revokeToken
'-initializeRecaptchaConfigWithCompletion:':
name: initializeRecaptchaConfig
FIRAuthCredential: {}
FIRAuthDataResult: {}
FIRAuthErrors: {exclude: true} # empty used only for aggregation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public static class Notifications {
public native boolean canHandleNotification(NSDictionary<?, ?> userInfo);
@Method(selector = "revokeTokenWithAuthorizationCode:completion:")
public native void revokeToken(String authorizationCode, @Block VoidBlock1<NSError> completion);
@Method(selector = "initializeRecaptchaConfigWithCompletion:")
public native void initializeRecaptchaConfig(@Block VoidBlock1<NSError> completion);
@Method(selector = "useUserAccessGroup:error:")
public native boolean useUserAccessGroup(String accessGroup, NSError.NSErrorPtr outError);
@Method(selector = "getStoredUserForAccessGroup:error:")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,18 @@ public enum /*<name>*/FIRAuthErrorCode/*</name>*/ implements NSErrorCode {
MaximumSecondFactorCountExceeded(17088L),
UnsupportedFirstFactor(17089L),
EmailChangeNeedsVerification(17090L),
MissingClientIdentifier(17093L),
MissingOrInvalidNonce(17094L),
BlockingCloudFunctionError(17105L),
MissingClientIdentifier(17993L),
RecaptchaNotEnabled(17200L),
MissingRecaptchaToken(17201L),
InvalidRecaptchaToken(17202L),
InvalidRecaptchaAction(17203L),
MissingClientType(17204L),
MissingRecaptchaVersion(17205L),
InvalidRecaptchaVersion(17206L),
InvalidReqType(17207L),
RecaptchaSDKNotLinked(17208L),
KeychainError(17995L),
InternalError(17999L),
MalformedJWT(18000L);
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-core-ios</artifactId>
<name>RoboPods FireBase Core iOS v10.13.0</name>
<name>RoboPods FireBase Core iOS v10.15.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-crashlytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-crashlytics-ios</artifactId>
<name>RoboPods FireBase Crashlytics iOS v10.13.0</name>
<name>RoboPods FireBase Crashlytics iOS v10.15.0</name>
<packaging>jar</packaging>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-database-ios</artifactId>
<name>RoboPods FireBase Realtime Database iOS v10.13.0</name>
<name>RoboPods FireBase Realtime Database iOS v10.15.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-dylinks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-dynamic-links-ios</artifactId>
<name>RoboPods FireBase Dynamic Links iOS v10.13.0</name>
<name>RoboPods FireBase Dynamic Links iOS v10.15.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion firebase/ios-firestore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-firebase-firestore-ios</artifactId>
<name>RoboPods Cloud Firestore flexible, scalable NoSQL cloud database iOS v10.13.0</name>
<name>RoboPods Cloud Firestore flexible, scalable NoSQL cloud database iOS v10.15.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
@class FIRTransaction;
@class FIRTransactionOptions;
@class FIRWriteBatch;
@class FIRPersistentCacheIndexManager;

NS_ASSUME_NONNULL_BEGIN

Expand Down Expand Up @@ -103,7 +104,16 @@ NS_SWIFT_NAME(Firestore)
#pragma mark - Configure FieldIndexes

/**
* This method is in preview. API signature and functionality are subject to change.
* A PersistentCacheIndexManager which you can config persistent cache indexes used for
* local query execution.
*/
@property(nonatomic, readonly, nullable)
FIRPersistentCacheIndexManager *persistentCacheIndexManager;

/**
* NOTE: This preview method will be deprecated in a future major release. Consider using
* `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to create
* cache indexes for queries running locally.
*
* Configures indexing for local query execution. Any previous index configuration is overridden.
*
Expand All @@ -121,10 +131,15 @@ NS_SWIFT_NAME(Firestore)
*/
- (void)setIndexConfigurationFromJSON:(NSString *)json
completion:(nullable void (^)(NSError *_Nullable error))completion
NS_SWIFT_NAME(setIndexConfiguration(_:completion:));
NS_SWIFT_NAME(setIndexConfiguration(_:completion:)) DEPRECATED_MSG_ATTRIBUTE(
"Instead of creating cache indexes manually, consider using "
"`PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to "
"create cache indexes for queries running locally.");

/**
* This method is in preview. API signature and functionality are subject to change.
* NOTE: This preview method will be deprecated in a future major release. Consider using
* `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to create
* cache indexes for queries running locally.
*
* Configures indexing for local query execution. Any previous index configuration is overridden.
*
Expand All @@ -145,7 +160,10 @@ NS_SWIFT_NAME(Firestore)
*/
- (void)setIndexConfigurationFromStream:(NSInputStream *)stream
completion:(nullable void (^)(NSError *_Nullable error))completion
NS_SWIFT_NAME(setIndexConfiguration(_:completion:));
NS_SWIFT_NAME(setIndexConfiguration(_:completion:)) DEPRECATED_MSG_ATTRIBUTE(
"Instead of creating cache indexes manually, consider using "
"`PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to "
"create cache indexes for queries running locally.");

#pragma mark - Collections and Documents

Expand Down
Loading

0 comments on commit 272fa8b

Please sign in to comment.