Skip to content

Commit

Permalink
Allowed extending the RemoteConfig class (firebase#687)
Browse files Browse the repository at this point in the history
* Allowed extending the RemoteConfig class
  • Loading branch information
creativecreatorormaybenot authored and kroikie committed Jul 26, 2018
1 parent 7adb332 commit 7b4b2a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/firebase_remote_config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.6

* Allowed extending the RemoteConfig class.

## 0.0.5

* Bump Android and Firebase dependency versions.
Expand Down
4 changes: 1 addition & 3 deletions packages/firebase_remote_config/lib/src/remote_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class RemoteConfig extends ChangeNotifier {
LastFetchStatus _lastFetchStatus;
RemoteConfigSettings _remoteConfigSettings;

RemoteConfig._();

DateTime get lastFetchTime => _lastFetchTime;
LastFetchStatus get lastFetchStatus => _lastFetchStatus;
RemoteConfigSettings get remoteConfigSettings => _remoteConfigSettings;
Expand All @@ -41,7 +39,7 @@ class RemoteConfig extends ChangeNotifier {
final Map<dynamic, dynamic> properties =
await channel.invokeMethod('RemoteConfig#instance');

final RemoteConfig instance = new RemoteConfig._();
final RemoteConfig instance = new RemoteConfig();

instance._lastFetchTime =
new DateTime.fromMillisecondsSinceEpoch(properties['lastFetchTime']);
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_remote_config/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Remote Config. Update your application
re-releasing.
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_remote_config
version: 0.0.5
version: 0.0.6

dependencies:
flutter:
Expand Down

0 comments on commit 7b4b2a3

Please sign in to comment.