diff --git a/android/build.gradle b/android/build.gradle index b1b0183..9e5edba 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,6 +21,8 @@ rootProject.allprojects { apply plugin: "com.android.library" +def localAar = file("libs/open_im_sdk.aar") + android { namespace = "io.openim.flutter_openim_sdk" @@ -35,12 +37,6 @@ android { minSdk = 21 } - dependencies { - implementation 'io.openim:core-sdk:3.8.3-patch12@aar' - testImplementation("junit:junit:4.13.2") - testImplementation("org.mockito:mockito-core:5.0.0") - } - testOptions { unitTests.all { testLogging { @@ -51,3 +47,13 @@ android { } } } + +dependencies { + if (localAar.exists()) { + implementation files("libs/open_im_sdk.aar") + } else { + implementation 'io.openim:core-sdk:3.8.3-patch12@aar' + } + testImplementation("junit:junit:4.13.2") + testImplementation("org.mockito:mockito-core:5.0.0") +} diff --git a/android/libs/open_im_sdk.aar b/android/libs/open_im_sdk.aar new file mode 100644 index 0000000..8ebeb85 Binary files /dev/null and b/android/libs/open_im_sdk.aar differ