2021-05-18 16:53:25 +00:00
|
|
|
// Copyright 2020-2021, Collabora, Ltd.
|
2020-10-13 20:10:38 +00:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
buildscript {
|
2020-11-12 15:22:07 +00:00
|
|
|
ext {
|
2021-05-18 16:56:03 +00:00
|
|
|
kotlinVersion = '1.5.0'
|
2021-05-18 16:40:48 +00:00
|
|
|
|
|
|
|
// Skip 8.8.6 - see https://github.com/mikepenz/AboutLibraries/issues/648
|
|
|
|
latestAboutLibsRelease = '8.8.5'
|
2020-11-12 15:22:07 +00:00
|
|
|
|
|
|
|
androidxCoreVersion = "1.3.2"
|
2021-04-06 15:45:47 +00:00
|
|
|
androidxAnnotationVersion = '1.2.0'
|
2020-11-12 15:22:07 +00:00
|
|
|
androidxAppCompatVersion = "1.2.0"
|
|
|
|
androidxLifecycleVersion = "2.2.0"
|
|
|
|
androidxConstraintLayoutVersion = '2.0.4'
|
|
|
|
|
2021-05-18 16:53:25 +00:00
|
|
|
hiltVersion = '2.35.1'
|
2020-11-12 23:18:25 +00:00
|
|
|
|
2021-05-18 16:55:21 +00:00
|
|
|
materialVersion = "1.3.0"
|
2022-05-26 16:43:11 +00:00
|
|
|
|
|
|
|
// This is the version to download if we can't find it locally.
|
|
|
|
eigenFetchVersion = '3.4.0'
|
2020-11-12 15:22:07 +00:00
|
|
|
}
|
2020-10-13 20:10:38 +00:00
|
|
|
repositories {
|
|
|
|
google()
|
2020-10-30 21:13:05 +00:00
|
|
|
mavenCentral()
|
2020-10-13 20:10:38 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-05-18 00:13:19 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:4.2.1'
|
2021-05-18 16:56:03 +00:00
|
|
|
//noinspection DifferentKotlinGradleVersion
|
2020-11-12 15:22:07 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
2020-10-30 21:13:05 +00:00
|
|
|
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${latestAboutLibsRelease}"
|
2020-11-12 20:16:05 +00:00
|
|
|
classpath 'com.quittle:svg-2-android-vector:0.0.5'
|
2020-11-12 23:18:25 +00:00
|
|
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
|
|
|
|
|
2020-10-13 20:10:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
plugins {
|
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'
|
2020-10-30 21:15:24 +00:00
|
|
|
|
|
|
|
// For getting git describe data and formatting it how Android wants.
|
|
|
|
id "com.gladed.androidgitversion" version "0.4.13"
|
2020-11-12 23:21:41 +00:00
|
|
|
|
|
|
|
// For downloading e.g. the CDDL (for transitive dependencies of hilt)
|
|
|
|
id "de.undercouch.download" version "4.1.1"
|
2020-10-13 20:10:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2022-01-20 23:49:11 +00:00
|
|
|
ndk_version = '21.4.7075529'
|
2020-10-13 20:10:38 +00:00
|
|
|
sharedTargetSdk = 30
|
|
|
|
sharedMinSdk = 26
|
|
|
|
|
2020-10-29 19:49:01 +00:00
|
|
|
// If you are building on Windows, you will need to explicitly set eigenIncludeDir in your
|
2021-05-14 19:54:52 +00:00
|
|
|
// local.properties file since the default value provided below only makes sense on *nix
|
|
|
|
eigenIncludeDir = project.findProperty('eigenIncludeDir') ?: '/usr/include/eigen3'
|
2020-11-02 16:20:41 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
2021-05-05 20:42:33 +00:00
|
|
|
mavenCentral()
|
2020-10-13 20:10:38 +00:00
|
|
|
}
|
|
|
|
}
|