Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 1 | apply plugin: android.support.SupportLibraryPlugin |
Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 2 | |
Siyamed Sinir | 176b7a5 | 2017-04-14 19:48:14 -0700 | [diff] [blame] | 3 | ext { |
Siyamed Sinir | 75b9131 | 2017-04-21 19:10:41 -0700 | [diff] [blame] | 4 | fontDir = project(':noto-emoji-compat').projectDir |
Siyamed Sinir | 176b7a5 | 2017-04-14 19:48:14 -0700 | [diff] [blame] | 5 | } |
| 6 | |
Raymond Chiu | 3b82ea7 | 2017-07-12 12:34:47 -0700 | [diff] [blame] | 7 | configurations { |
| 8 | repackage |
| 9 | } |
| 10 | |
Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 11 | dependencies { |
Raymond Chiu | 3b82ea7 | 2017-07-12 12:34:47 -0700 | [diff] [blame] | 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 | |
Aurimas Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 17 | api project(':support-compat') |
Siyamed Sinir | c29ea5f | 2017-03-07 22:10:01 -0800 | [diff] [blame] | 18 | |
Aurimas Liutikas | 9edca68 | 2017-07-25 09:12:35 -0700 | [diff] [blame] | 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 |
Aurimas Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 23 | androidTestImplementation project(':support-testutils') |
Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | android { |
Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 27 | defaultConfig { |
Siyamed Sinir | 77b5c5b | 2017-04-26 20:52:49 -0700 | [diff] [blame] | 28 | minSdkVersion 14 |
Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | sourceSets { |
Siyamed Sinir | 176b7a5 | 2017-04-14 19:48:14 -0700 | [diff] [blame] | 32 | main.java { |
Siyamed Sinir | 75b9131 | 2017-04-21 19:10:41 -0700 | [diff] [blame] | 33 | srcDirs = ['src'] |
Siyamed Sinir | 176b7a5 | 2017-04-14 19:48:14 -0700 | [diff] [blame] | 34 | } |
Siyamed Sinir | d6e62a9 | 2017-04-04 20:53:42 -0700 | [diff] [blame] | 35 | main.res.srcDirs = ['res', 'res-public'] |
Siyamed Sinir | 039edb2 | 2017-03-15 13:49:26 -0700 | [diff] [blame] | 36 | main.resources { |
Siyamed Sinir | 75b9131 | 2017-04-21 19:10:41 -0700 | [diff] [blame] | 37 | srcDirs = [fontDir.getAbsolutePath()] |
Siyamed Sinir | 176b7a5 | 2017-04-14 19:48:14 -0700 | [diff] [blame] | 38 | includes = ["LICENSE_UNICODE", "LICENSE_OFL"] |
| 39 | } |
| 40 | |
| 41 | androidTest { |
| 42 | assets { |
Siyamed Sinir | 75b9131 | 2017-04-21 19:10:41 -0700 | [diff] [blame] | 43 | srcDirs = [new File(fontDir, "font").getAbsolutePath(), |
| 44 | new File(fontDir, "supported-emojis").getAbsolutePath()] |
Siyamed Sinir | 176b7a5 | 2017-04-14 19:48:14 -0700 | [diff] [blame] | 45 | } |
Siyamed Sinir | 039edb2 | 2017-03-15 13:49:26 -0700 | [diff] [blame] | 46 | } |
Siyamed Sinir | 82d2cc1 | 2017-02-05 10:28:04 -0800 | [diff] [blame] | 47 | } |
| 48 | } |
| 49 | |
| 50 | supportLibrary { |
| 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 Sinir | b0e013d | 2017-03-15 13:50:51 -0700 | [diff] [blame] | 54 | |
| 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 | } |