feat: 埋点数据收集SDK
This commit is contained in:
parent
16fec58089
commit
b63ca43ace
Binary file not shown.
Binary file not shown.
|
|
@ -8,9 +8,7 @@ version = "1.0.0"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.yuanxuan.tracking_point.library"
|
namespace = "com.yuanxuan.tracking_point.library"
|
||||||
compileSdk {
|
compileSdk = 36
|
||||||
version = release(36)
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 23
|
minSdk = 23
|
||||||
|
|
@ -64,24 +62,35 @@ dependencies {
|
||||||
|
|
||||||
tasks.register("buildAar") {
|
tasks.register("buildAar") {
|
||||||
group = "build"
|
group = "build"
|
||||||
description = "Build AAR manually"
|
description = "Build and copy release and debug AARs."
|
||||||
|
|
||||||
dependsOn("assembleRelease")
|
dependsOn("assembleDebug", "assembleRelease")
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
val releaseDestDir = rootProject.file("aar/release")
|
val releaseDestDir = rootProject.file("aar/release")
|
||||||
|
val debugDestDir = rootProject.file("aar/debug")
|
||||||
|
val aarVersion = project.version
|
||||||
|
|
||||||
|
// Copy release AAR
|
||||||
copy {
|
copy {
|
||||||
from(layout.buildDirectory.file("outputs/aar/library-release.aar"))
|
from(layout.buildDirectory.file("outputs/aar/library-release.aar"))
|
||||||
into(releaseDestDir)
|
into(releaseDestDir)
|
||||||
rename { "trackingPoint-${project.version}.aar" }
|
rename { "trackingPoint-release-$aarVersion.aar" }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy debug AAR
|
||||||
|
copy {
|
||||||
|
from(layout.buildDirectory.file("outputs/aar/library-debug.aar"))
|
||||||
|
into(debugDestDir)
|
||||||
|
rename { "trackingPoint-debug-$aarVersion.aar" }
|
||||||
}
|
}
|
||||||
|
|
||||||
println(
|
println(
|
||||||
"""
|
"""
|
||||||
AARs have been built and copied:
|
AARs have been built and copied:
|
||||||
- Release: ${releaseDestDir.absolutePath}/trackingPoint.aar
|
- Release: ${releaseDestDir.absolutePath}/trackingPoint-$aarVersion.aar
|
||||||
""".trimIndent()
|
- Debug: ${debugDestDir.absolutePath}/trackingPoint-$aarVersion.aar
|
||||||
|
""".trimIndent()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue