Giter Club home page Giter Club logo

asf's Introduction

安卓项目初始化框架

本框架是为了方便开发,整合一些最基本的功能。在开发新项目的时候可以基于这个项目进行修改。

项目介绍

项目引用了几个大框架Design + MVP + RxJava2 + Retrofit + Dagger2 + QMUI进行项目初始化搭建。

使用方法

直接下载项目,修改项目包名项目名applicationId等关键信息就可以进行开发了。

添加Retrofit2请求接口(此处我们以IpApi为例)

  1. com.reizx.asf.model.api包下建立相关接口类(IpApi)
  2. com.reizx.ares.mgr.model.DataManager#createAllApi的构造函数添加对应API的实例创建
    private UpdateApi updateApi;//此处声明

    public DataManager(Retrofit.Builder builder, OkHttpClient client){
        createAllApi(builder, client);
    }

    /**
     * 创建所有API实例
     * @param builder
     * @param client
     */
    public void createAllApi(Retrofit.Builder builder, OkHttpClient client) {
        // todo 此处添加所有需要的API
        updateApi = createRetrofit(builder, client, UpdateApi.HOST).create(UpdateApi.class);//更新信息请求接口
    }

后续如果有其他类似Sqlite或者sharedpreferences管理接口也可以直接写在DataManager中。

项目规范

安卓个人开发规范开发规范

相关依赖库推荐

andrutil

更新

更新日志

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.