Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 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 | |
| 17 | buildscript { |
| 18 | repositories { |
| 19 | google() |
| 20 | jcenter() |
| 21 | } |
| 22 | dependencies { |
| 23 | classpath 'com.android.tools.build:gradle:3.5.0' |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | apply plugin: 'com.android.application' |
| 28 | |
| 29 | android { |
| 30 | compileSdkVersion 29 |
| 31 | defaultConfig { |
| 32 | applicationId "com.android.media.benchmark" |
Neelkamal Semwal | b523c51 | 2019-10-17 18:38:11 +0530 | [diff] [blame] | 33 | minSdkVersion 28 |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 34 | targetSdkVersion 29 |
| 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 | } |
Neelkamal Semwal | b523c51 | 2019-10-17 18:38:11 +0530 | [diff] [blame] | 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.10.2" |
| 61 | } |
| 62 | } |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | repositories { |
| 66 | google() |
| 67 | jcenter() |
| 68 | } |
| 69 | |
| 70 | dependencies { |
| 71 | implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 72 | implementation 'androidx.appcompat:appcompat:1.1.0' |
| 73 | testImplementation 'junit:junit:4.12' |
| 74 | androidTestImplementation 'androidx.test:runner:1.2.0' |
| 75 | androidTestImplementation 'androidx.test.ext:junit:1.1.1' |
| 76 | } |