From 5a7d4364fb257cb1e34b57f04f36e4fb85d4a7b9 Mon Sep 17 00:00:00 2001 From: Nya Elimu Date: Sat, 15 Dec 2018 18:03:41 +0200 Subject: [PATCH 1/3] #33 Rename from literacyapp to elimu - "org.literacyapp" --> "ai.elimu" --- README.md | 2 +- app/build.gradle | 2 +- .../startguide/ExampleInstrumentedTest.java | 4 ++-- app/src/main/AndroidManifest.xml | 14 ++++++------ .../startguide/TestGestureActivity.java | 11 +++++----- .../content/ExitFullScreenActivity.java | 10 ++++----- .../startguide/content/FinalActivity.java | 8 +++---- .../content/swipe/SwipeRightLeftActivity.java | 12 +++++----- .../content/swipe/SwipeUpDownActivity.java | 12 +++++----- .../content/swipe/SwipeUpDownAdapter.java | 4 ++-- .../startguide/receiver/BootReceiver.java | 5 +---- .../startguide/util/MediaPlayerHelper.java | 2 +- .../startguide/util/StartPrefsHelper.java | 2 +- .../res/layout/activity_exit_full_screen.xml | 6 ++--- app/src/main/res/layout/activity_final.xml | 2 +- .../res/layout/activity_swipe_right_left.xml | 6 ++--- .../res/layout/activity_swipe_up_down.xml | 4 ++-- .../main/res/layout/activity_test_gesture.xml | 10 ++++----- .../res/layout/fragment_swipe_right_left.xml | 2 +- .../elimu}/startguide/ExampleUnitTest.java | 2 +- handgesture/README.md | 8 +++---- .../handgesture/ExampleInstrumentedTest.java | 4 ++-- handgesture/src/main/AndroidManifest.xml | 2 +- .../elimu}/handgesture/AnimationHelper.java | 21 +++++++----------- .../elimu}/handgesture/Constants.java | 2 +- .../elimu}/handgesture/GestureHelper.java | 19 ++++++---------- .../elimu}/handgesture/Gestures.java | 2 +- .../handgesture/HandGestureListener.java | 2 +- .../elimu}/handgesture/HandView.java | 22 +++++++------------ .../elimu}/handgesture/HandViewListener.java | 2 +- .../elimu}/handgesture/ExampleUnitTest.java | 2 +- 31 files changed, 94 insertions(+), 112 deletions(-) rename app/src/androidTest/java/{org/literacyapp => ai/elimu}/startguide/ExampleInstrumentedTest.java (81%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/TestGestureActivity.java (71%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/content/ExitFullScreenActivity.java (93%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/content/FinalActivity.java (84%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/content/swipe/SwipeRightLeftActivity.java (93%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/content/swipe/SwipeUpDownActivity.java (89%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/content/swipe/SwipeUpDownAdapter.java (94%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/receiver/BootReceiver.java (74%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/util/MediaPlayerHelper.java (97%) rename app/src/main/java/{org/literacyapp => ai/elimu}/startguide/util/StartPrefsHelper.java (95%) rename app/src/test/java/{org/literacyapp => ai/elimu}/startguide/ExampleUnitTest.java (87%) rename handgesture/src/androidTest/java/{org/literacyapp => ai/elimu}/handgesture/ExampleInstrumentedTest.java (80%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/AnimationHelper.java (80%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/Constants.java (84%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/GestureHelper.java (79%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/Gestures.java (94%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/HandGestureListener.java (75%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/HandView.java (87%) rename handgesture/src/main/java/{org/literacyapp => ai/elimu}/handgesture/HandViewListener.java (62%) rename handgesture/src/test/java/{org/literacyapp => ai/elimu}/handgesture/ExampleUnitTest.java (87%) diff --git a/README.md b/README.md index f998d7a..cf95ef1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# literacyapp-start-guide +# start-guide Android application teaching basic tablet UI navigation ![screenshot_20170605-194552](https://cloud.githubusercontent.com/assets/15718174/26795982/fee64200-4a27-11e7-9c2a-e000efefda3a.png) diff --git a/app/build.gradle b/app/build.gradle index a94efe2..64c4a1b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,7 +4,7 @@ android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { - applicationId "org.literacyapp.startguide" + applicationId "ai.elimu.startguide" minSdkVersion 21 targetSdkVersion 23 versionCode 1000004 diff --git a/app/src/androidTest/java/org/literacyapp/startguide/ExampleInstrumentedTest.java b/app/src/androidTest/java/ai/elimu/startguide/ExampleInstrumentedTest.java similarity index 81% rename from app/src/androidTest/java/org/literacyapp/startguide/ExampleInstrumentedTest.java rename to app/src/androidTest/java/ai/elimu/startguide/ExampleInstrumentedTest.java index f156100..6ac0b28 100644 --- a/app/src/androidTest/java/org/literacyapp/startguide/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/ai/elimu/startguide/ExampleInstrumentedTest.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide; +package ai.elimu.startguide; import android.content.Context; import android.support.test.InstrumentationRegistry; @@ -21,6 +21,6 @@ public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); - assertEquals("org.literacyapp.startguide", appContext.getPackageName()); + assertEquals("ai.elimu.startguide", appContext.getPackageName()); } } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ff9bdf1..e1b8509 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="ai.elimu.startguide"> @@ -11,7 +11,7 @@ android:supportsRtl="true" android:theme="@style/AppTheme"> @@ -21,15 +21,15 @@ - + - + diff --git a/app/src/main/java/org/literacyapp/startguide/TestGestureActivity.java b/app/src/main/java/ai/elimu/startguide/TestGestureActivity.java similarity index 71% rename from app/src/main/java/org/literacyapp/startguide/TestGestureActivity.java rename to app/src/main/java/ai/elimu/startguide/TestGestureActivity.java index 46db49e..272bb00 100644 --- a/app/src/main/java/org/literacyapp/startguide/TestGestureActivity.java +++ b/app/src/main/java/ai/elimu/startguide/TestGestureActivity.java @@ -1,13 +1,14 @@ -package org.literacyapp.startguide; +package ai.elimu.startguide; import android.app.Activity; import android.os.Bundle; -import org.literacyapp.handgesture.HandView; +import ai.elimu.handgesture.HandView; +import ai.elimu.startguide.R; -import static org.literacyapp.handgesture.Gestures.DOUBLE_TAP; -import static org.literacyapp.handgesture.Gestures.PRESS_AND_HOLD; -import static org.literacyapp.handgesture.Gestures.SINGLE_TAP; +import static ai.elimu.handgesture.Gestures.DOUBLE_TAP; +import static ai.elimu.handgesture.Gestures.PRESS_AND_HOLD; +import static ai.elimu.handgesture.Gestures.SINGLE_TAP; public class TestGestureActivity extends Activity { diff --git a/app/src/main/java/org/literacyapp/startguide/content/ExitFullScreenActivity.java b/app/src/main/java/ai/elimu/startguide/content/ExitFullScreenActivity.java similarity index 93% rename from app/src/main/java/org/literacyapp/startguide/content/ExitFullScreenActivity.java rename to app/src/main/java/ai/elimu/startguide/content/ExitFullScreenActivity.java index 39e274b..a780d72 100644 --- a/app/src/main/java/org/literacyapp/startguide/content/ExitFullScreenActivity.java +++ b/app/src/main/java/ai/elimu/startguide/content/ExitFullScreenActivity.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.content; +package ai.elimu.startguide.content; import android.app.Activity; import android.content.Intent; @@ -7,10 +7,10 @@ import android.view.MotionEvent; import android.view.View; -import org.literacyapp.handgesture.HandView; -import org.literacyapp.handgesture.HandViewListener; -import org.literacyapp.startguide.R; -import org.literacyapp.startguide.util.MediaPlayerHelper; +import ai.elimu.handgesture.HandView; +import ai.elimu.handgesture.HandViewListener; +import ai.elimu.startguide.R; +import ai.elimu.startguide.util.MediaPlayerHelper; public class ExitFullScreenActivity extends Activity { diff --git a/app/src/main/java/org/literacyapp/startguide/content/FinalActivity.java b/app/src/main/java/ai/elimu/startguide/content/FinalActivity.java similarity index 84% rename from app/src/main/java/org/literacyapp/startguide/content/FinalActivity.java rename to app/src/main/java/ai/elimu/startguide/content/FinalActivity.java index 4fd97e0..0f97cea 100644 --- a/app/src/main/java/org/literacyapp/startguide/content/FinalActivity.java +++ b/app/src/main/java/ai/elimu/startguide/content/FinalActivity.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.content; +package ai.elimu.startguide.content; import android.graphics.drawable.Animatable; import android.graphics.drawable.Drawable; @@ -8,10 +8,10 @@ import android.view.View; import android.widget.ImageView; -import org.literacyapp.startguide.R; -import org.literacyapp.startguide.util.MediaPlayerHelper; +import ai.elimu.startguide.R; +import ai.elimu.startguide.util.MediaPlayerHelper; -import static org.literacyapp.startguide.util.MediaPlayerHelper.DEFAULT_PLAYER_DELAY; +import static ai.elimu.startguide.util.MediaPlayerHelper.DEFAULT_PLAYER_DELAY; public class FinalActivity extends AppCompatActivity { diff --git a/app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeRightLeftActivity.java b/app/src/main/java/ai/elimu/startguide/content/swipe/SwipeRightLeftActivity.java similarity index 93% rename from app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeRightLeftActivity.java rename to app/src/main/java/ai/elimu/startguide/content/swipe/SwipeRightLeftActivity.java index db2a2b8..1ee7e9e 100644 --- a/app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeRightLeftActivity.java +++ b/app/src/main/java/ai/elimu/startguide/content/swipe/SwipeRightLeftActivity.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.content.swipe; +package ai.elimu.startguide.content.swipe; import android.content.Intent; import android.content.res.TypedArray; @@ -13,11 +13,11 @@ import android.view.ViewGroup; import android.widget.ImageView; -import org.literacyapp.handgesture.HandView; -import org.literacyapp.handgesture.HandViewListener; -import org.literacyapp.startguide.R; -import org.literacyapp.startguide.content.ExitFullScreenActivity; -import org.literacyapp.startguide.util.MediaPlayerHelper; +import ai.elimu.handgesture.HandView; +import ai.elimu.handgesture.HandViewListener; +import ai.elimu.startguide.R; +import ai.elimu.startguide.content.ExitFullScreenActivity; +import ai.elimu.startguide.util.MediaPlayerHelper; /** * Activity that explain swipe right and left diff --git a/app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeUpDownActivity.java b/app/src/main/java/ai/elimu/startguide/content/swipe/SwipeUpDownActivity.java similarity index 89% rename from app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeUpDownActivity.java rename to app/src/main/java/ai/elimu/startguide/content/swipe/SwipeUpDownActivity.java index a48c853..10a53ac 100644 --- a/app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeUpDownActivity.java +++ b/app/src/main/java/ai/elimu/startguide/content/swipe/SwipeUpDownActivity.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.content.swipe; +package ai.elimu.startguide.content.swipe; import android.content.Intent; import android.content.res.TypedArray; @@ -9,11 +9,11 @@ import android.view.View; import android.widget.RelativeLayout; -import org.literacyapp.handgesture.Gestures; -import org.literacyapp.handgesture.HandView; -import org.literacyapp.handgesture.HandViewListener; -import org.literacyapp.startguide.R; -import org.literacyapp.startguide.util.MediaPlayerHelper; +import ai.elimu.handgesture.Gestures; +import ai.elimu.handgesture.HandView; +import ai.elimu.handgesture.HandViewListener; +import ai.elimu.startguide.R; +import ai.elimu.startguide.util.MediaPlayerHelper; /** diff --git a/app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeUpDownAdapter.java b/app/src/main/java/ai/elimu/startguide/content/swipe/SwipeUpDownAdapter.java similarity index 94% rename from app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeUpDownAdapter.java rename to app/src/main/java/ai/elimu/startguide/content/swipe/SwipeUpDownAdapter.java index b17bd01..a240267 100644 --- a/app/src/main/java/org/literacyapp/startguide/content/swipe/SwipeUpDownAdapter.java +++ b/app/src/main/java/ai/elimu/startguide/content/swipe/SwipeUpDownAdapter.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.content.swipe; +package ai.elimu.startguide.content.swipe; import android.content.res.TypedArray; import android.support.v7.widget.RecyclerView; @@ -8,7 +8,7 @@ import android.view.ViewGroup; import android.widget.ImageView; -import org.literacyapp.startguide.R; +import ai.elimu.startguide.R; /** * Created by GSC on 30/01/2017. diff --git a/app/src/main/java/org/literacyapp/startguide/receiver/BootReceiver.java b/app/src/main/java/ai/elimu/startguide/receiver/BootReceiver.java similarity index 74% rename from app/src/main/java/org/literacyapp/startguide/receiver/BootReceiver.java rename to app/src/main/java/ai/elimu/startguide/receiver/BootReceiver.java index 7fd23df..8b91ae5 100644 --- a/app/src/main/java/org/literacyapp/startguide/receiver/BootReceiver.java +++ b/app/src/main/java/ai/elimu/startguide/receiver/BootReceiver.java @@ -1,12 +1,9 @@ -package org.literacyapp.startguide.receiver; +package ai.elimu.startguide.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; -import org.literacyapp.startguide.content.swipe.SwipeUpDownActivity; -import org.literacyapp.startguide.util.StartPrefsHelper; - public class BootReceiver extends BroadcastReceiver { diff --git a/app/src/main/java/org/literacyapp/startguide/util/MediaPlayerHelper.java b/app/src/main/java/ai/elimu/startguide/util/MediaPlayerHelper.java similarity index 97% rename from app/src/main/java/org/literacyapp/startguide/util/MediaPlayerHelper.java rename to app/src/main/java/ai/elimu/startguide/util/MediaPlayerHelper.java index 9b3cd16..9595244 100644 --- a/app/src/main/java/org/literacyapp/startguide/util/MediaPlayerHelper.java +++ b/app/src/main/java/ai/elimu/startguide/util/MediaPlayerHelper.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.util; +package ai.elimu.startguide.util; import android.content.Context; import android.media.MediaPlayer; diff --git a/app/src/main/java/org/literacyapp/startguide/util/StartPrefsHelper.java b/app/src/main/java/ai/elimu/startguide/util/StartPrefsHelper.java similarity index 95% rename from app/src/main/java/org/literacyapp/startguide/util/StartPrefsHelper.java rename to app/src/main/java/ai/elimu/startguide/util/StartPrefsHelper.java index 54af995..032b861 100644 --- a/app/src/main/java/org/literacyapp/startguide/util/StartPrefsHelper.java +++ b/app/src/main/java/ai/elimu/startguide/util/StartPrefsHelper.java @@ -1,4 +1,4 @@ -package org.literacyapp.startguide.util; +package ai.elimu.startguide.util; import android.content.Context; import android.content.SharedPreferences; diff --git a/app/src/main/res/layout/activity_exit_full_screen.xml b/app/src/main/res/layout/activity_exit_full_screen.xml index 29ab588..18f4d91 100644 --- a/app/src/main/res/layout/activity_exit_full_screen.xml +++ b/app/src/main/res/layout/activity_exit_full_screen.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/light_blue" - tools:context="org.literacyapp.startguide.content.ExitFullScreenActivity"> + tools:context="ai.elimu.startguide.content.ExitFullScreenActivity"> - - + tools:context="ai.elimu.startguide.content.FinalActivity"> + tools:context="ai.elimu.startguide.content.swipe.SwipeRightLeftActivity"> - - + tools:context="ai.elimu.startguide.content.swipe.SwipeUpDownActivity" > - + tools:context="ai.elimu.startguide.TestGestureActivity" > - - - - + tools:context="ai.elimu.startguide.content.swipe.SwipeRightLeftActivity$PlaceholderFragment"> - + package="ai.elimu.handgesture"> 0) ? animationDelay * MILLISECONDS : DEFAULT_ANIMATION_DELAY * MILLISECONDS ; + long startOffset = (animationDelay > 0) ? animationDelay * Constants.MILLISECONDS : Constants.DEFAULT_ANIMATION_DELAY * Constants.MILLISECONDS ; if (isSecondTouchOfDoubleTouchGesture(secondTouchOffset)) { startOffset = secondTouchOffset; @@ -72,9 +67,9 @@ private boolean isSecondTouchOfDoubleTouchGesture(long secondTouchOffset) { } private ScaleAnimation getZoomOutAnimation(long startOffset, final long touchTime) { - ScaleAnimation zoomOut = new ScaleAnimation(1f, SCALE_FACTOR, 1f, SCALE_FACTOR); + ScaleAnimation zoomOut = new ScaleAnimation(1f, Constants.SCALE_FACTOR, 1f, Constants.SCALE_FACTOR); zoomOut.setStartOffset(startOffset); - zoomOut.setDuration(SCALE_DURATION); + zoomOut.setDuration(Constants.SCALE_DURATION); zoomOut.setFillAfter(true); zoomOut.setAnimationListener(new Animation.AnimationListener() { @Override @@ -99,9 +94,9 @@ public void onAnimationRepeat(Animation animation) {} } private ScaleAnimation getZoomInAnimation(long startOffset, long touchTime) { - ScaleAnimation zoomIn = new ScaleAnimation(SCALE_FACTOR, 1f, SCALE_FACTOR, 1f); - zoomIn.setStartOffset(startOffset+SCALE_DURATION+touchTime); - zoomIn.setDuration(SCALE_DURATION); + ScaleAnimation zoomIn = new ScaleAnimation(Constants.SCALE_FACTOR, 1f, Constants.SCALE_FACTOR, 1f); + zoomIn.setStartOffset(startOffset+ Constants.SCALE_DURATION+touchTime); + zoomIn.setDuration(Constants.SCALE_DURATION); zoomIn.setFillAfter(true); return zoomIn; } diff --git a/handgesture/src/main/java/org/literacyapp/handgesture/Gestures.java b/handgesture/src/main/java/ai/elimu/handgesture/Gestures.java similarity index 94% rename from handgesture/src/main/java/org/literacyapp/handgesture/Gestures.java rename to handgesture/src/main/java/ai/elimu/handgesture/Gestures.java index 240346c..04d4e97 100644 --- a/handgesture/src/main/java/org/literacyapp/handgesture/Gestures.java +++ b/handgesture/src/main/java/ai/elimu/handgesture/Gestures.java @@ -1,4 +1,4 @@ -package org.literacyapp.handgesture; +package ai.elimu.handgesture; /** */ diff --git a/handgesture/src/main/java/org/literacyapp/handgesture/HandGestureListener.java b/handgesture/src/main/java/ai/elimu/handgesture/HandGestureListener.java similarity index 75% rename from handgesture/src/main/java/org/literacyapp/handgesture/HandGestureListener.java rename to handgesture/src/main/java/ai/elimu/handgesture/HandGestureListener.java index 04f35a7..17a22dd 100644 --- a/handgesture/src/main/java/org/literacyapp/handgesture/HandGestureListener.java +++ b/handgesture/src/main/java/ai/elimu/handgesture/HandGestureListener.java @@ -1,4 +1,4 @@ -package org.literacyapp.handgesture; +package ai.elimu.handgesture; /** */ diff --git a/handgesture/src/main/java/org/literacyapp/handgesture/HandView.java b/handgesture/src/main/java/ai/elimu/handgesture/HandView.java similarity index 87% rename from handgesture/src/main/java/org/literacyapp/handgesture/HandView.java rename to handgesture/src/main/java/ai/elimu/handgesture/HandView.java index 05caffb..6b91523 100644 --- a/handgesture/src/main/java/org/literacyapp/handgesture/HandView.java +++ b/handgesture/src/main/java/ai/elimu/handgesture/HandView.java @@ -1,4 +1,4 @@ -package org.literacyapp.handgesture; +package ai.elimu.handgesture; import android.content.Context; import android.content.res.TypedArray; @@ -11,12 +11,6 @@ import android.widget.ImageView; import android.widget.RelativeLayout; -import org.literacyapp.handgesture.Gestures.HandGesture; - -import static org.literacyapp.handgesture.Gestures.DOUBLE_TAP; -import static org.literacyapp.handgesture.Gestures.PRESS_AND_HOLD; -import static org.literacyapp.handgesture.Gestures.SINGLE_TAP; - /** */ public class HandView extends RelativeLayout implements HandGestureListener { @@ -25,7 +19,7 @@ public class HandView extends RelativeLayout implements HandGestureListener { private ImageView mHandView; private AnimationHelper mAnimationHelper; - private HandGesture handGesture; + private Gestures.HandGesture handGesture; private HandViewListener mHandViewListener; private int mAnimationType; @@ -102,7 +96,7 @@ public boolean onTouchEvent(MotionEvent event) { public void startAnimation() { if (mAnimationType >= 0) { - HandGesture gesture = Gestures.getHandGesture(mAnimationType); + Gestures.HandGesture gesture = Gestures.getHandGesture(mAnimationType); if (!gesture.isTranslation()) { startGesture(gesture); @@ -116,7 +110,7 @@ public void startAnimation() { } } - public void startAnimation(HandGesture handAnimation) { + public void startAnimation(Gestures.HandGesture handAnimation) { if (!handAnimation.isTranslation()) { startGesture(handAnimation); } else if (handAnimation.isCustomTranslation()) { @@ -145,14 +139,14 @@ public void stopAnimation() { onTouchEvent(null); } - private void startGesture(HandGesture handGesture) { + private void startGesture(Gestures.HandGesture handGesture) { mDetectTouchEvent = false; this.handGesture = handGesture; - if (handGesture.equals(SINGLE_TAP)) { + if (handGesture.equals(Gestures.SINGLE_TAP)) { new GestureHelper(this, this).startOneTouchAnimation(mAnimationDelay); - } else if (handGesture.equals(DOUBLE_TAP)) { + } else if (handGesture.equals(Gestures.DOUBLE_TAP)) { firstTouch = new GestureHelper(this, this).startDoubleTouchAnimation(mAnimationDelay, firstTouch); - } else if (handGesture.equals(PRESS_AND_HOLD)) { + } else if (handGesture.equals(Gestures.PRESS_AND_HOLD)) { new GestureHelper(this, this).startTouchAndHoldAnimation(mAnimationDelay); } } diff --git a/handgesture/src/main/java/org/literacyapp/handgesture/HandViewListener.java b/handgesture/src/main/java/ai/elimu/handgesture/HandViewListener.java similarity index 62% rename from handgesture/src/main/java/org/literacyapp/handgesture/HandViewListener.java rename to handgesture/src/main/java/ai/elimu/handgesture/HandViewListener.java index de627a2..7e7f444 100644 --- a/handgesture/src/main/java/org/literacyapp/handgesture/HandViewListener.java +++ b/handgesture/src/main/java/ai/elimu/handgesture/HandViewListener.java @@ -1,4 +1,4 @@ -package org.literacyapp.handgesture; +package ai.elimu.handgesture; public interface HandViewListener { diff --git a/handgesture/src/test/java/org/literacyapp/handgesture/ExampleUnitTest.java b/handgesture/src/test/java/ai/elimu/handgesture/ExampleUnitTest.java similarity index 87% rename from handgesture/src/test/java/org/literacyapp/handgesture/ExampleUnitTest.java rename to handgesture/src/test/java/ai/elimu/handgesture/ExampleUnitTest.java index 37e8ec9..a011072 100644 --- a/handgesture/src/test/java/org/literacyapp/handgesture/ExampleUnitTest.java +++ b/handgesture/src/test/java/ai/elimu/handgesture/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package org.literacyapp.handgesture; +package ai.elimu.handgesture; import org.junit.Test; From f850cca5609f36b7070d864aaf0241f85f91763b Mon Sep 17 00:00:00 2001 From: Nya Elimu Date: Sat, 15 Dec 2018 18:05:26 +0200 Subject: [PATCH 2/3] #33 Rename from literacyapp to elimu Version 1.0.4 --> 2.0.0 --- app/build.gradle | 4 ++-- handgesture/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 64c4a1b..d552f7c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "ai.elimu.startguide" minSdkVersion 21 targetSdkVersion 23 - versionCode 1000004 - versionName "1.0.4" + versionCode 2000000 + versionName "2.0.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/handgesture/README.md b/handgesture/README.md index d616f74..5b0e6a6 100644 --- a/handgesture/README.md +++ b/handgesture/README.md @@ -18,7 +18,7 @@ Then, add the following dependency: ``` dependencies { ... - compile 'ai.elimu.startguide:1.0.0' + compile 'ai.elimu.startguide:2.0.0' } ``` From 3b8ca8e1e634bba73cd7df368c9969dd31ab8df3 Mon Sep 17 00:00:00 2001 From: Nya Elimu Date: Sat, 15 Dec 2018 18:13:32 +0200 Subject: [PATCH 3/3] #33 Rename from literacyapp to elimu - Added Slack integration --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f2e89c7..63c140b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,5 @@ android: - extra-android-m2repository notifications: -# slack: literacyapp:HLjtHJdZ7DYJV2DlnDLrG6Gl + slack: elimu-ai:5hNcmHPFkAETjJZjrkBlNTxr email: false \ No newline at end of file