diff --git a/packages/cloud_functions/example/pubspec.yaml b/packages/cloud_functions/example/pubspec.yaml index e4449d5..bab8d5d 100644 --- a/packages/cloud_functions/example/pubspec.yaml +++ b/packages/cloud_functions/example/pubspec.yaml @@ -8,8 +8,8 @@ dependencies: cloud_functions: 4.0.7 cloud_functions_tizen: path: .. - firebase_core: 2.4.1 - firebase_core_tizen: ^1.0.0 + firebase_core: ^2.17.0 + firebase_core_tizen: ^1.0.1 flutter: sdk: flutter diff --git a/packages/cloud_functions/pubspec.yaml b/packages/cloud_functions/pubspec.yaml index 1249444..3b3c468 100644 --- a/packages/cloud_functions/pubspec.yaml +++ b/packages/cloud_functions/pubspec.yaml @@ -12,7 +12,7 @@ environment: dependencies: cloud_functions: 4.0.7 cloud_functions_platform_interface: 5.1.26 - firebase_core_tizen: ^1.0.0 + firebase_core_tizen: ^1.0.1 flutter: sdk: flutter diff --git a/packages/firebase_core/CHANGELOG.md b/packages/firebase_core/CHANGELOG.md index 0d8803f..b6b5dff 100644 --- a/packages/firebase_core/CHANGELOG.md +++ b/packages/firebase_core/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.1 + +* Update firebase_core to 2.17.0. + ## 1.0.0 * Initial release. diff --git a/packages/firebase_core/README.md b/packages/firebase_core/README.md index 557cdab..74ba69b 100644 --- a/packages/firebase_core/README.md +++ b/packages/firebase_core/README.md @@ -10,8 +10,8 @@ To use this package, you need to include `firebase_core_tizen` as a dependency a ```yaml dependencies: - firebase_core: 2.4.1 - firebase_core_tizen: ^1.0.0 + firebase_core: ^2.17.0 + firebase_core_tizen: ^1.0.1 ``` Then you can import `firebase_core` in your Dart code: diff --git a/packages/firebase_core/example/pubspec.yaml b/packages/firebase_core/example/pubspec.yaml index 685ac26..84b57ce 100644 --- a/packages/firebase_core/example/pubspec.yaml +++ b/packages/firebase_core/example/pubspec.yaml @@ -8,7 +8,7 @@ environment: flutter: ">=3.3.0" dependencies: - firebase_core: 2.4.1 + firebase_core: ^2.17.0 firebase_core_tizen: path: ../ flutter: diff --git a/packages/firebase_core/pigeons/messages.dart b/packages/firebase_core/pigeons/messages.dart index d48c890..38210c9 100644 --- a/packages/firebase_core/pigeons/messages.dart +++ b/packages/firebase_core/pigeons/messages.dart @@ -6,9 +6,10 @@ import 'package:pigeon/pigeon.dart'; @ConfigurePigeon( PigeonOptions( - dartOut: 'temp/messages.g.dart', // do not use it - cppHeaderOut: 'tizen/src/messages.h', - cppSourceOut: 'tizen/src/messages.cc', + dartOut: 'temp/messages.pigeon.dart', // do not use it + cppHeaderOut: 'tizen/src/messages.g.h', + cppSourceOut: 'tizen/src/messages.g.cc', + cppOptions: CppOptions(namespace: 'firebase_core_tizen'), copyrightHeader: 'pigeons/copyright.txt', ), ) diff --git a/packages/firebase_core/pubspec.yaml b/packages/firebase_core/pubspec.yaml index 905e35a..1a2bc62 100644 --- a/packages/firebase_core/pubspec.yaml +++ b/packages/firebase_core/pubspec.yaml @@ -1,7 +1,7 @@ name: firebase_core_tizen description: Flutter plugin for Firebase Core, enabling connecting to multiple Firebase apps. -version: 1.0.0 +version: 1.0.1 homepage: environment: @@ -9,8 +9,8 @@ environment: flutter: ">=3.3.0" dependencies: - firebase_core: 2.4.1 - firebase_core_platform_interface: 4.5.2 + firebase_core: ^2.17.0 + firebase_core_platform_interface: ^4.8.0 flutter: sdk: flutter @@ -18,7 +18,7 @@ dev_dependencies: flutter_lints: ^2.0.0 flutter_test: sdk: flutter - pigeon: ^3.2.9 + pigeon: 9.2.5 flutter: plugin: diff --git a/packages/firebase_core/tizen/src/firebase_core_tizen_plugin.cc b/packages/firebase_core/tizen/src/firebase_core_tizen_plugin.cc index 18d0e41..c178265 100644 --- a/packages/firebase_core/tizen/src/firebase_core_tizen_plugin.cc +++ b/packages/firebase_core/tizen/src/firebase_core_tizen_plugin.cc @@ -14,9 +14,11 @@ #include #include "log.h" -#include "messages.h" +#include "messages.g.h" -namespace { +using ::firebase::App; + +namespace firebase_core_tizen { class FirebaseCoreTizenPlugin : public flutter::Plugin, public FirebaseCoreHostApi, @@ -69,7 +71,31 @@ FirebaseCoreTizenPlugin::FirebaseCoreTizenPlugin( FirebaseCoreTizenPlugin::~FirebaseCoreTizenPlugin() {} -static PigeonFirebaseOptions FirebaseOptionsToPigeonOptions( +// Convert a Pigeon FirebaseOptions to a Firebase Options. +firebase::AppOptions PigeonFirebaseOptionsToAppOptions( + const PigeonFirebaseOptions& pigeon_options) { + firebase::AppOptions app_options; + + app_options.set_api_key(pigeon_options.api_key().c_str()); + app_options.set_app_id(pigeon_options.app_id().c_str()); + app_options.set_messaging_sender_id( + pigeon_options.messaging_sender_id().c_str()); + app_options.set_project_id(pigeon_options.project_id().c_str()); + if (pigeon_options.database_u_r_l()) { + app_options.set_database_url(pigeon_options.database_u_r_l()->c_str()); + } + if (pigeon_options.storage_bucket()) { + app_options.set_storage_bucket(pigeon_options.storage_bucket()->c_str()); + } + if (pigeon_options.tracking_id()) { + app_options.set_ga_tracking_id(pigeon_options.tracking_id()->c_str()); + } + + return app_options; +} + +// Convert a AppOptions to PigeonInitializeOption +PigeonFirebaseOptions OptionsFromFIROptions( const firebase::AppOptions& options) { PigeonFirebaseOptions pigeon_options; @@ -90,25 +116,12 @@ static PigeonFirebaseOptions FirebaseOptionsToPigeonOptions( return pigeon_options; } -static firebase::AppOptions PigeonOptionsToFirebaseOptions( - const PigeonFirebaseOptions& options) { - firebase::AppOptions app_options; - - app_options.set_api_key(options.api_key().c_str()); - app_options.set_app_id(options.app_id().c_str()); - app_options.set_messaging_sender_id(options.messaging_sender_id().c_str()); - app_options.set_project_id(options.project_id().c_str()); - if (options.database_u_r_l()) { - app_options.set_database_url(options.database_u_r_l()->c_str()); - } - if (options.storage_bucket()) { - app_options.set_storage_bucket(options.storage_bucket()->c_str()); - } - if (options.tracking_id()) { - app_options.set_ga_tracking_id(options.tracking_id()->c_str()); - } - - return app_options; +// Convert a firebase::App to PigeonInitializeResponse +PigeonInitializeResponse AppToPigeonInitializeResponse(const App& app) { + PigeonInitializeResponse response = PigeonInitializeResponse(); + response.set_name(app.name()); + response.set_options(OptionsFromFIROptions(app.options())); + return response; } void FirebaseCoreTizenPlugin::InitializeApp( @@ -118,33 +131,29 @@ void FirebaseCoreTizenPlugin::InitializeApp( firebase::App* app = firebase::App::GetInstance(app_name.c_str()); if (!app) { app = firebase::App::Create( - PigeonOptionsToFirebaseOptions(initialize_app_request), + PigeonFirebaseOptionsToAppOptions(initialize_app_request), app_name.c_str()); } - PigeonInitializeResponse message_response; - message_response.set_name(app->name()); - message_response.set_options(FirebaseOptionsToPigeonOptions(app->options())); - - result(message_response); + // Send back the result to Flutter + result(AppToPigeonInitializeResponse(*app)); } void FirebaseCoreTizenPlugin::InitializeCore( std::function reply)> result) { - flutter::EncodableList response; + // TODO: Missing function to get the list of currently initialized apps + std::vector initializedApps; + std::vector all_apps = App::GetApps(); + for (const App* app : all_apps) { + initializedApps.push_back(AppToPigeonInitializeResponse(*app)); + } - std::vector firebase_apps = firebase::App::GetApps(); - for (auto app : firebase_apps) { - PigeonInitializeResponse message_response; - message_response.set_name(app->name()); - message_response.set_options( - FirebaseOptionsToPigeonOptions(app->options())); + flutter::EncodableList encodableList; - response.push_back( - flutter::EncodableValue(message_response.ToEncodableMap())); + for (const auto& item : initializedApps) { + encodableList.push_back(flutter::CustomEncodableValue(item)); } - - result(response); + result(encodableList); } void FirebaseCoreTizenPlugin::OptionsFromResource( @@ -177,11 +186,11 @@ void FirebaseCoreTizenPlugin::Delete( result(std::nullopt); } -} // namespace +} // namespace firebase_core_tizen void FirebaseCoreTizenPluginRegisterWithRegistrar( FlutterDesktopPluginRegistrarRef registrar) { - FirebaseCoreTizenPlugin::RegisterWithRegistrar( + firebase_core_tizen::FirebaseCoreTizenPlugin::RegisterWithRegistrar( flutter::PluginRegistrarManager::GetInstance() ->GetRegistrar(registrar)); } diff --git a/packages/firebase_core/tizen/src/messages.cc b/packages/firebase_core/tizen/src/messages.cc deleted file mode 100644 index 434583d..0000000 --- a/packages/firebase_core/tizen/src/messages.cc +++ /dev/null @@ -1,753 +0,0 @@ -// Copyright 2023, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. -// Autogenerated from Pigeon (v3.2.9), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#undef _HAS_EXCEPTIONS - -#include "messages.h" - -#include -#include -#include -#include - -#include -#include -#include - -/* PigeonFirebaseOptions */ - -const std::string& PigeonFirebaseOptions::api_key() const { return api_key_; } -void PigeonFirebaseOptions::set_api_key(std::string_view value_arg) { - api_key_ = value_arg; -} - -const std::string& PigeonFirebaseOptions::app_id() const { return app_id_; } -void PigeonFirebaseOptions::set_app_id(std::string_view value_arg) { - app_id_ = value_arg; -} - -const std::string& PigeonFirebaseOptions::messaging_sender_id() const { - return messaging_sender_id_; -} -void PigeonFirebaseOptions::set_messaging_sender_id( - std::string_view value_arg) { - messaging_sender_id_ = value_arg; -} - -const std::string& PigeonFirebaseOptions::project_id() const { - return project_id_; -} -void PigeonFirebaseOptions::set_project_id(std::string_view value_arg) { - project_id_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::auth_domain() const { - return auth_domain_ ? &(*auth_domain_) : nullptr; -} -void PigeonFirebaseOptions::set_auth_domain(const std::string_view* value_arg) { - auth_domain_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_auth_domain(std::string_view value_arg) { - auth_domain_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::database_u_r_l() const { - return database_u_r_l_ ? &(*database_u_r_l_) : nullptr; -} -void PigeonFirebaseOptions::set_database_u_r_l( - const std::string_view* value_arg) { - database_u_r_l_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_database_u_r_l(std::string_view value_arg) { - database_u_r_l_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::storage_bucket() const { - return storage_bucket_ ? &(*storage_bucket_) : nullptr; -} -void PigeonFirebaseOptions::set_storage_bucket( - const std::string_view* value_arg) { - storage_bucket_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_storage_bucket(std::string_view value_arg) { - storage_bucket_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::measurement_id() const { - return measurement_id_ ? &(*measurement_id_) : nullptr; -} -void PigeonFirebaseOptions::set_measurement_id( - const std::string_view* value_arg) { - measurement_id_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_measurement_id(std::string_view value_arg) { - measurement_id_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::tracking_id() const { - return tracking_id_ ? &(*tracking_id_) : nullptr; -} -void PigeonFirebaseOptions::set_tracking_id(const std::string_view* value_arg) { - tracking_id_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_tracking_id(std::string_view value_arg) { - tracking_id_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::deep_link_u_r_l_scheme() const { - return deep_link_u_r_l_scheme_ ? &(*deep_link_u_r_l_scheme_) : nullptr; -} -void PigeonFirebaseOptions::set_deep_link_u_r_l_scheme( - const std::string_view* value_arg) { - deep_link_u_r_l_scheme_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_deep_link_u_r_l_scheme( - std::string_view value_arg) { - deep_link_u_r_l_scheme_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::android_client_id() const { - return android_client_id_ ? &(*android_client_id_) : nullptr; -} -void PigeonFirebaseOptions::set_android_client_id( - const std::string_view* value_arg) { - android_client_id_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_android_client_id(std::string_view value_arg) { - android_client_id_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::ios_client_id() const { - return ios_client_id_ ? &(*ios_client_id_) : nullptr; -} -void PigeonFirebaseOptions::set_ios_client_id( - const std::string_view* value_arg) { - ios_client_id_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_ios_client_id(std::string_view value_arg) { - ios_client_id_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::ios_bundle_id() const { - return ios_bundle_id_ ? &(*ios_bundle_id_) : nullptr; -} -void PigeonFirebaseOptions::set_ios_bundle_id( - const std::string_view* value_arg) { - ios_bundle_id_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_ios_bundle_id(std::string_view value_arg) { - ios_bundle_id_ = value_arg; -} - -const std::string* PigeonFirebaseOptions::app_group_id() const { - return app_group_id_ ? &(*app_group_id_) : nullptr; -} -void PigeonFirebaseOptions::set_app_group_id( - const std::string_view* value_arg) { - app_group_id_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonFirebaseOptions::set_app_group_id(std::string_view value_arg) { - app_group_id_ = value_arg; -} - -flutter::EncodableMap PigeonFirebaseOptions::ToEncodableMap() const { - return flutter::EncodableMap{ - {flutter::EncodableValue("apiKey"), flutter::EncodableValue(api_key_)}, - {flutter::EncodableValue("appId"), flutter::EncodableValue(app_id_)}, - {flutter::EncodableValue("messagingSenderId"), - flutter::EncodableValue(messaging_sender_id_)}, - {flutter::EncodableValue("projectId"), - flutter::EncodableValue(project_id_)}, - {flutter::EncodableValue("authDomain"), - auth_domain_ ? flutter::EncodableValue(*auth_domain_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("databaseURL"), - database_u_r_l_ ? flutter::EncodableValue(*database_u_r_l_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("storageBucket"), - storage_bucket_ ? flutter::EncodableValue(*storage_bucket_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("measurementId"), - measurement_id_ ? flutter::EncodableValue(*measurement_id_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("trackingId"), - tracking_id_ ? flutter::EncodableValue(*tracking_id_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("deepLinkURLScheme"), - deep_link_u_r_l_scheme_ - ? flutter::EncodableValue(*deep_link_u_r_l_scheme_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("androidClientId"), - android_client_id_ ? flutter::EncodableValue(*android_client_id_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("iosClientId"), - ios_client_id_ ? flutter::EncodableValue(*ios_client_id_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("iosBundleId"), - ios_bundle_id_ ? flutter::EncodableValue(*ios_bundle_id_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("appGroupId"), - app_group_id_ ? flutter::EncodableValue(*app_group_id_) - : flutter::EncodableValue()}, - }; -} - -PigeonFirebaseOptions::PigeonFirebaseOptions() {} - -PigeonFirebaseOptions::PigeonFirebaseOptions(flutter::EncodableMap map) { - auto& encodable_api_key = map.at(flutter::EncodableValue("apiKey")); - if (const std::string* pointer_api_key = - std::get_if(&encodable_api_key)) { - api_key_ = *pointer_api_key; - } - auto& encodable_app_id = map.at(flutter::EncodableValue("appId")); - if (const std::string* pointer_app_id = - std::get_if(&encodable_app_id)) { - app_id_ = *pointer_app_id; - } - auto& encodable_messaging_sender_id = - map.at(flutter::EncodableValue("messagingSenderId")); - if (const std::string* pointer_messaging_sender_id = - std::get_if(&encodable_messaging_sender_id)) { - messaging_sender_id_ = *pointer_messaging_sender_id; - } - auto& encodable_project_id = map.at(flutter::EncodableValue("projectId")); - if (const std::string* pointer_project_id = - std::get_if(&encodable_project_id)) { - project_id_ = *pointer_project_id; - } - auto& encodable_auth_domain = map.at(flutter::EncodableValue("authDomain")); - if (const std::string* pointer_auth_domain = - std::get_if(&encodable_auth_domain)) { - auth_domain_ = *pointer_auth_domain; - } - auto& encodable_database_u_r_l = - map.at(flutter::EncodableValue("databaseURL")); - if (const std::string* pointer_database_u_r_l = - std::get_if(&encodable_database_u_r_l)) { - database_u_r_l_ = *pointer_database_u_r_l; - } - auto& encodable_storage_bucket = - map.at(flutter::EncodableValue("storageBucket")); - if (const std::string* pointer_storage_bucket = - std::get_if(&encodable_storage_bucket)) { - storage_bucket_ = *pointer_storage_bucket; - } - auto& encodable_measurement_id = - map.at(flutter::EncodableValue("measurementId")); - if (const std::string* pointer_measurement_id = - std::get_if(&encodable_measurement_id)) { - measurement_id_ = *pointer_measurement_id; - } - auto& encodable_tracking_id = map.at(flutter::EncodableValue("trackingId")); - if (const std::string* pointer_tracking_id = - std::get_if(&encodable_tracking_id)) { - tracking_id_ = *pointer_tracking_id; - } - auto& encodable_deep_link_u_r_l_scheme = - map.at(flutter::EncodableValue("deepLinkURLScheme")); - if (const std::string* pointer_deep_link_u_r_l_scheme = - std::get_if(&encodable_deep_link_u_r_l_scheme)) { - deep_link_u_r_l_scheme_ = *pointer_deep_link_u_r_l_scheme; - } - auto& encodable_android_client_id = - map.at(flutter::EncodableValue("androidClientId")); - if (const std::string* pointer_android_client_id = - std::get_if(&encodable_android_client_id)) { - android_client_id_ = *pointer_android_client_id; - } - auto& encodable_ios_client_id = - map.at(flutter::EncodableValue("iosClientId")); - if (const std::string* pointer_ios_client_id = - std::get_if(&encodable_ios_client_id)) { - ios_client_id_ = *pointer_ios_client_id; - } - auto& encodable_ios_bundle_id = - map.at(flutter::EncodableValue("iosBundleId")); - if (const std::string* pointer_ios_bundle_id = - std::get_if(&encodable_ios_bundle_id)) { - ios_bundle_id_ = *pointer_ios_bundle_id; - } - auto& encodable_app_group_id = map.at(flutter::EncodableValue("appGroupId")); - if (const std::string* pointer_app_group_id = - std::get_if(&encodable_app_group_id)) { - app_group_id_ = *pointer_app_group_id; - } -} - -/* PigeonInitializeResponse */ - -const std::string& PigeonInitializeResponse::name() const { return name_; } -void PigeonInitializeResponse::set_name(std::string_view value_arg) { - name_ = value_arg; -} - -const PigeonFirebaseOptions& PigeonInitializeResponse::options() const { - return options_; -} -void PigeonInitializeResponse::set_options( - const PigeonFirebaseOptions& value_arg) { - options_ = value_arg; -} - -const bool* PigeonInitializeResponse::is_automatic_data_collection_enabled() - const { - return is_automatic_data_collection_enabled_ - ? &(*is_automatic_data_collection_enabled_) - : nullptr; -} -void PigeonInitializeResponse::set_is_automatic_data_collection_enabled( - const bool* value_arg) { - is_automatic_data_collection_enabled_ = - value_arg ? std::optional(*value_arg) : std::nullopt; -} -void PigeonInitializeResponse::set_is_automatic_data_collection_enabled( - bool value_arg) { - is_automatic_data_collection_enabled_ = value_arg; -} - -const flutter::EncodableMap& PigeonInitializeResponse::plugin_constants() - const { - return plugin_constants_; -} -void PigeonInitializeResponse::set_plugin_constants( - const flutter::EncodableMap& value_arg) { - plugin_constants_ = value_arg; -} - -flutter::EncodableMap PigeonInitializeResponse::ToEncodableMap() const { - return flutter::EncodableMap{ - {flutter::EncodableValue("name"), flutter::EncodableValue(name_)}, - {flutter::EncodableValue("options"), - flutter::EncodableValue(options_.ToEncodableMap())}, - {flutter::EncodableValue("isAutomaticDataCollectionEnabled"), - is_automatic_data_collection_enabled_ - ? flutter::EncodableValue(*is_automatic_data_collection_enabled_) - : flutter::EncodableValue()}, - {flutter::EncodableValue("pluginConstants"), - flutter::EncodableValue(plugin_constants_)}, - }; -} - -PigeonInitializeResponse::PigeonInitializeResponse() {} - -PigeonInitializeResponse::PigeonInitializeResponse(flutter::EncodableMap map) { - auto& encodable_name = map.at(flutter::EncodableValue("name")); - if (const std::string* pointer_name = - std::get_if(&encodable_name)) { - name_ = *pointer_name; - } - auto& encodable_options = map.at(flutter::EncodableValue("options")); - if (const flutter::EncodableMap* pointer_options = - std::get_if(&encodable_options)) { - options_ = PigeonFirebaseOptions(*pointer_options); - } - auto& encodable_is_automatic_data_collection_enabled = - map.at(flutter::EncodableValue("isAutomaticDataCollectionEnabled")); - if (const bool* pointer_is_automatic_data_collection_enabled = - std::get_if(&encodable_is_automatic_data_collection_enabled)) { - is_automatic_data_collection_enabled_ = - *pointer_is_automatic_data_collection_enabled; - } - auto& encodable_plugin_constants = - map.at(flutter::EncodableValue("pluginConstants")); - if (const flutter::EncodableMap* pointer_plugin_constants = - std::get_if(&encodable_plugin_constants)) { - plugin_constants_ = *pointer_plugin_constants; - } -} - -FirebaseCoreHostApiCodecSerializer::FirebaseCoreHostApiCodecSerializer() {} -flutter::EncodableValue FirebaseCoreHostApiCodecSerializer::ReadValueOfType( - uint8_t type, flutter::ByteStreamReader* stream) const { - switch (type) { - case 128: - return flutter::CustomEncodableValue(PigeonFirebaseOptions( - std::get(ReadValue(stream)))); - - case 129: - return flutter::CustomEncodableValue(PigeonInitializeResponse( - std::get(ReadValue(stream)))); - - default: - return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); - } -} - -void FirebaseCoreHostApiCodecSerializer::WriteValue( - const flutter::EncodableValue& value, - flutter::ByteStreamWriter* stream) const { - if (const flutter::CustomEncodableValue* custom_value = - std::get_if(&value)) { - if (custom_value->type() == typeid(PigeonFirebaseOptions)) { - stream->WriteByte(128); - WriteValue(flutter::EncodableValue( - std::any_cast(*custom_value) - .ToEncodableMap()), - stream); - return; - } - if (custom_value->type() == typeid(PigeonInitializeResponse)) { - stream->WriteByte(129); - WriteValue(flutter::EncodableValue( - std::any_cast(*custom_value) - .ToEncodableMap()), - stream); - return; - } - } - flutter::StandardCodecSerializer::WriteValue(value, stream); -} - -/** The codec used by FirebaseCoreHostApi. */ -const flutter::StandardMessageCodec& FirebaseCoreHostApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( - &FirebaseCoreHostApiCodecSerializer::GetInstance()); -} - -/** Sets up an instance of `FirebaseCoreHostApi` to handle messages through the - * `binary_messenger`. */ -void FirebaseCoreHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, - FirebaseCoreHostApi* api) { - { - auto channel = - std::make_unique>( - binary_messenger, - "dev.flutter.pigeon.FirebaseCoreHostApi.initializeApp", - &GetCodec()); - if (api != nullptr) { - channel->SetMessageHandler( - [api](const flutter::EncodableValue& message, - const flutter::MessageReply& reply) { - flutter::EncodableMap wrapped; - try { - const auto& args = std::get(message); - const auto& encodable_app_name_arg = args.at(0); - if (encodable_app_name_arg.IsNull()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError("app_name_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& app_name_arg = - std::get(encodable_app_name_arg); - const auto& encodable_initialize_app_request_arg = args.at(1); - if (encodable_initialize_app_request_arg.IsNull()) { - wrapped.emplace( - flutter::EncodableValue("error"), - WrapError("initialize_app_request_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& initialize_app_request_arg = - std::any_cast( - std::get( - encodable_initialize_app_request_arg)); - api->InitializeApp( - app_name_arg, initialize_app_request_arg, - [&wrapped, - &reply](ErrorOr&& output) { - if (output.has_error()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(output.error())); - reply(flutter::EncodableValue(std::move(wrapped))); - } else { - wrapped.emplace(flutter::EncodableValue("result"), - flutter::CustomEncodableValue( - std::move(output).TakeValue())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } catch (const std::exception& exception) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(exception.what())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } else { - channel->SetMessageHandler(nullptr); - } - } - { - auto channel = - std::make_unique>( - binary_messenger, - "dev.flutter.pigeon.FirebaseCoreHostApi.initializeCore", - &GetCodec()); - if (api != nullptr) { - channel->SetMessageHandler( - [api](const flutter::EncodableValue& message, - const flutter::MessageReply& reply) { - flutter::EncodableMap wrapped; - try { - api->InitializeCore( - [&wrapped, &reply](ErrorOr&& output) { - if (output.has_error()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(output.error())); - reply(flutter::EncodableValue(std::move(wrapped))); - } else { - wrapped.emplace(flutter::EncodableValue("result"), - flutter::EncodableValue( - std::move(output).TakeValue())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } catch (const std::exception& exception) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(exception.what())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } else { - channel->SetMessageHandler(nullptr); - } - } - { - auto channel = - std::make_unique>( - binary_messenger, - "dev.flutter.pigeon.FirebaseCoreHostApi.optionsFromResource", - &GetCodec()); - if (api != nullptr) { - channel->SetMessageHandler( - [api](const flutter::EncodableValue& message, - const flutter::MessageReply& reply) { - flutter::EncodableMap wrapped; - try { - api->OptionsFromResource( - [&wrapped, &reply](ErrorOr&& output) { - if (output.has_error()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(output.error())); - reply(flutter::EncodableValue(std::move(wrapped))); - } else { - wrapped.emplace(flutter::EncodableValue("result"), - flutter::CustomEncodableValue( - std::move(output).TakeValue())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } catch (const std::exception& exception) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(exception.what())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } else { - channel->SetMessageHandler(nullptr); - } - } -} - -flutter::EncodableMap FirebaseCoreHostApi::WrapError( - std::string_view error_message) { - return flutter::EncodableMap( - {{flutter::EncodableValue("message"), - flutter::EncodableValue(std::string(error_message))}, - {flutter::EncodableValue("code"), flutter::EncodableValue("Error")}, - {flutter::EncodableValue("details"), flutter::EncodableValue()}}); -} -flutter::EncodableMap FirebaseCoreHostApi::WrapError( - const FlutterError& error) { - return flutter::EncodableMap( - {{flutter::EncodableValue("message"), - flutter::EncodableValue(error.message())}, - {flutter::EncodableValue("code"), flutter::EncodableValue(error.code())}, - {flutter::EncodableValue("details"), error.details()}}); -} - -FirebaseAppHostApiCodecSerializer::FirebaseAppHostApiCodecSerializer() {} - -/** The codec used by FirebaseAppHostApi. */ -const flutter::StandardMessageCodec& FirebaseAppHostApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( - &FirebaseAppHostApiCodecSerializer::GetInstance()); -} - -/** Sets up an instance of `FirebaseAppHostApi` to handle messages through the - * `binary_messenger`. */ -void FirebaseAppHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, - FirebaseAppHostApi* api) { - { - auto channel = - std::make_unique>( - binary_messenger, - "dev.flutter.pigeon.FirebaseAppHostApi." - "setAutomaticDataCollectionEnabled", - &GetCodec()); - if (api != nullptr) { - channel->SetMessageHandler( - [api](const flutter::EncodableValue& message, - const flutter::MessageReply& reply) { - flutter::EncodableMap wrapped; - try { - const auto& args = std::get(message); - const auto& encodable_app_name_arg = args.at(0); - if (encodable_app_name_arg.IsNull()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError("app_name_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& app_name_arg = - std::get(encodable_app_name_arg); - const auto& encodable_enabled_arg = args.at(1); - if (encodable_enabled_arg.IsNull()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError("enabled_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& enabled_arg = std::get(encodable_enabled_arg); - api->SetAutomaticDataCollectionEnabled( - app_name_arg, enabled_arg, - [&wrapped, &reply](std::optional&& output) { - if (output.has_value()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(output.value())); - reply(flutter::EncodableValue(std::move(wrapped))); - } else { - wrapped.emplace(flutter::EncodableValue("result"), - flutter::EncodableValue()); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } catch (const std::exception& exception) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(exception.what())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } else { - channel->SetMessageHandler(nullptr); - } - } - { - auto channel = - std::make_unique>( - binary_messenger, - "dev.flutter.pigeon.FirebaseAppHostApi." - "setAutomaticResourceManagementEnabled", - &GetCodec()); - if (api != nullptr) { - channel->SetMessageHandler( - [api](const flutter::EncodableValue& message, - const flutter::MessageReply& reply) { - flutter::EncodableMap wrapped; - try { - const auto& args = std::get(message); - const auto& encodable_app_name_arg = args.at(0); - if (encodable_app_name_arg.IsNull()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError("app_name_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& app_name_arg = - std::get(encodable_app_name_arg); - const auto& encodable_enabled_arg = args.at(1); - if (encodable_enabled_arg.IsNull()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError("enabled_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& enabled_arg = std::get(encodable_enabled_arg); - api->SetAutomaticResourceManagementEnabled( - app_name_arg, enabled_arg, - [&wrapped, &reply](std::optional&& output) { - if (output.has_value()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(output.value())); - reply(flutter::EncodableValue(std::move(wrapped))); - } else { - wrapped.emplace(flutter::EncodableValue("result"), - flutter::EncodableValue()); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } catch (const std::exception& exception) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(exception.what())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } else { - channel->SetMessageHandler(nullptr); - } - } - { - auto channel = - std::make_unique>( - binary_messenger, "dev.flutter.pigeon.FirebaseAppHostApi.delete", - &GetCodec()); - if (api != nullptr) { - channel->SetMessageHandler( - [api](const flutter::EncodableValue& message, - const flutter::MessageReply& reply) { - flutter::EncodableMap wrapped; - try { - const auto& args = std::get(message); - const auto& encodable_app_name_arg = args.at(0); - if (encodable_app_name_arg.IsNull()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError("app_name_arg unexpectedly null.")); - reply(flutter::EncodableValue(std::move(wrapped))); - return; - } - const auto& app_name_arg = - std::get(encodable_app_name_arg); - api->Delete( - app_name_arg, - [&wrapped, &reply](std::optional&& output) { - if (output.has_value()) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(output.value())); - reply(flutter::EncodableValue(std::move(wrapped))); - } else { - wrapped.emplace(flutter::EncodableValue("result"), - flutter::EncodableValue()); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } catch (const std::exception& exception) { - wrapped.emplace(flutter::EncodableValue("error"), - WrapError(exception.what())); - reply(flutter::EncodableValue(std::move(wrapped))); - } - }); - } else { - channel->SetMessageHandler(nullptr); - } - } -} - -flutter::EncodableMap FirebaseAppHostApi::WrapError( - std::string_view error_message) { - return flutter::EncodableMap( - {{flutter::EncodableValue("message"), - flutter::EncodableValue(std::string(error_message))}, - {flutter::EncodableValue("code"), flutter::EncodableValue("Error")}, - {flutter::EncodableValue("details"), flutter::EncodableValue()}}); -} -flutter::EncodableMap FirebaseAppHostApi::WrapError(const FlutterError& error) { - return flutter::EncodableMap( - {{flutter::EncodableValue("message"), - flutter::EncodableValue(error.message())}, - {flutter::EncodableValue("code"), flutter::EncodableValue(error.code())}, - {flutter::EncodableValue("details"), error.details()}}); -} diff --git a/packages/firebase_core/tizen/src/messages.g.cc b/packages/firebase_core/tizen/src/messages.g.cc new file mode 100644 index 0000000..763ff12 --- /dev/null +++ b/packages/firebase_core/tizen/src/messages.g.cc @@ -0,0 +1,726 @@ +// Copyright 2023, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. +// Autogenerated from Pigeon (v9.2.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon + +#undef _HAS_EXCEPTIONS + +#include "messages.g.h" + +#include +#include +#include +#include + +#include +#include +#include + +namespace firebase_core_tizen { +using flutter::BasicMessageChannel; +using flutter::CustomEncodableValue; +using flutter::EncodableList; +using flutter::EncodableMap; +using flutter::EncodableValue; + +// PigeonFirebaseOptions + +PigeonFirebaseOptions::PigeonFirebaseOptions( + const std::string& api_key, const std::string& app_id, + const std::string& messaging_sender_id, const std::string& project_id) + : api_key_(api_key), + app_id_(app_id), + messaging_sender_id_(messaging_sender_id), + project_id_(project_id) {} + +PigeonFirebaseOptions::PigeonFirebaseOptions( + const std::string& api_key, const std::string& app_id, + const std::string& messaging_sender_id, const std::string& project_id, + const std::string* auth_domain, const std::string* database_u_r_l, + const std::string* storage_bucket, const std::string* measurement_id, + const std::string* tracking_id, const std::string* deep_link_u_r_l_scheme, + const std::string* android_client_id, const std::string* ios_client_id, + const std::string* ios_bundle_id, const std::string* app_group_id) + : api_key_(api_key), + app_id_(app_id), + messaging_sender_id_(messaging_sender_id), + project_id_(project_id), + auth_domain_(auth_domain ? std::optional(*auth_domain) + : std::nullopt), + database_u_r_l_(database_u_r_l + ? std::optional(*database_u_r_l) + : std::nullopt), + storage_bucket_(storage_bucket + ? std::optional(*storage_bucket) + : std::nullopt), + measurement_id_(measurement_id + ? std::optional(*measurement_id) + : std::nullopt), + tracking_id_(tracking_id ? std::optional(*tracking_id) + : std::nullopt), + deep_link_u_r_l_scheme_( + deep_link_u_r_l_scheme + ? std::optional(*deep_link_u_r_l_scheme) + : std::nullopt), + android_client_id_(android_client_id + ? std::optional(*android_client_id) + : std::nullopt), + ios_client_id_(ios_client_id ? std::optional(*ios_client_id) + : std::nullopt), + ios_bundle_id_(ios_bundle_id ? std::optional(*ios_bundle_id) + : std::nullopt), + app_group_id_(app_group_id ? std::optional(*app_group_id) + : std::nullopt) {} + +const std::string& PigeonFirebaseOptions::api_key() const { return api_key_; } + +void PigeonFirebaseOptions::set_api_key(std::string_view value_arg) { + api_key_ = value_arg; +} + +const std::string& PigeonFirebaseOptions::app_id() const { return app_id_; } + +void PigeonFirebaseOptions::set_app_id(std::string_view value_arg) { + app_id_ = value_arg; +} + +const std::string& PigeonFirebaseOptions::messaging_sender_id() const { + return messaging_sender_id_; +} + +void PigeonFirebaseOptions::set_messaging_sender_id( + std::string_view value_arg) { + messaging_sender_id_ = value_arg; +} + +const std::string& PigeonFirebaseOptions::project_id() const { + return project_id_; +} + +void PigeonFirebaseOptions::set_project_id(std::string_view value_arg) { + project_id_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::auth_domain() const { + return auth_domain_ ? &(*auth_domain_) : nullptr; +} + +void PigeonFirebaseOptions::set_auth_domain(const std::string_view* value_arg) { + auth_domain_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_auth_domain(std::string_view value_arg) { + auth_domain_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::database_u_r_l() const { + return database_u_r_l_ ? &(*database_u_r_l_) : nullptr; +} + +void PigeonFirebaseOptions::set_database_u_r_l( + const std::string_view* value_arg) { + database_u_r_l_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_database_u_r_l(std::string_view value_arg) { + database_u_r_l_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::storage_bucket() const { + return storage_bucket_ ? &(*storage_bucket_) : nullptr; +} + +void PigeonFirebaseOptions::set_storage_bucket( + const std::string_view* value_arg) { + storage_bucket_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_storage_bucket(std::string_view value_arg) { + storage_bucket_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::measurement_id() const { + return measurement_id_ ? &(*measurement_id_) : nullptr; +} + +void PigeonFirebaseOptions::set_measurement_id( + const std::string_view* value_arg) { + measurement_id_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_measurement_id(std::string_view value_arg) { + measurement_id_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::tracking_id() const { + return tracking_id_ ? &(*tracking_id_) : nullptr; +} + +void PigeonFirebaseOptions::set_tracking_id(const std::string_view* value_arg) { + tracking_id_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_tracking_id(std::string_view value_arg) { + tracking_id_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::deep_link_u_r_l_scheme() const { + return deep_link_u_r_l_scheme_ ? &(*deep_link_u_r_l_scheme_) : nullptr; +} + +void PigeonFirebaseOptions::set_deep_link_u_r_l_scheme( + const std::string_view* value_arg) { + deep_link_u_r_l_scheme_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_deep_link_u_r_l_scheme( + std::string_view value_arg) { + deep_link_u_r_l_scheme_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::android_client_id() const { + return android_client_id_ ? &(*android_client_id_) : nullptr; +} + +void PigeonFirebaseOptions::set_android_client_id( + const std::string_view* value_arg) { + android_client_id_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_android_client_id(std::string_view value_arg) { + android_client_id_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::ios_client_id() const { + return ios_client_id_ ? &(*ios_client_id_) : nullptr; +} + +void PigeonFirebaseOptions::set_ios_client_id( + const std::string_view* value_arg) { + ios_client_id_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_ios_client_id(std::string_view value_arg) { + ios_client_id_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::ios_bundle_id() const { + return ios_bundle_id_ ? &(*ios_bundle_id_) : nullptr; +} + +void PigeonFirebaseOptions::set_ios_bundle_id( + const std::string_view* value_arg) { + ios_bundle_id_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_ios_bundle_id(std::string_view value_arg) { + ios_bundle_id_ = value_arg; +} + +const std::string* PigeonFirebaseOptions::app_group_id() const { + return app_group_id_ ? &(*app_group_id_) : nullptr; +} + +void PigeonFirebaseOptions::set_app_group_id( + const std::string_view* value_arg) { + app_group_id_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonFirebaseOptions::set_app_group_id(std::string_view value_arg) { + app_group_id_ = value_arg; +} + +EncodableList PigeonFirebaseOptions::ToEncodableList() const { + EncodableList list; + list.reserve(14); + list.push_back(EncodableValue(api_key_)); + list.push_back(EncodableValue(app_id_)); + list.push_back(EncodableValue(messaging_sender_id_)); + list.push_back(EncodableValue(project_id_)); + list.push_back(auth_domain_ ? EncodableValue(*auth_domain_) + : EncodableValue()); + list.push_back(database_u_r_l_ ? EncodableValue(*database_u_r_l_) + : EncodableValue()); + list.push_back(storage_bucket_ ? EncodableValue(*storage_bucket_) + : EncodableValue()); + list.push_back(measurement_id_ ? EncodableValue(*measurement_id_) + : EncodableValue()); + list.push_back(tracking_id_ ? EncodableValue(*tracking_id_) + : EncodableValue()); + list.push_back(deep_link_u_r_l_scheme_ + ? EncodableValue(*deep_link_u_r_l_scheme_) + : EncodableValue()); + list.push_back(android_client_id_ ? EncodableValue(*android_client_id_) + : EncodableValue()); + list.push_back(ios_client_id_ ? EncodableValue(*ios_client_id_) + : EncodableValue()); + list.push_back(ios_bundle_id_ ? EncodableValue(*ios_bundle_id_) + : EncodableValue()); + list.push_back(app_group_id_ ? EncodableValue(*app_group_id_) + : EncodableValue()); + return list; +} + +PigeonFirebaseOptions PigeonFirebaseOptions::FromEncodableList( + const EncodableList& list) { + PigeonFirebaseOptions decoded( + std::get(list[0]), std::get(list[1]), + std::get(list[2]), std::get(list[3])); + auto& encodable_auth_domain = list[4]; + if (!encodable_auth_domain.IsNull()) { + decoded.set_auth_domain(std::get(encodable_auth_domain)); + } + auto& encodable_database_u_r_l = list[5]; + if (!encodable_database_u_r_l.IsNull()) { + decoded.set_database_u_r_l(std::get(encodable_database_u_r_l)); + } + auto& encodable_storage_bucket = list[6]; + if (!encodable_storage_bucket.IsNull()) { + decoded.set_storage_bucket(std::get(encodable_storage_bucket)); + } + auto& encodable_measurement_id = list[7]; + if (!encodable_measurement_id.IsNull()) { + decoded.set_measurement_id(std::get(encodable_measurement_id)); + } + auto& encodable_tracking_id = list[8]; + if (!encodable_tracking_id.IsNull()) { + decoded.set_tracking_id(std::get(encodable_tracking_id)); + } + auto& encodable_deep_link_u_r_l_scheme = list[9]; + if (!encodable_deep_link_u_r_l_scheme.IsNull()) { + decoded.set_deep_link_u_r_l_scheme( + std::get(encodable_deep_link_u_r_l_scheme)); + } + auto& encodable_android_client_id = list[10]; + if (!encodable_android_client_id.IsNull()) { + decoded.set_android_client_id( + std::get(encodable_android_client_id)); + } + auto& encodable_ios_client_id = list[11]; + if (!encodable_ios_client_id.IsNull()) { + decoded.set_ios_client_id(std::get(encodable_ios_client_id)); + } + auto& encodable_ios_bundle_id = list[12]; + if (!encodable_ios_bundle_id.IsNull()) { + decoded.set_ios_bundle_id(std::get(encodable_ios_bundle_id)); + } + auto& encodable_app_group_id = list[13]; + if (!encodable_app_group_id.IsNull()) { + decoded.set_app_group_id(std::get(encodable_app_group_id)); + } + return decoded; +} + +// PigeonInitializeResponse + +PigeonInitializeResponse::PigeonInitializeResponse( + const std::string& name, const PigeonFirebaseOptions& options, + const EncodableMap& plugin_constants) + : name_(name), options_(options), plugin_constants_(plugin_constants) {} + +PigeonInitializeResponse::PigeonInitializeResponse( + const std::string& name, const PigeonFirebaseOptions& options, + const bool* is_automatic_data_collection_enabled, + const EncodableMap& plugin_constants) + : name_(name), + options_(options), + is_automatic_data_collection_enabled_( + is_automatic_data_collection_enabled + ? std::optional(*is_automatic_data_collection_enabled) + : std::nullopt), + plugin_constants_(plugin_constants) {} + +const std::string& PigeonInitializeResponse::name() const { return name_; } + +void PigeonInitializeResponse::set_name(std::string_view value_arg) { + name_ = value_arg; +} + +const PigeonFirebaseOptions& PigeonInitializeResponse::options() const { + return options_; +} + +void PigeonInitializeResponse::set_options( + const PigeonFirebaseOptions& value_arg) { + options_ = value_arg; +} + +const bool* PigeonInitializeResponse::is_automatic_data_collection_enabled() + const { + return is_automatic_data_collection_enabled_ + ? &(*is_automatic_data_collection_enabled_) + : nullptr; +} + +void PigeonInitializeResponse::set_is_automatic_data_collection_enabled( + const bool* value_arg) { + is_automatic_data_collection_enabled_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void PigeonInitializeResponse::set_is_automatic_data_collection_enabled( + bool value_arg) { + is_automatic_data_collection_enabled_ = value_arg; +} + +const EncodableMap& PigeonInitializeResponse::plugin_constants() const { + return plugin_constants_; +} + +void PigeonInitializeResponse::set_plugin_constants( + const EncodableMap& value_arg) { + plugin_constants_ = value_arg; +} + +EncodableList PigeonInitializeResponse::ToEncodableList() const { + EncodableList list; + list.reserve(4); + list.push_back(EncodableValue(name_)); + list.push_back(EncodableValue(options_.ToEncodableList())); + list.push_back(is_automatic_data_collection_enabled_ + ? EncodableValue(*is_automatic_data_collection_enabled_) + : EncodableValue()); + list.push_back(EncodableValue(plugin_constants_)); + return list; +} + +PigeonInitializeResponse PigeonInitializeResponse::FromEncodableList( + const EncodableList& list) { + PigeonInitializeResponse decoded(std::get(list[0]), + PigeonFirebaseOptions::FromEncodableList( + std::get(list[1])), + std::get(list[3])); + auto& encodable_is_automatic_data_collection_enabled = list[2]; + if (!encodable_is_automatic_data_collection_enabled.IsNull()) { + decoded.set_is_automatic_data_collection_enabled( + std::get(encodable_is_automatic_data_collection_enabled)); + } + return decoded; +} + +FirebaseCoreHostApiCodecSerializer::FirebaseCoreHostApiCodecSerializer() {} + +EncodableValue FirebaseCoreHostApiCodecSerializer::ReadValueOfType( + uint8_t type, flutter::ByteStreamReader* stream) const { + switch (type) { + case 128: + return CustomEncodableValue(PigeonFirebaseOptions::FromEncodableList( + std::get(ReadValue(stream)))); + case 129: + return CustomEncodableValue(PigeonInitializeResponse::FromEncodableList( + std::get(ReadValue(stream)))); + default: + return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); + } +} + +void FirebaseCoreHostApiCodecSerializer::WriteValue( + const EncodableValue& value, flutter::ByteStreamWriter* stream) const { + if (const CustomEncodableValue* custom_value = + std::get_if(&value)) { + if (custom_value->type() == typeid(PigeonFirebaseOptions)) { + stream->WriteByte(128); + WriteValue( + EncodableValue(std::any_cast(*custom_value) + .ToEncodableList()), + stream); + return; + } + if (custom_value->type() == typeid(PigeonInitializeResponse)) { + stream->WriteByte(129); + WriteValue( + EncodableValue(std::any_cast(*custom_value) + .ToEncodableList()), + stream); + return; + } + } + flutter::StandardCodecSerializer::WriteValue(value, stream); +} + +/// The codec used by FirebaseCoreHostApi. +const flutter::StandardMessageCodec& FirebaseCoreHostApi::GetCodec() { + return flutter::StandardMessageCodec::GetInstance( + &FirebaseCoreHostApiCodecSerializer::GetInstance()); +} + +// Sets up an instance of `FirebaseCoreHostApi` to handle messages through the +// `binary_messenger`. +void FirebaseCoreHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, + FirebaseCoreHostApi* api) { + { + auto channel = std::make_unique>( + binary_messenger, + "dev.flutter.pigeon.FirebaseCoreHostApi.initializeApp", &GetCodec()); + if (api != nullptr) { + channel->SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_app_name_arg = args.at(0); + if (encodable_app_name_arg.IsNull()) { + reply(WrapError("app_name_arg unexpectedly null.")); + return; + } + const auto& app_name_arg = + std::get(encodable_app_name_arg); + const auto& encodable_initialize_app_request_arg = args.at(1); + if (encodable_initialize_app_request_arg.IsNull()) { + reply( + WrapError("initialize_app_request_arg unexpectedly null.")); + return; + } + const auto& initialize_app_request_arg = + std::any_cast( + std::get( + encodable_initialize_app_request_arg)); + api->InitializeApp( + app_name_arg, initialize_app_request_arg, + [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel->SetMessageHandler(nullptr); + } + } + { + auto channel = std::make_unique>( + binary_messenger, + "dev.flutter.pigeon.FirebaseCoreHostApi.initializeCore", &GetCodec()); + if (api != nullptr) { + channel->SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + api->InitializeCore([reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel->SetMessageHandler(nullptr); + } + } + { + auto channel = std::make_unique>( + binary_messenger, + "dev.flutter.pigeon.FirebaseCoreHostApi.optionsFromResource", + &GetCodec()); + if (api != nullptr) { + channel->SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + api->OptionsFromResource( + [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel->SetMessageHandler(nullptr); + } + } +} + +EncodableValue FirebaseCoreHostApi::WrapError(std::string_view error_message) { + return EncodableValue( + EncodableList{EncodableValue(std::string(error_message)), + EncodableValue("Error"), EncodableValue()}); +} + +EncodableValue FirebaseCoreHostApi::WrapError(const FlutterError& error) { + return EncodableValue(EncodableList{EncodableValue(error.code()), + EncodableValue(error.message()), + error.details()}); +} + +/// The codec used by FirebaseAppHostApi. +const flutter::StandardMessageCodec& FirebaseAppHostApi::GetCodec() { + return flutter::StandardMessageCodec::GetInstance( + &flutter::StandardCodecSerializer::GetInstance()); +} + +// Sets up an instance of `FirebaseAppHostApi` to handle messages through the +// `binary_messenger`. +void FirebaseAppHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, + FirebaseAppHostApi* api) { + { + auto channel = std::make_unique>( + binary_messenger, + "dev.flutter.pigeon.FirebaseAppHostApi." + "setAutomaticDataCollectionEnabled", + &GetCodec()); + if (api != nullptr) { + channel->SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_app_name_arg = args.at(0); + if (encodable_app_name_arg.IsNull()) { + reply(WrapError("app_name_arg unexpectedly null.")); + return; + } + const auto& app_name_arg = + std::get(encodable_app_name_arg); + const auto& encodable_enabled_arg = args.at(1); + if (encodable_enabled_arg.IsNull()) { + reply(WrapError("enabled_arg unexpectedly null.")); + return; + } + const auto& enabled_arg = std::get(encodable_enabled_arg); + api->SetAutomaticDataCollectionEnabled( + app_name_arg, enabled_arg, + [reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel->SetMessageHandler(nullptr); + } + } + { + auto channel = std::make_unique>( + binary_messenger, + "dev.flutter.pigeon.FirebaseAppHostApi." + "setAutomaticResourceManagementEnabled", + &GetCodec()); + if (api != nullptr) { + channel->SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_app_name_arg = args.at(0); + if (encodable_app_name_arg.IsNull()) { + reply(WrapError("app_name_arg unexpectedly null.")); + return; + } + const auto& app_name_arg = + std::get(encodable_app_name_arg); + const auto& encodable_enabled_arg = args.at(1); + if (encodable_enabled_arg.IsNull()) { + reply(WrapError("enabled_arg unexpectedly null.")); + return; + } + const auto& enabled_arg = std::get(encodable_enabled_arg); + api->SetAutomaticResourceManagementEnabled( + app_name_arg, enabled_arg, + [reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel->SetMessageHandler(nullptr); + } + } + { + auto channel = std::make_unique>( + binary_messenger, "dev.flutter.pigeon.FirebaseAppHostApi.delete", + &GetCodec()); + if (api != nullptr) { + channel->SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_app_name_arg = args.at(0); + if (encodable_app_name_arg.IsNull()) { + reply(WrapError("app_name_arg unexpectedly null.")); + return; + } + const auto& app_name_arg = + std::get(encodable_app_name_arg); + api->Delete(app_name_arg, + [reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel->SetMessageHandler(nullptr); + } + } +} + +EncodableValue FirebaseAppHostApi::WrapError(std::string_view error_message) { + return EncodableValue( + EncodableList{EncodableValue(std::string(error_message)), + EncodableValue("Error"), EncodableValue()}); +} + +EncodableValue FirebaseAppHostApi::WrapError(const FlutterError& error) { + return EncodableValue(EncodableList{EncodableValue(error.code()), + EncodableValue(error.message()), + error.details()}); +} + +} // namespace firebase_core_tizen diff --git a/packages/firebase_core/tizen/src/messages.h b/packages/firebase_core/tizen/src/messages.g.h similarity index 67% rename from packages/firebase_core/tizen/src/messages.h rename to packages/firebase_core/tizen/src/messages.g.h index ae80fd1..0c9bf2f 100644 --- a/packages/firebase_core/tizen/src/messages.h +++ b/packages/firebase_core/tizen/src/messages.g.h @@ -1,11 +1,11 @@ // Copyright 2023, the Chromium project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// Autogenerated from Pigeon (v3.2.9), do not edit directly. +// Autogenerated from Pigeon (v9.2.5), do not edit directly. // See also: https://pub.dev/packages/pigeon -#ifndef PIGEON_MESSAGES_H_ -#define PIGEON_MESSAGES_H_ +#ifndef PIGEON_MESSAGES_G_H_ +#define PIGEON_MESSAGES_G_H_ #include #include #include @@ -15,15 +15,17 @@ #include #include -/* Generated class from Pigeon. */ +namespace firebase_core_tizen { + +// Generated class from Pigeon. class FlutterError { public: - FlutterError(const std::string& code) : code_(code) {} - FlutterError(const std::string& code, const std::string& message) + explicit FlutterError(const std::string& code) : code_(code) {} + explicit FlutterError(const std::string& code, const std::string& message) : code_(code), message_(message) {} - FlutterError(const std::string& code, const std::string& message, - const flutter::EncodableValue& details) + explicit FlutterError(const std::string& code, const std::string& message, + const flutter::EncodableValue& details) : code_(code), message_(message), details_(details) {} const std::string& code() const { return code_; } @@ -39,10 +41,10 @@ class FlutterError { template class ErrorOr { public: - ErrorOr(const T& rhs) { new (&v_) T(rhs); } - ErrorOr(const T&& rhs) { v_ = std::move(rhs); } - ErrorOr(const FlutterError& rhs) { new (&v_) FlutterError(rhs); } - ErrorOr(const FlutterError&& rhs) { v_ = std::move(rhs); } + ErrorOr(const T& rhs) : v_(rhs) {} + ErrorOr(const T&& rhs) : v_(std::move(rhs)) {} + ErrorOr(const FlutterError& rhs) : v_(rhs) {} + ErrorOr(const FlutterError&& rhs) : v_(std::move(rhs)) {} bool has_error() const { return std::holds_alternative(v_); } const T& value() const { return std::get(v_); }; @@ -57,10 +59,26 @@ class ErrorOr { std::variant v_; }; -/* Generated class from Pigeon that represents data sent in messages. */ +// Generated class from Pigeon that represents data sent in messages. class PigeonFirebaseOptions { public: - PigeonFirebaseOptions(); + PigeonFirebaseOptions() = default; + // Constructs an object setting all non-nullable fields. + explicit PigeonFirebaseOptions(const std::string& api_key, + const std::string& app_id, + const std::string& messaging_sender_id, + const std::string& project_id); + + // Constructs an object setting all fields. + explicit PigeonFirebaseOptions( + const std::string& api_key, const std::string& app_id, + const std::string& messaging_sender_id, const std::string& project_id, + const std::string* auth_domain, const std::string* database_u_r_l, + const std::string* storage_bucket, const std::string* measurement_id, + const std::string* tracking_id, const std::string* deep_link_u_r_l_scheme, + const std::string* android_client_id, const std::string* ios_client_id, + const std::string* ios_bundle_id, const std::string* app_group_id); + const std::string& api_key() const; void set_api_key(std::string_view value_arg); @@ -114,8 +132,9 @@ class PigeonFirebaseOptions { void set_app_group_id(std::string_view value_arg); private: - PigeonFirebaseOptions(flutter::EncodableMap map); - flutter::EncodableMap ToEncodableMap() const; + static PigeonFirebaseOptions FromEncodableList( + const flutter::EncodableList& list); + flutter::EncodableList ToEncodableList() const; friend class PigeonInitializeResponse; friend class FirebaseCoreHostApi; friend class FirebaseCoreHostApiCodecSerializer; @@ -137,10 +156,21 @@ class PigeonFirebaseOptions { std::optional app_group_id_; }; -/* Generated class from Pigeon that represents data sent in messages. */ +// Generated class from Pigeon that represents data sent in messages. class PigeonInitializeResponse { public: - PigeonInitializeResponse(); + PigeonInitializeResponse() = default; + // Constructs an object setting all non-nullable fields. + explicit PigeonInitializeResponse( + const std::string& name, const PigeonFirebaseOptions& options, + const flutter::EncodableMap& plugin_constants); + + // Constructs an object setting all fields. + explicit PigeonInitializeResponse( + const std::string& name, const PigeonFirebaseOptions& options, + const bool* is_automatic_data_collection_enabled, + const flutter::EncodableMap& plugin_constants); + const std::string& name() const; void set_name(std::string_view value_arg); @@ -154,10 +184,10 @@ class PigeonInitializeResponse { const flutter::EncodableMap& plugin_constants() const; void set_plugin_constants(const flutter::EncodableMap& value_arg); - flutter::EncodableMap ToEncodableMap() const; - private: - PigeonInitializeResponse(flutter::EncodableMap map); + static PigeonInitializeResponse FromEncodableList( + const flutter::EncodableList& list); + flutter::EncodableList ToEncodableList() const; friend class FirebaseCoreHostApi; friend class FirebaseCoreHostApiCodecSerializer; friend class FirebaseAppHostApi; @@ -171,14 +201,12 @@ class PigeonInitializeResponse { class FirebaseCoreHostApiCodecSerializer : public flutter::StandardCodecSerializer { public: + FirebaseCoreHostApiCodecSerializer(); inline static FirebaseCoreHostApiCodecSerializer& GetInstance() { static FirebaseCoreHostApiCodecSerializer sInstance; return sInstance; } - FirebaseCoreHostApiCodecSerializer(); - - public: void WriteValue(const flutter::EncodableValue& value, flutter::ByteStreamWriter* stream) const override; @@ -187,13 +215,13 @@ class FirebaseCoreHostApiCodecSerializer uint8_t type, flutter::ByteStreamReader* stream) const override; }; -/* Generated class from Pigeon that represents a handler of messages from - * Flutter. */ +// Generated interface from Pigeon that represents a handler of messages from +// Flutter. class FirebaseCoreHostApi { public: FirebaseCoreHostApi(const FirebaseCoreHostApi&) = delete; FirebaseCoreHostApi& operator=(const FirebaseCoreHostApi&) = delete; - virtual ~FirebaseCoreHostApi(){}; + virtual ~FirebaseCoreHostApi() {} virtual void InitializeApp( const std::string& app_name, const PigeonFirebaseOptions& initialize_app_request, @@ -203,36 +231,25 @@ class FirebaseCoreHostApi { virtual void OptionsFromResource( std::function reply)> result) = 0; - /** The codec used by FirebaseCoreHostApi. */ + // The codec used by FirebaseCoreHostApi. static const flutter::StandardMessageCodec& GetCodec(); - /** Sets up an instance of `FirebaseCoreHostApi` to handle messages through - * the `binary_messenger`. */ + // Sets up an instance of `FirebaseCoreHostApi` to handle messages through the + // `binary_messenger`. static void SetUp(flutter::BinaryMessenger* binary_messenger, FirebaseCoreHostApi* api); - static flutter::EncodableMap WrapError(std::string_view error_message); - static flutter::EncodableMap WrapError(const FlutterError& error); + static flutter::EncodableValue WrapError(std::string_view error_message); + static flutter::EncodableValue WrapError(const FlutterError& error); protected: FirebaseCoreHostApi() = default; }; -class FirebaseAppHostApiCodecSerializer - : public flutter::StandardCodecSerializer { - public: - inline static FirebaseAppHostApiCodecSerializer& GetInstance() { - static FirebaseAppHostApiCodecSerializer sInstance; - return sInstance; - } - - FirebaseAppHostApiCodecSerializer(); -}; - -/* Generated class from Pigeon that represents a handler of messages from - * Flutter. */ +// Generated interface from Pigeon that represents a handler of messages from +// Flutter. class FirebaseAppHostApi { public: FirebaseAppHostApi(const FirebaseAppHostApi&) = delete; FirebaseAppHostApi& operator=(const FirebaseAppHostApi&) = delete; - virtual ~FirebaseAppHostApi(){}; + virtual ~FirebaseAppHostApi() {} virtual void SetAutomaticDataCollectionEnabled( const std::string& app_name, bool enabled, std::function reply)> result) = 0; @@ -243,16 +260,17 @@ class FirebaseAppHostApi { const std::string& app_name, std::function reply)> result) = 0; - /** The codec used by FirebaseAppHostApi. */ + // The codec used by FirebaseAppHostApi. static const flutter::StandardMessageCodec& GetCodec(); - /** Sets up an instance of `FirebaseAppHostApi` to handle messages through the - * `binary_messenger`. */ + // Sets up an instance of `FirebaseAppHostApi` to handle messages through the + // `binary_messenger`. static void SetUp(flutter::BinaryMessenger* binary_messenger, FirebaseAppHostApi* api); - static flutter::EncodableMap WrapError(std::string_view error_message); - static flutter::EncodableMap WrapError(const FlutterError& error); + static flutter::EncodableValue WrapError(std::string_view error_message); + static flutter::EncodableValue WrapError(const FlutterError& error); protected: FirebaseAppHostApi() = default; }; -#endif // PIGEON_MESSAGES_H_ +} // namespace firebase_core_tizen +#endif // PIGEON_MESSAGES_G_H_ diff --git a/packages/firebase_database/example/pubspec.yaml b/packages/firebase_database/example/pubspec.yaml index 5db0b4e..684f9b9 100644 --- a/packages/firebase_database/example/pubspec.yaml +++ b/packages/firebase_database/example/pubspec.yaml @@ -5,8 +5,8 @@ environment: sdk: ">=2.18.0 <4.0.0" dependencies: - firebase_core: 2.4.1 - firebase_core_tizen: ^1.0.0 + firebase_core: ^2.17.0 + firebase_core_tizen: ^1.0.1 firebase_database: 10.0.9 firebase_database_tizen: path: .. diff --git a/packages/firebase_database/pubspec.yaml b/packages/firebase_database/pubspec.yaml index f0a7fce..4c7913f 100644 --- a/packages/firebase_database/pubspec.yaml +++ b/packages/firebase_database/pubspec.yaml @@ -8,7 +8,7 @@ environment: flutter: ">=3.3.0" dependencies: - firebase_core_tizen: ^1.0.0 + firebase_core_tizen: ^1.0.1 firebase_database: 10.0.9 firebase_database_platform_interface: 0.2.2+17 flutter: diff --git a/packages/firebase_storage/example/pubspec.yaml b/packages/firebase_storage/example/pubspec.yaml index 154cc1d..158cff4 100644 --- a/packages/firebase_storage/example/pubspec.yaml +++ b/packages/firebase_storage/example/pubspec.yaml @@ -6,8 +6,8 @@ environment: flutter: ">=3.3.0" dependencies: - firebase_core: 2.4.1 - firebase_core_tizen: ^1.0.0 + firebase_core: ^2.17.0 + firebase_core_tizen: ^1.0.1 firebase_storage: ^11.0.10 firebase_storage_tizen: ^0.1.0 flutter: diff --git a/packages/firebase_storage/pubspec.yaml b/packages/firebase_storage/pubspec.yaml index 56568a9..1ca864a 100644 --- a/packages/firebase_storage/pubspec.yaml +++ b/packages/firebase_storage/pubspec.yaml @@ -9,7 +9,7 @@ environment: flutter: ">=3.3.0" dependencies: - firebase_core_tizen: ^1.0.0 + firebase_core_tizen: ^1.0.1 firebase_storage: ^11.0.10 flutter: sdk: flutter diff --git a/tools/pubspec.lock b/tools/pubspec.lock deleted file mode 100644 index 3a505bb..0000000 --- a/tools/pubspec.lock +++ /dev/null @@ -1,404 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - url: "https://pub.dartlang.org" - source: hosted - version: "54.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - url: "https://pub.dartlang.org" - source: hosted - version: "5.6.0" - args: - dependency: "direct main" - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.17.2" - colorize: - dependency: transitive - description: - name: colorize - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.1" - coverage: - dependency: transitive - description: - name: coverage - url: "https://pub.dartlang.org" - source: hosted - version: "1.6.3" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - file: - dependency: "direct main" - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - flutter_plugin_tools: - dependency: "direct main" - description: - name: flutter_plugin_tools - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.4+3" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - url: "https://pub.dartlang.org" - source: hosted - version: "3.2.0" - git: - dependency: transitive - description: - name: git - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - glob: - dependency: transitive - description: - name: glob - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - http: - dependency: "direct main" - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.5" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - url: "https://pub.dartlang.org" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - io: - dependency: transitive - description: - name: io - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.5" - json_annotation: - dependency: transitive - description: - name: json_annotation - url: "https://pub.dartlang.org" - source: hosted - version: "4.8.0" - logging: - dependency: transitive - description: - name: logging - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.16" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.1" - mime: - dependency: transitive - description: - name: mime - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - mocktail: - dependency: "direct dev" - description: - name: mocktail - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - path: - dependency: "direct main" - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.3" - platform: - dependency: "direct main" - description: - name: platform - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - pool: - dependency: transitive - description: - name: pool - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.1" - pub_semver: - dependency: "direct main" - description: - name: pub_semver - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.3" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "3.2.1" - shelf: - dependency: transitive - description: - name: shelf - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.2" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - source_maps: - dependency: transitive - description: - name: source_maps - url: "https://pub.dartlang.org" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.11.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test: - dependency: "direct dev" - description: - name: test - url: "https://pub.dartlang.org" - source: hosted - version: "1.24.3" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.0" - test_core: - dependency: transitive - description: - name: test_core - url: "https://pub.dartlang.org" - source: hosted - version: "0.5.3" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.2" - uuid: - dependency: transitive - description: - name: uuid - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.7" - vm_service: - dependency: transitive - description: - name: vm_service - url: "https://pub.dartlang.org" - source: hosted - version: "11.2.0" - watcher: - dependency: transitive - description: - name: watcher - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.0" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - yaml: - dependency: "direct main" - description: - name: yaml - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.1" - yaml_edit: - dependency: transitive - description: - name: yaml_edit - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" -sdks: - dart: ">=2.18.0 <3.0.0"