-
-
Notifications
You must be signed in to change notification settings - Fork 198
Add support for custom platform templates #1525
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
Remove rimraf as dependency
Do not install the CLI
Fixes issues with Genymotion being first in the PATH
Conflicts: lib/common
Update node-winreg dependency
Merge release in master
Set version to 1.7.0
# Conflicts: # lib/common # package.json
Merge release in master
|
run ci |
1 similar comment
|
run ci |
Cleans and builds
Introduce `grunt rebuild`
lib/services/platform-service.ts
Outdated
| pathToTemplate: installedTemplatePath | ||
| }; | ||
| } catch(err) { | ||
| this.$logger.warn(`Unable to install platform template ${specifiedTemplate}. Default template will be used.`); |
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.
maybe we should throw correct error here instead of just printing warning
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 second this.
lib/services/platform-service.ts
Outdated
| let tempDir = temp.mkdirSync("platform-template"); | ||
| try { | ||
| let installedTemplatePath = this.$npm.install(specifiedTemplate, tempDir, {"ignore-scripts": true, "production": true}).wait()[0][1]; | ||
| return { |
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.
If you rename installedTemplatePath, you can use the short syntax here. Not a stopper, though.
Allow build.xcconfig in app/App_Resources/iOS/build.xcconfig
# Conflicts: # lib/common
Merge release in master
Livesync does not work when /data/local/tmp/<app-identifier> file exists on Android device. This happens when a file with name app-identifier exists in /data/local/tmp directory on device. In this case CLI is not able to create directory.
…c-isit-folder Delete /data/local/tmp/<app-identifier> file if exists on Android device
Add new option when adding platform: `--platform-template`. When it is used, CLI will use the specified template instead of the default template from the runtime. The path to the specified template will be saved in project's package.json, so next time when platform is added, the same template will be used. In case when `--platform-template` is not passed, CLI will check the package.json and if there's value for the template, it will be used. Otherwise the default template from runtime will be used.
1df7d02 to
d5bd3ad
Compare
|
Close and retarget to master |
Add new option when adding platform:
--platform-template. When it is used, CLI will use the specified template instead of the default template from the runtime. The path to the specified template will be saved in project's package.json, so next time when platform is added, the same template will be used.In case when
--platform-templateis not passed, CLI will check the package.json and if there's value for the template, it will be used. Otherwise the default template from runtime will be used.Sample usage: