import static androidx.build.dependencies.DependenciesKt.*
import androidx.build.LibraryGroups
import androidx.build.LibraryVersions
import java.util.zip.ZipException
import java.util.zip.ZipFile
plugins {
id("SupportAndroidLibraryPlugin")
}
ext {
fontDir = project(':noto-emoji-compat').projectDir
}
configurations {
repackage
}
dependencies {
repackage project(path: ':noto-emoji-compat', configuration: "parser")
// Wrap the noto-emoji-compat dependency in a FileCollection so that the Android Gradle plugin
// treats this as local jar and package it inside the aar.
api files(configurations.repackage)
api(project(":core"))
androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation project(':internal-testutils')
}
android {
sourceSets {
main {
// We use a non-standard manifest path.
manifest.srcFile 'AndroidManifest.xml'
res.srcDirs += 'src/main/res-public'
resources {
srcDirs = [fontDir.getAbsolutePath()]
includes = ["LICENSE_UNICODE", "LICENSE_OFL"]
}
}
androidTest {
assets {
srcDirs = [new File(fontDir, "font").getAbsolutePath(),
new File(fontDir, "supported-emojis").getAbsolutePath()]
}
}
}
}
supportLibrary {
name = "Android Emoji Compat"
publish = true
mavenVersion = LibraryVersions.SUPPORT_LIBRARY
mavenGroup = LibraryGroups.EMOJI
inceptionYear = "2017"
description = "Core library 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"
}
}