Giter Club home page Giter Club logo

baselibrary's Introduction

BaseLibrary

一:三方依赖:
// --------------------------------以下依赖库需要单独依赖-----------------------------------

// 图片加载
implementation 'com.github.bumptech.glide:glide:4.9.0'
// glide兼容
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
// glide-transformations
implementation 'jp.wasabeef:glide-transformations:4.0.0'

// 事件总线
implementation 'org.greenrobot:eventbus:3.2.0'
annotationProcessor "org.greenrobot:eventbus-annotation-processor:3.2.0"

// Butterknife
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'

二:引入依赖后需要在项目Application中做以下初始化
private void initLogger() {
    LogUtils.init(BuildConfig.ISDEBUG);
}

private void initEventBus() {
    EventBusUtils.openIndex(BuildConfig.ISDEBUG, new MyEventBusIndex());
}

private void initLoading() {
    LoadingDialog.init(R.style.dialog_style_loading);
}

baselibrary's People

Contributors

yangguangz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.