-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat(database): add support for Pigeon. Update iOS to Swift and Android to Kotlin #17686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
8c2abeb
to
805c16d
Compare
...e/android/src/main/kotlin/io/flutter/plugins/firebase/database/FlutterDataSnapshotPayload.kt
Outdated
Show resolved
Hide resolved
packages/firebase_database/firebase_database/ios/firebase_database.podspec
Outdated
Show resolved
Hide resolved
...ase_database/ios/firebase_database/Sources/firebase_database/FLTFirebaseDatabasePlugin.swift
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,678 @@ | |||
// Copyright 2025 The Chromium Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class shouldn't exist, it should be on the FLTFirebaseDatabasePlugin
class
'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\\"#{library_version}\\\" LIBRARY_NAME=\\\"flutter-fire-rtdb\\\"", | ||
'DEFINES_MODULE' => 'YES' | ||
'DEFINES_MODULE' => 'YES', | ||
'SWIFT_INCLUDE_PATHS' => '"${PODS_TARGET_SRCROOT}/firebase_database/Sources"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed?
@@ -0,0 +1,674 @@ | |||
// Copyright 2025 The Chromium Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All macOS files need to be symlinked to iOS files otherwise they won't be updated when we update iOS code.
@@ -0,0 +1,1742 @@ | |||
// Copyright 2025, the Chromium project authors. Please see the AUTHORS file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all windows code, need to update pigeons/messages.dart
} else if (value is List) { | ||
childChildKeys = List<String>.generate( | ||
value.length, | ||
(int index) => '${index - 1}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come this has changed?
FirebaseApp app; | ||
} | ||
|
||
class _TransactionHandlerFlutterApi extends pigeon.FirebaseDatabaseFlutterApi { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you follow the pattern for using pigeon api for other plugins using it? This doesn't seem right.
cppHeaderOut: '../firebase_database/windows/messages.g.h', | ||
cppSourceOut: '../firebase_database/windows/messages.g.cpp', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
…kotlin/io/flutter/plugins/firebase/database/FlutterDataSnapshotPayload.kt Co-authored-by: Russell Wheatley <[email protected]>
Description
Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.
Related Issues
Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR. Note that you'll have to prefix the issue numbers with flutter/flutter#.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).melos run analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?