1plugins { 2 id 'com.android.application' version '7.4.2' apply false 3 id 'org.jetbrains.kotlin.android' version '1.8.0' apply false 4} 5 6apply plugin: 'com.android.application' 7apply plugin: 'org.jetbrains.kotlin.android' 8 9android { 10 namespace 'com.android.sharetest' 11 compileSdkPreview 'UpsideDownCake' 12 13 defaultConfig { 14 applicationId "com.android.sharetest" 15 minSdk 33 16 targetSdk 33 17 versionCode 1 18 versionName "1.0" 19 20 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 21 vectorDrawables { 22 useSupportLibrary true 23 } 24 } 25 sourceSets { 26 main { 27 manifest.srcFile 'AndroidManifest.xml' 28 java.srcDirs = ['src'] 29 res.srcDirs = ['res'] 30 assets.srcDirs = ['assets'] 31 } 32 } 33 buildTypes { 34 release { 35 minifyEnabled false 36 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 37 } 38 } 39 compileOptions { 40 sourceCompatibility JavaVersion.VERSION_1_8 41 targetCompatibility JavaVersion.VERSION_1_8 42 } 43 kotlinOptions { 44 jvmTarget = '1.8' 45 } 46 packagingOptions { 47 resources { 48 excludes += '/META-INF/{AL2.0,LGPL2.1}' 49 } 50 } 51} 52dependencies { 53 implementation 'androidx.core:core:1.10.0' 54}