Skip to content
coder_zzq edited this page Apr 9, 2019 · 22 revisions

引入SmartShow

  1. 在Project的gradle文件中

allprojects {

    repositories {

        ...

        maven { url 'https://jitpack.io' }

    }

}
  1. 在Module的gradle文件中

第一种方式,引入所有模块



    implementation ('com.github.the-pig-of-jungle.smart-show:all:2.6.7'){
    
        exclude group: 'com.android.support'
        
    }
        
        //添加与你项目匹配的design依赖库的相应版本
        
        implementation 'com.android.support:design:x.y.z'
        

第二种方式,自由引入各个模块


    //smart toast
    
    implementation 'com.github.the-pig-of-jungle.smart-show:toast:2.6.7'

    // smart dialog
    
    implementation 'com.github.the-pig-of-jungle.smart-show:dialog:2.6.7'
  
    // smart topbar
    
    implementation('com.github.the-pig-of-jungle.smart-show:topbar:2.6.7') {
    
        exclude group: 'com.android.support'
        
    }
    
    //添加与你项目匹配的design依赖库的相应版本
            
    implementation 'com.android.support:design:x.y.z'

    // smart snackbar
    
    implementation('com.github.the-pig-of-jungle.smart-show:snackbar:2.6.7') {
    
        exclude group: 'com.android.support'
        
    }
    
    //添加与你项目匹配的design依赖库的相应版本
                
    implementation 'com.android.support:design:x.y.z'