GithubHelp home page GithubHelp logo

luban's Introduction

简介

Platform License API

Luban是一个移动端监视APP运行的工具应用,提供了侵入式的监视方案。整个项目结构是对《由客户端内部通讯引发的插件化开发的随想和实践》的一个实践。

实现

整个项目利用Dagger2实现了插件式的开发,能够轻易的扩展出自定义的功能。整个工程包括了一个主程序和SDK包,SDK包可以集成到需要监视的APP内部,主程序会自动进行呈现和统计。

快速开始

引入SDK

将工程luban.sdkluban.aidl导入到需要集成的APP内,添加如下引用:

compile project(':luban.sdk')

功能演示(以出参功能为例)

在需要的地方注册出参(推荐在Application的onCreate方法中)

LB.connect(getApplicationContext(), new AbsLBParaLoader() {
    @Override
    public void loadInParas(InParaManager im) {
    }

    @Override
    public void loadOutParas(OutParaManager om) {
        om.register("Test");
    }
});

当注册完成之后,可以开始传递出参的值:

LB.setOutPara("Test", String.valueOf(System.currentTimeMillis()));

此时在主程序中就能看到这个值:

其他功能

  • 入参设置
  • 全局异常捕获(Runtime和NDK)
  • 日志记录
  • TODO

luban's People

Contributors

tianjyan 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.