Added retention annotation for Alignment IntDef (#3)

This commit is contained in:
Dimitry 2017-10-23 15:12:13 +02:00 committed by GitHub
parent 8aea662f50
commit eb3c53938b
3 changed files with 16 additions and 0 deletions

View File

@ -16,6 +16,13 @@ android {
lintOptions {
abortOnError false
}
buildTypes {
debug {
minifyEnabled true
proguardFile 'proguard.pro'
}
}
}
dependencies {

5
app/proguard.pro vendored Normal file
View File

@ -0,0 +1,5 @@
-dontwarn okhttp3.**
-dontwarn okio.**
-keep class com.caverock.androidsvg.** { *; }
-dontwarn com.caverock.androidsvg.**

View File

@ -9,10 +9,14 @@ import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.style.ReplacementSpan;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@SuppressWarnings("WeakerAccess")
public class AsyncDrawableSpan extends ReplacementSpan {
@IntDef({ALIGN_BOTTOM, ALIGN_BASELINE, ALIGN_CENTER})
@Retention(RetentionPolicy.SOURCE)
@interface Alignment {
}