apply plugin: 'com.android.application' apply plugin: 'com.getkeepsafe.dexcount' android { compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { applicationId "com.yingtang.devicemanager" minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode 1 versionName "v1.0" multiDexEnabled true ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips", "x86_64", "mips64" } } buildTypes { release { minifyEnabled false zipAlignEnabled true //Zipalign优化 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } useLibrary 'org.apache.http.legacy' lintOptions { checkReleaseBuilds false abortOnError false } sourceSets { main { jniLibs.srcDirs = ['src/main/jniLibs'] } } packagingOptions { exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } signingConfigs { pda_storage { keyAlias 'key_dm' keyPassword 'abc123' storeFile file('C:/sigin/dm.jks') storePassword 'abc123' } } } repositories { flatDir { dirs 'libs' } } buildscript { repositories { mavenCentral() } dependencies { classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4' } } dependencies { api fileTree(include: ['*.jar'], dir: 'libs') testImplementation deps.junit implementation deps.appcompatV7 implementation deps.supportV4 implementation deps.design implementation(deps.stetho) { force = true } implementation deps.jodatime implementation deps.systembartint implementation deps.photoView implementation deps.tagGroup // implementation deps.analytics implementation deps.activityOnCrash implementation deps.stickyListHeaders implementation deps.stickyGridHeaders implementation deps.materialDialogs implementation deps.okhttp implementation 'com.android.support.constraint:constraint-layout:1.0.2' // api project(':common') // api project(':apptasks') //api project(':appmessages') // api project(':network') // api project(':imageload') //api project(':applogin') // api project(':appcontact') //api project(':appme') api project(':appworks') //api project(':appbooking') //api project(':appmusic') //api project(':apputils') // implementation(name: 'autoupdatesdk-release', ext: 'aar') } dexcount { format = "json" includeClasses = false includeFieldCount = true includeTotalMethodCount = false orderByMethodCount = false verbose = false maxTreeDepth = Integer.MAX_VALUE teamCityIntegration = false enableForInstantRun = false }