plugins { id 'com.android.application' id 'kotlin-android' id 'kotlinx-serialization' id 'kotlin-kapt' id 'com.huawei.agconnect' id 'dagger.hilt.android.plugin' } android { namespace 'com.example.gotext' lintOptions { checkReleaseBuilds false abortOnError false } compileSdk 34 defaultConfig { applicationId "com.airkoon.cellsyslite" minSdk 24 targetSdk 28 versionCode 15 versionName "1.1.5" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { // 设置支持的SO库架构 abiFilters 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a' } //指定room.schemaLocation生成的文件路径 javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } } signingConfigs { config { keyAlias 'cellsys' keyPassword 'akcellsys' storeFile file('D:\\android_key\\airkoon.jks')//这里是你的jks文件路径 storePassword 'akcellsys' } } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } applicationVariants.all { variant -> variant.outputs.all { def fileName = "CellsysLite_${defaultConfig.versionName}_${variant.buildType.name}.apk" outputFileName = fileName } } } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17"} buildFeatures { dataBinding = true compose=true buildConfig=true } composeOptions { kotlinCompilerExtensionVersion = "1.5.10" } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } // ndkVersion '21.0.6113669' } dependencies { //implementation(fileTree("libs")) api files('libs\\cellsysAnalyticalTools.jar') implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'net.java.dev.jna:jna:5.4.0' implementation project(':image_select') testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.github.sevar83:android-spatialite:2.0.1' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'com.google.code.gson:gson:2.8.8' implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0' implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0' implementation 'com.google.android.material:material:1.5.0' implementation "androidx.activity:activity-ktx:1.3.1" implementation "androidx.fragment:fragment-ktx:1.3.6" implementation 'com.tencent.bugly:crashreport:latest.release' //vpn implementation 'com.jakewharton.timber:timber:5.0.1' implementation 'androidx.lifecycle:lifecycle-service:2.7.0' implementation 'androidx.lifecycle:lifecycle-common:2.7.0' implementation 'com.wireguard.android:tunnel:1.0.20230706' implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3' implementation 'com.google.dagger:hilt-android:2.51' implementation 'androidx.core:core:1.12.0' implementation "androidx.datastore:datastore-preferences:1.0.0" kapt "androidx.room:room-compiler:2.6.1" implementation "androidx.room:room-ktx:2.6.1" implementation "androidx.compose.foundation:foundation:1.6.3" implementation "androidx.compose.material3:material3:1.2.1" implementation "androidx.navigation:navigation-runtime:2.7.7" implementation "androidx.navigation:navigation-compose:2.7.7" implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05" implementation "androidx.compose.material:material-icons-extended-android:1.6.3" implementation "androidx.hilt:hilt-navigation-compose:1.2.0" implementation "androidx.lifecycle:lifecycle-runtime-compose:2.7.0" implementation "com.google.accompanist:accompanist-drawablepainter:0.34.0" implementation "com.google.accompanist:accompanist-permissions:0.34.0" implementation "com.journeyapps:zxing-android-embedded:4.3.0" implementation "com.zaneschepke:pin_lock_compose:1.0.3" //compose implementation "androidx.compose:compose-bom:2024.02.02" implementation "androidx.compose.ui:ui-test-junit4:1.6.3" implementation "androidx.compose.ui:ui-tooling:1.6.3" implementation "androidx.compose.ui:ui-test-manifest:1.6.3" implementation "androidx.compose.ui:ui-graphics:1.6.3" implementation "androidx.compose.ui:ui-tooling-preview:1.6.3" implementation "androidx.compose.ui:ui:1.6.3" // 添加 Dagger Hilt 的依赖 implementation 'com.google.dagger:hilt-android:2.51' kapt 'com.google.dagger:hilt-android-compiler:2.51' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3' //fastjson implementation 'com.alibaba:fastjson:1.2.58' implementation 'com.belerweb:pinyin4j:2.5.1' implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30' implementation 'com.github.bumptech.glide:glide:4.9.0' //rxjava3 implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' implementation 'io.reactivex.rxjava3:rxjava:3.0.0' //高德地图 implementation 'com.amap.api:3dmap:9.1.0' implementation 'com.amap.api:location:6.0.1' implementation "androidx.viewpager2:viewpager2:1.0.0" implementation 'com.rengwuxian.materialedittext:library:2.1.4' implementation 'io.github.lucksiege:pictureselector:v2.4.6' //qmui api 'com.qmuiteam:qmui:2.1.0' }