monado/build.gradle

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

87 lines
2.8 KiB
Groovy
Raw Normal View History

// Copyright 2020-2023, Collabora, Ltd.
2020-10-13 20:10:38 +00:00
// SPDX-License-Identifier: BSL-1.0
buildscript {
ext {
kotlinVersion = '1.7.10'
latestAboutLibsRelease = '8.9.4'
androidxCoreVersion = '1.8.0'
2022-01-25 21:20:37 +00:00
androidxAnnotationVersion = '1.3.0'
androidxAppCompatVersion = '1.5.1'
androidxLifecycleVersion = '2.5.1'
2022-01-25 21:20:37 +00:00
androidxConstraintLayoutVersion = '2.1.3'
androidxCardViewVersion = '1.0.0'
androidxRecyclerViewVersion = '1.2.1'
hiltVersion = '2.45'
materialVersion = '1.8.0'
// This is the version to download if we can't find it locally.
eigenFetchVersion = '3.4.0'
// If you update this, must also update .gitlab-ci/config.yml
buildToolsVersion = '32.0.0'
}
2020-10-13 20:10:38 +00:00
repositories {
google()
mavenCentral()
2020-10-13 20:10:38 +00:00
}
dependencies {
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${latestAboutLibsRelease}"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
2020-10-13 20:10:38 +00:00
}
}
plugins {
// Android Gradle Plugin
id 'com.android.application' version '8.1.0' apply false
id 'com.android.library' version '8.1.0' apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
2020-12-09 23:24:43 +00:00
// Used for getting the eigen dir, explicit python binary, etc. from local.properties
2020-10-13 20:10:38 +00:00
id 'com.github.b3er.local.properties' version '1.1'
// For getting git describe data and formatting it how Android wants.
id "com.gladed.androidgitversion" version "0.4.14"
// For downloading e.g. the CDDL (for transitive dependencies of hilt)
2022-01-20 22:53:16 +00:00
id "de.undercouch.download" version "4.1.2"
// So we don't have to check in generated files: we start with SVGs for vector art.
id "com.quittle.svg-2-android-vector" version "0.1.0" apply false
// Spotless for Java and Kotlin's code formatting
id 'com.diffplug.spotless' version "6.22.0"
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
2020-10-13 20:10:38 +00:00
}
ext {
ndk_version = '21.4.7075529'
// If you update this, must also update .gitlab-ci/config.yml
sharedCompileSdk = 32
sharedTargetSdk = 31
2020-10-13 20:10:38 +00:00
sharedMinSdk = 26
// If you are building on Windows, you will need to explicitly set eigenIncludeDir in your
// local.properties file since the default value provided below only makes sense on *nix
eigenIncludeDir = project.findProperty('eigenIncludeDir') ?: '/usr/include/eigen3'
// If you're having trouble with a "can't find python" CMake error, you can specify the path to
// Python 3 explicitly in local.properties with a property named "pythonBinary"
pythonBinary = project.findProperty('pythonBinary')
2020-10-13 20:10:38 +00:00
}