Christofer Åkersten | 75dbfbb | 2018-03-29 19:32:04 +0900 | [diff] [blame] | 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 | |
| 17 | buildscript { |
| 18 | repositories { |
| 19 | jcenter() |
| 20 | google() |
| 21 | } |
| 22 | dependencies { |
Christofer Åkersten | ce5c2aa | 2019-01-15 10:17:45 -0800 | [diff] [blame] | 23 | classpath 'com.android.tools.build:gradle:3.3.0' |
Christofer Åkersten | 75dbfbb | 2018-03-29 19:32:04 +0900 | [diff] [blame] | 24 | } |
| 25 | } |
| 26 | |
Christofer Åkersten | 1416530 | 2019-01-16 11:48:33 -0800 | [diff] [blame] | 27 | apply plugin: 'com.android.application' |
Gyumin Sim | f9e6f69 | 2018-12-14 19:00:11 +0900 | [diff] [blame] | 28 | |
Christofer Åkersten | 1416530 | 2019-01-16 11:48:33 -0800 | [diff] [blame] | 29 | android { |
| 30 | compileSdkVersion 28 |
| 31 | buildToolsVersion '28.0.3' |
| 32 | defaultConfig { |
| 33 | minSdkVersion 19 // TODO: 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-rules.pro' |
| 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 |
Christofer Åkersten | 75dbfbb | 2018-03-29 19:32:04 +0900 | [diff] [blame] | 53 | } |
| 54 | } |
| 55 | |
Christofer Åkersten | 1416530 | 2019-01-16 11:48:33 -0800 | [diff] [blame] | 56 | repositories { |
| 57 | jcenter() |
| 58 | google() |
| 59 | |
| 60 | // TODO: Remove before releasing and after stable media2 is released |
| 61 | maven { url "$rootDir/../../../prebuilts/sdk/current/androidx/m2repository" } |
| 62 | } |
| 63 | |
| 64 | dependencies { |
| 65 | implementation 'androidx.appcompat:appcompat:1.0.2' |
| 66 | implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3' |
Christofer Åkersten | a7d1151 | 2019-01-23 08:34:27 -0800 | [diff] [blame^] | 67 | implementation 'androidx.media2:media2-widget:1.0.0-alpha07' |
Christofer Åkersten | 1416530 | 2019-01-16 11:48:33 -0800 | [diff] [blame] | 68 | implementation 'androidx.mediarouter:mediarouter:1.0.0' |
| 69 | implementation 'com.google.android.material:material:1.0.0' |
Christofer Åkersten | 75dbfbb | 2018-03-29 19:32:04 +0900 | [diff] [blame] | 70 | } |