close
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

An example of a library depending on prebuilt assets which are downloaded in the build hook.

Usage

Run tests with dart --enable-experiment=native-assets test.

Code organization

A typical layout of a package which downloads assets:

  • tool/build.dart prebuilts assets and is exercised from a GitHub workflow.
  • A GitHub workflow that builds assets.
  • hook/build.dart downloads the prebuilt assets.
  • lib/ contains Dart code which uses the assets.