-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
40 lines (35 loc) · 1.17 KB
/
Copy pathbuild.gradle
File metadata and controls
40 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.13.0' apply false
id 'com.android.library' version '8.13.0' apply false
id 'org.jetbrains.kotlin.android' version '2.4.0' apply false
}
ext {
compileSdkVersion = 36
ndkVersion = '28.2.13676358'
javaVersion = JavaVersion.VERSION_17
}
allprojects {
repositories {
mavenCentral()
google()
}
}
// The :opencv module is supplied by the OpenCV Android SDK, which lives outside this repository
// (see the opencvsdk property in gradle.properties). Rather than editing that vendored build file
// in place, align it with the toolchain used by :app from here.
project(':opencv') {
afterEvaluate {
android {
compileSdk = rootProject.ext.compileSdkVersion
ndkVersion = rootProject.ext.ndkVersion
compileOptions {
sourceCompatibility = rootProject.ext.javaVersion
targetCompatibility = rootProject.ext.javaVersion
}
}
}
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}