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 2.91 KB
Newer Older
yu's avatar
init
e37b6764
 
yu committed 7 years ago
1
apply plugin: 'com.android.application'
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
2 3


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

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

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

罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
28 29 30 31
    signingConfigs {
        release {
            keyAlias 'keybigfish'
            keyPassword '123456789'
罗翻's avatar
增加PDF
6d863aa3
 
罗翻 committed 7 years ago
32
            storeFile file('../../app_key.jks')
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
33 34
            storePassword '123456789'
        }
yu's avatar
init
e37b6764
 
yu committed 7 years ago
35
    }
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
36

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

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

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

罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
60 61 62 63 64 65 66 67
    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
68 69 70 71

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

    lintOptions {
        abortOnError false
    }
    dexOptions {
        preDexLibraries = false
    }
yu's avatar
init
e37b6764
 
yu committed 7 years ago
79
}
罗翻's avatar
增加备件列表,物流信息等页面
8bc16ee5
 
罗翻 committed 7 years ago
80

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

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

yu's avatar
init
e37b6764
 
yu committed 7 years ago
88
dependencies {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
89 90
    api fileTree(include: ['*.jar'], dir: 'libs')
    testImplementation 'junit:junit:4.12'
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
91 92
    //ARouter
    annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
93 94

    if (isMessageModule.toBoolean()) {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
95
        api project(':messageCenter')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
96 97
    }
    if (isUserModule.toBoolean()) {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
98
        api project(':userCenter')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
99 100
    }
    if (isOrderModule.toBoolean()) {
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
101
        api project(':orderCenter')
罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
102
    }
罗翻's avatar
增加店长模块
76b1d048
 
罗翻 committed 6 years ago
103 104 105
    if (isManagerModule.toBoolean()) {
        api project(':managercenter')
    }
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
106 107 108
//    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
109
//    compile(name: 'provider-debug', ext: 'aar')
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
110
//    compile(name: 'baseSDK-debug', ext: 'aar')
yu's avatar
init
e37b6764
 
yu committed 7 years ago
111
}
罗翻's avatar
将mvp替换成mvvm
d478f62a
 
罗翻 committed 7 years ago
112