Skip to content
forked from xyxyLiu/AndResM

Android gradle plugin for resource package id modification(实现资源packageId改写的gradle插件,无需修改aapt)

License

Notifications You must be signed in to change notification settings

mayimchen/AndResM

 
 

Repository files navigation

AndResM

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

support android-gradle-plugin 2.0.0+

🇨🇳中文版戳这里

CHANGE LOG

Usage

Import the following code

  • in your root project build.gradle
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        ......
        classpath 'com.reginald:andresm:0.2.0'
    }
}
  • in your module build.gradle
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

Reference

About

Android gradle plugin for resource package id modification(实现资源packageId改写的gradle插件,无需修改aapt)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.7%
  • Groovy 3.2%
  • Shell 0.1%