| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- apply plugin: 'com.android.application'
- //apply plugin: 'kotlin-android-extensions'
- //apply plugin: 'kotlin-android'
- android {
- compileSdkVersion versions.compileSdk
- buildToolsVersion versions.buildTools
- defaultConfig {
- minSdkVersion versions.minSdk
- targetSdkVersion versions.targetSdk
- applicationId "com.itant.shibei"
- versionCode 1
- versionName "1.0.1"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- signingConfigs {
- config {
- storeFile file('commonkey')
- storePassword "away6899458"
- keyAlias "sz"
- keyPassword "away6899458"
- }
- }
- flavorDimensions "url"
- productFlavors {
- dev {
- // 开发环境宿舍服务器
- buildConfigField("String", "BASE_URL", '"http://192.168.0.190:8080/"')
- }
- rel {
- // todo 正式上线
- buildConfigField("String", "BASE_URL", '"http://188.168.0.190:8080/"')
- }
- }
- buildTypes {
- debug {
- }
- release {
- signingConfig signingConfigs.config
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- // 定义输出的APK名字
- android.applicationVariants.all { variant ->
- variant.outputs.all {
- outputFileName = "Shibei_v${defaultConfig.versionName}.apk"
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- api project(path: ':common')
- implementation project(path: ':network')
- implementation project(path: ':mvp')
- //compile "androidx.core:core-ktx:+"
- //compile "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
- //implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
- // RxActivityResult
- implementation 'com.github.VictorAlbertos:RxActivityResult:0.5.0-2.x'
- // 调试过程中可以查看详细的网络请求与相应
- debugImplementation 'com.readystatesoftware.chuck:library:1.1.0'
- releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0'
- // 友盟
- implementation "com.umeng.umsdk:common:9.1.0" //(必选)
- implementation "com.umeng.umsdk:asms:1.1.3" // asms包依赖(必选)
- implementation "com.umeng.umsdk:crash:0.0.4" // native crash包依赖(必选)
- }
- repositories {
- mavenCentral()
- }
|