build.gradle 3.5 KB
Newer Older
糕冷羊's avatar
糕冷羊 已提交
1
apply plugin: 'com.android.application'
2
apply from: 'doraemonkit.gradle'
J
modify:  
jackjintai 已提交
3
apply plugin: 'com.jakewharton.butterknife'
糕冷羊's avatar
糕冷羊 已提交
4 5

android {
J
modify:  
jackjintai 已提交
6
    compileSdkVersion rootProject.ext.android["compileSdkVersion"]
糕冷羊's avatar
糕冷羊 已提交
7
    defaultConfig {
J
modify:  
jackjintai 已提交
8 9 10 11 12 13
        applicationId rootProject.ext.android["applicationId"]
        minSdkVersion rootProject.ext.android["minSdkVersion"]
        targetSdkVersion rootProject.ext.android["targetSdkVersion"]
        versionCode rootProject.ext.android["versionCode"]
        versionName rootProject.ext.android["versionName"]
        multiDexEnabled true
糕冷羊's avatar
糕冷羊 已提交
14 15 16 17 18 19 20 21
    }
    signingConfigs {
        release {
            storeFile file("keystore/test.keystore")
            storePassword "test123456"
            keyAlias "test"
            keyPassword "test123456"
        }
糕冷羊's avatar
糕冷羊 已提交
22 23
    }
    buildTypes {
J
modify:  
jackjintai 已提交
24
        debug {
J
modify:  
jackjintai 已提交
25
            debuggable true
J
modify:  
jackjintai 已提交
26 27 28 29 30
            minifyEnabled false
            shrinkResources false
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
糕冷羊's avatar
糕冷羊 已提交
31
        release {
J
modify:  
jackjintai 已提交
32 33 34
//            debuggable true
            minifyEnabled false
            shrinkResources false
糕冷羊's avatar
糕冷羊 已提交
35
            signingConfig signingConfigs.release
糕冷羊's avatar
糕冷羊 已提交
36 37 38
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
J
modify:  
jackjintai 已提交
39 40 41 42 43 44 45 46 47

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    //指定资源和代码目录
    sourceSets {
        debug {
            manifest.srcFile 'src/debug/java/AndroidManifest.xml'
J
modify:  
jackjintai 已提交
48
            jniLibs.srcDir 'libs'
J
modify:  
jackjintai 已提交
49 50 51 52
        }

        release {
            manifest.srcFile 'src/release/java/AndroidManifest.xml'
J
modify:  
jackjintai 已提交
53
            jniLibs.srcDir 'libs'
J
modify:  
jackjintai 已提交
54
        }
J
modify:  
jackjintai 已提交
55

J
modify:  
jackjintai 已提交
56 57 58 59 60 61
    }

    lintOptions {
        abortOnError false
    }

糕冷羊's avatar
糕冷羊 已提交
62
}
J
modify:  
jackjintai 已提交
63

J
modify:  
jackjintai 已提交
64
//dokit 扩展
J
modify:  
jackjintai 已提交
65 66 67 68 69 70 71
//dokitExt {
//    dokitPluginSwitch = true
//    slowMethodSwitch = true
//    //单位为us 1000us =1ms
//    thresholdTime = 200
//    packageNames = ["com.didichuxing.doraemondemo","com.didichuxing.doraemonkit"]
//}
糕冷羊's avatar
糕冷羊 已提交
72 73 74

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
J
modify:  
jackjintai 已提交
75 76 77 78 79 80 81 82 83 84 85 86 87 88
    testImplementation rootProject.ext.dependencies["junit"]
    implementation rootProject.ext.dependencies["multidex"]
    implementation rootProject.ext.dependencies["appcompat-v7"]
    implementation rootProject.ext.dependencies["design"]
    implementation rootProject.ext.dependencies["okhttp"]
    implementation rootProject.ext.dependencies["glide"]
    implementation rootProject.ext.dependencies["glide_okhttp3"]
    annotationProcessor rootProject.ext.dependencies["glide_compiler"]
    implementation rootProject.ext.dependencies["picasso"]
    implementation rootProject.ext.dependencies["fresco"]
    implementation rootProject.ext.dependencies["fresco-processors"]
    //weex相关
    implementation rootProject.ext.dependencies["weex_inspector"]
    implementation rootProject.ext.dependencies["weex_sdk"]
J
modify:  
jackjintai 已提交
89 90 91 92 93
    implementation rootProject.ext.dependencies["utilcode"]
    implementation rootProject.ext.dependencies["easypermissions"]
    releaseImplementation rootProject.ext.dependencies["okgo"]
    //高德地图定位
    implementation rootProject.ext.dependencies["amap_location"]
J
modify:  
jackjintai 已提交
94 95 96 97
    //腾讯地图定位
    implementation rootProject.ext.dependencies["tencent_location"]
    //百度地图定位
    implementation files('libs/BaiduLBS_Android.jar')
J
modify:  
jackjintai 已提交
98 99
    implementation 'com.jakewharton:butterknife:9.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
J
modify:  
jackjintai 已提交
100
//    implementation 'com.aliyun.ams:alicloud-android-hotfix:3.2.12'
J
modify:  
jackjintai 已提交
101

糕冷羊's avatar
糕冷羊 已提交
102
}