1+ plugins {
2+ id(" com.android.application" )
3+ id(" org.jetbrains.kotlin.android" )
4+ }
5+
6+ android {
7+ namespace = " co.yml.projectsetp"
8+ val androidSDK = ytemplate.android.build.AndroidSdk
9+ compileSdk = androidSDK.COMPILE_SDK
10+
11+ defaultConfig {
12+ applicationId= " ytemplate.android"
13+ minSdk = androidSDK.MIN_SDK
14+ targetSdk = androidSDK.TARGET_SDK
15+ versionCode = 1
16+ versionName = " 1.0"
17+
18+ testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
19+ vectorDrawables {
20+ useSupportLibrary = true
21+ }
22+ }
23+ buildTypes {
24+ getByName(" release" ){
25+ isMinifyEnabled = false
26+ proguardFiles(getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro" )
27+ }
28+ }
29+ compileOptions {
30+ sourceCompatibility = JavaVersion .VERSION_1_8
31+ targetCompatibility = JavaVersion .VERSION_1_8
32+ }
33+ kotlinOptions {
34+ jvmTarget = " 1.8"
35+ }
36+ buildFeatures {
37+ compose = true
38+ }
39+ composeOptions {
40+ kotlinCompilerExtensionVersion = " 1.1.1"
41+ }
42+ packagingOptions {
43+ resources {
44+ excludes + = " /META-INF/{AL2.0,LGPL2.1}"
45+ }
46+ }
47+ }
48+
49+ dependencies {
50+ val androidLib = ytemplate.android.build.AndroidLib
51+ val testLib = ytemplate.android.build.TestLib
52+ implementation (androidLib.CORE_KTX )
53+ implementation (androidLib.RUNTIME_KTX )
54+ implementation (androidLib.COMPOSE_ACTIVITY )
55+ implementation (androidLib.COMPOSE_UI )
56+ implementation (androidLib.COMPOSE_PREVIEW )
57+ implementation (androidLib.COMPOSE_MATERIAL )
58+ testImplementation (testLib.JUNIT )
59+ androidTestImplementation (androidLib.JUNIT_ANDROID )
60+ androidTestImplementation (androidLib.ESPRESSO_TEST )
61+ androidTestImplementation (androidLib.COMPOSE_UI_TESTING )
62+ debugImplementation (androidLib.COMPOSE_TOOLING_TESTING )
63+ debugImplementation (androidLib.COMPOSE_UI_MANIFEST_TEST )
64+ }
0 commit comments