66 lines
1.6 KiB
Groovy
66 lines
1.6 KiB
Groovy
plugins {
|
||
id 'com.android.application'
|
||
id 'org.jetbrains.kotlin.android'
|
||
}
|
||
|
||
android {
|
||
namespace 'com.workphone.agent'
|
||
compileSdk 34
|
||
|
||
defaultConfig {
|
||
applicationId "com.workphone.agent"
|
||
minSdk 24
|
||
targetSdk 34
|
||
versionCode 2
|
||
versionName "2.0.0"
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_17
|
||
targetCompatibility JavaVersion.VERSION_17
|
||
}
|
||
|
||
kotlinOptions {
|
||
jvmTarget = '17'
|
||
}
|
||
|
||
buildFeatures {
|
||
viewBinding true
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
implementation 'androidx.core:core-ktx:1.12.0'
|
||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||
implementation 'com.google.android.material:material:1.11.0'
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||
implementation 'androidx.cardview:cardview:1.0.0'
|
||
|
||
// WebSocket
|
||
implementation 'org.java-websocket:Java-WebSocket:1.5.4'
|
||
|
||
// HTTP客户端
|
||
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
||
|
||
// JSON解析
|
||
implementation 'com.google.code.gson:gson:2.10.1'
|
||
|
||
// 协程
|
||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
||
|
||
// 二维码扫描
|
||
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
||
implementation 'com.google.zxing:core:3.5.2'
|
||
|
||
// 语音识别(Android内置,无需额外依赖)
|
||
// 悬浮窗
|
||
implementation 'androidx.lifecycle:lifecycle-service:2.7.0'
|
||
}
|