Skip to content

Commit c658d04

Browse files
committed
3.2.1 Corrected Apache Licence
1 parent 00b2206 commit c658d04

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.2.1
2+
June 04, 2020
3+
- Corrected Apache Licence
4+
15
## 3.2.0
26
April 26, 2020
37
- Export SharedPreferences

example/main.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,3 @@ _incrementCounter() async {
2121
print('Pressed $counter times.');
2222
Prefs.setInt('counter', counter);
2323
}
24-
25-
26-

lib/prefs.dart

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
///
22
/// Copyright (C) 2018 Andrious Solutions Ltd.
33
///
4-
/// This program is free software; you can redistribute it and/or
5-
/// modify it under the terms of the GNU General Public License
6-
/// as published by the Free Software Foundation; either version 3
7-
/// of the License, or any later version.
8-
///
4+
/// Licensed under the Apache License, Version 2.0 (the "License");
5+
/// you may not use this file except in compliance with the License.
96
/// You may obtain a copy of the License at
107
///
11-
/// http://www.apache.org/licenses/LICENSE-2.0
12-
///
8+
/// http://www.apache.org/licenses/LICENSE-2.0
139
///
1410
/// Unless required by applicable law or agreed to in writing, software
1511
/// distributed under the License is distributed on an "AS IS" BASIS,
@@ -80,9 +76,9 @@ class Prefs {
8076
/// Returns true if persistent storage the contains the given [key].
8177
static bool containsKey(String key) {
8278
assert(_initCalled,
83-
"Prefs.init() must be called first in an initState() preferably!");
79+
"Prefs.init() must be called first in an initState() preferably!");
8480
assert(_prefsInstance != null,
85-
"Maybe call Prefs.containsKeyF() instead. SharedPreferences not ready yet!");
81+
"Maybe call Prefs.containsKeyF() instead. SharedPreferences not ready yet!");
8682
return _prefsInstance.containsKey(key);
8783
}
8884

@@ -98,7 +94,7 @@ class Prefs {
9894
return contains;
9995
}
10096

101-
/// Reads a value of any type from persistent storage.
97+
/// Reads a value of any type from persistent storage.
10298
static dynamic get(String key) {
10399
assert(_initCalled,
104100
"Prefs.init() must be called first in an initState() preferably!");

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: prefs
22
description: A Library Package that utilizes the plugin, shared_preferences, to store and read an app’s preferences in both the Android and the iOS platform.
3-
version: 3.2.0
3+
version: 3.2.1
44
author: Greg Perry <support@andrioussolutions.com>
55
homepage: https://github.com/AndriousSolutions/prefs
66
repository: https://github.com/AndriousSolutions/prefs

0 commit comments

Comments
 (0)