-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
83 lines (68 loc) · 2.27 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
83 lines (68 loc) · 2.27 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
id("io.deepmedia.tools.grease")
}
grease {
relocate()
}
android {
namespace = "io.deepmedia.tools.grease.sample.library"
ndkVersion = "23.1.7779620"
compileSdk = 34
defaultConfig {
minSdk = 21
// Configure manifest placeholders to test that they are correctly replaced
// in our manifest processing step.
manifestPlaceholders["placeholder"] = "replacement"
// Configure native library libgrease to test that it's correctly packed
// in the output together with those of our dependencies.
ndk {
abiFilters.addAll(setOf("x86", "x86_64", "armeabi-v7a", "arm64-v8a"))
}
// Configure proguard files.
proguardFiles(
getDefaultProguardFile(com.android.build.gradle.ProguardFiles.ProguardFile.OPTIMIZE.fileName),
"proguard-rules.pro"
)
consumerProguardFile("consumer-rules.pro")
// Configure some flavors for testing configurations.
flavorDimensions.addAll(listOf("color", "shape"))
productFlavors {
create("blue") { dimension = "color" }
create("green") { dimension = "color" }
create("circle") { dimension = "shape" }
create("triangle") { dimension = "shape" }
}
}
buildTypes {
release {
isMinifyEnabled = true
}
}
externalNativeBuild {
cmake {
path = file("src/main/CMakeLists.txt")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}
dependencies {
grease("androidx.core:core:1.0.0")
grease(project(":sample-dependency-pure"))
grease(project(":sample-dependency-library"))
// include deps to pom when publishing
api("com.google.android.material:material:1.0.0")
// Includes resource and some manifest changes
implementation("androidx.lifecycle:lifecycle-runtime:2.8.4")
// Includes native libraries
grease("org.tensorflow:tensorflow-lite:2.3.0")
// Manifest changes, layout resources
grease("com.otaliastudios:cameraview:2.7.2")
}