2020-09-08 15:52:50 +08:00
|
|
|
apply plugin: "com.android.library"
|
|
|
|
|
apply from: "${rootDir.path}/buildCommon.gradle"
|
2019-07-10 19:46:10 +08:00
|
|
|
|
|
|
|
|
dependencies {
|
2020-03-09 02:12:32 +08:00
|
|
|
if (project.name.endsWith("_pkg") || project.name.endsWith("_mock")) {
|
2019-07-13 20:51:18 +08:00
|
|
|
// if module's name equals 'pkg', api all of export
|
|
|
|
|
for (def entrySet : ConfigUtils.getApplyExports().entrySet()) {
|
|
|
|
|
api entrySet.value.dep
|
2019-07-10 19:46:10 +08:00
|
|
|
}
|
2020-03-09 02:12:32 +08:00
|
|
|
} else if (project.name.endsWith("_export")) {
|
2021-12-06 00:00:20 +08:00
|
|
|
api Config.modules.lib_common.dep
|
2019-07-10 19:46:10 +08:00
|
|
|
}
|
|
|
|
|
}
|