Fix gradle warning:
WARNING:API 'ApkVariantOutput.getVersionCodeOverride()' is obsolete and has been replaced with 'VariantOutput.versionCode()'.
This commit is contained in:
parent
c5571c06ed
commit
57db43c80a
|
@ -191,7 +191,7 @@ android {
|
|||
// Known limitation: it does not modify the value in the BuildConfig.java generated file
|
||||
// See https://issuetracker.google.com/issues/171133218
|
||||
output.versionCodeOverride = baseVariantVersion + baseAbiVersionCode
|
||||
print "ABI " + output.getFilter(OutputFile.ABI) + " \t-> VersionCode = " + output.versionCodeOverride + "\n"
|
||||
print "ABI " + output.getFilter(OutputFile.ABI) + " \t-> VersionCode = " + output.versionCode + "\n"
|
||||
output.outputFileName = output.outputFileName.replace("vector-app", "vector")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue