| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 27
- defaultConfig {
- applicationId "com.wiipu.peopleheart"
- minSdkVersion 21
- targetSdkVersion 27
- versionCode 1
- versionName "1.0"
- 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'
- }
|