美文网首页
解码 Android dependencise

解码 Android dependencise

作者: 槐树向北 | 来源:发表于2017-02-21 14:44 被阅读57次

解码 Android dependencise

某个mvp模式构建的app的 app gradle里面的dependencise

/*
 Dependency versions are defined in the top level build.gradle file. This helps keeping track of
 all versions in a single place. This improves readability and helps managing project complexity.
 */
dependencies {
    // App's dependencies, including test
    compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
    compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
    compile "com.android.support:design:$rootProject.supportLibraryVersion"
    compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
    compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"

    compile "com.android.support.test.espresso:espresso-idling-resource:$rootProject.espressoVersion"
    //Google的自动化测试框架叫浓咖啡
    compile "com.google.guava:guava:$rootProject.guavaVersion" 
    //Google常用的类库,叫番石榴

    // Dependencies for local unit tests 
    //本地单元测试的依赖.http://blog.csdn.net/zhangxin09/article/details/42418441
    testCompile "junit:junit:$rootProject.ext.junitVersion"//junit单元测试
    testCompile "org.mockito:mockito-all:$rootProject.ext.mockitoVersion"//mockito
    testCompile "org.hamcrest:hamcrest-all:$rootProject.ext.hamcrestVersion"//hamcrest

    // Android Testing Support Library's runner and rules安卓测试支持库和规则
    androidTestCompile "com.android.support.test:runner:$rootProject.ext.runnerVersion"
    androidTestCompile "com.android.support.test:rules:$rootProject.ext.runnerVersion"

    // Dependencies for Android unit tests
    //安卓单元测试的依赖.
    androidTestCompile "junit:junit:$rootProject.ext.junitVersion"//junit单元测试
    androidTestCompile "org.mockito:mockito-core:$rootProject.ext.mockitoVersion"//mockto-core模拟测试核心
    androidTestCompile 'com.google.dexmaker:dexmaker:1.2'//Google dexmaker动态加载APK原理分享 - 简单之美 - 博客频道 - CSDN.NET
http://blog.csdn.net/hkxxx/article/details/42194387
    androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'

    // Espresso UI Testing
    androidTestCompile "com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion"
    androidTestCompile "com.android.support.test.espresso:espresso-contrib:$rootProject.espressoVersion"
    androidTestCompile "com.android.support.test.espresso:espresso-intents:$rootProject.espressoVersion"

    // Resolve conflicts between main and test APK:
    androidTestCompile "com.android.support:support-annotations:$rootProject.supportLibraryVersion"
    androidTestCompile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
    androidTestCompile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
    androidTestCompile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
    androidTestCompile "com.android.support:design:$rootProject.supportLibraryVersion"
}

1. compile "com.android.support.test.espresso:espresso-idling-resource:$rootProject.espressoVersion"

//Google的自动化测试框架叫浓咖啡

2. compile "com.google.guava:guava:$rootProject.guavaVersion"

//Google常用的类库,叫番石榴

介绍guava

3. testCompile "org.mockito:mockito-all:$rootProject.ext.mockitoVersion"//mockito

Mockito website.png
Mockito Hello World - 圣骑士wind - 博客园

4. androidTestCompile 'com.google.dexmaker:dexmaker:1.2'//Google dexmaker

相关文章

网友评论

      本文标题:解码 Android dependencise

      本文链接:https://www.haomeiwen.com/subject/vnhuwttx.html