123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- apply plugin: 'com.android.application'
- def cfg = rootProject.ext.configuration
- def lib = rootProject.ext.libraries
- android {
- compileSdkVersion cfg.compileSdkVersion
- defaultConfig {
- minSdkVersion cfg.minSdkVersion
- targetSdkVersion cfg.targetSdkVersion
- versionCode cfg.versionCode
- versionName cfg.versionName
- testInstrumentationRunner "android.support.activity_about.runner.AndroidJUnitRunner"
- multiDexEnabled true
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- // splits {
- // abi {
- // enable true
- // reset()
- // include 'x86', 'armeabi-v7a','x86_64'
- // universalApk true
- // }
- // }
- /* ndk {
- // 设置支持的SO库架构
- abiFilters 'armeabi', 'x86_64', 'armeabi-v7a', 'x86', 'arm64-v8a'
- }*/
- ndk {
- //选择要添加的对应 cpu 类型的 .so 库。
- abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a','x86', 'x86_64', 'mips', 'mips64'
- // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
- }
- manifestPlaceholders = [
- JPUSH_PKGNAME : "com.fengzhan100.fz",
- JPUSH_APPKEY : "22af32325a2be30bac993f5e", //JPush 上注册的包名对应的 Appkey.
- JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
- ]
- }
- packagingOptions {
- doNotStrip '*/mips/*.so'
- doNotStrip '*/mips64/*.so'
- }
- signingConfigs {
- release {
- keyAlias 'fengzhan'
- keyPassword 'fengzhan666'
- storeFile file('./fengzhan.jks')
- storePassword 'fengzhan666'
- }
- }
- buildTypes {
- debug {
- //是否混淆
- minifyEnabled false
- // 是否资源压缩
- shrinkResources false
- //是否移除无用资源
- zipAlignEnabled false
- signingConfig signingConfigs.release
- }
- release {
- //是否混淆
- minifyEnabled true
- // 是否资源压缩
- shrinkResources false
- //是否移除无用资源
- zipAlignEnabled false
- //混淆的配置文件
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
- }
- }
- configurations.all {
- // resolutionStrategy.force 'com.google.zxing:core:3.3.0'
- resolutionStrategy.force "com.android.support:appcompat-v7:$lib.supportVersion"
- resolutionStrategy.force "com.android.support:design:$lib.supportVersion"
- }
- dexOptions {
- jumboMode true
- incremental true
- }
- aaptOptions {
- noCompress "tflite"
- noCompress "lite"
- }
- repositories {
- flatDir {
- dirs '../../android-new/BSOCR/libs'
- }
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation "com.android.support:appcompat-v7:$lib.supportVersion"
- api 'com.android.support.constraint:constraint-layout:1.1.3'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- configurations {
- all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
- }
- //阿里路由
- annotationProcessor 'com.alibaba:arouter-compiler:1.2.2'
- api project(':BSBase')
- api project(':BSIndex')
- // if (!isDebugMine.toBoolean()) {
- api project(':BSMine')
- // }
- api project(':BSOCR')
- api project(':BSNotice')
- api project(':BSBaiduSpeak')
- }
|