apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.wiipu.peopleheart" minSdkVersion 21 targetSdkVersion 27 versionCode 102 versionName "1.0.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips" } } lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } //签名 signingConfigs { debug { storeFile file("../keystore.jks") storePassword "abcdabcd" keyAlias "wiipu" keyPassword "abcdabcd" v1SigningEnabled true v2SigningEnabled true } release { storeFile file("../keystore.jks") storePassword "abcdabcd" keyAlias "wiipu" keyPassword "abcdabcd" v1SigningEnabled true v2SigningEnabled true } } buildTypes { debug { // 显示Log buildConfigField "boolean", "LOG_DEBUG", "true" //混淆 minifyEnabled false //Zipalign优化 zipAlignEnabled true //加载默认混淆配置文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' //签名 signingConfig signingConfigs.debug } release { // 不显示Log buildConfigField "boolean", "LOG_DEBUG", "false" //混淆 minifyEnabled false //Zipalign优化 zipAlignEnabled true //加载默认混淆配置文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' //签名 signingConfig signingConfigs.release } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.1.1' //implementation 'com.android.support.constraint:constraint-Griditem_layout:1.1.2' implementation 'com.android.support:support-v4:27.1.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' // RecycleView implementation 'com.android.support:recyclerview-v7:27.1.1' implementation project(':commonlib') // RxJava + Retrofit implementation 'io.reactivex:rxjava:1.3.0' implementation 'io.reactivex:rxandroid:1.2.1' implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0' // 方法数超过65535 implementation 'com.android.support:multidex:1.0.3' // pick images from system photos implementation 'com.lwkandroid:ImagePicker:1.4.0' // crash检测工具 implementation 'com.tencent.bugly:crashreport:2.6.5' //leakcanary 检测内存泄漏 debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.1' releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' // butterknife , view绑定 api 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' //circleImageView implementation 'de.hdodenhof:circleimageview:2.1.0' //轮播图 implementation 'com.bigkoo:convenientbanner:2.0.5' implementation 'com.android.support:gridlayout-v7:27.1.1' //Glide implementation 'com.github.bumptech.glide:glide:4.0.0' implementation'com.nostra13.universalimageloader:universal-image-loader:1.9.5' }