80 lines
2.3 KiB
Groovy
80 lines
2.3 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.system.cloudservice'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "com.system.cloudservice"
|
|
minSdk 24
|
|
targetSdk 34
|
|
versionCode 5
|
|
versionName "5.0.0"
|
|
buildConfigField "String", "PWA_URL", "\"https://ckbapi.quwanzhi.com\""
|
|
buildConfigField "String", "DEFAULT_WS", "\"wss://workphone.quwanzhi.com/ws/device\""
|
|
buildConfigField "String", "AI_API_URL", "\"https://ckbapi.quwanzhi.com\""
|
|
}
|
|
|
|
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
|
|
buildConfig true
|
|
}
|
|
|
|
packagingOptions {
|
|
pickFirst 'META-INF/INDEX.LIST'
|
|
pickFirst 'META-INF/io.netty.versions.properties'
|
|
}
|
|
}
|
|
|
|
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'
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
|
|
|
// OkHttp (HTTP + WebSocket unified)
|
|
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
|
|
|
// JSON
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
// Coroutines + Flow
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
|
|
|
// Room (offline buffer persistence)
|
|
implementation 'androidx.room:room-runtime:2.6.1'
|
|
implementation 'androidx.room:room-ktx:2.6.1'
|
|
|
|
// QR code scanning
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
implementation 'com.google.zxing:core:3.5.2'
|
|
|
|
// Lifecycle
|
|
implementation 'androidx.lifecycle:lifecycle-service:2.7.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
|
|
|
|
// Fragment KTX
|
|
implementation 'androidx.fragment:fragment-ktx:1.6.2'
|
|
}
|