Git Product home page Git Product logo

pinmodeplugin's Introduction

Download

FEATURES

  • 原始代码结构,include kotlin
  • module下分模块放置代码, 支持AndroidManifest下的节点自动合并
  • 支持多productFlavor组合的源码结构
  • 自定义模块匹配配置规则
  • 代码边界控制
  • 模块内嵌模块

使用

使用环境 Android gradle plugin 3.1.1, gradle 4.4,AndroidStudio 3.+

在项目根build.gradle下配置

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        // ...
        classpath 'com.jfz.plugin:pin-plugin:<latest-version>'
    }
}

在Android项目的build.gradle中生效插件

// application
apply plugin: 'com.android.application'
// or library
apply plugin: 'com.android.library'

apply plugin: 'com.jfz.plugin.pin'

如果需要全部项目生效,需要在根build.gradle中afterEvaluate配置

subprojects {
    afterEvaluate {
        it.apply plugin: 'com.jfz.plugin.pin'
    }
}

修改Android代码结构

然后代码结构参考demo上的结构即可

当前默认匹配以m_,p_,c_前缀的目录作为模块目录


最后项目结构如图

k

pinmodeplugin's People

Contributors

act262 avatar

Stargazers

 avatar Paul_ZJ avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  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.