Skip to content

Commit

Permalink
export face detect as library project & rename jni library
Browse files Browse the repository at this point in the history
  • Loading branch information
CMingTseng committed Oct 22, 2022
1 parent 34ac840 commit e69fd1b
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,29 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 32
//TODO the NDK must pass build must set spec ndkVersion , can not over 21.X.XXXXXXX
ndkVersion "21.4.7075529"//20.0.5594570 21.0.6113669 21.1.6352462 21.4.7075529 21.4.7075529 //Ref : https://developer.android.com/studio/projects/install-ndk
defaultConfig {
applicationId "com.lightweh.facedetection"
minSdkVersion 21
targetSdkVersion 32
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
externalNativeBuild {
cmake {
arguments "-DCMAKE_BUILD_TYPE=Release"
cppFlags "-std=c++11 -frtti -fexceptions"
}
}
ndk { abiFilters "armeabi", "armeabi-v7a", "arm64-v8a" }
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
sourceSets {
main {
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation project(path: ':opencv_face_detect')
}

0 comments on commit e69fd1b

Please sign in to comment.