apply plugin: 'com.android.application' android { signingConfigs { debug { keyAlias 'hboxs_debug' keyPassword 'android' storeFile file('../hboxs_debug.jks') storePassword 'android' } release { keyAlias 'hboxs' keyPassword 'android' storeFile file('../hboxs.jks') storePassword 'android' } } compileSdkVersion rootProject.ext.android["compileSdkVersion"] defaultConfig { applicationId "com.sz.popcorn" minSdkVersion rootProject.ext.android["minSdkVersion"] targetSdkVersion rootProject.ext.android["targetSdkVersion"] versionCode rootProject.ext.android["versionCode"] versionName rootProject.ext.android["versionName"] testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" useLibrary 'org.apache.http.legacy' javaCompileOptions { annotationProcessorOptions { arguments = [ moduleName : project.getName() ] } } manifestPlaceholders = [ GETUI_APP_ID : "GKa6qa12heALjEXZlAn1U3", GETUI_APP_KEY : "89WV8dfjRg6RlxEchgmnS6", GETUI_APP_SECRET: "fLvPjR8hni7VFMkgjh8lx2" ] ndk { abiFilters 'x86','armeabi-v7a' } externalNativeBuild { cmake { cppFlags "" } } multiDexEnabled true } buildTypes { release { buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log //Zipalign优化 zipAlignEnabled true minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { signingConfig signingConfigs.release } } dataBinding { enabled true } lintOptions { abortOnError false } android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } externalNativeBuild { cmake { path "CMakeLists.txt" } } packagingOptions { exclude 'META-INF/*' exclude 'META-INF/NOTICE' // will not include NOTICE file exclude 'META-INF/LICENSE' // will not include LICENSE file exclude 'META-INF/INDEX.LIST' // will not include INDEX.LIST file } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation rootProject.ext.dependencies["appcompat-v7"] implementation rootProject.ext.dependencies["constraint-layout"] implementation 'com.android.support.constraint:constraint-layout:1.1.3' // implementation files('libs\\marshall-java-sdk.jar') // implementation files('libs\\marshall-java-sdk.main.jar') // implementation files('libs/marshall-java-sdk.main.jar') implementation project(path: ':lm-library') implementation files('libs\\xzjh_interface.jar') testImplementation rootProject.ext.dependencies["junit"] androidTestImplementation rootProject.ext.dependencies["runner"] androidTestImplementation rootProject.ext.dependencies["espresso"] implementation project(':BaseLibrary') implementation project(':serialport-api') implementation rootProject.ext.dependencies["MPAndroidChart"] implementation rootProject.ext.dependencies["calendarview"] implementation 'com.getui:sdk:2.13.1.0' // implementation 'com.getui:sdk-for-google-play:4.3.8.0' // implementation rootProject.ext.dependencies["zloading"] implementation files('libs/AMap3DMap_6.7.0_AMapSearch_6.5.0_AMapLocation_4.4.0_20190213.jar') //implementation project(':LibMarsdaemon') // implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9 implementation files('libs/bugly-core-4.1.9.aar') // implementation 'com.tencent.bugly:nativecrashreport:latest.release' implementation rootProject.ext.dependencies["filedownloader"] implementation project(':netmode') implementation project(':mqttmode') implementation project(':module_offpay') androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.0' // implementation files('libs/android-serialport.jar') implementation files('libs/jSerialComm-2.4.0.jar') implementation 'com.android.support:design:28.0.0' debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' implementation 'com.azhon:serialport:1.0.0' implementation 'com.rabbitmq:amqp-client:4.12.0' //mq implementation 'com.squareup.picasso:picasso:2.5.2' //静默安装 implementation 'com.github.a-voyager:AutoInstaller:v1.0' implementation 'net.fredericosilva:showTipsView:1.0.4' implementation 'com.github.zcweng:switch-button:0.0.3@aar' annotationProcessor 'com.alibaba:arouter-compiler:1.1.4' implementation 'com.jakewharton.threetenabp:threetenabp:1.3.1' if (!isModule.toBoolean()) { implementation project(':module_background') implementation project(':module_plc') } implementation 'com.github.mik3y:usb-serial-for-android:3.7.0' }