1plugins { 2 id 'com.android.library' 3 id 'org.jetbrains.kotlin.android' 4} 5 6android { 7 namespace 'com.google.android.wallpaper.weathereffects.graphics' 8 compileSdk 34 9 10 defaultConfig { 11 minSdk 34 12 13 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 14 consumerProguardFiles "consumer-rules.pro" 15 } 16 17 sourceSets { 18 main { 19 java.srcDirs = ["../graphics/src/main/java"] 20 assets.srcDirs = ["../graphics/assets"] 21 } 22 23 androidTest { 24 java.srcDirs = ["../graphics/tests/src/main/java"] 25 res.srcDirs = ["../graphics/tests/res"] 26 } 27 } 28 29 buildTypes { 30 debug { 31 minifyEnabled false 32 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 33 testCoverageEnabled true 34 } 35 36 release { 37 minifyEnabled true 38 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 39 testCoverageEnabled true 40 } 41 } 42 compileOptions { 43 sourceCompatibility JavaVersion.VERSION_17 44 targetCompatibility JavaVersion.VERSION_17 45 } 46 47 kotlinOptions { 48 jvmTarget = '17' 49 } 50 51 testOptions { 52 unitTests { 53 includeAndroidResources = true 54 } 55 } 56} 57 58dependencies { 59 implementation 'androidx.core:core-ktx:1.12.0' 60 implementation 'androidx.appcompat:appcompat:1.6.1' 61 implementation 'com.google.android.material:material:1.11.0' 62 63 androidTestImplementation "junit:junit:4.13.2" 64 androidTestImplementation "androidx.test:core:1.5.0" 65 androidTestImplementation "androidx.test:rules:1.5.0" 66 androidTestImplementation "androidx.test:runner:1.5.2" 67 androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5' 68 androidTestImplementation "com.google.truth:truth:1.1.3" 69 androidTestImplementation "org.mockito:mockito-core:5.10.0" 70 androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito-inline:2.28.3" 71 androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito-inline-extended:2.28.3" 72 androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4" 73 androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4" 74} 75