Speed up build

use all processors and fix lint issue
This commit is contained in:
Simon 2024-05-06 13:30:19 +01:00
parent ee4dd3b857
commit 193c3f4765

View file

@ -30,7 +30,9 @@ android {
abiFilters 'arm64-v8a'
}
ndkBuild {
abiFilters 'arm64-v8a'
def numProcs = Runtime.runtime.availableProcessors()
arguments "V=0", "-j$numProcs", "-C$project.buildDir.parent", "APP_PLATFORM=android-29", "NDK_TOOLCHAIN_VERSION=clang", "APP_STL=c++_static"
abiFilters 'arm64-v8a'
}
}
minSdkVersion 26
@ -52,6 +54,12 @@ android {
assets.srcDirs = ['../../assets']
}
}
lintOptions {
checkReleaseBuilds false
disable 'ExpiredTargetSdkVersion'
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'