This package is a placeholder for generated mojom bindings. It contains a script lib/generate.dart.
This script generates Mojo bindings for a Dart package. Dart packages will be populated according to the DartPackage annotations in .mojom files. Any .mojom files that don't have an annotation will have their bindings generated into a local copy of the 'mojom' package. Annotations specifying the host package will cause generation into the host package's lib/ directory. For every other DartPackage annotation, the bindings will be generated into the named package, either into the global package cache if a package of that name has already been fetched, or into a local directory created under the current package's packages/ directory.
Generated Mojo bindings in other pub packages should be installed into this
package by saying the following after
$ dart -p packages packages/mojom/generate.dart
If desired, additional directories holding .mojom.dart files can be specified; their contents will be installed to this package as well:
$ dart -p packages packages/mojom/generate.dart -a </path/to/mojom/dir>
$ dart packages/mojom/generate.dart [-p package-root] [-a additional-dirs] [-m mojo-sdk] [-g] # Generate from .mojom files [-d] # Download from .mojoms files [-i] # Ignore duplicates [-v] # verbose [-f] # Fake (dry) run
Declare dependency on mojo 0.1.x
Add this to your package's pubspec.yaml file:
dependencies: mojom: "^0.2.36"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
|0.2.36||Aug 17, 2016|
|0.2.35||Jul 1, 2016|
|0.2.34||Jun 28, 2016|
|0.2.33||Jun 13, 2016|
|0.2.32||Jun 2, 2016|
|0.2.31||May 23, 2016|
|0.2.30||May 18, 2016|
|0.2.29||May 13, 2016|
|0.2.28||May 7, 2016|
|0.2.27||Apr 7, 2016|
We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in libraries.
Homepage does not exists.
We were unable to access
https://github.com/domokit/mojoat the time of the analysis.
Fix analysis and formatting issues.
Analysis or formatting checks reported 1 error 10 hints.
Strong-mode analysis of
lib/src/mojom_finder.dartfailed with the following error:
line: 139 col: 37
The method 'readAsString' isn't defined for the class 'FileSystemEntity'.
Strong-mode analysis of
lib/src/generate.dartgave the following hint:
line: 404 col: 35
'packageRoot' is deprecated and shouldn't be used.
Similar analysis of the following files failed:
Package is getting outdated.
The package was released 95 weeks ago.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.9.0 <2.0.0|