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.
apply plugin: 'me.wangyuwei.r2assistant'
buildscript {
repositories {
maven {
url 'https://dl.bintray.com/wangyuwei/maven'
}
}
dependencies {
classpath 'me.wangyuwei:r2assistant-plugin:1.0.0'
}
}
if you want to scan all of sub modules,
run ./gradlew sweepR2
if you want to scan specified module,
run ./gradlew sweepR2 -PmoduleName=${subModuleName}
support add parameter to scan specified module.- support R2.string.
- support R2.color.
- ...
479729938
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.