Skip to content

Commit 45d026a

Browse files
naznia-devcopybara-github
authored andcommitted
First release of the Key Attestation Verifier app.
PiperOrigin-RevId: 893416680
1 parent 87f2a9a commit 45d026a

File tree

18 files changed

+1859
-0
lines changed

18 files changed

+1859
-0
lines changed

app/build.gradle.kts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
}

app/src/main/AndroidManifest.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.android.attestation.app">
4+
5+
<uses-sdk android:minSdkVersion="33" android:targetSdkVersion="33"/>
6+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
7+
<uses-permission android:name="android.permission.INTERNET" />
8+
<application
9+
android:allowBackup="true"
10+
android:label="@string/app_name"
11+
android:supportsRtl="true"
12+
android:theme="@style/AppTheme"
13+
android:icon="@drawable/ic_launcher_verifier"
14+
android:roundIcon="@drawable/ic_launcher_verifier">
15+
16+
<activity android:name=".MainActivity" android:exported="true">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
<category android:name="android.intent.category.LAUNCHER" />
20+
</intent-filter>
21+
</activity>
22+
</application>
23+
</manifest>

0 commit comments

Comments
 (0)