Code Monkey home page Code Monkey logo

appframe's Introduction

include ':mypagingsamples' paging 分页

groupedadapter 自定义布局分组列表 headerrecycleview 头部分组悬停recycleview SideHeadRecycleSamples 侧边字母工具栏

MoveRecyclerView 手指移动切换位置

  1. 嘿嘿 把自己平时使用的功能整理起来

DataBindSample DataBind 简单使用

RoomSample room 数据库简单使用

  • 1 project build.gradle

buildscript { ext.kotlin_version = '1.1.2-5'

repositories {
    mavenCentral() // add repository
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.2'

    classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // add plugin

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

} apply plugin: 'kotlin'

allprojects { repositories { mavenCentral() // add repository jcenter() } }

task clean(type: Delete) { delete rootProject.buildDir } repositories { mavenCentral() jcenter() } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" }

  • 2 app build.gradle

apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'org.greenrobot.greendao' // apply plugin

android { compileSdkVersion 25 buildToolsVersion "26.0.1" defaultConfig { applicationId "frame.zzt.com.appframe" minSdkVersion 18 targetSdkVersion 25 versionCode 1 versionName "1.0" // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }

//数据库db版本
greendao {
    schemaVersion 7
    daoPackage 'frame.zzt.com.appframe.greendao'//这个是生成代码保存的包名
    targetGenDir 'src/main/java'//保存到java代码路径
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' testCompile 'junit:junit:4.12'

compile 'com.google.code.gson:gson:2.8.5'
// yanzhenjie/AndPermission 运行权限管理库
compile 'com.yanzhenjie:permission:1.1.2'
// rxjava
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.5'
// okhttp 网络请求
compile 'com.squareup.okhttp3:okhttp:3.11.0'
compile 'com.squareup.retrofit2:retrofit:2.4.0'
//ConverterFactory的String依赖包
compile 'com.squareup.retrofit2:converter-scalars:2.3.0'
//ConverterFactory的Gson依赖包
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
//CallAdapterFactory的Rx依赖包
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
// butterknife 注解框架
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
// 数据库框架
compile 'org.litepal.android:core:2.0.0'
// greendao 数据库框架
compile 'org.greenrobot:greendao:3.2.0'
// greendao 使用加密数据库时需要添加
compile 'net.zetetic:android-database-sqlcipher:3.5.7'
// 蓝牙ble框架
compile 'com.clj.fastble:FastBleLib:2.3.2'
compile 'com.inuker.bluetooth:library:1.4.0'
// 添加kotlin 插件
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

} repositories { mavenCentral() }

appframe's People

Contributors

zetingzhu avatar

Stargazers

 avatar

Forkers

sengeiou

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.