taomenggo init
This commit is contained in:
91
chatkit-ui/build.gradle.kts
Normal file
91
chatkit-ui/build.gradle.kts
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
* Use of this source code is governed by a MIT license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
kotlin("android")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
targetSdk = 33
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
buildConfigField("String", "versionName", "\"9.6.2\"")
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
}
|
||||
|
||||
sourceSets["main"].res.srcDirs("src/main/res", "src/main/res-fun", "src/main/res-normal")
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
namespace = "com.netease.yunxin.kit.chatkit.ui"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
val room_version = "2.4.3"
|
||||
|
||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
api("com.netease.yunxin.kit.chat:chatkit:9.6.2")
|
||||
api("com.netease.yunxin.kit.common:common-ui:1.2.0")
|
||||
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21")
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
|
||||
implementation("androidx.appcompat:appcompat:1.4.2")
|
||||
implementation("com.google.android.material:material:1.5.0")
|
||||
implementation("androidx.recyclerview:recyclerview:1.2.1")
|
||||
implementation("com.airbnb.android:lottie:5.0.3")
|
||||
implementation("com.github.bumptech.glide:glide:4.13.1")
|
||||
// PictureSelector basic (Necessary)
|
||||
api("io.github.lucksiege:pictureselector:v3.11.2")
|
||||
// image compress library (Not necessary)
|
||||
api("io.github.lucksiege:compress:v3.11.2")
|
||||
// uCrop library (Not necessary)
|
||||
api("io.github.lucksiege:ucrop:v3.11.2")
|
||||
// simple camerax library (Not necessary)
|
||||
api("io.github.lucksiege:camerax:v3.11.2")
|
||||
|
||||
//retrofit2
|
||||
api("com.squareup.retrofit2:retrofit:2.9.0")
|
||||
api("com.squareup.retrofit2:converter-gson:2.9.0")
|
||||
api("com.squareup.retrofit2:converter-scalars:2.9.0")
|
||||
//rxjava
|
||||
api("io.reactivex.rxjava2:rxandroid:2.1.1")
|
||||
api("io.reactivex.rxjava2:rxjava:2.2.12")
|
||||
//日志拦截器
|
||||
api("com.squareup.okhttp3:logging-interceptor:3.10.0")
|
||||
api("com.squareup.retrofit2:adapter-rxjava2:2.4.0")
|
||||
api("io.reactivex:rxjava:1.3.0")
|
||||
//skeleton
|
||||
implementation("com.github.ethanhua:Skeleton:ff06517d4629e87328c41a1cce614c490ed7fb51")
|
||||
implementation("io.supercharge:shimmerlayout:2.1.0")
|
||||
|
||||
|
||||
implementation("androidx.room:room-runtime:$room_version")
|
||||
annotationProcessor("androidx.room:room-compiler:$room_version")
|
||||
// optional - RxJava2 support for Room
|
||||
implementation("androidx.room:room-rxjava2:$room_version")
|
||||
// optional - Paging 3 Integration
|
||||
implementation("androidx.room:room-paging:$room_version")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user