Pārlūkot izejas kodu

Update build.gradle

huyuguo 5 gadi atpakaļ
vecāks
revīzija
b5cf80417b
1 mainītis faili ar 4 papildinājumiem un 67 dzēšanām
  1. 4 67
      app/build.gradle

+ 4 - 67
app/build.gradle

@ -1,8 +1,6 @@
1 1
apply plugin: 'com.android.application'
2 2
apply plugin: 'org.greenrobot.greendao'
3
4 3
apply plugin: 'com.mob.sdk'
5
6 4
apply plugin: 'bugly'
7 5
8 6
bugly {
@ -21,7 +19,8 @@ android {
21 19
        }
22 20
    }
23 21
    compileSdkVersion 26
24
    buildToolsVersion '28.0.3'
22
//    buildToolsVersion '28.0.3'
23
    buildToolsVersion '29.0.0'
25 24
26 25
    aaptOptions.cruncherEnabled = false
27 26
    aaptOptions.useNewCruncher = false
@ -49,52 +48,6 @@ android {
49 48
        daoPackage 'com.electric.chargingpile.gen'
50 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 51
    buildTypes {
99 52
        debug {
100 53
            //是否优化zip
@ -124,9 +77,6 @@ android {
124 77
    dexOptions {
125 78
        javaMaxHeapSize "5g"
126 79
    }
127
//    repositories {
128
//        mavenCentral()
129
//        maven { url = 'https://dl.bintray.com/yuancloud/maven/' }//    }
130 80
    packagingOptions {
131 81
        exclude 'META-INF/DEPENDENCIES.txt'
132 82
        exclude 'META-INF/rxjava.properties'
@ -150,14 +100,7 @@ android {
150 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 104
        productFlavors.all { flavor ->
162 105
            flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
163 106
        }
@ -168,15 +111,10 @@ MobSDK {
168 111
169 112
    appKey "6f4323b7b4cc"
170 113
    appSecret "05e19cfda18d5fcbf779080b063f3707"
171
172 114
    ShareSDK {
173
174 115
        devInfo {
175
176 116
            /* Wechat微信和WechatMoments微信朋友圈的appid是一样的;
177
178
      注意:开发者不能用我们这两个平台的appid,否则分享不了
179
      微信测试的时候,微信测试需要先签名打包出apk,
117
      注意:开发者不能用我们这两个平台的appid,否则分享不了微信测试的时候,微信测试需要先签名打包出apk,
180 118
      sample测试微信,要先签名打包,keystore在sample项目中,密码123456
181 119
182 120
      BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
@ -217,7 +155,6 @@ MobSDK {
217 155
}
218 156
219 157
dependencies {
220
    //    compile files('libs/badgeview.jar')
221 158
    compile files('libs/mframework.jar')
222 159
    compile files('libs/picasso-2.5.2.jar')
223 160
    compile project(':autolayout')