feat:plugin编译为aar包引用
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
@@ -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
BIN
example/android/libs/ai_assistant_plugin-release.aar
Normal file
BIN
example/android/libs/ai_assistant_plugin-release.aar
Normal file
Binary file not shown.
@@ -19,6 +19,8 @@ pluginManagement {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
|
||||
flatDir { dirs(file("libs")) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user