mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-02 12:52:51 +08:00
Incorrect default sdk version issue fix
This commit is contained in:
parent
eadcd33e84
commit
905bff3d59
@ -69,7 +69,7 @@ ext {
|
|||||||
if (!project.hasProperty('cdvBuildMultipleApks')) {
|
if (!project.hasProperty('cdvBuildMultipleApks')) {
|
||||||
cdvBuildMultipleApks = null
|
cdvBuildMultipleApks = null
|
||||||
}
|
}
|
||||||
// Whether to append a 0 "abi digit" to versionCode when only a single APK is build
|
// Whether to append a 0 "abi digit" to versionCode when only a single APK is build
|
||||||
if (!project.hasProperty('cdvVersionCodeForceAbiDigit')) {
|
if (!project.hasProperty('cdvVersionCodeForceAbiDigit')) {
|
||||||
cdvVersionCodeForceAbiDigit = null
|
cdvVersionCodeForceAbiDigit = null
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ if (ext.cdvReleaseSigningPropertiesFile == null && file('../release-signing.prop
|
|||||||
// Cast to appropriate types.
|
// Cast to appropriate types.
|
||||||
ext.cdvBuildMultipleApks = cdvBuildMultipleApks == null ? false : cdvBuildMultipleApks.toBoolean();
|
ext.cdvBuildMultipleApks = cdvBuildMultipleApks == null ? false : cdvBuildMultipleApks.toBoolean();
|
||||||
ext.cdvVersionCodeForceAbiDigit = cdvVersionCodeForceAbiDigit == null ? false : cdvVersionCodeForceAbiDigit.toBoolean();
|
ext.cdvVersionCodeForceAbiDigit = cdvVersionCodeForceAbiDigit == null ? false : cdvVersionCodeForceAbiDigit.toBoolean();
|
||||||
ext.cdvMinSdkVersion = cdvMinSdkVersion == null ? null : defaultMinSdkVersion
|
ext.cdvMinSdkVersion = cdvMinSdkVersion == null ? defaultMinSdkVersion : cdvMinSdkVersion
|
||||||
ext.cdvVersionCode = cdvVersionCode == null ? null : Integer.parseInt('' + cdvVersionCode)
|
ext.cdvVersionCode = cdvVersionCode == null ? null : Integer.parseInt('' + cdvVersionCode)
|
||||||
|
|
||||||
def computeBuildTargetName(debugBuild) {
|
def computeBuildTargetName(debugBuild) {
|
||||||
@ -175,7 +175,7 @@ android {
|
|||||||
buildToolsVersion cdvBuildToolsVersion
|
buildToolsVersion cdvBuildToolsVersion
|
||||||
|
|
||||||
//This code exists for Crosswalk and other Native APIs.
|
//This code exists for Crosswalk and other Native APIs.
|
||||||
//By default, we multiply the existing version code in the Android Manifest by 10 and
|
//By default, we multiply the existing version code in the Android Manifest by 10 and
|
||||||
//add a number for each architecture. If you are not using Crosswalk or SQLite, you can
|
//add a number for each architecture. If you are not using Crosswalk or SQLite, you can
|
||||||
//ignore this chunk of code, and your version codes will be respected.
|
//ignore this chunk of code, and your version codes will be respected.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user