Skip to content

Conversation

petekanev
Copy link
Contributor

@petekanev petekanev commented Jul 13, 2017

The gradle script creates its own configurations dir, it copies the flavors in src 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

@ns-bot
Copy link

ns-bot commented Jul 13, 2017

💚

Copy link
Contributor

@Plamen5kov Plamen5kov left a 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 {
Copy link
Contributor Author

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(", ");
Copy link
Contributor Author

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()
Copy link
Contributor Author

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

@ns-bot
Copy link

ns-bot commented Aug 2, 2017

💚

@ns-bot
Copy link

ns-bot commented Aug 2, 2017

💔

@ns-bot
Copy link

ns-bot commented Aug 2, 2017

💚

@petekanev petekanev force-pushed the refactor-include-gradle branch from 04cab0e to 1b87953 Compare August 4, 2017 13:37
@ns-bot
Copy link

ns-bot commented Aug 4, 2017

💚

@petekanev petekanev changed the title [DO NOT MERGE] Refactor include gradle Refactor include gradle Aug 4, 2017
@dtopuzov
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented Aug 21, 2017

💔

@dtopuzov
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented Aug 21, 2017

💔

@dtopuzov
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented Aug 21, 2017

💔

@dtopuzov
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented Aug 21, 2017

💔

@dtopuzov
Copy link
Contributor

run ci

@petekanev
Copy link
Contributor Author

run uitests

1 similar comment
@petekanev
Copy link
Contributor Author

run uitests

@Plamen5kov Plamen5kov self-requested a review September 26, 2017 12:12
@petekanev
Copy link
Contributor Author

run ci

@ns-bot
Copy link

ns-bot commented Sep 26, 2017

💔

@petekanev petekanev force-pushed the refactor-include-gradle branch from 1b87953 to 39b8936 Compare September 28, 2017 12:56
@ns-bot
Copy link

ns-bot commented Sep 28, 2017

💔

1 similar comment
@ns-bot
Copy link

ns-bot commented Sep 28, 2017

💔

…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
@petekanev petekanev force-pushed the refactor-include-gradle branch from ed12efc to 86b9d08 Compare October 6, 2017 15:08
@ns-bot
Copy link

ns-bot commented Oct 6, 2017

💔

@petekanev
Copy link
Contributor Author

run ci

@ns-bot
Copy link

ns-bot commented Oct 9, 2017

💔

@petekanev
Copy link
Contributor Author

run ci

@ns-bot
Copy link

ns-bot commented Oct 9, 2017

💚

@petekanev petekanev merged commit 2941625 into master Oct 9, 2017
@petekanev petekanev deleted the refactor-include-gradle branch October 9, 2017 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants