Giter Club home page Giter Club logo

basickit's Introduction

BasicKit

androidx版本的项目依赖库,基于android Jetpack,提供MVVM的kotlin依赖库

gradle引入

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

当前版本

dependencies {
    implementation 'com.github.itdais:BasicKit:0.1.0'
}

项目简介

项目集成了:1)、android基础的recyclerview,以及jitpack组件 2)、kotlin和协程 3)、rxhttp网络加载框架 4)、glide图片加载引擎

项目依赖了:

//jetpack api 'androidx.appcompat:appcompat:1.2.0' api "androidx.recyclerview:recyclerview:1.1.0" api 'com.google.android.material:material:1.2.1' api "androidx.lifecycle:lifecycle-extensions:2.2.0" api "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0" api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0" api 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0' //kotlin api 'androidx.core:core-ktx:1.3.2' api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" //协程 api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9' api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9" // gson api 'com.google.code.gson:gson:2.8.5'

项目使用到的权限

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />

项目使用

依赖库四大类,如下:1 base:BaseActvitiy,BaseMvvmActvitiy,BaseFragment,BaseMvvmFragment,BaseViewModel util:工具类 widet:控件类 adapter:提供简单的CommonAdapter(),TabLayout的TablayoutAdapter()

如果未使用rxjava,而是使用了协程coroutines 在viewmodel中可以直接使用viewModelScope.launch或者viewModelScope.async

basickit's People

Contributors

itdais avatar

Watchers

 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.