sample/app/build.gradle.kts (53 lines of code) (raw):

/* * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ plugins { id("com.android.application") id("kotlin-android") id("io.gitlab.arturbosch.detekt") id("com.spotify.ruler") } android { namespace = "com.spotify.ruler.sample.app" compileSdk = 34 defaultConfig { applicationId = "com.spotify.ruler.sample" minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" } buildTypes { release { isMinifyEnabled = true proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt")) } } lint { warningsAsErrors = true } packaging { resources.excludes.add("**/*.kotlin_builtins") resources.excludes.add("kotlin-tooling-metadata.json") } dynamicFeatures += setOf(":sample:dynamic") } dependencies { implementation(project(":sample:lib")) } ruler { abi.set("arm64-v8a") locale.set("en") screenDensity.set(480) sdkVersion.set(27) ownershipFile.set(project.layout.projectDirectory.file("ownership.yaml")) defaultOwner.set("default-team") verification { downloadSizeThreshold = 20 * 1000 * 1000 installSizeThreshold = 20 * 1000 * 1000 } } // Include Ruler tasks in checks tasks.named("check").configure { dependsOn("analyzeDebugBundle") dependsOn("analyzeReleaseBundle") } kotlin { jvmToolchain(17) }