s3预览2
Some checks failed
Mark stale issues and pull requests / stale (push) Has been cancelled

This commit is contained in:
vet
2026-05-02 20:48:03 +07:00
parent e37ca0ffd1
commit 9478b45c5c
3 changed files with 34 additions and 11 deletions

View File

@@ -21,7 +21,9 @@ rootProject.allprojects {
apply plugin: "com.android.library" 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 { android {
namespace = "io.openim.flutter_openim_sdk" namespace = "io.openim.flutter_openim_sdk"
@@ -37,16 +39,6 @@ android {
minSdk = 21 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 { testOptions {
unitTests.all { unitTests.all {
testLogging { 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")
}

View File

@@ -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>