Migration from 1.x to 2.x
Migration to new version is very simple
- Change the gradle dependency:
Earlier
dependencies {
compile 'com.mindorks:placeholderview:0.7.3'
}
Now
dependencies {
...
compile 'com.mindorks.android:placeholderview:1.0.3'
annotationProcessor 'com.mindorks.android:placeholderview-compiler:1.0.3'
}
- Annotation on private variable/method/class is not supported
private- public
- protected
- local
Recommended changes
- Change the private variables to local variable.
- Convert the private methods to public or protected methods.
Example
@View(R.id.headingTxt)
private TextView headingTxt;
// change to
@View(R.id.headingTxt)
TextView headingTxt;
@Resolve
private void onResolved() {
// something inside
}
// change to
@Resolve
public void onResolved() {
// something inside
}
Inner classes are not supported for view classes
Animation.<Type>
is replaced withAnimate.<Type>
Example:Animation.ENTER_LEFT_DESC
->Animate.ENTER_LEFT_DESC
Remove below proguard rules if added.
-keepattributes *Annotation*
-keepclassmembers class ** {
@com.mindorks.placeholderview.annotations.** <methods>;
}