Merged
Conversation
# Conflicts: # version.gradle.kts
Contributor
Author
|
@alexander-yevsyukov, @armiol, PTAL. |
alexander-yevsyukov
requested changes
Nov 17, 2020
Contributor
alexander-yevsyukov
left a comment
There was a problem hiding this comment.
Please see my comments.
plugin/src/test/java/io/spine/tools/gradle/bootstrap/BootstrapPluginTest.java
Show resolved
Hide resolved
plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/SpineBootstrapPluginTest.java
Show resolved
Hide resolved
Contributor
What happens if Dart is not installed? How would Would we show the user hits on installation required components? |
Contributor
Author
|
When it comes to not installed packages, the error messages are pretty informative. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introducing support for Dart.
Just like JavaScript modules, Dart modules are meant to be used for the frontend of a Spine-based application.
In order to add a Dart (possibly, Flutter) module to a project, a user needs to:
build.gradle(presuming that the project already uses Bootstrap):spine.enableDart()Note that the
--forceflag is used to let the tool know it's OK to create the project in an already existing directory.6. In newly created
pubspec.yaml, add the Spine client dependency:The user is only required to go through these steps one time, when the project is being set up.
Bootstrap sets up code generation, both standard and Spine specific for the user.
By default, Dart classes are generated from Protobuf into the
libdirectory for the main scope and thetestdirectory for the test scope. To generate code from Protobuf which is not declared in the same subproject, as always, theprotobufdependency configuration should be used in Gradle.The plugin DOES NOT keep the version of the
spine_clientpackage, as well as any other package up to date with the whole Spine framework. This responsibility, for now, lies on the plugin users.