xref: /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_android_apk_demo/app/build.gradle (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1apply plugin: 'com.android.application'
2
3android {
4    compileSdk 28
5    defaultConfig {
6        applicationId "com.rockchip.gpadc.yolodemo"
7        minSdkVersion 25
8        targetSdkVersion 32
9        versionCode 1
10        versionName "1.0"
11        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12        externalNativeBuild {
13            cmake {
14                cppFlags "-std=c++11 -fexceptions"
15                arguments "-DANDROID_ARM_NEON=TRUE"
16            }
17        }
18
19        ndk {
20            abiFilters "arm64-v8a"
21        }
22    }
23    buildTypes {
24        release {
25            minifyEnabled false
26            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
27        }
28    }
29    externalNativeBuild {
30        cmake {
31            path "CMakeLists.txt"
32        }
33    }
34    compileOptions {
35        sourceCompatibility JavaVersion.VERSION_1_7
36        targetCompatibility JavaVersion.VERSION_1_7
37    }
38
39    // https://developer.android.com/studio/releases/gradle-plugin#groovy
40    sourceSets {
41        main {
42            // The libs directory contains prebuilt libraries that are used by the
43            // app's library defined in CMakeLists.txt via an IMPORTED target.
44            // jniLibs.srcDirs = ['libs']
45        }
46    }
47}
48
49dependencies {
50    implementation fileTree(dir: 'libs', include: ['*.jar'])
51    implementation 'com.android.support:appcompat-v7:28.0.0'
52    implementation 'com.android.support.constraint:constraint-layout:2.0.4'
53    testImplementation 'junit:junit:4.12'
54    androidTestImplementation 'com.android.support.test:runner:1.0.2'
55    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
56}
57