This commit is contained in:
@@ -21,7 +21,9 @@ rootProject.allprojects {
|
||||
|
||||
apply plugin: "com.android.library"
|
||||
|
||||
def localAar = file("libs/open_im_sdk.aar")
|
||||
def localCoreRepo = file("repo")
|
||||
def localCoreVersion = "3.8.3-patch10"
|
||||
def localCorePom = file("repo/io/openim/core-sdk/${localCoreVersion}/core-sdk-${localCoreVersion}.pom")
|
||||
|
||||
android {
|
||||
namespace = "io.openim.flutter_openim_sdk"
|
||||
@@ -37,16 +39,6 @@ android {
|
||||
minSdk = 21
|
||||
}
|
||||
|
||||
dependencies {
|
||||
if (localAar.exists()) {
|
||||
implementation files("libs/open_im_sdk.aar")
|
||||
} else {
|
||||
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 {
|
||||
@@ -57,3 +49,23 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
if (localCorePom.exists()) {
|
||||
maven {
|
||||
url uri(localCoreRepo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
if (localCorePom.exists()) {
|
||||
implementation "io.openim:core-sdk:${localCoreVersion}"
|
||||
} else {
|
||||
implementation "io.openim:core-sdk:${localCoreVersion}@aar"
|
||||
}
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
testImplementation("org.mockito:mockito-core:5.0.0")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user