You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdk 34
|
|
|
|
compileOptions.encoding = "GBK"
|
|
defaultConfig {
|
|
applicationId "my.wificar"
|
|
minSdkVersion 21
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags ""
|
|
arguments '-DANDROID_PLATFORM=android-24', '-DANDROID_STL=c++_static', '-DANDROID_STL=c++_shared'
|
|
}
|
|
}
|
|
|
|
ndk {
|
|
moduleName "WztNcnnJniLog" //编译后会生成 .so
|
|
ldLibs "log", "z", "m"
|
|
abiFilters "armeabi-v7a", "arm64-v8a" // opencv库太大只留需要的
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "src/main/cpp/CMakeLists.txt"
|
|
version "3.10.2"
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['src/main/jniLibs', 'libs'] // libs
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
}
|
|
namespace 'my.wificar'
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.j256.ormlite:ormlite-android:6.1'
|
|
implementation 'io.github.litao0621:nifty-slider:1.4.6'
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-core:1.0.15'
|
|
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-native:1.0.15'
|
|
}
|