Skip to content
Draft
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
9 changes: 9 additions & 0 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.10 - 2024-06-09

* Update packages

## 2.0.9 - 2023-10-14

* Update packages
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To manage the migration use this package https://pub.dev/packages/version_migrat
Add in pubspec:

```
native_shared_preferences: ^2.0.9
native_shared_preferences: ^2.0.10
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:8.1.2'
}
}

Expand All @@ -22,7 +22,7 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
compileSdkVersion 31
compileSdkVersion 36

if (project.android.hasProperty("namespace")) {
namespace 'yeniellandestoy.native_shared_preferences'
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ public class NativeSharedPreferencesPlugin implements FlutterPlugin {
private static final String CHANNEL_NAME = "native_shared_preferences";
private MethodChannel channel;

public static void registerWith(PluginRegistry.Registrar registrar) {
final NativeSharedPreferencesPlugin plugin = new NativeSharedPreferencesPlugin();
plugin.setupChannel(registrar.messenger(), registrar.context());
}

@Override
public void onAttachedToEngine(FlutterPlugin.FlutterPluginBinding binding) {
setupChannel(binding.getBinaryMessenger(), binding.getApplicationContext());
Expand Down
2 changes: 2 additions & 0 deletions ios/Classes/NativeSharedPreferencesPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ +(void)mapDateToMilliseconds:(NSDictionary *)dictionary mappedDictionary:(NSMuta

[self mapDateToMilliseconds:(NSDictionary *)element mappedDictionary:newMappedDictionary];
[newArray addObject:newMappedDictionary];
} else if ([element isKindOfClass:[NSDate class]]) {
[newArray addObject:[NSNumber numberWithDouble:floor([((NSDate *)element) timeIntervalSince1970] * 1000)]];
} else {
[newArray addObject:element];
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: native_shared_preferences
description: This packages is a copy of the shared_prefrences package but without the prefix in the keys. Is used to migrate the data from previous native app.
version: 2.0.9
version: 2.0.10
homepage: https://github.com/yeniel/native_shared_preferences

environment:
Expand Down