1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15apply plugin: 'com.android.library' 16apply plugin: 'kotlin-android' 17 18android { 19 namespace 'com.google.android.torus' 20 compileSdkVersion versions.compileSdk 21 buildToolsVersion versions.buildTools 22 23 defaultConfig { 24 minSdkVersion versions.minSdk 25 targetSdkVersion versions.targetSdk 26 } 27 28 buildTypes { 29 release { 30 minifyEnabled true 31 consumerProguardFiles 'lib-proguard-rules.txt' 32 } 33 } 34 compileOptions { 35 sourceCompatibility JavaVersion.VERSION_17 36 targetCompatibility JavaVersion.VERSION_17 37 } 38 39 kotlinOptions { 40 jvmTarget = '17' 41 } 42 43 sourceSets { 44 main { 45 java.srcDirs += '../torus-core/src/main/java' 46 java.srcDirs += '../torus-framework-canvas/src/main/java' 47 java.srcDirs += '../torus-math/src/main/java' 48 java.srcDirs += '../torus-utils/src/main/java' 49 java.srcDirs += '../torus-wallpaper-settings/src/main/java' 50 java.srcDirs += '../torus-wallpaper-settings/src/main/gen' 51 52 res.srcDirs += '../torus-wallpaper-settings/src/main/res' 53 } 54 } 55} 56 57dependencies { 58 implementation "androidx.appcompat:appcompat:$versions.appcompat" 59 implementation "androidx.core:core-ktx:$versions.ktx" 60 implementation "androidx.slice:slice-builders:$versions.androidXLib" 61 implementation "androidx.slice:slice-core:$versions.androidXLib" 62} 63