diff --git a/bannerview/build.gradle b/bannerview/build.gradle index ed47b79a..accb97b3 100644 --- a/bannerview/build.gradle +++ b/bannerview/build.gradle @@ -108,3 +108,5 @@ bintray { } //提交命令:gradlew bintrayUpload + +// mac ./gradlew bintrayUpload 没有权限使用申请 chmod +x gradlew diff --git a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java index 0f68491b..23d9caa0 100644 --- a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java +++ b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java @@ -26,6 +26,10 @@ import com.zhpan.bannerview.provider.ViewStyleSetter; import com.zhpan.bannerview.view.IndicatorView; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; @@ -471,6 +475,8 @@ public void create() { } @IntDef({CENTER, START, END}) + @Retention(RetentionPolicy.SOURCE) + @Target(ElementType.PARAMETER) public @interface IndicatorGravity { } } diff --git a/gradlew b/gradlew old mode 100644 new mode 100755