apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.kdp.wanandroidclient" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { buildConfigField("boolean","LOG_DEBUG","false") minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { buildConfigField("boolean","LOG_DEBUG","true") minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { } } dependencies { implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'io.reactivex.rxjava2:rxjava:2.1.16' implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' implementation 'com.squareup.retrofit2:retrofit:2.2.0' implementation 'com.squareup.retrofit2:converter-gson:2.2.0' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.2.0' implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.google.code.gson:gson:2.8.5' implementation 'com.github.bumptech.glide:glide:4.8.0' implementation 'com.just.agentweb:agentweb:4.0.1' implementation 'com.hyman:flowlayout-lib:1.1.2' debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4' //只在debug模式下有用 releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4' }