Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 0011f7f

Browse files
author
Emmanuel Garcia
committed
Set instances
1 parent b14bbc4 commit 0011f7f

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

packages/path_provider/path_provider_windows/lib/src/path_provider_windows_real.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class VersionInfoQuerier {
4949
class PathProviderWindows extends PathProviderPlatform {
5050
/// Registers the Windows implementation.
5151
static void registerWith() {
52-
// TODO(stuartmorgan): Fill this up.
52+
PathProviderPlatform.instance = PathProviderWindows();
5353
}
5454

5555
/// The object to use for performing VerQueryValue calls.

packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ import 'package:shared_preferences_platform_interface/shared_preferences_platfor
1616
///
1717
/// This class implements the `package:shared_preferences` functionality for Linux.
1818
class SharedPreferencesLinux extends SharedPreferencesStorePlatform {
19-
/// The default instance of [SharedPreferencesLinux] to use.
20-
static SharedPreferencesLinux instance = SharedPreferencesLinux();
21-
2219
/// Registers the Linux implementation.
2320
static void registerWith() {
24-
// TODO(stuartmorgan): Fill this up.
21+
SharedPreferencesStorePlatform.instance = SharedPreferencesLinux();
2522
}
2623

2724
/// Local copy of preferences

packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ import 'package:path_provider_windows/path_provider_windows.dart';
1515
///
1616
/// This class implements the `package:shared_preferences` functionality for Windows.
1717
class SharedPreferencesWindows extends SharedPreferencesStorePlatform {
18-
/// The default instance of [SharedPreferencesWindows] to use.
19-
static SharedPreferencesWindows instance = SharedPreferencesWindows();
20-
2118
/// Registers the Windows implementation.
2219
static void registerWith() {
23-
// TODO(stuartmorgan): Fill this up.
20+
SharedPreferencesStorePlatform.instance = SharedPreferencesWindows();
2421
}
2522

2623
/// File system used to store to disk. Exposed for testing only.

0 commit comments

Comments
 (0)