12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- sourceSets {
- main {
- java.srcDirs = ['../src/main/java']
- manifest.srcFile '../src/main/AndroidManifest.xml'
- }
- }
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode rootProject.ext.versionCode
- versionName rootProject.ext.versionName
- externalNativeBuild {
- cmake {
- targets "image"
- arguments "-DANDROID_ARM_NEON=TRUE",
- "-DIMAGE_SINGLE_SHARED_LIB=FALSE"
- }
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), '../proguard-rules.pro'
- }
- }
- externalNativeBuild {
- cmake {
- path '../src/main/jni/CMakeLists.txt'
- }
- }
- }
- dependencies {
- implementation "com.android.support:support-annotations:${rootProject.ext.supportLibraryVersion}"
- testImplementation "junit:junit:${rootProject.ext.junitVersion}"
- }
- project.afterEvaluate {
- externalNativeBuildDebug.dependsOn ':singlelib:javah'
- externalNativeBuildRelease.dependsOn ':singlelib:javah'
- }
- // Publish arr with java source and java doc
- apply from: rootProject.file('android-maven-gradle.gradle')
|