Home | History | Annotate | Download | only in app
      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 
     17 buildscript {
     18     ext {
     19         kotlin_version = '1.1.2-3'
     20     }
     21     repositories {
     22         jcenter()
     23     }
     24     dependencies {
     25         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
     26     }
     27 }
     28 
     29 apply plugin: 'com.android.application'
     30 apply plugin: 'kotlin-android'
     31 
     32 ext {
     33     supportLibVersion = '26.0.0-beta1'
     34 }
     35 
     36 android {
     37     compileSdkVersion 'android-O'
     38     buildToolsVersion "26.0.0-rc1"
     39     defaultConfig {
     40         applicationId "com.example.android.emojicompat"
     41         minSdkVersion 'O'
     42         targetSdkVersion 'O'
     43         versionCode 1
     44         versionName "1.0"
     45         testInstrumentationRunner "android.support.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 
     58 dependencies {
     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.android.support.test.espresso:espresso-core:2.2.2'
     68 
     69     compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
     70 }
     71