build.gradle 2.12 KB
Newer Older
姜天宇's avatar
姜天宇 committed
1 2
plugins {
    id 'com.android.application'
姜天宇's avatar
姜天宇 committed
3
    id 'org.jetbrains.kotlin.android'
姜天宇's avatar
姜天宇 committed
4 5 6 7 8 9 10 11 12 13
}

android {
    namespace 'com.wmdigit.cateringdetect'
    compileSdk 33

    defaultConfig {
        applicationId "com.wmdigit.cateringdetect"
        minSdk 24
        targetSdk 33
14 15
        versionCode 1000200
        versionName "v1.0.2"
姜天宇's avatar
姜天宇 committed
16

17 18 19 20
        ndk {
            abiFilters 'armeabi-v7a'
        }

姜天宇's avatar
姜天宇 committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [ AROUTER_MODULE_NAME : project.getName() ]
            }
        }
    }

    buildTypes {
        debug {
            buildConfigField 'String', 'POS_URL', '"https://se.wmdigit.com/"'
            resValue "string", "app_name", "餐饮服务-debug"
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
        release {
            buildConfigField 'String', 'POS_URL', '"https://se.wmdigit.com/"'
            resValue "string", "app_name", "餐饮服务"
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
姜天宇's avatar
姜天宇 committed
45 46 47 48 49
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = '17'
姜天宇's avatar
姜天宇 committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    }
    buildFeatures {
        viewBinding true
        dataBinding true
        buildConfig true
    }
    ndkVersion '25.1.8937393'
}

dependencies {
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'

    implementation project(path: ':common')
    implementation project(path: ':core')
66
    implementation project(path: ':module-setting')
67
    implementation project(path: ':data-remote')
姜天宇's avatar
姜天宇 committed
68
    implementation project(path: ':data-local')
69
    implementation project(path: ':service')
姜天宇's avatar
姜天宇 committed
70 71 72 73

    implementation 'com.alibaba:arouter-api:1.5.2'
    annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
}