diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 9e4584f..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -RoundOverlayProgress \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 9a8b7e5..96cc43e 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,7 +1,6 @@ - - + diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 6564d52..94a25f7 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle index ed1ae2c..5308068 100644 --- a/build.gradle +++ b/build.gradle @@ -3,8 +3,8 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.2.3' - classpath 'com.github.dcendents:android-maven-plugin:1.2' + classpath 'com.android.tools.build:gradle:2.2.3' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' } } @@ -13,3 +13,16 @@ allprojects { jcenter() } } + +ext { + // SDK and Tools Versions + compileSdkVersion = 22 + targetSdkVersion = 22 + buildToolsVersion = "25.0.0" + minSdkVersion = 14 + versionCode = 11 + versionName = "1.1.0" + + // App dependencies + supportLibraryVersion = '22.1.1' +} diff --git a/build/generated/mockable-android-22.jar b/build/generated/mockable-android-22.jar new file mode 100644 index 0000000..e28bb3f Binary files /dev/null and b/build/generated/mockable-android-22.jar differ diff --git a/build/generated/mockable-android-25.jar b/build/generated/mockable-android-25.jar new file mode 100644 index 0000000..81e1f9d Binary files /dev/null and b/build/generated/mockable-android-25.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0c71e76..b90c1fb 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Apr 10 15:27:10 PDT 2013 +#Mon Jan 09 11:52:36 CET 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip diff --git a/library/build.gradle b/library/build.gradle index 5434294..29821d0 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,15 +1,15 @@ apply plugin: 'com.android.library' -apply plugin: 'android-maven' +apply plugin: 'com.github.dcendents.android-maven' android { - compileSdkVersion 22 - buildToolsVersion "22.0.0" + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { - minSdkVersion 14 - targetSdkVersion 22 - versionCode 9 - versionName "1.0.9" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode rootProject.ext.versionCode + versionName rootProject.ext.versionName } buildTypes { release { @@ -21,5 +21,5 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:22.1.1' + compile "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion" } diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index 0bbb82b..5d8c295 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -1,8 +1,4 @@ - + - - - diff --git a/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java b/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java index 6260cfc..a0124e1 100644 --- a/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java +++ b/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java @@ -68,10 +68,10 @@ private void init(AttributeSet attrs) { int src = attrs.getAttributeResourceValue("http://schemas.android.com/apk/res/android", "src", 0); BitmapDrawable bitmapDrawable = (BitmapDrawable) getResources().getDrawable(src); - progressColor = a.getColor(R.styleable.RoundOverlayProgressView_progressColor, getResources().getColor(R.color.default_progress)); - maxProgress = a.getInteger(R.styleable.RoundOverlayProgressView_maxProgress, 100); - animationDuration = a.getInteger(R.styleable.RoundOverlayProgressView_animationDuration, 300); - animate = a.getBoolean(R.styleable.RoundOverlayProgressView_animate, true); + progressColor = a.getColor(R.styleable.RoundOverlayProgressView_ropv_progressColor, getResources().getColor(R.color.default_progress)); + maxProgress = a.getInteger(R.styleable.RoundOverlayProgressView_ropv_maxProgress, 100); + animationDuration = a.getInteger(R.styleable.RoundOverlayProgressView_ropv_animationDuration, 300); + animate = a.getBoolean(R.styleable.RoundOverlayProgressView_ropv_animate, true); a.recycle(); diff --git a/library/src/main/res/values/attrs.xml b/library/src/main/res/values/attrs.xml index fad2b03..65b1e41 100644 --- a/library/src/main/res/values/attrs.xml +++ b/library/src/main/res/values/attrs.xml @@ -1,10 +1,10 @@ - - - - + + + + \ No newline at end of file diff --git a/sample/src/main/res/layout/activity_main.xml b/sample/src/main/res/layout/activity_main.xml index 1ffd634..69c79f5 100644 --- a/sample/src/main/res/layout/activity_main.xml +++ b/sample/src/main/res/layout/activity_main.xml @@ -16,8 +16,8 @@ android:layout_width="150dp" android:layout_height="150dp" android:src="@drawable/sample_image" - app:maxProgress="100" - app:progressColor="#80FFFFFF" /> + app:ropv_maxProgress="100" + app:ropv_progressColor="#80FFFFFF" />