1 buildscript { 2 repositories { 3 jcenter() 4 } 5 ext.kotlin_version = '1.3.11' 6 dependencies { 7 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 8 } 9 } 10 11 apply plugin: 'com.android.application' 12 apply plugin: 'kotlin-android' 13 apply plugin: 'kotlin-android-extensions' 14 15 android { 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 "android.support.test.runner.AndroidJUnitRunner" 24 } 25 buildTypes { 26 release { 27 minifyEnabled false 28 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 29 } 30 } 31 } 32 33 dependencies { 34 compile fileTree(dir: 'libs', include: ['*.jar']) 35 androidTestCompile('com.android.support.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-jdk7:$kotlin_version" 43 } 44