Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/firebase_core_tvos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.0.3

* Regenerate the native Pigeon sources from `firebase_core` 4.13.0, which decode the
14-element `CoreFirebaseOptions` payload that `firebase_core_platform_interface` 8.1.0
settled on. 0.0.2 pinned to the 15-element window instead.
* Widen `firebase_core_platform_interface` to `^8.1.0`; require `firebase_core` `^4.13.0`.

## 0.0.2

* Constrain `firebase_core_platform_interface` to `>=7.1.0 <8.1.0`.
Expand Down
4 changes: 2 additions & 2 deletions packages/firebase_core_tvos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ it:

```yaml
dependencies:
firebase_core: ^4.11.0
firebase_core_tvos: ^0.0.2
firebase_core: ^4.13.0
firebase_core_tvos: ^0.0.3
```

The native plugin registers automatically through flutter-tvos' plugin
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_core_tvos/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ environment:
flutter: '>=3.27.0'

dependencies:
firebase_core: ^4.11.0
firebase_core: ^4.13.0
firebase_core_tvos:
path: ../
flutter:
Expand Down
16 changes: 6 additions & 10 deletions packages/firebase_core_tvos/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: firebase_core_tvos
description: >-
tvOS (Apple TV) implementation of the firebase_core Flutter plugin, enabling
Firebase initialization on Apple TV via the flutter-tvos toolchain.
version: 0.0.2
version: 0.0.3
homepage: https://fluttertv.dev
repository: https://github.com/fluttertv/plugins/tree/main/packages/firebase_core_tvos
issue_tracker: https://github.com/fluttertv/plugins/issues
Expand All @@ -16,15 +16,11 @@ environment:
dependencies:
flutter:
sdk: flutter
firebase_core: ^4.11.0
# Pinned to the window where CoreFirebaseOptions is a 15-element Pigeon
# payload, which is what this package's generated native side decodes
# (tvos/Classes/messages.g.m reads index 14). 7.0.x and 8.1.0 send 14
# elements — 8.1.0 dropped `recaptchaSiteKey` — so either end of this range
# makes Firebase.initializeApp(options: ...) read past the end of the list.
# Only 7.1.0 and 8.0.0 are compatible. Widening this requires regenerating
# the native Pigeon sources first.
firebase_core_platform_interface: ">=7.1.0 <8.1.0"
# First release targeting the 14-element payload; older ones expect 15.
firebase_core: ^4.13.0
# Matches what firebase_core itself declares; messages.g.m decodes the 14-element
# CoreFirebaseOptions payload 8.1.0 settled on.
firebase_core_platform_interface: ^8.1.0

dev_dependencies:
flutter_lints: ^4.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ - (CoreFirebaseOptions *)optionsFromFIROptions:(FIROptions *)options {
pigeonOptions.iosBundleId = (id)options.bundleID ?: [NSNull null];
pigeonOptions.iosClientId = (id)options.clientID ?: [NSNull null];
pigeonOptions.appGroupId = (id)options.appGroupID ?: [NSNull null];
// recaptchaSiteKey is currently only exposed by Firebase JS options.
pigeonOptions.recaptchaSiteKey = [NSNull null];
return pigeonOptions;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
androidClientId:(nullable NSString *)androidClientId
iosClientId:(nullable NSString *)iosClientId
iosBundleId:(nullable NSString *)iosBundleId
appGroupId:(nullable NSString *)appGroupId
recaptchaSiteKey:(nullable NSString *)recaptchaSiteKey;
appGroupId:(nullable NSString *)appGroupId;
@property(nonatomic, copy) NSString *apiKey;
@property(nonatomic, copy) NSString *appId;
@property(nonatomic, copy) NSString *messagingSenderId;
Expand All @@ -48,7 +47,6 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, copy, nullable) NSString *iosClientId;
@property(nonatomic, copy, nullable) NSString *iosBundleId;
@property(nonatomic, copy, nullable) NSString *appGroupId;
@property(nonatomic, copy, nullable) NSString *recaptchaSiteKey;
@end

@interface CoreInitializeResponse : NSObject
Expand Down
10 changes: 2 additions & 8 deletions packages/firebase_core_tvos/tvos/Classes/messages.g.m
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ + (instancetype)makeWithApiKey:(NSString *)apiKey
androidClientId:(nullable NSString *)androidClientId
iosClientId:(nullable NSString *)iosClientId
iosBundleId:(nullable NSString *)iosBundleId
appGroupId:(nullable NSString *)appGroupId
recaptchaSiteKey:(nullable NSString *)recaptchaSiteKey {
appGroupId:(nullable NSString *)appGroupId {
CoreFirebaseOptions *pigeonResult = [[CoreFirebaseOptions alloc] init];
pigeonResult.apiKey = apiKey;
pigeonResult.appId = appId;
Expand All @@ -160,7 +159,6 @@ + (instancetype)makeWithApiKey:(NSString *)apiKey
pigeonResult.iosClientId = iosClientId;
pigeonResult.iosBundleId = iosBundleId;
pigeonResult.appGroupId = appGroupId;
pigeonResult.recaptchaSiteKey = recaptchaSiteKey;
return pigeonResult;
}
+ (CoreFirebaseOptions *)fromList:(NSArray<id> *)list {
Expand All @@ -179,7 +177,6 @@ + (CoreFirebaseOptions *)fromList:(NSArray<id> *)list {
pigeonResult.iosClientId = GetNullableObjectAtIndex(list, 11);
pigeonResult.iosBundleId = GetNullableObjectAtIndex(list, 12);
pigeonResult.appGroupId = GetNullableObjectAtIndex(list, 13);
pigeonResult.recaptchaSiteKey = GetNullableObjectAtIndex(list, 14);
return pigeonResult;
}
+ (nullable CoreFirebaseOptions *)nullableFromList:(NSArray<id> *)list {
Expand All @@ -201,7 +198,6 @@ + (nullable CoreFirebaseOptions *)nullableFromList:(NSArray<id> *)list {
self.iosClientId ?: [NSNull null],
self.iosBundleId ?: [NSNull null],
self.appGroupId ?: [NSNull null],
self.recaptchaSiteKey ?: [NSNull null],
];
}
- (BOOL)isEqual:(id)object {
Expand All @@ -225,8 +221,7 @@ - (BOOL)isEqual:(id)object {
FLTPigeonDeepEquals(self.androidClientId, other.androidClientId) &&
FLTPigeonDeepEquals(self.iosClientId, other.iosClientId) &&
FLTPigeonDeepEquals(self.iosBundleId, other.iosBundleId) &&
FLTPigeonDeepEquals(self.appGroupId, other.appGroupId) &&
FLTPigeonDeepEquals(self.recaptchaSiteKey, other.recaptchaSiteKey);
FLTPigeonDeepEquals(self.appGroupId, other.appGroupId);
}

- (NSUInteger)hash {
Expand All @@ -245,7 +240,6 @@ - (NSUInteger)hash {
result = result * 31 + FLTPigeonDeepHash(self.iosClientId);
result = result * 31 + FLTPigeonDeepHash(self.iosBundleId);
result = result * 31 + FLTPigeonDeepHash(self.appGroupId);
result = result * 31 + FLTPigeonDeepHash(self.recaptchaSiteKey);
return result;
}
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
Pod::Spec.new do |s|
s.name = 'firebase_core_tvos'
s.version = '0.0.2'
s.version = '0.0.3'
s.summary = 'tvOS implementation of firebase_core.'
s.description = <<-DESC
tvOS implementation of firebase_core, the federated platform
Expand Down
Loading