1/* 2 * Copyright (C) 2019 The Android Open Source Project 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 17buildscript { 18 repositories { 19 google() 20 mavenCentral() 21 } 22 dependencies { 23 classpath 'com.android.tools.build:gradle:4.2.1' 24 } 25} 26 27apply plugin: 'com.android.application' 28 29android { 30 compileSdkVersion 30 31 defaultConfig { 32 applicationId "com.android.media.benchmark" 33 minSdkVersion 29 34 targetSdkVersion 30 35 versionCode 1 36 versionName "1.0" 37 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 38 } 39 sourceSets { 40 main { 41 java.srcDirs 'src/main/java' 42 res.srcDirs 'res' 43 manifest.srcFile 'AndroidManifest.xml' 44 } 45 androidTest { 46 java.srcDirs 'src/androidTest/java' 47 res.srcDirs 'res' 48 manifest.srcFile 'AndroidManifest.xml' 49 } 50 } 51 buildTypes { 52 release { 53 minifyEnabled false 54 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 55 } 56 } 57 externalNativeBuild { 58 cmake { 59 path "src/main/cpp/CMakeLists.txt" 60 version "3.18.1" 61 } 62 } 63} 64 65repositories { 66 google() 67 mavenCentral() 68} 69 70dependencies { 71 implementation fileTree(dir: 'libs', include: ['*.jar']) 72 implementation 'androidx.appcompat:appcompat:1.3.0' 73 testImplementation 'junit:junit:4.13.2' 74 androidTestImplementation 'androidx.test:runner:1.3.0' 75 androidTestImplementation 'androidx.test.ext:junit:1.1.2' 76} 77