项目作者: xyxyLiu

项目描述 :
Android gradle plugin for resource package id modification(实现资源packageId改写的gradle插件,无需修改aapt)
高级语言: Java
项目地址: git://github.com/xyxyLiu/AndResM.git
创建时间: 2017-09-03T13:57:45Z
项目社区:https://github.com/xyxyLiu/AndResM

开源协议:Apache License 2.0

下载


AndResM

Android gradle plugin for resource package id modification(0x7f -> 0xpp)

support android-gradle-plugin 3.6.+

:cn:中文版戳这里

CHANGE LOG

Usage

Import the following code

  • in your root project build.gradle

    1. buildscript {
    2. repositories {
    3. jcenter()
    4. ......
    5. }
    6. dependencies {
    7. ......
    8. classpath 'com.reginald:andresm:0.4.0'
    9. }
    10. }
  • in your module build.gradle
    ```groovy
    apply plugin: ‘com.reginald.andresm’

andresm {
packageId = 0x61
}
```

How it works

Replace the outputs of aapt process including:

  • resources.ap_ : arsc file, compiled xml files
  • generated source: R.java, R.jar

Reference