Open jihymood opened 7 years ago
我只找到了两处 另一处在哪
apply plugin: 'com.android.application' apply plugin: 'android-apt' apply plugin: 'realm-android'
android { compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion
defaultConfig {
applicationId rootProject.ext.android.applicationId
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
resConfigs "zh"
multiDexEnabled true
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
ndk {
abiFilters "armeabi","x86"
}
}
buildTypes {
release {
minifyEnabled false
// shrinkResources true // zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
google {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "google"]
}
}
packagingOptions {
exclude "lib/mips/librealm-jni.so"
//exclude "lib/x86/librealm-jni.so"
exclude "lib/x86_64/librealm-jni.so"
}
splits {
abi {
enable true
reset()
include 'armeabi', 'armeabi-v7a', 'arm64-v8a','x86'
universalApk true
}
}
}
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/tbs_sdk_thirdapp_v2.2.0.1096_36549_sharewithdownload_withoutGame_obfs_20160830_211645.jar') testCompile 'junit:junit:4.12' androidTestCompile 'com.android.support:support-annotations:25.1.0' androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test:rules:0.5'
//base
compile rootProject.ext.dependencies["appcompat-v7"]
compile rootProject.ext.dependencies["design"]
compile rootProject.ext.dependencies["recyclerview-v7"]
compile rootProject.ext.dependencies["cardview-v7"]
//ui
compile rootProject.ext.dependencies["material-calendarview"]
compile rootProject.ext.dependencies["materialsearchview"]
compile rootProject.ext.dependencies["multiline-collapsingtoolbar"]
compile rootProject.ext.dependencies["PhotoView"]
compile rootProject.ext.dependencies["glide-transformations"]
compile rootProject.ext.dependencies["html-textview"]
//rx
compile rootProject.ext.dependencies["rxjava"]
compile rootProject.ext.dependencies["rxandroid"]
compile rootProject.ext.dependencies["rxpermissions"]
//network
compile rootProject.ext.dependencies["gson"]
compile rootProject.ext.dependencies["retrofit"]
compile rootProject.ext.dependencies["retrofit-converter-gson"]
compile rootProject.ext.dependencies["retrofit-adapter-rxjava2"]
compile rootProject.ext.dependencies["okhttp"]
compile rootProject.ext.dependencies["okhttp-logging-interceptor"]
compile rootProject.ext.dependencies["glide"]
compile rootProject.ext.dependencies["glide-okhttp3-integration"]
compile rootProject.ext.dependencies["jsoup"]
//di
compile rootProject.ext.dependencies["dagger"]
compile rootProject.ext.dependencies["dagger-compiler"]
compile rootProject.ext.dependencies["butterknife"]
apt rootProject.ext.dependencies["butterknife-compiler"]
provided rootProject.ext.dependencies["annotation"]
//other
compile rootProject.ext.dependencies["multidex"]
compile rootProject.ext.dependencies["logger"]
compile rootProject.ext.dependencies["fragmentation"]
compile rootProject.ext.dependencies["crashreport"]
//canary
debugCompile rootProject.ext.dependencies["blockcanary-android"]
releaseCompile rootProject.ext.dependencies["blockcanary-no-op"]
debugCompile rootProject.ext.dependencies["leakcanary-android"]
releaseCompile rootProject.ext.dependencies["leakcanary-android-no-op"]
} 将以上内容覆盖到 app文件夹下build.gradle中
在app.gradle中将x86的部分添上,需要改三处地方