Home | History | Annotate | Download | only in core
      1 apply plugin: android.support.SupportLibraryPlugin
      2 archivesBaseName = 'support-emoji'
      3 
      4 ext {
      5     fontDir = project(':noto-emoji-compat').projectDir
      6 }
      7 
      8 evaluationDependsOn(':noto-emoji-compat')
      9 dependencies {
     10     compile project(':support-compat')
     11     compile files(project(':noto-emoji-compat').configurations.parser.artifacts.getFiles())
     12 
     13     androidTestCompile (libs.test_runner) {
     14         exclude module: 'support-annotations'
     15     }
     16     androidTestCompile (libs.espresso_core) {
     17         exclude module: 'support-annotations'
     18     }
     19     androidTestCompile libs.mockito_core
     20     androidTestCompile libs.dexmaker
     21     androidTestCompile libs.dexmaker_mockito
     22     androidTestCompile project(path: ':support-testutils')
     23 }
     24 
     25 android {
     26     compileSdkVersion project.ext.currentSdk
     27 
     28     defaultConfig {
     29         minSdkVersion 14
     30     }
     31 
     32     sourceSets {
     33         main.java {
     34             srcDirs = ['src']
     35         }
     36         main.res.srcDirs = ['res', 'res-public']
     37         main.resources {
     38             srcDirs = [fontDir.getAbsolutePath()]
     39             includes = ["LICENSE_UNICODE", "LICENSE_OFL"]
     40         }
     41 
     42         androidTest {
     43             assets {
     44                 srcDirs = [new File(fontDir, "font").getAbsolutePath(),
     45                            new File(fontDir, "supported-emojis").getAbsolutePath()]
     46             }
     47         }
     48     }
     49 }
     50 
     51 supportLibrary {
     52     name 'Android Emoji Compat'
     53     inceptionYear '2017'
     54     description 'Core library to enable emoji compatibility in Kitkat and newer devices to avoid the empty emoji characters.'
     55 
     56     license {
     57         name 'SIL Open Font License, Version 1.1'
     58         url  'http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web'
     59     }
     60 
     61     license {
     62         name 'Unicode, Inc. License'
     63         url 'http://www.unicode.org/copyright.html#License'
     64     }
     65 }
     66