d2-build-helper
66 строк · 2.0 Кб
1plugins {
2id("com.android.application")
3id("org.jetbrains.kotlin.android")
4}
5
6android {
7namespace = "com.nonoxy.d2buildhelper"
8compileSdk = 34
9
10defaultConfig {
11applicationId = "com.nonoxy.d2buildhelper"
12minSdk = 27
13targetSdk = 34
14versionCode = 1
15versionName = "1.0"
16
17testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18vectorDrawables {
19useSupportLibrary = true
20}
21}
22
23buildTypes {
24release {
25isMinifyEnabled = false
26proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
27}
28}
29compileOptions {
30sourceCompatibility = JavaVersion.VERSION_1_8
31targetCompatibility = JavaVersion.VERSION_1_8
32}
33kotlinOptions {
34jvmTarget = "1.8"
35}
36buildFeatures {
37compose = true
38}
39composeOptions {
40kotlinCompilerExtensionVersion = "1.5.1"
41}
42packaging {
43resources {
44excludes += "/META-INF/{AL2.0,LGPL2.1}"
45}
46}
47}
48
49dependencies {
50
51implementation("androidx.core:core-ktx:1.10.1")
52implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
53implementation("androidx.activity:activity-compose:1.7.0")
54implementation(platform("androidx.compose:compose-bom:2023.08.00"))
55implementation("androidx.compose.ui:ui")
56implementation("androidx.compose.ui:ui-graphics")
57implementation("androidx.compose.ui:ui-tooling-preview")
58implementation("androidx.compose.material3:material3")
59testImplementation("junit:junit:4.13.2")
60androidTestImplementation("androidx.test.ext:junit:1.1.5")
61androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
62androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
63androidTestImplementation("androidx.compose.ui:ui-test-junit4")
64debugImplementation("androidx.compose.ui:ui-tooling")
65debugImplementation("androidx.compose.ui:ui-test-manifest")
66}