1/*
2 * Copyright 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18plugins {
19    id("AndroidXPlugin")
20    id("AndroidXComposePlugin")
21    id("com.android.application")
22    id("org.jetbrains.kotlin.android")
23}
24
25dependencies {
26
27    implementation(libs.kotlinStdlib)
28    implementation(project(":glance:glance"))
29    implementation(project(":glance:glance-appwidget"))
30    implementation(project(":glance:glance-material"))
31    implementation(project(":glance:glance-material3"))
32    implementation("androidx.activity:activity:1.4.0")
33    implementation("androidx.activity:activity-compose:1.4.0")
34    implementation("androidx.compose.ui:ui:1.1.0-beta02")
35    implementation("androidx.compose.foundation:foundation:1.1.0-beta02")
36    implementation("androidx.compose.foundation:foundation-layout:1.1.0-beta02")
37    implementation("androidx.compose.material:material:1.4.0")
38    implementation("androidx.datastore:datastore-preferences-core:1.0.0")
39    implementation("androidx.datastore:datastore-preferences:1.0.0")
40    implementation "androidx.compose.material3:material3:1.0.0"
41}
42
43android {
44    namespace = "androidx.glance.appwidget.demos"
45    // TODO(b/313699418): need to update compose.runtime version to 1.6.0+ in glance-appwidget
46    experimentalProperties["android.lint.useK2Uast"] = false
47    compileSdk = 35
48}
49