|
| 1 | +/* |
| 2 | + * Copyright 2026 Google LLC |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +plugins { |
| 18 | + id("com.android.application") |
| 19 | + kotlin("android") |
| 20 | +} |
| 21 | + |
| 22 | +android { |
| 23 | + namespace = "com.android.attestation.app" // UPDATED |
| 24 | + compileSdk = 34 |
| 25 | + |
| 26 | + defaultConfig { |
| 27 | + applicationId = "com.android.attestation.app" // UPDATED |
| 28 | + minSdk = 33 // MATCHING MANIFEST |
| 29 | + targetSdk = 33 // MATCHING MANIFEST |
| 30 | + versionCode = 1 |
| 31 | + versionName = "1.0" |
| 32 | + |
| 33 | + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 34 | + } |
| 35 | + |
| 36 | + buildTypes { |
| 37 | + release { |
| 38 | + isMinifyEnabled = false // Consider enabling for production releases |
| 39 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") |
| 40 | + } |
| 41 | + } |
| 42 | + compileOptions { |
| 43 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 44 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 45 | + } |
| 46 | + kotlinOptions { jvmTarget = "1.8" } |
| 47 | +} |
| 48 | + |
| 49 | +dependencies { |
| 50 | + implementation(project(":")) // Depends on the root library project |
| 51 | + |
| 52 | + implementation("androidx.appcompat:appcompat:1.7.0") |
| 53 | + implementation("com.google.android.material:material:1.12.0") |
| 54 | + implementation("androidx.constraintlayout:constraintlayout:2.1.4") |
| 55 | + implementation("androidx.activity:activity:1.9.0") |
| 56 | + |
| 57 | + // Use the Android version of Guava |
| 58 | + implementation("com.google.guava:guava:33.2.1-android") |
| 59 | + implementation("com.google.protobuf:protobuf-javalite:4.28.3") |
| 60 | + |
| 61 | + testImplementation("junit:junit:4.13.2") |
| 62 | + androidTestImplementation("androidx.test.ext:junit:1.1.5") |
| 63 | + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") |
| 64 | +} |
0 commit comments