Skip to content

Add devDependencies when adding Android platform #1681

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

Merged
merged 1 commit into from
Apr 15, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

In order to support Static Binding Generation, we have to add some dev Dependencies to the project when platform Android is added.
As some of them do not work with Nodejs 0.x, we have to limit this functionality only to users who are using node 4.2.1 (the earliest version of 4.x that we support) or later.
Show warning in case the user has older node version.
Remove --staticBindings flag as it's turned on by default now.

@rosen-vladimirov rosen-vladimirov self-assigned this Apr 15, 2016
@rosen-vladimirov rosen-vladimirov added this to the 2.0 milestone Apr 15, 2016
@rosen-vladimirov
Copy link
Contributor Author

ping @Mitko-Kerezov , @TsvetanMilanov , @ikoevska

@rosen-vladimirov
Copy link
Contributor Author

ping @Plamen5kov

@Plamen5kov
Copy link
Contributor

Plamen5kov commented Apr 15, 2016

👍 the android-runtime already has this flag in master, so whenever you feel ready you can merge, so tests are run with CLI


private _sysInfoData: ISysInfoData;
private get sysInfoData(): ISysInfoData {
if(!this._sysInfoData) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this if, getSysInfo is caching

@rosen-vladimirov
Copy link
Contributor Author

👍 from @Mitko-Kerezov after fixing comments

In order to support Static Binding Generation, we have to add some dev Dependencies to the project when platform Android is added.
As some of them do not work with Nodejs 0.x, we have to limit this functionality only to users who are using node 4.2.1 (the earliest version of 4.x that we support) or later.
Show warning in case the user has older node version.
Remove --staticBindings flag as it's turned on by default now.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/add-android-dev-deps branch from 3e8dcdc to 3865b9b Compare April 15, 2016 11:13
@Mitko-Kerezov
Copy link
Contributor

run ci

@rosen-vladimirov rosen-vladimirov merged commit a65c4c1 into master Apr 15, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/add-android-dev-deps branch April 15, 2016 12:36
this.$npm.install(`${dependency.name}@${dependency.version}`, this.$projectData.projectDir, npmConfig).wait()
);
} else {
this.$logger.printMarkdown(` As you are using Node.js \`${this.sysInfoData.nodeVer}\` Static Binding Generator will be turned off.` +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static Binding Generator will be turned off because you are using Node.js ${this.sysInfoData.nodeVer} .

To use the Static Binding Generator, upgrade your Node.js to ${AndroidProjectService.MIN_REQUIRED_NODEJS_VERSION_FOR_STATIC_BINDINGS} or later.

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.

4 participants