Browse Source

Update build.gradle

huyuguo 6 years ago
parent
commit
b5cf80417b
1 changed files with 4 additions and 67 deletions
  1. 4 67
      app/build.gradle

+ 4 - 67
app/build.gradle

1
apply plugin: 'com.android.application'
1
apply plugin: 'com.android.application'
2
apply plugin: 'org.greenrobot.greendao'
2
apply plugin: 'org.greenrobot.greendao'
3
4
apply plugin: 'com.mob.sdk'
3
apply plugin: 'com.mob.sdk'
5
6
apply plugin: 'bugly'
4
apply plugin: 'bugly'
7
5
8
bugly {
6
bugly {
21
        }
19
        }
22
    }
20
    }
23
    compileSdkVersion 26
21
    compileSdkVersion 26
24
    buildToolsVersion '28.0.3'
22
//    buildToolsVersion '28.0.3'
23
    buildToolsVersion '29.0.0'
25
24
26
    aaptOptions.cruncherEnabled = false
25
    aaptOptions.cruncherEnabled = false
27
    aaptOptions.useNewCruncher = false
26
    aaptOptions.useNewCruncher = false
49
        daoPackage 'com.electric.chargingpile.gen'
48
        daoPackage 'com.electric.chargingpile.gen'
50
        targetGenDir 'src/main/java'
49
        targetGenDir 'src/main/java'
51
    }
50
    }
52
//    andResGuard {
53
//        // mappingFile = file("./resource_mapping.txt")
54
//        mappingFile = null
55
//        use7zip = true
56
//        useSign = true
57
//        // it will keep the origin path of your resources when it's true
58
//        keepRoot = false
59
//
60
//        whiteList = [
61
//                // your icon
62
//                "R.drawable.icon",
63
//                // for fabric
64
//                "R.string.com.crashlytics.*",
65
//                // for google-services
66
//                "R.string.google_app_id",
67
//                "R.string.gcm_defaultSenderId",
68
//                "R.string.default_web_client_id",
69
//                "R.string.ga_trackingId",
70
//                "R.string.firebase_database_url",
71
//                "R.string.google_api_key",
72
//                "R.string.google_crash_reporting_api_key",
73
//                "R.layout.plugin_camera_album"
74
//        ]
75
//        compressFilePattern = [
76
//                "*.png",
77
//                "*.jpg",
78
//                "*.jpeg",
79
//                "*.gif",
80
//        ]
81
//        sevenzip {
82
//            artifact = 'com.tencent.mm:SevenZip:1.2.13'
83
//            //path = "/usr/local/bin/7za"
84
//        }
85
//
86
//        /**
87
//         * Optional: if finalApkBackupPath is null, AndResGuard will overwrite final apk
88
//         * to the path which assemble[Task] write to
89
//         **/
90
//        // finalApkBackupPath = "${project.rootDir}/final.apk"
91
//
92
//        /**
93
//         * Optional: Specifies the name of the message digest algorithm to user when digesting the entries of JAR file
94
//         * Only works in V1signing, default value is "SHA-1"
95
//         **/
96
//        // digestalg = "SHA-256"
97
//    }
98
    buildTypes {
51
    buildTypes {
99
        debug {
52
        debug {
100
            //是否优化zip
53
            //是否优化zip
124
    dexOptions {
77
    dexOptions {
125
        javaMaxHeapSize "5g"
78
        javaMaxHeapSize "5g"
126
    }
79
    }
127
//    repositories {
128
//        mavenCentral()
129
//        maven { url = 'https://dl.bintray.com/yuancloud/maven/' }//    }
130
    packagingOptions {
80
    packagingOptions {
131
        exclude 'META-INF/DEPENDENCIES.txt'
81
        exclude 'META-INF/DEPENDENCIES.txt'
132
        exclude 'META-INF/rxjava.properties'
82
        exclude 'META-INF/rxjava.properties'
150
//        cdz {}
100
//        cdz {}
151
101
152
102
153
//        wandoujia {}
154
//        baidu {}
155
//        anzhi {}
156
//        pp {}
157
//        vivo {}
158
//        meizu {}
159
160
//        sougou {}
103
//        wandoujia {} baidu {} anzhi {} pp {} vivo {} meizu {} sougou {}
161
        productFlavors.all { flavor ->
104
        productFlavors.all { flavor ->
162
            flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
105
            flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
163
        }
106
        }
168
111
169
    appKey "6f4323b7b4cc"
112
    appKey "6f4323b7b4cc"
170
    appSecret "05e19cfda18d5fcbf779080b063f3707"
113
    appSecret "05e19cfda18d5fcbf779080b063f3707"
171
172
    ShareSDK {
114
    ShareSDK {
173
174
        devInfo {
115
        devInfo {
175
176
            /* Wechat微信和WechatMoments微信朋友圈的appid是一样的;
116
            /* Wechat微信和WechatMoments微信朋友圈的appid是一样的;
177
178
      注意:开发者不能用我们这两个平台的appid,否则分享不了
179
      微信测试的时候,微信测试需要先签名打包出apk,
117
      注意:开发者不能用我们这两个平台的appid,否则分享不了微信测试的时候,微信测试需要先签名打包出apk,
180
      sample测试微信,要先签名打包,keystore在sample项目中,密码123456
118
      sample测试微信,要先签名打包,keystore在sample项目中,密码123456
181
119
182
      BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
120
      BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
217
}
155
}
218
156
219
dependencies {
157
dependencies {
220
    //    compile files('libs/badgeview.jar')
221
    compile files('libs/mframework.jar')
158
    compile files('libs/mframework.jar')
222
    compile files('libs/picasso-2.5.2.jar')
159
    compile files('libs/picasso-2.5.2.jar')
223
    compile project(':autolayout')
160
    compile project(':autolayout')