| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- apply plugin: 'com.android.application'
- apply plugin: 'org.greenrobot.greendao'
- apply plugin: 'kotlin-android' //加上插件
- android {
- compileSdkVersion versionCompiler
- buildToolsVersion versionBuildTool
- compileOptions.encoding = 'UTF-8'
- useLibrary 'org.apache.http.legacy'
- compileOptions {
- sourceCompatibility javaSourceCompatibility
- targetCompatibility javaTargetCompatibility
- }
- /*signingConfigs {
- sginconfig {
- keyAlias 'platform'
- keyPassword 'android'
- storeFile file('debug.keystore')
- storePassword 'android'
- }
- }*/
- defaultConfig {
- applicationId "com.kyen.imagedetection"
- minSdkVersion 21
- targetSdkVersion versionTarget
- versionCode 50
- versionName "1.50"
- testInstrumentationRunner "android.support.intToByteZF.runner.AndroidJUnitRunner"
- multiDexEnabled true
- resConfigs 'en', 'cn'
- ndk {
- abiFilters "armeabi", "armeabi-v7a"
- }
- }
- dexOptions {
- incremental true
- javaMaxHeapSize "4g"
- }
- buildTypes {
- release {
- //signingConfig signingConfigs.sginconfig
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- debug {
- //signingConfig signingConfigs.sginconfig
- debuggable true
- jniDebuggable false
- renderscriptDebuggable false
- minifyEnabled false
- zipAlignEnabled true
- }
- }
- allprojects {
- repositories {
- maven { url 'https://jitpack.io' }
- }
- }
- lintOptions {
- // checkReleaseBuilds false
- abortOnError false
- }
- sourceSets {
- main {
- //jniLibs.srcDirs = ['libs']
- jni.srcDirs = []//禁止自动执行ndk-build
- jniLibs.srcDir 'src/main/libs'
- //修改
- // jniLibs.srcDirs = ['libs']
- }
- }
- packagingOptions {
- pickFirst 'lib/armeabi-v7a/libopencv_java4.so'
- doNotStrip "*/*/libsnpe_dsp_v65_domains_skel.so"
- doNotStrip "*/*/libsnpe_dsp_skel.so"
- doNotStrip "*/*/libsnpe_dsp_domains_skel.so"
- }
- aaptOptions {
- noCompress "tflite"
- //表示不让aapt压缩的文件后缀//相关文档https://blog.csdn.net/aiynmimi/article/details/89188874
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- // implementation(name: 'update-release', ext: 'aar')//rtmp实时视频
- implementation 'org.xutils:xutils:3.3.34'
- implementation 'com.github.yangjie10930:EpMedia:v0.9.5'
- implementation 'com.google.guava:guava:17.0'
- implementation project(':camera_ui')
- implementation files('libs/easyedge-sdk.jar')
- implementation "com.android.support:support-v4:${supportLibVersion}"
- implementation "com.android.support:support-annotations:${supportLibVersion}"
- implementation("com.serenegiant:common:${commonLibVersion}") {
- exclude module: 'support-v4'
- }
- implementation project(':libusbcamera')
- implementation project(':AI_FangWaiPo')//引入防外破识别
- implementation project(path: ':sdk')
- implementation project(path: ':ai_snow_covered')//引入ai覆冰
- // 串口
- // implementation 'com.github.licheedev.Android-SerialPort-API:serialport:1.0.1'
- implementation 'com.licheedev:android-serialport:2.1.1'
- // implementation 'com.github.licheedev:Android-SerialPort-API:2.0.0'
- // implementation 'com.licheedev:android-serialport:2.1.5'
- ///////////////////////////////
- implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4@aar'
- implementation 'io.reactivex.rxjava2:rxjava:2.0.8'
- implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
- ////////rtmp实时视频
- implementation "com.squareup.retrofit2:retrofit:2.9.0"
- implementation "com.squareup.retrofit2:retrofit-mock:2.7.2"
- implementation "com.squareup.retrofit2:converter-gson:2.7.2"
- implementation "com.squareup.retrofit2:adapter-rxjava2:2.7.2"
- implementation "com.squareup.retrofit2:converter-gson:2.2.0"
- //implementation 'com.google.code.gson:gson:2.7.2'
- // Gson库
- implementation "com.google.code.gson:gson:2.6"
- implementation 'com.squareup.okhttp3:okhttp:4.2.2'
- implementation 'com.squareup:otto:1.3.8'
- implementation 'com.github.bumptech.glide:glide:3.7.0'
- implementation 'com.android.support:multidex:1.0.1'
- implementation 'com.alibaba:fastjson:1.2.58'
- implementation files('libs/javacsv.jar')
- //日志打印
- implementation('com.squareup.okhttp3:logging-interceptor:3.4.1')
- implementation 'org.conscrypt:conscrypt-android:2.2.1'
- implementation project(path: ':library')
- implementation project(':pedrovlc')
- implementation project(':onvifcamera')
- // implementation project(path: ':gb28181library')
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation "com.android.support:support-annotations:${supportLibVersion}"
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- implementation 'org.joml:joml:1.10.1' // 确保使用最新的版本
- configurations {
- all*.exclude group: 'com.google.code.gson'
- }
- }
- repositories {
- mavenCentral()
- }
|