if (isDebug.toBoolean()) { apply plugin: 'com.android.application' } else { apply plugin: 'com.android.library' } apply plugin: 'com.jakewharton.butterknife' apply plugin: 'com.mob.sdk' android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) defaultConfig { if (isDebug.toBoolean()) { applicationId "com.cyrus.mine" } minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) versionCode Integer.parseInt(project.VERSION_CODE) versionName project.VERSION_NAME testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } MobSDK { appKey "322987b7e73df" appSecret "5ef55039c3d46dbc347f71607dae4a0f" SMSSDK { } } // flavorDimensions "channel" buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } sourceSets { main { if (isDebug.toBoolean()) { manifest.srcFile 'src/main/debug/AndroidManifest.xml' } else { manifest.srcFile 'src/main/release/AndroidManifest.xml' java { exclude 'com/cyrus/mine/debug/**' } } } } resourcePrefix 'module_mine_' configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1' } } repositories { flatDir { dirs project(':baselibrary').file('libs') } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) api project(':baselibrary') api project(':image-cropper') androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) // Twinkling Refresh Layout // RoundImageView implementation 'com.lcodecorex:tkrefreshlayout:1.0.5' implementation 'com.makeramen:roundedimageview:2.3.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' // compile 'com.zzhoujay.richtext:richtext:3.0.4' testImplementation 'junit:junit:4.12' testImplementation 'org.mockito:mockito-all:1.10.19' androidTestImplementation 'org.mockito:mockito-core:1.10.19' annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0' implementation 'com.jakewharton:butterknife:9.0.0' annotationProcessor 'com.google.dagger:dagger-compiler:2.10' }