Title: Build plugins with the same gradle versions as the runtime · Issue #3719 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Build plugins with the same gradle versions as the runtime · Issue #3719 · NativeScript/nativescript-cli
X Title: Build plugins with the same gradle versions as the runtime · Issue #3719 · NativeScript/nativescript-cli
Description: When CLI builds .aar for a plugin, it uses hardcoded gradle versions. Instead, we should use the same version that is used for building the project. The version there is part of the tns-android package. We can take it by reading the pack...
Open Graph Description: When CLI builds .aar for a plugin, it uses hardcoded gradle versions. Instead, we should use the same version that is used for building the project. The version there is part of the tns-android pac...
X Description: When CLI builds .aar for a plugin, it uses hardcoded gradle versions. Instead, we should use the same version that is used for building the project. The version there is part of the tns-android pac...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/3719
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build plugins with the same gradle versions as the runtime","articleBody":"When CLI builds `.aar` for a plugin, it uses hardcoded gradle versions. Instead, we should use the same version that is used for building the project. The version there is part of the `tns-android` package.\r\nWe can take it by reading the package.json of the `tns-android` from `registry.npmjs.org` and apply the versions before building the plugin. The required versions will be added in the `tns-android` package.json with [this PR](https://github.com/NativeScript/android-runtime/pull/1103). Once it is published and before building a plugin, CLI can request data from registry.npmjs.org and get it based on the version. In case CLI works outside of a project, i.e. just building a plugin, we can default to the latest version of the runtime and get data from it. \r\nWe also need to fallback in case there's no such entries to versions 4.4 and 3.1.2\r\nOnce we have the versions, we can replace them in the [build.gradle](https://github.com/NativeScript/nativescript-cli/blob/master/vendor/gradle-plugin/build.gradle) and [gradle-wrapper.properties](https://github.com/NativeScript/nativescript-cli/blob/master/vendor/gradle-plugin/gradle/wrapper/gradle-wrapper.properties) that CLI uses to build the plugin.\r\n\r\nThis way, when we have to update the gradle versions in Android runtime, we'll receive them directly in CLI.","author":{"url":"https://github.com/rosen-vladimirov","@type":"Person","name":"rosen-vladimirov"},"datePublished":"2018-07-03T08:58:33Z","url":"https://github.com/NativeScript/nativescript-cli/issues/3719"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2c67b4d-1fc6-0681-43fa-c94f670cd877 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8DC:842EC:24C1C47:3102E7E:6B01A047 |
| html-safe-nonce | 613572bece0dbcf64178c8d9f2849ed8b8ec876bd83d024a866c440dd73f0215 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOERDOjg0MkVDOjI0QzFDNDc6MzEwMkU3RTo2QjAxQTA0NyIsInZpc2l0b3JfaWQiOiIzMDkwMzE3MDA5NTA2OTAyMDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bd9612a9651790d138659eb737becd11c15b801f52bcf0c1c11fa17726798d71 |
| hovercard-subject-tag | issue:337805131 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/3719/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d6c01ca50f217372d06defba1169e29a8b50dfcd5e51042556f2032b4caeacf/NativeScript/nativescript-cli/issues/3719 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d6c01ca50f217372d06defba1169e29a8b50dfcd5e51042556f2032b4caeacf/NativeScript/nativescript-cli/issues/3719 |
| og:image:alt | When CLI builds .aar for a plugin, it uses hardcoded gradle versions. Instead, we should use the same version that is used for building the project. The version there is part of the tns-android pac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rosen-vladimirov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width