|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
}
|
|
|
|
|
|
|
|
def AppVersionName = "1.0.27"
|
|
|
|
def AppVersionCode = ((1 * 100 + 1) * 100 + 0) * 10 + 27
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace 'com.xypower.mpapp'
|
|
|
|
compileSdk 33
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.xypower.mpapp"
|
|
|
|
minSdk 25
|
|
|
|
//noinspection ExpiredTargetSdkVersion
|
|
|
|
targetSdk 25
|
|
|
|
versionCode AppVersionCode
|
|
|
|
versionName AppVersionName
|
|
|
|
|
|
|
|
buildConfigField "long","BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
|
|
|
|
|
|
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
// cppFlags '-std=c++17 -frtti -fexceptions -Wno-error=format-security'
|
|
|
|
cppFlags '-std=c++17 -fexceptions -Wno-error=format-security'
|
|
|
|
// cppFlags '-std=c++17 -Wno-error=format-security'
|
|
|
|
// arguments "-DANDROID_STL=c++_shared"
|
|
|
|
arguments "-DNCNN_DISABLE_EXCEPTION=OFF", "-DOpenCV_DIR=" + opencvsdk + "/sdk/native/jni", "-DASIO_ROOT=" + asioroot, "-DEVPP_ROOT=" + evpproot, "-DNCNN_ROOT=" + ncnnroot
|
|
|
|
abiFilters 'arm64-v8a'
|
|
|
|
// setAbiFilters(['arm64-v8a'])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
jniDebuggable true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
path file('src/main/cpp/CMakeLists.txt')
|
|
|
|
version '3.22.1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
|
|
|
|
|
|
|
ndkVersion '26.1.10909125'
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/INDEX.LIST'
|
|
|
|
exclude 'META-INF/io.netty.versions.properties'
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
|
|
// implementation 'androidx.camera:camera-video:1.2.3'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
|
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
implementation 'com.googlecode.mp4parser:isoparser:1.1.21'
|
|
|
|
// implementation 'com.tencent.mars:mars-core:1.2.5'
|
|
|
|
// implementation 'com.tencent:mmkv-static:1.3.0'
|
|
|
|
// implementation project(path: ':opencv')
|
|
|
|
implementation files('libs/devapi.aar')
|
|
|
|
|
|
|
|
// implementation group: 'io.netty', name: 'netty-all', version: '4.1.96.Final'
|
|
|
|
// implementation 'io.netty:netty-all:4.1.23.Final'
|
|
|
|
// implementation 'org.apache.logging.log4j:log4j-api:2.14.0'
|
|
|
|
// implementation 'org.apache.logging.log4j:log4j-core:2.14.0'
|
|
|
|
}
|