blob: 31de0d0ab7dc136cba076db2c7e39a8863bd0422 [file] [log] [blame]
Siyamed Sinir82d2cc12017-02-05 10:28:04 -08001apply plugin: android.support.SupportLibraryPlugin
Siyamed Sinir82d2cc12017-02-05 10:28:04 -08002
Siyamed Sinir176b7a52017-04-14 19:48:14 -07003ext {
Siyamed Sinir75b91312017-04-21 19:10:41 -07004 fontDir = project(':noto-emoji-compat').projectDir
Siyamed Sinir176b7a52017-04-14 19:48:14 -07005}
6
Raymond Chiu3b82ea72017-07-12 12:34:47 -07007configurations {
8 repackage
9}
10
Siyamed Sinir82d2cc12017-02-05 10:28:04 -080011dependencies {
Raymond Chiu3b82ea72017-07-12 12:34:47 -070012 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
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070017 api project(':support-compat')
Siyamed Sinirc29ea5f2017-03-07 22:10:01 -080018
Aurimas Liutikas9edca682017-07-25 09:12:35 -070019 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
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070023 androidTestImplementation project(':support-testutils')
Siyamed Sinir82d2cc12017-02-05 10:28:04 -080024}
25
26android {
Siyamed Sinir82d2cc12017-02-05 10:28:04 -080027 defaultConfig {
Siyamed Sinir77b5c5b2017-04-26 20:52:49 -070028 minSdkVersion 14
Siyamed Sinir82d2cc12017-02-05 10:28:04 -080029 }
30
31 sourceSets {
Siyamed Sinir176b7a52017-04-14 19:48:14 -070032 main.java {
Siyamed Sinir75b91312017-04-21 19:10:41 -070033 srcDirs = ['src']
Siyamed Sinir176b7a52017-04-14 19:48:14 -070034 }
Siyamed Sinird6e62a92017-04-04 20:53:42 -070035 main.res.srcDirs = ['res', 'res-public']
Siyamed Sinir039edb22017-03-15 13:49:26 -070036 main.resources {
Siyamed Sinir75b91312017-04-21 19:10:41 -070037 srcDirs = [fontDir.getAbsolutePath()]
Siyamed Sinir176b7a52017-04-14 19:48:14 -070038 includes = ["LICENSE_UNICODE", "LICENSE_OFL"]
39 }
40
41 androidTest {
42 assets {
Siyamed Sinir75b91312017-04-21 19:10:41 -070043 srcDirs = [new File(fontDir, "font").getAbsolutePath(),
44 new File(fontDir, "supported-emojis").getAbsolutePath()]
Siyamed Sinir176b7a52017-04-14 19:48:14 -070045 }
Siyamed Sinir039edb22017-03-15 13:49:26 -070046 }
Siyamed Sinir82d2cc12017-02-05 10:28:04 -080047 }
48}
49
50supportLibrary {
51 name 'Android Emoji Compat'
52 inceptionYear '2017'
53 description 'Core library to enable emoji compatibility in Kitkat and newer devices to avoid the empty emoji characters.'
Siyamed Sinirb0e013d2017-03-15 13:50:51 -070054
55 license {
56 name 'SIL Open Font License, Version 1.1'
57 url 'http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web'
58 }
59
60 license {
61 name 'Unicode, Inc. License'
62 url 'http://www.unicode.org/copyright.html#License'
63 }
64}