feat:plugin编译为aar包引用

This commit is contained in:
2025-09-22 11:12:45 +08:00
parent 0509096925
commit e04110c6d5
8 changed files with 36 additions and 4 deletions

View File

@@ -50,3 +50,11 @@ android {
flutter {
source = "../.."
}
dependencies {
// Process .aar files in the libs folder.
val aarFiles = fileTree(mapOf("dir" to "$rootDir/libs", "include" to listOf("*.aar")))
aarFiles.forEach { aar ->
implementation(files(aar))
}
}

View File

@@ -1,8 +1,8 @@
allprojects {
repositories {
val mavenLocalPath = rootProject.file("../../android/mavenLocal")
println("Maven local path: ${mavenLocalPath.absolutePath}")
println("Maven local exists: ${mavenLocalPath.exists()}")
// println("Maven local path: ${mavenLocalPath.absolutePath}")
// println("Maven local exists: ${mavenLocalPath.exists()}")
maven { url = uri(mavenLocalPath) }

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -19,6 +19,8 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
flatDir { dirs(file("libs")) }
}
}