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