• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2018 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        jcenter()
20        google()
21    }
22    dependencies {
23        classpath 'com.android.tools.build:gradle:3.3.2'
24    }
25}
26
27apply plugin: 'com.android.application'
28
29android {
30    compileSdkVersion 28
31    buildToolsVersion '28.0.3'
32    defaultConfig {
33        minSdkVersion 19 // TODO(b/123716038) Lower to 16 after media2-widget supports 16
34        targetSdkVersion 28
35        versionCode 1
36        versionName '1.0'
37        vectorDrawables.useSupportLibrary = true
38    }
39    buildTypes {
40        release {
41            minifyEnabled true
42            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags'
43        }
44    }
45    sourceSets {
46        main.manifest.srcFile 'AndroidManifest.xml'
47        main.java.srcDirs = ['java']
48        main.res.srcDirs = ['res']
49    }
50    compileOptions {
51        targetCompatibility 8
52        sourceCompatibility 8
53    }
54}
55
56repositories {
57    jcenter()
58    google()
59
60    // TODO(b/123716096) Remove before releasing and after stable media2 is released
61    maven { url "$rootDir/../../../prebuilts/sdk/current/androidx/m2repository" }
62}
63
64dependencies {
65    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
66    implementation 'androidx.media2:media2-widget:1.0.0-alpha07'
67    implementation 'com.google.android.material:material:1.0.0'
68}
69