mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 13:17:43 +00:00
Remove unnecessary testOptions
This commit is contained in:
parent
9a8a99a5a7
commit
66ea01ad29
@ -107,19 +107,6 @@ android {
|
|||||||
checkReleaseBuilds = false
|
checkReleaseBuilds = false
|
||||||
}
|
}
|
||||||
|
|
||||||
testOptions {
|
|
||||||
unitTests.all {
|
|
||||||
it.jvmArgs = it.jvmArgs.orEmpty() + listOf(
|
|
||||||
"--add-opens=java.base/java.lang=ALL-UNNAMED",
|
|
||||||
"--add-opens=java.base/java.security=ALL-UNNAMED",
|
|
||||||
"--add-opens=java.base/sun.security.rsa=ALL-UNNAMED",
|
|
||||||
"--add-opens=java.base/sun.security.x509=ALL-UNNAMED",
|
|
||||||
"--add-opens=java.base/java.util=ALL-UNNAMED",
|
|
||||||
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
applicationVariants.all {
|
applicationVariants.all {
|
||||||
val variant = this
|
val variant = this
|
||||||
logger.quiet("Found a variant called ${variant.name}")
|
logger.quiet("Found a variant called ${variant.name}")
|
||||||
@ -133,7 +120,7 @@ android {
|
|||||||
try {
|
try {
|
||||||
val hash = "git rev-parse --short HEAD".runCommand(workingDir = rootDir)
|
val hash = "git rev-parse --short HEAD".runCommand(workingDir = rootDir)
|
||||||
val newName = "${project.name}-${variant.name}-${hash}.apk"
|
val newName = "${project.name}-${variant.name}-${hash}.apk"
|
||||||
logger.quiet(" Found an output file ${output.outputFile.name}, renaming to ${newName}")
|
logger.quiet(" Found an output file ${output.outputFile.name}, renaming to $newName")
|
||||||
output.outputFileName = newName
|
output.outputFileName = newName
|
||||||
} catch (ignored: Exception) {
|
} catch (ignored: Exception) {
|
||||||
logger.warn("Could not make use of the 'git' command-line tool. Output filenames will not be customized.")
|
logger.warn("Could not make use of the 'git' command-line tool. Output filenames will not be customized.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user