You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FindU/app/build.gradle

61 lines
2.0 KiB

9 years ago
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
defaultConfig {
applicationId "cn.bmob.imdemo"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//自动删除 unaligned .apks
applicationVariants.all { variant ->
variant.assemble.doLast {
variant.outputs.each { output ->
File unaligned = output.packageApplication.outputFile;
File aligned = output.outputFile
if (!unaligned.getName().equalsIgnoreCase(aligned.getName())) {
println "deleting " + unaligned.getName()
unaligned.delete()
}
}
}
}
}
}
dexOptions{
incremental false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile('com.android.support:appcompat-v7:22.2.0') {
exclude module: 'support-annotations'
}
compile 'com.android.support:recyclerview-v7:22.2.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.orhanobut:logger:1.4'
compile 'org.greenrobot:eventbus:3.0.0'
//bmob-im:自2.0.5开始提供aar格式包含BmobNewIM_xxxx.jar、androidasync_2.1.6.jar、bmob_im_notification_strings.xml
compile 'cn.bmob.android:bmob-im:2.0.5@aar'
//bmob-sdk:3.4.7
compile 'cn.bmob.android:bmob-sdk:3.4.7-aar'
compile files('libs/baidumapapi_v3_5_0.jar')
}