You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
group 'io.openim.flutter_openim_sdk'
|
|
version '1.0'
|
|
|
|
def dir = getCurrentProjectDir()
|
|
|
|
def getCurrentProjectDir() {
|
|
String result = ""
|
|
rootProject.allprojects { project ->
|
|
if (project.properties.get("name").toString() == "flutter_openim_sdk") {
|
|
result = project.properties.get("projectDir").toString()
|
|
}
|
|
}
|
|
return result
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.3.1'
|
|
}
|
|
}
|
|
|
|
rootProject.allprojects {
|
|
repositories {
|
|
maven {
|
|
url 'http://192.168.77.132:8081/repository/mvn2-group'
|
|
allowInsecureProtocol true
|
|
}
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 34
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
ndk {
|
|
abiFilters "arm64-v8a","x86" // 根据需要添加其他 ABI
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.openim:sdkcore:1.0.6'
|
|
} |