-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Conversation
ping @Mitko-Kerezov , @TsvetanMilanov , @ikoevska |
ping @Plamen5kov |
👍 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) { |
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.
remove this if
, getSysInfo is caching
👍 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.
3e8dcdc
to
3865b9b
Compare
run ci |
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.` + |
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.
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.
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.