From 752135621d771ac968a57f0aef976335f6ab9088 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Sun, 30 Aug 2020 16:39:08 +0200 Subject: [PATCH] Move DateUtils in api package --- .../src/main/java/com/readrops/api}/utils/DateUtils.java | 2 +- .../src/test/java/com/readrops/api/utils}/DateUtilsTest.java | 4 +--- .../main/java/com/readrops/app/activities/ItemActivity.java | 2 +- .../java/com/readrops/app/adapters/MainItemListAdapter.java | 2 +- .../java/com/readrops/app/utils/matchers/ItemMatcher.java | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) rename {app/src/main/java/com/readrops/app => api/src/main/java/com/readrops/api}/utils/DateUtils.java (98%) rename {app/src/test/java/com/readrops/app => api/src/test/java/com/readrops/api/utils}/DateUtilsTest.java (96%) diff --git a/app/src/main/java/com/readrops/app/utils/DateUtils.java b/api/src/main/java/com/readrops/api/utils/DateUtils.java similarity index 98% rename from app/src/main/java/com/readrops/app/utils/DateUtils.java rename to api/src/main/java/com/readrops/api/utils/DateUtils.java index f7ea1e36..68133f3a 100644 --- a/app/src/main/java/com/readrops/app/utils/DateUtils.java +++ b/api/src/main/java/com/readrops/api/utils/DateUtils.java @@ -1,4 +1,4 @@ -package com.readrops.app.utils; +package com.readrops.api.utils; import org.joda.time.LocalDateTime; import org.joda.time.format.DateTimeFormat; diff --git a/app/src/test/java/com/readrops/app/DateUtilsTest.java b/api/src/test/java/com/readrops/api/utils/DateUtilsTest.java similarity index 96% rename from app/src/test/java/com/readrops/app/DateUtilsTest.java rename to api/src/test/java/com/readrops/api/utils/DateUtilsTest.java index 95b9058f..7e36f383 100644 --- a/app/src/test/java/com/readrops/app/DateUtilsTest.java +++ b/api/src/test/java/com/readrops/api/utils/DateUtilsTest.java @@ -1,6 +1,4 @@ -package com.readrops.app; - -import com.readrops.app.utils.DateUtils; +package com.readrops.api.utils; import org.joda.time.LocalDateTime; import org.junit.Test; diff --git a/app/src/main/java/com/readrops/app/activities/ItemActivity.java b/app/src/main/java/com/readrops/app/activities/ItemActivity.java index 86462056..a1493f25 100644 --- a/app/src/main/java/com/readrops/app/activities/ItemActivity.java +++ b/app/src/main/java/com/readrops/app/activities/ItemActivity.java @@ -32,7 +32,7 @@ import com.bumptech.glide.request.target.CustomTarget; import com.bumptech.glide.request.transition.Transition; import com.readrops.app.R; import com.readrops.app.databinding.ActivityItemBinding; -import com.readrops.app.utils.DateUtils; +import com.readrops.api.utils.DateUtils; import com.readrops.app.utils.GlideApp; import com.readrops.app.utils.PermissionManager; import com.readrops.app.utils.SharedPreferencesManager; diff --git a/app/src/main/java/com/readrops/app/adapters/MainItemListAdapter.java b/app/src/main/java/com/readrops/app/adapters/MainItemListAdapter.java index a818387c..30520174 100644 --- a/app/src/main/java/com/readrops/app/adapters/MainItemListAdapter.java +++ b/app/src/main/java/com/readrops/app/adapters/MainItemListAdapter.java @@ -29,7 +29,7 @@ import com.readrops.app.R; import com.readrops.db.entities.Item; import com.readrops.db.pojo.ItemWithFeed; import com.readrops.app.databinding.ListItemBinding; -import com.readrops.app.utils.DateUtils; +import com.readrops.api.utils.DateUtils; import com.readrops.app.utils.GlideRequests; import com.readrops.app.utils.Utils; diff --git a/app/src/main/java/com/readrops/app/utils/matchers/ItemMatcher.java b/app/src/main/java/com/readrops/app/utils/matchers/ItemMatcher.java index 096134c6..651fa211 100644 --- a/app/src/main/java/com/readrops/app/utils/matchers/ItemMatcher.java +++ b/app/src/main/java/com/readrops/app/utils/matchers/ItemMatcher.java @@ -1,6 +1,6 @@ package com.readrops.app.utils.matchers; -import com.readrops.app.utils.DateUtils; +import com.readrops.api.utils.DateUtils; import com.readrops.app.utils.Utils; import com.readrops.db.entities.Feed; import com.readrops.db.entities.Item;