Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.34 KB

README.md

File metadata and controls

69 lines (47 loc) · 1.34 KB

flutter todoapp built with tlfs

Codemagic build status

Download tlfs and tlfsc

To update tlfs or tlfsc run

dart run tlfs:download_tlfs

Build schema

Whenever the schema is changed in assets/todoapp.tlfs, it needs to be recompiled using the bin/build_schema.dart script.

dart run tlfs:build_schema

Add compiled schema as an asset

flutter:
  assets:
  - assets/todoapp.tlfs.rkyv

Add tlfs to linux build

install(FILES "../build/tlfs/linux/libtlfs.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
  COMPONENT Runtime)

Add tlfs to android build

mkdir -p android/app/src/main/jniLibs/arm64-v8a
ln -s build/tlfs/android/libltfs.so android/app/src/main/jniLibs/arm64-v8a/libtlfs.so

Add tlfs to ios build

Create a new plugin or copy packages/tlfs_ios. Symlink the static library

ln -s build/tlfs/ios/libtlfs.a packages/tlfs_ios/ios/libtlfs.a

and add it to the podspec file.

  s.static_framework = true
  s.vendored_libraries = '**/*.a'

and finally add the plugin to your dependencies

dependencies:
  tlfs_ios:
    path: packages/tlfs_ios

License

Apache-2.0 OR MIT