| import androidx.build.LibraryGroups |
| import androidx.build.LibraryVersions |
| import androidx.build.Publish |
| |
| import static androidx.build.dependencies.DependenciesKt.* |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| } |
| |
| ext { |
| fontDir = project(':noto-emoji-compat-font').projectDir |
| } |
| |
| android { |
| sourceSets { |
| main { |
| assets.srcDirs new File(fontDir, "font").getAbsolutePath() |
| resources { |
| srcDirs += [fontDir.getAbsolutePath()] |
| includes += ["LICENSE_UNICODE", "LICENSE_OFL"] |
| } |
| } |
| |
| androidTest { |
| assets { |
| srcDirs = [new File(fontDir, "supported-emojis").getAbsolutePath()] |
| } |
| } |
| } |
| |
| } |
| |
| dependencies { |
| api(project(":emoji2:emoji2")) |
| |
| androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| androidTestImplementation(ANDROIDX_TEST_CORE) |
| androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| androidTestImplementation(ANDROIDX_TEST_RULES) |
| androidTestImplementation(ESPRESSO_CORE, excludes.espresso) |
| androidTestImplementation(MOCKITO_CORE, excludes.bytebuddy) // DexMaker has it"s own MockMaker |
| androidTestImplementation(DEXMAKER_MOCKITO, excludes.bytebuddy) // DexMaker has it"s own MockMaker |
| androidTestImplementation project(':internal-testutils-runtime') |
| |
| // view tests that use font are in this module as well; for licensing reasons |
| androidTestImplementation project(":emoji2:emoji2-views") |
| } |
| |
| androidx { |
| name = "Android Emoji2 Compat" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| mavenVersion = LibraryVersions.EMOJI2 |
| mavenGroup = LibraryGroups.EMOJI2 |
| inceptionYear = "2017" |
| description = "Library bundled with assets to enable emoji compatibility in Kitkat and newer " + |
| "devices to avoid the empty emoji characters." |
| |
| license { |
| name = "SIL Open Font License, Version 1.1" |
| url = "http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web" |
| } |
| |
| license { |
| name = "Unicode, Inc. License" |
| url = "http://www.unicode.org/copyright.html#License" |
| } |
| } |