-
-
Notifications
You must be signed in to change notification settings - Fork 141
Refactor include gradle #798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💚 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it out, and it works great. It s a good first step towards a better incremental build and CLI modularity. We
still need to think if there's a need to make CLI backward compatible with current template changes.
//////////////////////////////////////////////////////////////////////////////////// | ||
///////////////////////////// CONFIGURATION PHASE ////////////////////////////////// | ||
//////////////////////////////////////////////////////////////////////////////////// | ||
task applyAppGradleConfiguration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finalizes applyPluginsIncludeGradleConfigurations
apply from: it | ||
} | ||
|
||
def concatenatedDimensions = dimensions.collect { "\"${it}\"" }.join(", "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apply through flavorDimensions
def (dimensions, includes) = applyPluginIncludeGradles() flavorDimensions(*dimensions)
|
||
apply from: includeFile | ||
|
||
configurationsDir.deleteDir() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to the front of the task
💚 |
💔 |
💚 |
04cab0e
to
1b87953
Compare
💚 |
run ci |
💔 |
run ci |
💔 |
run ci |
💔 |
run ci |
💔 |
run ci |
run uitests |
1 similar comment
run uitests |
run ci |
💔 |
1b87953
to
39b8936
Compare
💔 |
1 similar comment
💔 |
…ating those copied from the CLI note: this is a temporary workaround, not a permanent solution, as it's not an incremental solution
copy flavor directories that may contain manifests and other resources from node_modules instead of relying on the CLI delete the configurations directory after applying flavors and dimensions
remove redundant runtime gradle project script throw exception if build script is used with a CLI that doesn't produce 'dependencies.json'
make plugin config tasks into functions which are called during gradle's config step
ed12efc
to
86b9d08
Compare
💔 |
run ci |
💔 |
run ci |
💚 |
The gradle script creates its own
configurations
dir, it copies the flavors insrc
on its own, and configures aar dependencies without having to copy them in the project beforehand.Heavily based off work by @PanayotCankov
Depends on NativeScript/nativescript-cli#3032 first making it into the master branch