Ahmed Ibrahim
04/02/2020, 11:28 AMbuildSrc
instead?
implementation(group = "", name = "facebook-login-6.3.0-jetified", ext = "aar")
In buildSrc I can't access the implementation
function, and I can only do add("implementation", "put-the-local-aar-here")
, the question is how can I include the local aar through the add function which is only available under only the buildSrc
?externalModuleDependencyFor
add(
"implementation",
externalModuleDependencyFor(
this,
group = "",
ext = "aar",
name = "facebook-login-6.3.0-jetified",
classifier = null,
configuration = null,
version = null
)
)
octylFractal
04/02/2020, 3:21 PMAhmed Ibrahim
04/02/2020, 3:44 PMimplementation
accessor.plugins {
`kotlin-dsl`
}
octylFractal
04/02/2020, 3:45 PM"implementation"(group = "", name = "facebook-login-6.3.0-jetified", ext = "aar")
Ahmed Ibrahim
04/02/2020, 3:52 PMfun DependencyHandler.implementFacebook() {
add(
"implementation",
externalModuleDependencyFor(name = "facebook-login-6.3.0-jetified", ext = "aar")
)
add(
"implementation",
externalModuleDependencyFor(name = "facebook-common-6.3.0-jetified", ext = "aar")
)
add(
"implementation",
externalModuleDependencyFor(name = "facebook-core-6.3.0-jetified", ext = "aar")
)
}
dependencies {
implementFacebook()
}
octylFractal
04/02/2020, 3:54 PMAhmed Ibrahim
04/02/2020, 3:56 PMoctylFractal
04/02/2020, 3:56 PMAhmed Ibrahim
04/02/2020, 4:02 PMJavier
04/02/2020, 4:42 PMinternal fun DependencyHandler.implementation(dependencyNotation: Any): Dependency? =
add("implementation", dependencyNotation)