mirror of
https://github.com/markusfisch/BinaryEye.git
synced 2024-09-20 03:52:16 +02:00
168ccf7d10
But keep using a special version for `buildToolsVersion` since RenderScript requires a minimum of 29.0.3 on Catalina what doesn't work on Linux yet.
53 lines
1.2 KiB
Groovy
53 lines
1.2 KiB
Groovy
buildscript {
|
|
// Since RenderScript can no longer be compiled on macOS Catalina
|
|
// because Catalina cannot run 32bit binaries and Google failed
|
|
// to provide a 64bit compiler in time. Now, as if that wasn't
|
|
// bad enough, the new build tools that provide a 64bit compiler
|
|
// don't work on any other system than macOS unfortunately.
|
|
ext.is_catalina = {
|
|
if (System.properties['os.name'] == 'Mac OS X') {
|
|
def numbers = System.properties['os.version'].split('\\.')
|
|
if (numbers.length > 1) {
|
|
return numbers[1].toInteger() >= 15
|
|
}
|
|
}
|
|
return false
|
|
}()
|
|
|
|
ext {
|
|
kotlin_version = '1.3.61'
|
|
tools_version = '3.6.1'
|
|
build_tools_version = ext.is_catalina ? '29.0.3' : '28.0.3'
|
|
sdk_version = 29
|
|
support_version = '25.3.1'
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:$tools_version"
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
|
|
gradle.projectsEvaluated {
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint:unchecked"
|
|
}
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|