|
- apply plugin: 'com.android.application'
-
- android {
- compileSdkVersion 27
- buildToolsVersion '27.0.3'
- defaultConfig {
- applicationId "pr.platerecognization"
- minSdkVersion 19
- targetSdkVersion 22
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- externalNativeBuild {
- cmake {
- cppFlags "-std=c++11"
- // cppFlags "-std=c++11 -frtti -fexceptions"
- // abiFilters 'armeabi-v7a'
- arguments '-DANDROID_STL=gnustl_static'
- // arguments '-DANDROID_STL=gnustl_shared'
- // '-DANDROID_ABI=armeabi-v7a'
- }
- }
- ndk {
- // Specifies the ABI configurations of your native
- // libraries Gradle should build and package with your APK.
- // abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'mips', 'mips64'
- abiFilters 'armeabi-v7a'
- }
-
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
-
- sourceSets.main {
- jni.srcDirs = [] // This prevents the auto generation of Android.mk
- jniLibs.srcDirs = ['libs','src/main/cpp/opencv342/sdk/native/libs']
- //jniLibs.srcDirs =['src/main/libs','src/main/jniLibs']
- }
- /* externalNativeBuild {
- cmake {
- path 'src/main/cpp/CMakeLists.txt'
- }
- }*/
- externalNativeBuild {
- cmake {
- path 'src/main/cpp/CMakeLists.txt'
- }
- }
- }
-
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'com.android.support:appcompat-v7:27.1.1'
- implementation 'com.android.support.constraint:constraint-layout:1.1.2'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- implementation project(':openCVLibrary342')
- }
|