Skip to content

Commit 37053de

Browse files
authored
refactor: drop support for the Encrypted Shared Preferences package
1 parent 907f3c5 commit 37053de

File tree

7 files changed

+6
-167
lines changed

7 files changed

+6
-167
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
1012
- fix comment in JsonCacheHive class constructor — [120](https://github.com/dartoos-dev/json_cache/issues/120).
1113

14+
### Removed
15+
16+
- drop support for the 'EncryptedSharedPreferences' package — **BREAKING CHANGE**[125](https://github.com/dartoos-dev/json_cache/issues/125).
17+
1218
## [1.5.2] - 2023-02-28
1319

1420
### Changed

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Rultor.com](https://www.rultor.com/b/dartoos-dev/json_cache)](https://www.rultor
2929
- [JsonCacheMem — Thread-safe In-memory cache](#jsoncachemem)
3030
- [JsonCacheTry — Enhanced Diagnostic Messages](#jsoncachetry)
3131
- [JsonCachePrefs — SharedPreferences](#jsoncacheprefs)
32-
- [JsonCacheEncPrefs — EncryptedSharedPreferences](#jsoncacheencprefs)
3332
- [JsonCacheLocalStorage — LocalStorage](#jsoncachelocalstorage)
3433
- [JsonCacheSecStorage — FlutterSecureStorage](#jsoncachesecstorage)
3534
- [JsonCacheCrossLocalStorage — CrossLocalStorage](#jsoncachecrosslocalstorage)
@@ -273,20 +272,6 @@ is an implementation on top of the
273272
final JsonCache jsonCache = JsonCacheMem(JsonCachePrefs(prefs));
274273
275274
```
276-
277-
### JsonCacheEncPrefs
278-
279-
[JsonCacheEncPrefs](https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheEncPrefs-class.html)
280-
is an implementation on top of the
281-
[encrypted_shared_preferences](https://pub.dev/packages/encrypted_shared_preferences)
282-
package.
283-
284-
```dart
285-
286-
final encPrefs = EncryptedSharedPreferences();
287-
final JsonCache jsonCache = JsonCacheMem(JsonCacheEncPrefs(encPrefs));
288-
289-
```
290275
### JsonCacheLocalStorage
291276

292277
[JsonCacheLocalStorage](https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheLocalStorage-class.html)

lib/json_cache.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ library json_cache;
33

44
export 'src/json_cache.dart';
55
export 'src/json_cache_cross_local_storage.dart';
6-
export 'src/json_cache_enc_prefs.dart';
76
export 'src/json_cache_exception.dart';
87
export 'src/json_cache_fake.dart';
98
export 'src/json_cache_hive.dart';

lib/src/json_cache_enc_prefs.dart

Lines changed: 0 additions & 48 deletions
This file was deleted.

pubspec.lock

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ packages:
2222
url: "https://pub.dartlang.org"
2323
source: hosted
2424
version: "2.4.0"
25-
asn1lib:
26-
dependency: transitive
27-
description:
28-
name: asn1lib
29-
url: "https://pub.dartlang.org"
30-
source: hosted
31-
version: "1.4.0"
3225
async:
3326
dependency: transitive
3427
description:
@@ -92,20 +85,6 @@ packages:
9285
url: "https://pub.dartlang.org"
9386
source: hosted
9487
version: "3.0.2"
95-
encrypt:
96-
dependency: transitive
97-
description:
98-
name: encrypt
99-
url: "https://pub.dartlang.org"
100-
source: hosted
101-
version: "5.0.1"
102-
encrypted_shared_preferences:
103-
dependency: "direct main"
104-
description:
105-
name: encrypted_shared_preferences
106-
url: "https://pub.dartlang.org"
107-
source: hosted
108-
version: "3.0.1"
10988
fake_async:
11089
dependency: transitive
11190
description:
@@ -380,13 +359,6 @@ packages:
380359
url: "https://pub.dartlang.org"
381360
source: hosted
382361
version: "2.1.4"
383-
pointycastle:
384-
dependency: transitive
385-
description:
386-
name: pointycastle
387-
url: "https://pub.dartlang.org"
388-
source: hosted
389-
version: "3.7.1"
390362
pool:
391363
dependency: transitive
392364
description:

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ environment:
1010

1111
dependencies:
1212
cross_local_storage: ^2.0.1
13-
encrypted_shared_preferences: ^3.0.1
1413
flutter:
1514
sdk: flutter
1615
flutter_secure_storage: ^8.0.0

test/json_cache_enc_prefs_test.dart

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)