feat(core): ready to native bridge
This commit is contained in:
@@ -15,8 +15,8 @@ android {
|
||||
applicationId "com.imyeyu.gao.customer"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 3
|
||||
versionName "1.1.0"
|
||||
versionCode 4
|
||||
versionName "1.2.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
@@ -43,6 +43,11 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
// 与 capacitor-android 保持一致,避免 JVM target 不一致的编译告警
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_21
|
||||
targetCompatibility JavaVersion.VERSION_21
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -57,6 +62,17 @@ dependencies {
|
||||
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
||||
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
||||
implementation project(':capacitor-android')
|
||||
|
||||
// 相机管线:扫码与拍照共用,避免 WebView getImageCapture 的差异与掉帧
|
||||
implementation "androidx.camera:camera-core:$androidxCameraVersion"
|
||||
implementation "androidx.camera:camera-camera2:$androidxCameraVersion"
|
||||
implementation "androidx.camera:camera-lifecycle:$androidxCameraVersion"
|
||||
implementation "androidx.camera:camera-view:$androidxCameraVersion"
|
||||
// 纯 JVM 解码库,不依赖 Google Play 服务
|
||||
implementation "com.google.zxing:core:$zxingVersion"
|
||||
// 指纹 / 面容解锁
|
||||
implementation "androidx.biometric:biometric:$androidxBiometricVersion"
|
||||
|
||||
testImplementation "junit:junit:$junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
||||
|
||||
Reference in New Issue
Block a user