在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dpa99c/cordova-android-support-gradle-release开源软件地址(OpenSource Url):https://github.com/dpa99c/cordova-android-support-gradle-release开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):DEPRECATION NOTICEThis plugin is deprecated and no longer maintained since the Android Support Library it itself deprecated and has been superseded by the AndroidX (Jetifier) library. cordova-android-support-gradle-releaseThis Cordova/Phonegap plugin for Android aligns various versions of the Android Support libraries specified by other plugins to a specific version. Table of Contents PurposeTL;DR: To prevent build failures caused by including different versions of the support libraries. Some Cordova plugins include Android Support Libraries to faciliate them. Most commonly, these are now included into the Cordova project by specifying them as Gradle dependencies (see the Cordova plugin spec documentation). Example plugins:
The problem arises when these plugins specify different versions of the support libraries. This can cause build failures to occur, which are not easy to resolve without changes by the plugin authors to align the specified versions. See these issues:
To resolve these version collisions, this plugin injects a Gradle configuration file into the native Android platform project, which overrides any versions specified by other plugins, and forces them to the version specified in its Gradle file. If you're encountering similar problems with the Play Services and/or Firebase libraries, checkout the sister plugins: Installation
The plugin needs to be installed with the If you're installing with
Library versionsDefault versionBy default, this plugin will use the major version of the most recent release of the support libraries - see here for a list recent versions. "Most recent release" means the highest major version that will not result in an Alpha or Beta version being included.
For example, if the most recent versions are:
Then this plugin will default to Other versionsIn some cases, you may want to specify a different version of the support libraries. For example, Telerik ImagePicker plugin v2.1.7 specifies In this case, including the default version of this plugin will still result in a build error. So this plugin enables you to specify other versions of the support library using the In the above case, you'd want to install v23 of the support library. To so, you'd specify the version via the variable:
Example casesExample 1Uses v25 of the support libraries to fix the build issue.
Observe the build succeeds and in the console output is
Observe the build failed and in the console output is higher than
Observe the build succeeds and in the console output is Example 2Uses v23 of the support libraries to fix the build issue, because v2.1.7 of the ImagePicker only works with v23.
Observe the build succeeds and in the console output is
Observe the build failed and in the console output is higher than
Observe the build still failed and in the console output is still higher than
Observe the build succeeds and in the console output is v23 of Android Support Library. CreditsThanks to Chris Scott, Transistor Software for his idea of extending the initial implementation to support dynamic specification of the library version via a plugin variable in cordova-google-api-version LicenseThe MIT License Copyright (c) 2017 Dave Alden / Working Edge Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论