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")
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>io.openim</groupId>
|
||||
<artifactId>core-sdk</artifactId>
|
||||
<version>3.8.3-patch10</version>
|
||||
<packaging>aar</packaging>
|
||||
<name>core-sdk</name>
|
||||
</project>
|
||||
Reference in New Issue
Block a user