-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathbuild.gradle.kts
135 lines (123 loc) · 4.81 KB
/
build.gradle.kts
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("maven-publish")
id("signing")
id("org.jetbrains.dokka") version "1.5.0"
}
android {
namespace = "live.hms.vb_prebuilt"
compileSdk = 34
defaultConfig {
minSdk = 21
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.8"
}
}
dependencies {
implementation(platform("androidx.compose:compose-bom:2024.06.00"))
implementation(project(":prebuilt-themes"))
implementation("androidx.compose.ui:ui-android:1.6.8")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3-android:1.2.1")
debugImplementation("androidx.compose.ui:ui-tooling")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1")
// Optional - Integration with LiveData
implementation("androidx.compose.ui:ui-viewbinding:1.3.2")
implementation("androidx.compose.runtime:runtime-livedata")
implementation("com.github.bumptech.glide:compose:1.0.0-beta01")
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.10.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
// implementation(platform('androidx.compose:compose-bom:2023.10.01'))
//
// // Material Design 3
// implementation 'androidx.compose.material3:material3'
// implementation 'androidx.compose.foundation:foundation'
// implementation 'androidx.compose.ui:ui-tooling-preview'
// debugImplementation 'androidx.compose.ui:ui-tooling'
//// UI Tests
// androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
// debugImplementation 'androidx.compose.ui:ui-test-manifest'
//// Optional - Integration with ViewModels
// implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1'
// // Optional - Integration with LiveData
// implementation "androidx.compose.ui:ui-viewbinding:1.3.2"
// implementation 'androidx.compose.runtime:runtime-livedata'
// implementation "com.github.bumptech.glide:compose:1.0.0-beta01"
}
val HMS_ROOM_KIT_VERSION : String by project
val publishing_licence_url : String by project
val publishing_licence_name : String by project
val publishing_project_url : String by project
val publishing_developer_id : String by project
val publishing_developer_name : String by project
val publishing_developer_email : String by project
publishing {
publications {
register<MavenPublication>("release") {
groupId = "live.100ms.room-kit"
artifactId = "virtual-background-bottomsheet"
version = HMS_ROOM_KIT_VERSION
afterEvaluate {
from(components["release"])
}
pom {
// Avoid trying to sign local builds
if (rootProject.properties["ossrhUsername"] != "") {
signing {
sign(publishing.publications["release"])
}
}
name.set("100ms.live Android Room Kit virtual background component")
description.set("The UI component that defines the virtual background")
url.set(publishing_project_url)
licenses {
license {
name.set(publishing_licence_name)
url.set(publishing_licence_url)
}
}
developers {
developer {
id.set(publishing_developer_id)
name.set(publishing_developer_name)
email.set(publishing_developer_email)
}
}
scm {
connection.set("SCM is private")
developerConnection.set("SCM is private")
url.set("https://github.com/100mslive/100ms-android")
}
}
}
}
}