apply plugin: 'com.android.application' android { compileSdkVersion rootProject.ext.android["compileSdkVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"] useLibrary 'org.apache.http.legacy' compileOptions { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "me.jessyan.mvparms.demo" minSdkVersion rootProject.ext.android["minSdkVersion"] targetSdkVersion rootProject.ext.android["targetSdkVersion"] versionCode rootProject.ext.android["versionCode"] versionName rootProject.ext.android["versionName"] testInstrumentationRunner rootProject.ext.dependencies["androidJUnitRunner"] } buildTypes { debug { buildConfigField "boolean", "LOG_DEBUG", "true" buildConfigField "boolean", "USE_CANARY", "true" minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } release { buildConfigField "boolean", "LOG_DEBUG", "false" buildConfigField "boolean", "USE_CANARY", "false" minifyEnabled true shrinkResources true zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } lintOptions { disable 'InvalidPackage' disable "ResourceType" abortOnError false } } buildscript { repositories { jcenter() } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //support implementation(rootProject.ext.dependencies["cardview-v7"]) { exclude module: 'support-annotations' } //tools annotationProcessor rootProject.ext.dependencies["dagger2-compiler"] implementation rootProject.ext.dependencies["progressmanager"] implementation rootProject.ext.dependencies["retrofit-url-manager"] implementation rootProject.ext.dependencies["lifecyclemodel"] //view annotationProcessor(rootProject.ext.dependencies["butterknife-compiler"]) { exclude module: 'support-annotations' } implementation rootProject.ext.dependencies["paginate"] //arms // implementation project(':arms') //Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2 //关于以下扩展库的详细说明请查看 https://github.com/JessYanCoding/MVPArms/blob/master/demo/build.gradle implementation 'me.jessyan:arms:2.5.0' implementation 'me.jessyan:arms-autolayout:2.5.0' implementation 'me.jessyan:arms-imageloader-glide:2.5.0' implementation rootProject.ext.dependencies["androideventbus"] //test testImplementation rootProject.ext.dependencies["junit"] debugImplementation rootProject.ext.dependencies["canary-debug"] releaseImplementation rootProject.ext.dependencies["canary-release"] testImplementation rootProject.ext.dependencies["canary-release"] }