From b3192ffe704cf1165d5d99c7d623d458db5a457c Mon Sep 17 00:00:00 2001 From: Alex Curran Date: Mon, 2 Sep 2013 21:55:30 +0100 Subject: [PATCH] update version to 3.5.0 --- library/pom.xml | 17 ++++++++++++++++- .../espiandev/showcaseview/ShowcaseView.java | 8 ++------ .../showcaseview/ShowcaseViewTests.java | 19 +++++++++++++++++++ pom.xml | 2 +- sample/pom.xml | 4 ++-- 5 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 library/test/com/github/espiandev/showcaseview/ShowcaseViewTests.java diff --git a/library/pom.xml b/library/pom.xml index da49836ff..8cdadcf85 100644 --- a/library/pom.xml +++ b/library/pom.xml @@ -5,7 +5,7 @@ com.github.espiandev showcaseview-parent - 3.2.0 + 3.5.0 ../pom.xml @@ -34,6 +34,21 @@ annotations 4.1.1.4 + + + + org.robolectric + robolectric + 2.1.1 + test + + + + junit + junit + 4.8.2 + test + diff --git a/library/src/com/github/espiandev/showcaseview/ShowcaseView.java b/library/src/com/github/espiandev/showcaseview/ShowcaseView.java index 17cd6bb32..3a46ef505 100644 --- a/library/src/com/github/espiandev/showcaseview/ShowcaseView.java +++ b/library/src/com/github/espiandev/showcaseview/ShowcaseView.java @@ -86,15 +86,11 @@ public class ShowcaseView extends RelativeLayout implements View.OnClickListener private Bitmap mBleachedCling; private int mShowcaseColor; - public ShowcaseView(Context context) { + protected ShowcaseView(Context context) { this(context, null, R.styleable.CustomTheme_showcaseViewStyle); } - public ShowcaseView(Context context, AttributeSet attrs) { - this(context, attrs, R.styleable.CustomTheme_showcaseViewStyle); - } - - public ShowcaseView(Context context, AttributeSet attrs, int defStyle) { + protected ShowcaseView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // Get the attributes for the ShowcaseView diff --git a/library/test/com/github/espiandev/showcaseview/ShowcaseViewTests.java b/library/test/com/github/espiandev/showcaseview/ShowcaseViewTests.java new file mode 100644 index 000000000..539bb4a2d --- /dev/null +++ b/library/test/com/github/espiandev/showcaseview/ShowcaseViewTests.java @@ -0,0 +1,19 @@ +package com.github.espiandev.showcaseview; + +import org.junit.Before; +import org.junit.runner.RunWith; +import org.robolectric.RobolectricTestRunner; + +@RunWith(RobolectricTestRunner.class) +public class ShowcaseViewTests { + + @Before + public void setup() { + + } + + public void testSetOnShowcaseViewListenerIsSet() { + + } + +} diff --git a/pom.xml b/pom.xml index 0a15ed6ad..29f4dfb76 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.github.espiandev showcaseview-parent pom - 3.2.0 + 3.5.0 ShowcaseView (parent) Android library for implementing Holo-style highlighting of important UI areas. diff --git a/sample/pom.xml b/sample/pom.xml index bf1cf8b6e..ccc429d41 100644 --- a/sample/pom.xml +++ b/sample/pom.xml @@ -5,7 +5,7 @@ com.github.espiandev showcaseview-parent - 3.2.0 + 3.5.0 ../pom.xml @@ -29,7 +29,7 @@ com.github.espiandev showcaseview-library - ${project.version} + 3.5.0 apklib