• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import static androidx.build.dependencies.DependenciesKt.*
2import androidx.build.LibraryGroups
3import androidx.build.LibraryVersions
4import java.util.zip.ZipException
5import java.util.zip.ZipFile
6
7plugins {
8    id("SupportAndroidLibraryPlugin")
9}
10
11ext {
12    fontDir = project(':noto-emoji-compat').projectDir
13}
14
15configurations {
16    repackage
17}
18
19dependencies {
20    repackage project(path: ':noto-emoji-compat', configuration: "parser")
21    // Wrap the noto-emoji-compat dependency in a FileCollection so that the Android Gradle plugin
22    // treats this as local jar and package it inside the aar.
23    api files(configurations.repackage)
24
25    api(project(":core"))
26
27    androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
28    androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
29    androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
30    androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
31    androidTestImplementation project(':internal-testutils')
32}
33
34android {
35    sourceSets {
36        main {
37            // We use a non-standard manifest path.
38            manifest.srcFile 'AndroidManifest.xml'
39            res.srcDirs += 'src/main/res-public'
40            resources {
41                srcDirs = [fontDir.getAbsolutePath()]
42                includes = ["LICENSE_UNICODE", "LICENSE_OFL"]
43            }
44        }
45
46        androidTest {
47            assets {
48                srcDirs = [new File(fontDir, "font").getAbsolutePath(),
49                           new File(fontDir, "supported-emojis").getAbsolutePath()]
50            }
51        }
52    }
53}
54
55supportLibrary {
56    name = "Android Emoji Compat"
57    publish = true
58    mavenVersion = LibraryVersions.SUPPORT_LIBRARY
59    mavenGroup = LibraryGroups.EMOJI
60    inceptionYear = "2017"
61    description = "Core library to enable emoji compatibility in Kitkat and newer devices to avoid the empty emoji characters."
62
63    license {
64        name = "SIL Open Font License, Version 1.1"
65        url = "http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web"
66    }
67
68    license {
69        name = "Unicode, Inc. License"
70        url = "http://www.unicode.org/copyright.html#License"
71    }
72}
73