generate R2.java's fields rapidly.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
buildsrc upload to bintray Dec 1, 2017
gradle/wrapper
submodule1 update regex Dec 1, 2017
submodule2
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat first commit Nov 30, 2017
settings.gradle

README.md

R2Assistant

when you use butterknife in sub module, once add a new resId in xml, you must rebuild your project for generating R2.java, it costs too much time.

R2Assistant is a tool to generate R2.java's fields rapidly.

中文介绍

SHOW

r2assistant.gif

USAGE

add the plugin in app's build.gradle
apply plugin: 'me.wangyuwei.r2assistant'

buildscript {
    repositories {
        maven {
            url 'https://dl.bintray.com/wangyuwei/maven'
        }
    }
    dependencies {
        classpath 'me.wangyuwei:r2assistant-plugin:1.0.0'
    }
}
run command

if you want to scan all of sub modules, run ./gradlew sweepR2

if you want to scan specified module, run ./gradlew sweepR2 -PmoduleName=${subModuleName}

TODO

  • support add parameter to scan specified module.
  • support R2.string.
  • support R2.color.
  • ...

QQ Group

479729938

License

Copyright [2017] [JeasonWong of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.