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
  • app
  • build.gradle
Find file
Normal viewHistoryPermalink
build.gradle 3.11 KB
Newer Older
yu's avatar
init
e37b6764
 
yu committed 7 years ago
1
apply plugin: 'com.android.application'
罗翻's avatar
android1.9.9
9e8f1f3f
 
罗翻 committed 6 years ago
2 3
//apply plugin: 'kotlin-android'

罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
4 5


yu's avatar
init
e37b6764
 
yu committed 7 years ago
6
android {
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
7

罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
8 9
    compileSdkVersion compile_sdk_version
    buildToolsVersion build_tools_version
yu's avatar
init
e37b6764
 
yu committed 7 years ago
10 11
    defaultConfig {
        applicationId "com.dayu.bigfish"
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
12 13 14 15
        minSdkVersion min_sdk_version
        targetSdkVersion target_sdk_version
        versionCode version_code
        versionName verson_name
yu's avatar
init
e37b6764
 
yu committed 7 years ago
16
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
yu's avatar
2017/10/11 第二次提交
fc4d3d68
 
yu committed 7 years ago
17
        multiDexEnabled true
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
18
        vectorDrawables.useSupportLibrary = true
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
19 20 21

        javaCompileOptions {
            annotationProcessorOptions {
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
22
                arguments = [moduleName: project.getName()]
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
23 24
            }
        }
罗翻's avatar
压缩图片,升级环信sdk
12dbb195
 
罗翻 committed 6 years ago
25
        ndk {
mReturn's avatar
接入直播
b8338b29
 
mReturn committed 4 years ago
26
            abiFilters 'armeabi-v7a','armeabi'
罗翻's avatar
压缩图片,升级环信sdk
12dbb195
 
罗翻 committed 6 years ago
27
        }
yu's avatar
init
e37b6764
 
yu committed 7 years ago
28
    }
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
29

罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
30 31 32 33
    signingConfigs {
        release {
            keyAlias 'keybigfish'
            keyPassword '123456789'
mReturn's avatar
app_key
0af7ccd0
 
mReturn committed 5 years ago
34
            storeFile file('app_key.jks')
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
35 36
            storePassword '123456789'
        }
yu's avatar
init
e37b6764
 
yu committed 7 years ago
37
    }
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
38

yu's avatar
init
e37b6764
 
yu committed 7 years ago
39 40
    buildTypes {
        release {
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
41
            signingConfig android.signingConfigs.release
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
42 43 44
            minifyEnabled isReleaseMinify
            shrinkResources isReleaseMinify //是否清理无用资源,依赖于minifyEnabled
            zipAlignEnabled isReleaseMinify //是否启用zipAlign压缩
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
45 46 47 48 49
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

        debug {
            signingConfig android.signingConfigs.release
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
50
            minifyEnabled isDebugMinify
yu's avatar
init
e37b6764
 
yu committed 7 years ago
51 52 53
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
54

yu's avatar
init
e37b6764
 
yu committed 7 years ago
55 56 57 58 59 60
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
            assets.srcDirs = ['src/main/assets', 'src/main/assets/']
        }
    }
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
61

罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
62 63 64 65 66 67 68 69
    aaptOptions {
        cruncherEnabled = false
        useNewCruncher = false
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
罗翻's avatar
增加activity的databingding
4d4f14f2
 
罗翻 committed 7 years ago
70 71 72 73

    dataBinding {
        enabled = true
    }
罗翻's avatar
Mvp结构修改,增加model的注解类和presenter的注解类
497683ff
 
罗翻 committed 7 years ago
74 75 76

    lintOptions {
        abortOnError false
罗翻's avatar
提交验收页面修改,防止签名回来后重新走oncreate
eefe228f
 
罗翻 committed 6 years ago
77
        checkReleaseBuilds false
罗翻's avatar
Mvp结构修改,增加model的注解类和presenter的注解类
497683ff
 
罗翻 committed 7 years ago
78 79 80 81
    }
    dexOptions {
        preDexLibraries = false
    }
yu's avatar
init
e37b6764
 
yu committed 7 years ago
82
}
罗翻's avatar
增加备件列表,物流信息等页面
8bc16ee5
 
罗翻 committed 7 years ago
83

罗翻's avatar
去掉model
0acbf33c
 
罗翻 committed 7 years ago
84

罗翻's avatar
android v1.01版本
d3d91e57
 
罗翻 committed 7 years ago
85
repositories {
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
86
    flatDir {
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
87 88
        dirs 'libs'
    }
罗翻's avatar
android v1.01版本
d3d91e57
 
罗翻 committed 7 years ago
89
}
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
90

yu's avatar
init
e37b6764
 
yu committed 7 years ago
91
dependencies {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
92
    api fileTree(include: ['*.jar'], dir: 'libs')
mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
93

罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
94
    testImplementation 'junit:junit:4.12'
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
95 96
    //ARouter
    annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
97 98

    if (isMessageModule.toBoolean()) {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
99
        api project(':messageCenter')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
100 101
    }
    if (isUserModule.toBoolean()) {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
102
        api project(':userCenter')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
103 104
    }
    if (isOrderModule.toBoolean()) {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
105
        api project(':orderCenter')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
106
    }
罗翻's avatar
增加店长模块
76b1d048
 
罗翻 committed 6 years ago
107 108 109
    if (isManagerModule.toBoolean()) {
        api project(':managercenter')
    }
mReturn's avatar
sale
7a9d5238
 
mReturn committed 5 years ago
110 111 112
    if (isSaleModule.toBoolean()) {
        api project(':saleCenter')
    }
mReturn's avatar
添加学习模块
ed6ea768
 
mReturn committed 5 years ago
113 114 115
    if (isLearnModule.toBoolean()) {
        api project(':learnCenter')
    }
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
116 117 118
//    compile(name: 'orderCenter-debug', ext: 'aar')
//    compile(name: 'userCenter-debug', ext: 'aar')
//    compile(name: 'messageCenter-debug', ext: 'aar')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
119
//    compile(name: 'provider-debug', ext: 'aar')
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
120
//    compile(name: 'baseSDK-debug', ext: 'aar')
yu's avatar
init
e37b6764
 
yu committed 7 years ago
121
}
罗翻's avatar
将mvp替换成mvvm
d478f62a
 
罗翻 committed 7 years ago
122