Skip to content

Commit

Permalink
Moved the usecases to a separate package, so the ui package is purely…
Browse files Browse the repository at this point in the history
… UI only.
  • Loading branch information
roughike committed Feb 1, 2017
1 parent bdfd0d8 commit 0b9daab
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import com.codemate.koffeemate.data.local.CoffeeEventRepository
import com.codemate.koffeemate.data.local.CoffeePreferences
import com.codemate.koffeemate.data.local.UserRepository
import com.codemate.koffeemate.data.network.SlackApi
import com.codemate.koffeemate.ui.userselector.LoadUsersUseCase
import com.codemate.koffeemate.ui.main.PostAccidentUseCase
import com.codemate.koffeemate.ui.main.SendCoffeeAnnouncementUseCase
import com.codemate.koffeemate.usecases.LoadUsersUseCase
import com.codemate.koffeemate.usecases.PostAccidentUseCase
import com.codemate.koffeemate.usecases.SendCoffeeAnnouncementUseCase
import dagger.Module
import dagger.Provides
import rx.android.schedulers.AndroidSchedulers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import com.codemate.koffeemate.data.local.CoffeeEventRepository
import com.codemate.koffeemate.data.local.CoffeePreferences
import com.codemate.koffeemate.data.models.User
import com.codemate.koffeemate.ui.base.BasePresenter
import com.codemate.koffeemate.usecases.PostAccidentUseCase
import com.codemate.koffeemate.usecases.SendCoffeeAnnouncementUseCase
import okhttp3.ResponseBody
import retrofit2.Response
import rx.Subscriber
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.codemate.koffeemate.ui.userselector

import com.codemate.koffeemate.data.models.User
import com.codemate.koffeemate.ui.base.BasePresenter
import com.codemate.koffeemate.usecases.LoadUsersUseCase
import rx.Subscriber
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.codemate.koffeemate.ui.userselector
package com.codemate.koffeemate.usecases

import com.codemate.koffeemate.BuildConfig
import com.codemate.koffeemate.data.local.UserRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.codemate.koffeemate.ui.main
package com.codemate.koffeemate.usecases

import android.graphics.Bitmap
import com.codemate.koffeemate.common.AwardBadgeCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.codemate.koffeemate.ui.main
package com.codemate.koffeemate.usecases

import com.codemate.koffeemate.data.network.SlackApi
import okhttp3.ResponseBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import com.codemate.koffeemate.data.models.CoffeeBrewingEvent
import com.codemate.koffeemate.data.network.SlackApi
import com.codemate.koffeemate.testutils.fakeUser
import com.codemate.koffeemate.testutils.getResourceFile
import com.codemate.koffeemate.usecases.PostAccidentUseCase
import com.codemate.koffeemate.usecases.SendCoffeeAnnouncementUseCase
import com.nhaarman.mockito_kotlin.*
import okhttp3.MediaType
import okhttp3.ResponseBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.codemate.koffeemate.data.models.UserListResponse
import com.codemate.koffeemate.data.network.SlackApi
import com.codemate.koffeemate.testutils.fakeUser
import com.codemate.koffeemate.testutils.getResourceFile
import com.codemate.koffeemate.usecases.LoadUsersUseCase
import com.nhaarman.mockito_kotlin.*
import org.junit.Before
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.codemate.koffeemate.ui.userselector
package com.codemate.koffeemate.usecases

import com.codemate.koffeemate.BuildConfig
import com.codemate.koffeemate.data.local.UserRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.codemate.koffeemate.ui.userselector
package com.codemate.koffeemate.usecases

import android.content.SharedPreferences
import android.graphics.Bitmap
Expand All @@ -27,7 +27,6 @@ import com.codemate.koffeemate.data.network.SlackService
import com.codemate.koffeemate.testutils.RegexMatcher.Companion.matchesPattern
import com.codemate.koffeemate.testutils.fakeUser
import com.codemate.koffeemate.testutils.getResourceFile
import com.codemate.koffeemate.ui.main.PostAccidentUseCase
import com.nhaarman.mockito_kotlin.*
import okhttp3.ResponseBody
import okhttp3.mockwebserver.MockResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
* limitations under the License.
*/

package com.codemate.koffeemate.ui.main
package com.codemate.koffeemate.usecases

import com.codemate.koffeemate.BuildConfig
import com.codemate.koffeemate.data.network.SlackApi
import com.codemate.koffeemate.data.network.SlackService
import okhttp3.Dispatcher
import okhttp3.ResponseBody
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
Expand Down

0 comments on commit 0b9daab

Please sign in to comment.