no message
This commit is contained in:
parent
830ebf6b93
commit
f8afe2c8a5
@ -1,16 +1,32 @@
|
|||||||
group = "io.openim.flutter_openim_sdk"
|
group 'io.openim.flutter_openim_sdk'
|
||||||
version = "1.0"
|
version '1.0'
|
||||||
|
|
||||||
|
def dir = getCurrentProjectDir()
|
||||||
|
|
||||||
|
def getCurrentProjectDir() {
|
||||||
|
String result = ""
|
||||||
|
rootProject.allprojects { project ->
|
||||||
|
if (project.properties.get("name").toString() == "flutter_openim_sdk") {
|
||||||
|
result = project.properties.get("projectDir").toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '2.0.20'
|
ext.kotlin_version = '2.0.20'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
||||||
|
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:8.7.3'
|
classpath 'com.android.tools.build:gradle:7.3.1'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -42,21 +58,9 @@ android {
|
|||||||
abiFilters "arm64-v8a","x86" // 根据需要添加其他 ABI
|
abiFilters "arm64-v8a","x86" // 根据需要添加其他 ABI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
compileOptions {
|
||||||
dependencies {
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
implementation 'io.openim:core-sdk:3.8.3-patch10@aar'
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
testImplementation("junit:junit:4.13.2")
|
|
||||||
testImplementation("org.mockito:mockito-core:5.0.0")
|
|
||||||
}
|
|
||||||
|
|
||||||
testOptions {
|
|
||||||
unitTests.all {
|
|
||||||
testLogging {
|
|
||||||
events "passed", "skipped", "failed", "standardOut", "standardError"
|
|
||||||
outputs.upToDateWhen {false}
|
|
||||||
showStandardStreams = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = '1.8'
|
jvmTarget = '1.8'
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
allprojects {
|
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user