SaltechSystems / couchbase_lite

Flutter plugin for the Community edition of Couchbase Lite. Couchbase Lite is an embedded lightweight, document-oriented (NoSQL), syncable database engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to build the example app on v3.0.0-nullsafety.1

matsunanaro opened this issue · comments

Describe the bug
Failed to build the example app using v3.0.0-nullsafety.1.
The example app appears not to be migrated to null safety yet; while its parent package has!

To Reproduce
Steps to reproduce the behavior:

  1. Launch IDE e.g. Visual Studio

  2. Click on the main.dart file under the example subfolder

  3. Build

  4. The following errors will appear:
    BuiltValueNullFieldError.checkNotNull(
    ^^^^^^^^^^^^
    ../lib/src/replicated_document.g.dart:85:30: Error: Method not found: 'BuiltValueNullFieldError.checkNotNull'.
    BuiltValueNullFieldError.checkNotNull(id, 'ReplicatedDocument', 'id');

                          ^^^^^^^^^^^^
    

../lib/src/replicated_document.g.dart:86:30: Error: Method not found: 'BuiltValueNullFieldError.checkNotNull'.
BuiltValueNullFieldError.checkNotNull(flags, 'ReplicatedDocument', 'flags');
^^^^^^^^^^^^
Additional context
If you open the file "example/pubspec.yaml", the environment is still set to:

environment:
sdk: ">=2.6.0 <3.0.0"

It clearly indicates that the example app needs to be migrated to null safety. Or it won't build successfully

Fixed the issue on the PR I just created