From ead83f86559cf401ad77f241eca255da41461380 Mon Sep 17 00:00:00 2001 From: Alexander Vlasov Date: Thu, 26 May 2016 00:02:10 +0300 Subject: [PATCH] * renamed package --- .gitignore | 4 ++++ README.md | 4 ++-- app/build.gradle | 6 +----- .../github/iojjj/likeslayout}/ApplicationTest.java | 2 +- app/src/main/AndroidManifest.xml | 2 +- .../github/iojjj/likeslayout/app}/BaseFragment.java | 7 ++++--- .../github/iojjj/likeslayout/app}/ChooseFragment.java | 2 +- .../likeslayout/app}/CustomDrawableAnimatorFactory.java | 4 ++-- .../likeslayout/app}/CustomPositionAnimatorFactory.java | 6 +++--- .../likeslayout/app}/CustomPositionAnimatorFactory2.java | 4 ++-- .../github/iojjj/likeslayout/app}/FromCodeFragment.java | 6 +++--- .../github/iojjj/likeslayout/app}/FromXmlFragment.java | 2 +- .../github/iojjj/likeslayout/app}/MainActivity.java | 2 +- app/src/main/res/layout/fragment_code.xml | 2 +- app/src/main/res/layout/fragment_main.xml | 6 +++--- app/src/main/res/values/strings.xml | 6 +++--- .../com/github/iojjj}/likeslayout/ExampleUnitTest.java | 2 +- .../github/iojjj}/likeslayout/ApplicationTest.java | 2 +- library/src/main/AndroidManifest.xml | 2 +- .../github/iojjj}/likeslayout/DrawableAnimator.java | 2 +- .../github/iojjj}/likeslayout/LikesAttributes.java | 2 +- .../github/iojjj}/likeslayout/LikesAttributesImpl.java | 2 +- .../github/iojjj}/likeslayout/LikesDrawer.java | 2 +- .../github/iojjj}/likeslayout/LikesFrameLayout.java | 2 +- .../github/iojjj}/likeslayout/LikesLayout.java | 2 +- .../github/iojjj}/likeslayout/LikesLayoutInternal.java | 2 +- .../github/iojjj}/likeslayout/LikesLayoutParams.java | 2 +- .../github/iojjj}/likeslayout/LikesLinearLayout.java | 2 +- .../github/iojjj}/likeslayout/LikesProducer.java | 2 +- .../github/iojjj}/likeslayout/LikesRelativeLayout.java | 2 +- .../github/iojjj}/likeslayout/OnChildTouchListener.java | 2 +- .../github/iojjj}/likeslayout/PositionAnimator.java | 2 +- .../vlasov => com/github/iojjj}/likeslayout/Utilities.java | 2 +- library/src/main/res/values/public.xml | 3 ++- library/src/main/res/values/strings.xml | 5 ++--- .../com/github/iojjj/likeslayout}/ExampleUnitTest.java | 2 +- 36 files changed, 55 insertions(+), 54 deletions(-) rename app/src/androidTest/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout}/ApplicationTest.java (89%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/BaseFragment.java (92%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/ChooseFragment.java (97%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/CustomDrawableAnimatorFactory.java (72%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/CustomPositionAnimatorFactory.java (80%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/CustomPositionAnimatorFactory2.java (73%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/FromCodeFragment.java (97%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/FromXmlFragment.java (96%) rename app/src/main/java/{ua/vlasov/likes_layout => com/github/iojjj/likeslayout/app}/MainActivity.java (93%) rename {library/src/test/java/ua/vlasov => app/src/test/java/com/github/iojjj}/likeslayout/ExampleUnitTest.java (88%) rename library/src/androidTest/java/{ua/vlasov => com/github/iojjj}/likeslayout/ApplicationTest.java (89%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/DrawableAnimator.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesAttributes.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesAttributesImpl.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesDrawer.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesFrameLayout.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesLayout.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesLayoutInternal.java (82%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesLayoutParams.java (84%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesLinearLayout.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesProducer.java (81%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/LikesRelativeLayout.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/OnChildTouchListener.java (94%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/PositionAnimator.java (99%) rename library/src/main/java/{ua/vlasov => com/github/iojjj}/likeslayout/Utilities.java (97%) rename {app/src/test/java/ua/vlasov/likes_layout => library/src/test/java/com/github/iojjj/likeslayout}/ExampleUnitTest.java (88%) diff --git a/.gitignore b/.gitignore index f43e82d..7c9879a 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,7 @@ captures/ .DS_Store /build /captures +gradle +.idea +gradlew +gradlew.bat \ No newline at end of file diff --git a/README.md b/README.md index 4a731db..a7473a5 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ dependencies { There are three implementations of `LikesLayout` interface: **LikesFrameLayout**, **LikesLinearLayout**, **LikesRelativeLayout**. You can add them to your view via XML or in Java code. ```XML - - + ``` or diff --git a/app/build.gradle b/app/build.gradle index 222f59c..1d658b6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,16 +17,12 @@ android { buildToolsVersion "24.0.0-rc3" defaultConfig { - applicationId "ua.vlasov.likes_layout" + applicationId "com.github.iojjj.likeslayout.app" minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } - dexOptions { - maxProcessCount 2 - javaMaxHeapSize "2g" - } buildTypes { release { minifyEnabled false diff --git a/app/src/androidTest/java/ua/vlasov/likes_layout/ApplicationTest.java b/app/src/androidTest/java/com/github/iojjj/likeslayout/ApplicationTest.java similarity index 89% rename from app/src/androidTest/java/ua/vlasov/likes_layout/ApplicationTest.java rename to app/src/androidTest/java/com/github/iojjj/likeslayout/ApplicationTest.java index 8b512b5..f0ffd71 100644 --- a/app/src/androidTest/java/ua/vlasov/likes_layout/ApplicationTest.java +++ b/app/src/androidTest/java/com/github/iojjj/likeslayout/ApplicationTest.java @@ -1,4 +1,4 @@ -package ua.vlasov.likes_layout; +package com.github.iojjj.likeslayout; import android.app.Application; import android.test.ApplicationTestCase; diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b34df23..3fc34bf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="com.github.iojjj.likeslayout.app"> + tools:context=".MainActivity"> + tools:context=".MainActivity"> - - + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 17e4ab8..c4d5f96 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -6,7 +6,7 @@ From Java - ua.vlasov.likes_layout.CustomDrawableAnimatorFactory - ua.vlasov.likes_layout.CustomPositionAnimatorFactory - ua.vlasov.likes_layout.CustomPositionAnimatorFactory2 + com.github.iojjj.likeslayout.CustomDrawableAnimatorFactory + com.github.iojjj.likeslayout.CustomPositionAnimatorFactory + com.github.iojjj.likeslayout.CustomPositionAnimatorFactory2 diff --git a/library/src/test/java/ua/vlasov/likeslayout/ExampleUnitTest.java b/app/src/test/java/com/github/iojjj/likeslayout/ExampleUnitTest.java similarity index 88% rename from library/src/test/java/ua/vlasov/likeslayout/ExampleUnitTest.java rename to app/src/test/java/com/github/iojjj/likeslayout/ExampleUnitTest.java index e546fd0..11bfe13 100644 --- a/library/src/test/java/ua/vlasov/likeslayout/ExampleUnitTest.java +++ b/app/src/test/java/com/github/iojjj/likeslayout/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import org.junit.Test; diff --git a/library/src/androidTest/java/ua/vlasov/likeslayout/ApplicationTest.java b/library/src/androidTest/java/com/github/iojjj/likeslayout/ApplicationTest.java similarity index 89% rename from library/src/androidTest/java/ua/vlasov/likeslayout/ApplicationTest.java rename to library/src/androidTest/java/com/github/iojjj/likeslayout/ApplicationTest.java index 678eef6..f0ffd71 100644 --- a/library/src/androidTest/java/ua/vlasov/likeslayout/ApplicationTest.java +++ b/library/src/androidTest/java/com/github/iojjj/likeslayout/ApplicationTest.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.app.Application; import android.test.ApplicationTestCase; diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index 6a4deef..ac9dd18 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ + package="com.github.iojjj.likeslayout"> diff --git a/library/src/main/java/ua/vlasov/likeslayout/DrawableAnimator.java b/library/src/main/java/com/github/iojjj/likeslayout/DrawableAnimator.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/DrawableAnimator.java rename to library/src/main/java/com/github/iojjj/likeslayout/DrawableAnimator.java index 1a9b140..ff83472 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/DrawableAnimator.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/DrawableAnimator.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.animation.IntEvaluator; import android.graphics.Rect; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesAttributes.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesAttributes.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesAttributes.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesAttributes.java index a9f9951..af3e2ad 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesAttributes.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesAttributes.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.graphics.drawable.Drawable; import android.support.annotation.IntDef; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesAttributesImpl.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesAttributesImpl.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesAttributesImpl.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesAttributesImpl.java index 18cdcd4..10cadf9 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesAttributesImpl.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesAttributesImpl.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.content.Context; import android.content.res.TypedArray; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesDrawer.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesDrawer.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesDrawer.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesDrawer.java index 9bd3d82..4542c8e 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesDrawer.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesDrawer.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.animation.Animator; import android.animation.ValueAnimator; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesFrameLayout.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesFrameLayout.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesFrameLayout.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesFrameLayout.java index c57ebb8..c4a24da 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesFrameLayout.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesFrameLayout.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.annotation.TargetApi; import android.content.Context; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesLayout.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesLayout.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesLayout.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesLayout.java index 129d9c3..f0112d8 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesLayout.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesLayout.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesLayoutInternal.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesLayoutInternal.java similarity index 82% rename from library/src/main/java/ua/vlasov/likeslayout/LikesLayoutInternal.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesLayoutInternal.java index d48d533..dd5e5af 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesLayoutInternal.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesLayoutInternal.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; /** * LikesLayout interface for internal usage. diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesLayoutParams.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesLayoutParams.java similarity index 84% rename from library/src/main/java/ua/vlasov/likeslayout/LikesLayoutParams.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesLayoutParams.java index f70945e..7b3e172 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesLayoutParams.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesLayoutParams.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; /** * LikesLayout params interface. diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesLinearLayout.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesLinearLayout.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesLinearLayout.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesLinearLayout.java index d37b316..2d021ba 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesLinearLayout.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesLinearLayout.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.annotation.TargetApi; import android.content.Context; diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesProducer.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesProducer.java similarity index 81% rename from library/src/main/java/ua/vlasov/likeslayout/LikesProducer.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesProducer.java index d88fe77..0e666b7 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesProducer.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesProducer.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; /** * Likes producer that allows to stop producing of likes. diff --git a/library/src/main/java/ua/vlasov/likeslayout/LikesRelativeLayout.java b/library/src/main/java/com/github/iojjj/likeslayout/LikesRelativeLayout.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/LikesRelativeLayout.java rename to library/src/main/java/com/github/iojjj/likeslayout/LikesRelativeLayout.java index 83dcea0..e8694f0 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/LikesRelativeLayout.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/LikesRelativeLayout.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.annotation.TargetApi; import android.content.Context; diff --git a/library/src/main/java/ua/vlasov/likeslayout/OnChildTouchListener.java b/library/src/main/java/com/github/iojjj/likeslayout/OnChildTouchListener.java similarity index 94% rename from library/src/main/java/ua/vlasov/likeslayout/OnChildTouchListener.java rename to library/src/main/java/com/github/iojjj/likeslayout/OnChildTouchListener.java index 5b2f5c0..763bb36 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/OnChildTouchListener.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/OnChildTouchListener.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.view.MotionEvent; import android.view.View; diff --git a/library/src/main/java/ua/vlasov/likeslayout/PositionAnimator.java b/library/src/main/java/com/github/iojjj/likeslayout/PositionAnimator.java similarity index 99% rename from library/src/main/java/ua/vlasov/likeslayout/PositionAnimator.java rename to library/src/main/java/com/github/iojjj/likeslayout/PositionAnimator.java index b07bf8f..0139c11 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/PositionAnimator.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/PositionAnimator.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; import android.animation.FloatEvaluator; import android.support.annotation.Keep; diff --git a/library/src/main/java/ua/vlasov/likeslayout/Utilities.java b/library/src/main/java/com/github/iojjj/likeslayout/Utilities.java similarity index 97% rename from library/src/main/java/ua/vlasov/likeslayout/Utilities.java rename to library/src/main/java/com/github/iojjj/likeslayout/Utilities.java index 3863272..07a06aa 100644 --- a/library/src/main/java/ua/vlasov/likeslayout/Utilities.java +++ b/library/src/main/java/com/github/iojjj/likeslayout/Utilities.java @@ -1,4 +1,4 @@ -package ua.vlasov.likeslayout; +package com.github.iojjj.likeslayout; /** * Helpful utils. diff --git a/library/src/main/res/values/public.xml b/library/src/main/res/values/public.xml index aa14716..ff0d6bb 100644 --- a/library/src/main/res/values/public.xml +++ b/library/src/main/res/values/public.xml @@ -1,4 +1,5 @@ - + + \ No newline at end of file diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml index ce0d3e2..3514126 100644 --- a/library/src/main/res/values/strings.xml +++ b/library/src/main/res/values/strings.xml @@ -1,5 +1,4 @@ - Likes Layout - ua.vlasov.likeslayout.DrawableAnimator$DefaultFactory - ua.vlasov.likeslayout.PositionAnimator$DefaultFactory + com.github.iojjj.likeslayout.DrawableAnimator$DefaultFactory + com.github.iojjj.likeslayout.PositionAnimator$DefaultFactory diff --git a/app/src/test/java/ua/vlasov/likes_layout/ExampleUnitTest.java b/library/src/test/java/com/github/iojjj/likeslayout/ExampleUnitTest.java similarity index 88% rename from app/src/test/java/ua/vlasov/likes_layout/ExampleUnitTest.java rename to library/src/test/java/com/github/iojjj/likeslayout/ExampleUnitTest.java index 3c1ff3a..11bfe13 100644 --- a/app/src/test/java/ua/vlasov/likes_layout/ExampleUnitTest.java +++ b/library/src/test/java/com/github/iojjj/likeslayout/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package ua.vlasov.likes_layout; +package com.github.iojjj.likeslayout; import org.junit.Test;