apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' android { compileSdkVersion 28 defaultConfig { applicationId "com.bgy.autosale" minSdkVersion 21 targetSdkVersion 28 // versionCode 1 // versionName "1.0" versionCode rootProject.ext.android["versionCode"] versionName rootProject.ext.android["versionName"] consumerProguardFiles 'consumer-rules.pro' manifestPlaceholders = [ GETUI_APP_ID : "GKa6qa12heALjEXZlAn1U3", GETUI_APP_KEY : "89WV8dfjRg6RlxEchgmnS6", GETUI_APP_SECRET: "fLvPjR8hni7VFMkgjh8lx2" ] } dataBinding { enabled = true } signingConfigs { debug { // keyAlias 'key0' // keyPassword '00000000' // storeFile file('../bgy.jks') // storePassword '00000000' keyAlias 'hboxs_debug' keyPassword 'androidsymtabfileuploader' storeFile file('../hboxs_debug.jks') storePassword 'android' } release { // keyAlias 'key0' // keyPassword '00000000' // storeFile file('../bgy.jks') // storePassword '00000000' keyAlias 'hboxs' keyPassword 'android' storeFile file('../hboxs.jks') storePassword 'android' } } buildTypes { // release { // minifyEnabled true // //Zipalign优化 // zipAlignEnabled true // // // 移除无用的resource文件 // shrinkResources true // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' // signingConfig signingConfigs.release // } release { buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log //Zipalign优化 zipAlignEnabled true minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { signingConfig signingConfigs.release } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } greendao { schemaVersion 1 daoPackage 'com.exapmple.icecreamlite.greendao' } packagingOptions { exclude 'META-INF/io.netty.versions.properties' } repositories { flatDir { dir'libs' } } } dependencies { implementation files('libs/bugly-core-4.1.9.aar') // implementation 'com.github.bumptech.glide:glide:4.9.0' // implementation 'com.android.support:appcompat-v7:28.0.0' // implementation 'com.android.support:recyclerview-v7:28.0.0' // implementation 'com.android.support.constraint:constraint-layout:1.1.3' //rxjava // implementation 'io.reactivex.rxjava2:rxjava:2.2.2' // implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' //网络 okhttp + gson解析 implementation 'com.squareup.retrofit2:converter-gson:2.5.0' // implementation 'com.squareup.retrofit2:retrofit:2.5.0' // implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' // implementation 'android.arch.work:work-runtime:1.0.1' //二维码 // implementation 'com.google.zxing:core:3.3.3' // api files('libs/zixing-core-3.2.0.jar') //bannerview 轮播图的 implementation 'com.youth.banner:banner:1.4.10' //数据库 // api 'org.greenrobot:greendao:3.2.2' // api 'org.greenrobot:greendao-generator:3.2.2' // implementation 'com.github.orhanobut:hawk:1.21' implementation project(path: ':module_offpay') implementation project(':module_offpay') implementation project(':BaseLibrary') implementation project(path: ':lm-library') implementation 'com.rabbitmq:amqp-client:4.12.0' implementation 'com.getui:sdk:2.13.1.0' debugCompile 'com.squareup.leakcanary:leakcanary-android:2.12' }