1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- plugins {
- id 'com.android.application'
- }
- android {
- compileSdk 32
- defaultConfig {
- applicationId "com.example.paperidentify"
- minSdk 21
- targetSdk 32
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- externalNativeBuild {
- cmake {
- cppFlags "-std=c++11 -frtti -fexceptions"
- arguments "-DOpenCV_DIR=" + "F:/AndroidWorkSpace/PaperIdentify/app/src/main/cpp/opencv/sdk/native/jni"
- arguments "-DANDROID_STL=c++_shared"
- }
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- externalNativeBuild {
- cmake {
- path file('src/main/cpp/CMakeLists.txt')
- version '3.10.2'
- }
- }
- buildFeatures {
- viewBinding true
- }
- splits {
- abi {
- enable true
- universalApk false
- reset()
- include 'armeabi-v7a', 'arm64-v8a'
- }
- }
- }
- dependencies {
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.3.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- }
|