matrix_sdk_sqflite 0.15.2

Matrix Dart SDK Sqflite #

A sqflite store implementation for the Matrix Dart SDK.

This store is only usable on Flutter.

Usage #

   import 'package:matrix_sdk/matrix_sdk.dart';
   import 'package:matrix_sdk/matrix_sdk_sqflite_store.dart';
   
   void main() async {
     final store = SqfliteStore(path: 'matrix.sqlite');
     
     final hs = Homeserver(Url.parse('https://pattle.im'));
     final user = await hs.login(Username('pat'), 'pattle', store: store);
   }

0.15.2 #

  • Save room topic

  • Use latest sqflite

  • Format and correct code using dartfmt

    For new merge requests, code is checked with dartfmt and dartanalyzer whether it's formatted and correct.

0.15.0 #

  • Implement from and count in getMembers(..)

0.14.1 #

  • Save member count of rooms
  • Remove pubspec.lock

0.14.0 #

  • Update Matrix SDK

0.13.0 #

  • Save room replacement and replaces id for room upgrades
  • Move parsing room parsing logic to _parseRoomRow(..)

0.12.0 #

  • Update Matrix SDK

0.11.0 #

  • Update Matrix SDK

0.10.0 #

  • Enforce URL validity

0.9.2 #

  • Fix error when current_user_state_view exists

0.9.1 #

  • Don't use column syntax when creating view This was unsupported on older Android versions.

0.9.0 #

  • Save LeftRooms
  • Fix rooms not being updated

0.8.0 #

  • Remove from from getRoomEvents
  • Rename to to until in getRoomEvents

0.7.0 #

  • Store room creator

0.6.0 #

  • Update dependencies

0.5.0 #

  • Update Matrix SDK to 0.8.0

0.4.0 #

  • Fix wrong avatar used for room
  • Update Matrix SDK

0.3.0 #

  • Keep track of user states

0.2.4 #

  • Make parseRoomRow private
  • Fix getJoinedRooms (thanks to Mathieu Velten!)

0.2.3 #

  • Fix avatar url not being parsed
  • Update Matrix SDK

0.2.2 #

  • Save user avatars

0.2.1 #

  • Save directUser of Rooms

0.2.0 #

  • Update Matrix SDK

0.1.17 #

  • Implement getUnsentEvents

0.1.16 #

  • Save user information from member change events
  • Revert 0.1.15

0.1.15 #

  • Fix events not being retrieved if no user matches

0.1.14 #

  • Implement removeEvent()

0.1.13 #

  • Make userFromDb() private
  • Fix delete() implementation
  • Update Matrix SDK

0.1.12 #

  • Implement delete()

0.1.11 #

  • Update Matrix SDK

0.1.10 #

  • Store previous batch token of rooms

0.1.9 #

  • Add time column for events
  • Implement limit when fetching events
  • Use cascading operator for batches
  • Use a single combined primary key for members

0.1.8 #

  • Lock sqflite version for now

    A higher version seem to crash

0.1.7 #

  • Add user info when retrieving events

0.1.6 #

  • Fix migration and implement members

0.1.5 #

  • Fix not waiting for creation of database

0.1.4 #

  • Clean database on version increase

    This is a temporary measure, when everything becomes more stable actual migrations will take place.

0.1.3 #

  • Store avatar urls

0.1.2 #

  • Implement returning isOpen bool in open()
  • Implement homeserver and user id storage
  • Implement getEvent(s)

0.1.1 #

  • Remove version from pubspec

0.1.0 #

  • Implement the store

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  matrix_sdk_sqflite: ^0.15.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:matrix_sdk_sqflite/matrix_sdk_sqflite.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
66
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
85
Overall:
Weighted score of the above. [more]
80
Learn more about scoring.

We analyzed this package on Jul 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and matrix_sdk_sqflite.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-5 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
matrix_sdk ^0.19.2 0.19.6
sqflite ^1.1.6 1.1.6+2
Transitive dependencies
async 2.3.0
charcode 1.1.2
chopper 2.4.2
collection 1.14.11
http 0.12.0+2
http_parser 3.1.3
kiwi 0.2.0
logging 0.11.3+2
meta 1.1.6 1.1.7
path 1.6.2
pedantic 1.8.0+1
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.4
synchronized 2.1.0+1
term_glyph 1.1.0
typed_data 1.1.6
url 1.0.1
validators 2.0.0+1
vector_math 2.0.8
Dev dependencies
flutter_test

Admin