plugins { id("com.android.application") id("org.jetbrains.kotlin.plugin.compose") id("com.google.devtools.ksp") id("com.google.dagger.hilt.android") } android { namespace = "com.bbitcn.f8.pad" compileSdk = 36 defaultConfig { applicationId = "com.bbitcn.f8.pad" minSdk = 30 targetSdk = 32 versionCode = 44 versionName = "1.0.44" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } ndk { abiFilters.add("arm64-v8a") } } signingConfigs { getByName("debug") { keyAlias = "key0" keyPassword = "123456" storeFile = file("../key/key.jks") storeType = "jks" storePassword = "123456" } } buildTypes { release { isMinifyEnabled = true isShrinkResources = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } } compileOptions { sourceCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_21 } buildFeatures { compose = true } packaging { resources { excludes += setOf( "/META-INF/{AL2.0,LGPL2.1}", "META-INF/DEPENDENCIES", "common.properties" ) } } sourceSets { getByName("main") { jniLibs.srcDirs("libs") } } lint { disable += "ExpiredTargetSdkVersion" } } kotlin { compilerOptions { jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21 } } dependencies { implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar")))) implementation("androidx.core:core-ktx:1.18.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.10.0") implementation("androidx.activity:activity-compose:1.13.0") implementation(platform("androidx.compose:compose-bom:2026.05.01")) implementation("androidx.compose.ui:ui") implementation("androidx.compose.ui:ui-graphics") implementation("androidx.compose.ui:ui-tooling-preview") implementation("androidx.compose.material:material-icons-extended") implementation("androidx.compose.material3:material3") implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.10.0") implementation("androidx.core:core-splashscreen:1.2.0") implementation("androidx.legacy:legacy-support-v4:1.0.0") implementation("androidx.navigation:navigation-compose:2.9.8") implementation("androidx.hilt:hilt-navigation-compose:1.3.0") implementation("com.tencent:mmkv:2.4.0") implementation("com.blankj:utilcodex:1.31.1") implementation("com.google.code.gson:gson:2.14.0") implementation("com.github.getActivity:XXPermissions:28.2") implementation("com.jakewharton.timber:timber:5.0.1") implementation("com.contrarywind:Android-PickerView:4.1.9") implementation("io.github.ltttttttttttt:ComposeViews:1.10.0.2") implementation("com.inuker.bluetooth:library:1.4.0") implementation("com.squareup.okhttp3:logging-interceptor:5.3.2") implementation("com.squareup.retrofit2:retrofit:3.0.0") implementation("com.squareup.retrofit2:converter-gson:3.0.0") implementation("com.google.dagger:hilt-android:2.59.2") ksp("com.google.dagger:hilt-android-compiler:2.59.2") implementation("com.xhinliang:LunarCalendar:4.0.7") implementation("io.coil-kt.coil3:coil-compose:3.4.0") implementation("io.coil-kt.coil3:coil-network-okhttp:3.4.0") val pagingVersion = "3.5.0" implementation("androidx.paging:paging-runtime:$pagingVersion") implementation("androidx.paging:paging-compose:$pagingVersion") val cameraXVersion = "1.6.1" implementation("androidx.camera:camera-core:$cameraXVersion") implementation("androidx.camera:camera-compose:$cameraXVersion") implementation("androidx.camera:camera-camera2:$cameraXVersion") implementation("androidx.camera:camera-lifecycle:$cameraXVersion") implementation("androidx.camera:camera-view:$cameraXVersion") implementation("com.google.zxing:core:3.5.4") implementation("com.aliyun.dpa:oss-android-sdk:2.9.21") implementation("com.aliyun:ocr_api20210707:3.1.3") { exclude(group = "pull-parser", module = "pull-parser") exclude(group = "xpp3", module = "xpp3") } implementation("com.github.commandiron:WheelPickerCompose:1.1.11") implementation("io.github.ehsannarmani:compose-charts:0.2.5") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.5") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") androidTestImplementation(platform("androidx.compose:compose-bom:2026.05.01")) androidTestImplementation("androidx.compose.ui:ui-test-junit4") debugImplementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-test-manifest") }