fix: 修复assets在example app中不能使用的问题 & 加入maven local的链接,修复flutter无法打包 aar的问题
This commit is contained in:
@@ -4,8 +4,8 @@ version '1.0-SNAPSHOT'
|
||||
buildscript {
|
||||
ext.kotlin_version = '2.1.20'
|
||||
repositories {
|
||||
maven { url rootProject.file("../ai_chat_assistant/android/mavenLocal") }
|
||||
|
||||
maven { url file("mavenLocal") }
|
||||
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
@@ -18,7 +18,7 @@ buildscript {
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven { url rootProject.file("../ai_chat_assistant/android/mavenLocal") }
|
||||
maven { url file("mavenLocal") }
|
||||
|
||||
google()
|
||||
mavenCentral()
|
||||
@@ -83,11 +83,11 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// implementation 'com.alibaba.idst:nui-release:1.0.0'
|
||||
// implementation 'com.alibaba:fastjson:1.2.83'
|
||||
implementation 'com.alibaba.idst:nui-release:1.0.0'
|
||||
implementation 'com.alibaba:fastjson:1.2.83'
|
||||
// compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm/flutter.jar")
|
||||
implementation(files("libs/fastjson-1.1.46.android.jar"))
|
||||
implementation(files("libs/nui-release-1.0.0.aar"))
|
||||
// implementation(files("libs/fastjson-1.1.46.android.jar"))
|
||||
// implementation(files("libs/nui-release-1.0.0.aar"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url = uri("https://maven.aliyun.com/repository/public/") }
|
||||
maven { url = uri("https://maven.aliyun.com/repository/google/") }
|
||||
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin/") }
|
||||
maven { url = uri("https://storage.googleapis.com/download.flutter.io")}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
|
||||
rootProject.layout.buildDirectory.value(newBuildDir)
|
||||
|
||||
subprojects {
|
||||
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
delete(rootProject.layout.buildDirectory)
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
pluginManagement {
|
||||
val flutterSdkPath = run {
|
||||
val properties = java.util.Properties()
|
||||
file("local.properties").inputStream().use { properties.load(it) }
|
||||
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||
flutterSdkPath
|
||||
}
|
||||
|
||||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||
id("com.android.application") version "8.7.3" apply false
|
||||
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
|
||||
}
|
||||
|
||||
include(":app")
|
||||
Reference in New Issue
Block a user