Home | History | Annotate | Download | only in core
      1 apply plugin: android.support.SupportAndroidLibraryPlugin
      2 
      3 ext {
      4     fontDir = project(':noto-emoji-compat').projectDir
      5 }
      6 
      7 configurations {
      8     repackage
      9 }
     10 
     11 dependencies {
     12     repackage project(path: ':noto-emoji-compat', configuration: "parser")
     13     // Wrap the noto-emoji-compat dependency in a FileCollection so that the Android Gradle plugin
     14     // treats this as local jar and package it inside the aar.
     15     api files(configurations.repackage)
     16 
     17     api project(':support-compat')
     18 
     19     androidTestImplementation libs.test_runner,      { exclude module: 'support-annotations' }
     20     androidTestImplementation libs.espresso_core,    { exclude module: 'support-annotations' }
     21     androidTestImplementation libs.mockito_core,     { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
     22     androidTestImplementation libs.dexmaker_mockito, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
     23     androidTestImplementation project(':support-testutils')
     24 }
     25 
     26 android {
     27     defaultConfig {
     28         minSdkVersion 14
     29     }
     30 
     31     sourceSets {
     32         main.java {
     33             srcDirs = ['src']
     34         }
     35         main.res.srcDirs = ['res', 'res-public']
     36         main.resources {
     37             srcDirs = [fontDir.getAbsolutePath()]
     38             includes = ["LICENSE_UNICODE", "LICENSE_OFL"]
     39         }
     40 
     41         androidTest {
     42             assets {
     43                 srcDirs = [new File(fontDir, "font").getAbsolutePath(),
     44                            new File(fontDir, "supported-emojis").getAbsolutePath()]
     45             }
     46         }
     47     }
     48 }
     49 
     50 supportLibrary {
     51     name 'Android Emoji Compat'
     52     publish true
     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