group = "io.openim.flutter_openim_sdk" version = "1.0" buildscript { ext.kotlin_version = '2.0.20' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.7.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } rootProject.allprojects { repositories { // 本地 AAR 调试配置 - 使用 rootProject.projectDir 确保路径正确 // maven { url 'file://' + rootProject.projectDir.absolutePath + '/local-maven' } maven { url 'http://192.168.77.132:8081/repository/mvn2-group' allowInsecureProtocol true } google() mavenCentral() } } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { namespace 'io.openim.flutter_openim_sdk' compileSdkVersion 34 defaultConfig { minSdkVersion 21 ndk { abiFilters "arm64-v8a","x86" // 根据需要添加其他 ABI } } dependencies { implementation 'io.openim:core-sdk:3.8.3-patch10@aar' 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 { jvmTarget = '1.8' } } dependencies { //implementation 'com.openim:sdkcore:1.0.15-local' implementation 'com.openim:sdkcore:1.0.19' }