1 buildscript { 2 repositories { 3 jcenter() 4 } 5 ext.kotlin_version = '1.1.2-4' 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 'android-O' 17 buildToolsVersion "25.0.2" 18 defaultConfig { 19 applicationId "com.example.android.pictureinpicture" 20 minSdkVersion 'O' 21 targetSdkVersion 'O' 22 versionCode 1 23 versionName "1.0" 24 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 25 } 26 buildTypes { 27 release { 28 minifyEnabled false 29 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 30 } 31 } 32 } 33 34 dependencies { 35 compile fileTree(dir: 'libs', include: ['*.jar']) 36 androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 37 exclude group: 'com.android.support', module: 'support-annotations' 38 }) 39 compile 'com.android.support:appcompat-v7:25.3.1' 40 41 testCompile 'junit:junit:4.12' 42 compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 43 } 44