1buildscript {
2    repositories {
3        jcenter()
4    }
5    ext.kotlin_version = '1.1.3-2'
6    dependencies {
7        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
8    }
9}
10
11apply plugin: 'com.android.application'
12apply plugin: 'kotlin-android'
13apply plugin: 'kotlin-android-extensions'
14
15android {
16    compileSdkVersion 27
17    defaultConfig {
18        applicationId "com.example.android.pictureinpicture"
19        minSdkVersion 26
20        targetSdkVersion 27
21        versionCode 1
22        versionName "1.0"
23        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24    }
25    buildTypes {
26        release {
27            minifyEnabled false
28            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
29        }
30    }
31}
32
33dependencies {
34    compile fileTree(dir: 'libs', include: ['*.jar'])
35    androidTestCompile('com.androidx.test.espresso:espresso-core:2.2.2', {
36        exclude group: 'com.android.support', module: 'support-annotations'
37    })
38    compile 'com.android.support:appcompat-v7:27.0.0'
39    compile 'com.android.support:support-media-compat:27.0.0'
40
41    testCompile 'junit:junit:4.12'
42    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
43}
44