Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
migrate to null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Milvintsiss committed Mar 7, 2021
1 parent 42e3a6d commit 9c6b27c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.0.0] - 2021/03/07

* Migrate to null safety

## [1.0.0] - 2021/02/22

* Initial release
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ Add an override for linux and give it the `openSQLiteOnLinux` function provided
runApp(MyApp());
}

And... that's it! No need to provide your own libsqlite3.so file🙂
And... that's it! No need to provide your own libsqlite3.so file🙂

>For the moment the package does not provide support for arm64 architectures, if you need it feel
> free to do a pull request!
8 changes: 4 additions & 4 deletions lib/sqlite3_library_linux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const default_sqlite3_linux_libraryPath =
const old_sqlite3_linux_libraryPath =
'/data/flutter_assets/packages/sqlite3_library_linux/old_libsqlite3.so';

///This function open SQLite3 in memory and return the associated DynamicLibrary
///object.
DynamicLibrary openSQLiteOnLinux() {
DynamicLibrary library;
///This function open SQLite3 in memory and return the associated DynamicLibrary.
///Return null if app fail to open SQLite3.
DynamicLibrary? openSQLiteOnLinux() {
DynamicLibrary? library;

String executableDirectoryPath =
File(Platform.resolvedExecutable).parent.path;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ packages:
source: hosted
version: "2.1.0"
sdks:
dart: ">=2.12.0-0 <3.0.0"
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.17.0"
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: sqlite3_library_linux
description: Flutter package to bundle sqlite3 library to your linux apps
version: 1.0.0
version: 2.0.0
repository: https://github.com/Milvintsiss/sqlite3_library_linux
homepage: https://github.com/Milvintsiss/sqlite3_library_linux

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: '>=2.12.0 <3.0.0'
flutter: ">=1.17.0"

dependencies:
Expand Down

0 comments on commit 9c6b27c

Please sign in to comment.