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/** 18 * This file was created using the `create_project.py` script located in the 19 * `<AndroidX root>/development/project-creator` directory. 20 * 21 * Please use that script when creating a new project, rather than copying an existing project and 22 * modifying its settings. 23 */ 24import androidx.build.ApkCopyHelperKt 25import androidx.build.SoftwareType 26 27plugins { 28 id("AndroidXPlugin") 29 id("com.android.application") 30 id("AndroidXComposePlugin") 31 id("org.jetbrains.kotlin.android") 32} 33 34android { 35 compileSdk = 35 36 defaultConfig { 37 applicationId = "androidx.compose.material.catalog" 38 versionCode 2600 39 versionName "2.6.0" 40 } 41 buildTypes { 42 release { 43 minifyEnabled = true 44 shrinkResources = true 45 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') 46 } 47 } 48 namespace = "androidx.compose.material.catalog" 49} 50 51dependencies { 52 implementation(libs.kotlinStdlib) 53 implementation("androidx.compose.runtime:runtime:1.7.5") 54 implementation("androidx.compose.ui:ui:1.7.5") 55 implementation("androidx.compose.foundation:foundation-layout:1.7.5") 56 implementation("androidx.compose.material:material-icons-core:1.6.7") 57 implementation(project(":compose:material:material")) 58 implementation(project(":compose:material3:material3")) 59 implementation(project(":compose:material:material:integration-tests:material-catalog")) 60 implementation(project(":compose:material3:material3:integration-tests:material3-catalog")) 61 implementation "androidx.activity:activity-compose:1.3.1" 62 implementation(project(":navigation:navigation-compose")) 63 // old version of common-java8 conflicts with newer version, because both have 64 // DefaultLifecycleEventObserver. 65 // Outside of androidx this is resolved via constraint added to lifecycle-common, 66 // but it doesn't work in androidx. 67 // See aosp/1804059 68 implementation "androidx.lifecycle:lifecycle-common-java8:2.5.1" 69} 70 71// We want to publish a release APK of this project for the Compose Material Catalog 72ApkCopyHelperKt.setupAppApkCopy(project, "release") 73 74androidx { 75 name = "Compose Material Catalog app" 76 type = SoftwareType.TEST_APPLICATION 77 inceptionYear = "2021" 78 description = "This is a project for the Compose Material Catalog app." 79} 80