Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • orderCenter
  • build.gradle
Find file
Normal viewHistoryPermalink
build.gradle 1.75 KB
Newer Older
罗翻's avatar
增加空用户模块和工单模块
f3d96e17
 
罗翻 committed 7 years ago
1 2 3 4 5
if (isOrderModule.toBoolean()) {
    apply plugin: 'com.android.library'
} else {
    apply plugin: 'com.android.application'
}
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
6
apply plugin: 'org.greenrobot.greendao'
罗翻's avatar
增加空用户模块和工单模块
f3d96e17
 
罗翻 committed 7 years ago
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

android {
    compileSdkVersion compile_sdk_version
    buildToolsVersion build_tools_version

    defaultConfig {
        minSdkVersion min_sdk_version
        targetSdkVersion target_sdk_version
        versionCode version_code
        versionName verson_name
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true

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

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    buildTypes {
        release {
罗翻's avatar
buildgradle统一进行管理
bc2420be
 
罗翻 committed 7 years ago
35
            minifyEnabled isReleaseMinify
罗翻's avatar
增加空用户模块和工单模块
f3d96e17
 
罗翻 committed 7 years ago
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled = true
    }

    dexOptions {
        preDexLibraries = false
    }

    sourceSets {
        main {
            if (isOrderModule.toBoolean()) {
                manifest.srcFile 'src/main/release/AndroidManifest.xml'
            } else {
                manifest.srcFile 'src/main/debug/AndroidManifest.xml'
            }
        }
    }
}

罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
59
greendao {
罗翻's avatar
处理工单修改
af566e4e
 
罗翻 committed 7 years ago
60
    schemaVersion 3
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
61 62 63 64
    daoPackage 'com.dayu.order.greendao'
    targetGenDir 'src/main/java'
}

罗翻's avatar
增加空用户模块和工单模块
f3d96e17
 
罗翻 committed 7 years ago
65 66 67 68 69 70
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    //ARouter
    annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
    compile project(':provider')
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
71
    compile project(':IDCardLib')
罗翻's avatar
增加空用户模块和工单模块
f3d96e17
 
罗翻 committed 7 years ago
72
}