Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
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
4 changes: 4 additions & 0 deletions packages/firebase_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1+1

* Add nil check on static functions to prevent crashes or unwanted behaviors.

## 0.3.1

* Remove an assertion that can interfere with hot-restart.
Expand Down
6 changes: 6 additions & 0 deletions packages/firebase_core/ios/Classes/FirebaseCorePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#import <Firebase/Firebase.h>

static NSDictionary *getDictionaryFromFIROptions(FIROptions *options) {
if (!options) {
return nil;
}
return @{
@"googleAppID" : options.googleAppID ?: [NSNull null],
@"bundleID" : options.bundleID ?: [NSNull null],
Expand All @@ -23,6 +26,9 @@
}

static NSDictionary *getDictionaryFromFIRApp(FIRApp *app) {
if (!app) {
return nil;
}
return @{@"name" : app.name, @"options" : getDictionaryFromFIROptions(app.options)};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Core, enabling connecting to multiple
Firebase apps.
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_core
version: 0.3.1
version: 0.3.1+1

flutter:
plugin:
Expand Down
4 changes: 4 additions & 0 deletions packages/firebase_database/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.2

* Fix the issue that `getDictionaryFromError` always returns non nil result even when the parameter is nil.

## 2.0.1+3

* Fixing DatabaseReference.set unhandled exception which happened when a successful operation was performed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
}

static NSDictionary *getDictionaryFromError(NSError *error) {
if (!error) {
return nil;
}
return @{
@"code" : @(error.code),
@"message" : error.domain ?: [NSNull null],
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_database/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Database, a cloud-hosted NoSQL database
with realtime data syncing across Android and iOS clients, and offline access.
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_database
version: 2.0.1+3
version: 2.0.2

flutter:
plugin:
Expand Down