1/* 2 * Copyright (C) 2017 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 17buildscript { 18 ext { 19 kotlin_version = '1.1.3-2' 20 } 21 repositories { 22 jcenter() 23 } 24 dependencies { 25 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 26 } 27} 28 29apply plugin: 'com.android.application' 30apply plugin: 'kotlin-android' 31 32ext { 33 supportLibVersion = '26.0.0' 34} 35 36android { 37 compileSdkVersion 26 38 buildToolsVersion '26.0.0' 39 defaultConfig { 40 applicationId "com.example.android.emojicompat" 41 minSdkVersion 19 42 targetSdkVersion 26 43 versionCode 1 44 versionName "1.0" 45 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 46 } 47 buildTypes { 48 release { 49 minifyEnabled false 50 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 51 } 52 } 53 configurations.all { 54 resolutionStrategy.force "com.android.support:support-annotations:$supportLibVersion" 55 } 56} 57 58dependencies { 59 // Support Libraries 60 compile "com.android.support:appcompat-v7:$supportLibVersion" 61 compile "com.android.support:support-emoji:$supportLibVersion" 62 compile "com.android.support:support-emoji-appcompat:$supportLibVersion" 63 compile "com.android.support:support-emoji-bundled:$supportLibVersion" 64 65 // Test 66 testCompile 'junit:junit:4.12' 67 androidTestCompile 'com.androidx.test.espresso:espresso-core:2.2.2' 68 69 compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 70} 71