Skip to content

Commit

Permalink
Revert "Refactor/package (#230)" (#231)
Browse files Browse the repository at this point in the history
This reverts commit 734620d.
  • Loading branch information
HI-JIN2 authored Oct 18, 2024
1 parent 734620d commit 1f4a727
Show file tree
Hide file tree
Showing 130 changed files with 284 additions and 280 deletions.
36 changes: 18 additions & 18 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
</receiver>

<activity
android:name=".presentation.mypage.DeveloperActivity"
android:name=".ui.mypage.DeveloperActivity"
android:exported="false" />
<activity
android:name=".presentation.mypage.SignOutActivity"
android:name=".ui.mypage.SignOutActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".presentation.mypage.terms.WebViewActivity"
android:name=".ui.mypage.terms.WebViewActivity"
android:exported="false" />
<activity
android:name=".presentation.login.IntroActivity"
android:name=".ui.login.IntroActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -71,31 +71,31 @@
</intent-filter>
</activity>
<activity
android:name=".presentation.review.write.ReviewWriteRateActivity"
android:name=".ui.review.write.ReviewWriteRateActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.review.write.menu.ReviewWriteMenuActivity"
android:name=".ui.review.write.menu.ReviewWriteMenuActivity"
android:exported="false" />
<activity
android:name=".presentation.login.LoginActivity"
android:name=".ui.login.LoginActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.common.AndroidMessageDialogActivity"
android:name=".ui.common.AndroidMessageDialogActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.common.ForceUpdateDialogActivity"
android:name=".ui.common.ForceUpdateDialogActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
Expand Down Expand Up @@ -123,67 +123,67 @@
android:value="" />
</activity>
<activity
android:name=".presentation.mypage.usernamechange.UserNameChangeActivity"
android:name=".ui.mypage.usernamechange.UserNameChangeActivity"
android:exported="true"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.mypage.myreview.MyReviewListActivity"
android:name=".ui.mypage.myreview.MyReviewListActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.review.list.ReviewActivity"
android:name=".ui.review.list.ReviewActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.mypage.MyPageActivity"
android:name=".ui.mypage.MyPageActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>

<activity
android:name=".presentation.main.MainActivity"
android:name=".ui.main.MainActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.review.report.OthersReviewDialogActivity"
android:name=".ui.review.report.OthersReviewDialogActivity"
android:exported="true"
android:theme="@style/Theme.MyDialog">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.review.delete.MyReviewDialogActivity"
android:name=".ui.review.delete.MyReviewDialogActivity"
android:exported="true"
android:theme="@style/Theme.MyDialog">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.review.report.ReportActivity"
android:name=".ui.review.report.ReportActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.review.modify.ModifyReviewActivity"
android:name=".ui.review.modify.ModifyReviewActivity"
android:exported="true">
<meta-data
android:name="android.app.lib_name"
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/com/eatssu/android/base/BaseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import androidx.lifecycle.ViewModelProvider
import androidx.viewbinding.ViewBinding
import com.eatssu.android.R
import com.eatssu.android.data.repository.FirebaseRemoteConfigRepository
import com.eatssu.android.presentation.common.AndroidMessageDialogActivity
import com.eatssu.android.presentation.common.ForceUpdateDialogActivity
import com.eatssu.android.presentation.common.VersionViewModel
import com.eatssu.android.presentation.common.VersionViewModelFactory
import com.eatssu.android.ui.common.AndroidMessageDialogActivity
import com.eatssu.android.ui.common.ForceUpdateDialogActivity
import com.eatssu.android.ui.common.VersionViewModel
import com.eatssu.android.ui.common.VersionViewModelFactory
import com.eatssu.android.util.NetworkConnection
import com.google.android.material.card.MaterialCardView

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.eatssu.android.data.dto.request

data class ChangePwRequest(
val pwd: String,
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.dto.response

import com.eatssu.android.domain.model.Menu
import com.eatssu.android.data.model.Menu
import com.google.gson.annotations.SerializedName

data class GetMealResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.dto.response

import com.eatssu.android.domain.model.ReviewInfo
import com.eatssu.android.data.model.ReviewInfo
import com.google.gson.annotations.SerializedName

data class GetMealReviewInfoResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.dto.response

import com.eatssu.android.domain.model.MenuMini
import com.eatssu.android.data.model.MenuMini
import com.google.gson.annotations.SerializedName

data class MenuOfMealResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.eatssu.android.data.dto.response

import android.util.Log
import com.eatssu.android.domain.model.Menu
import com.eatssu.android.data.model.Menu
import com.google.gson.annotations.SerializedName


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.dto.response

import com.eatssu.android.domain.model.ReviewInfo
import com.eatssu.android.data.model.ReviewInfo
import com.google.gson.annotations.SerializedName

data class GetMenuReviewInfoResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.dto.response

import com.eatssu.android.domain.model.Review
import com.eatssu.android.data.model.Review
import com.google.gson.annotations.SerializedName

data class MyReviewResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.dto.response

import com.eatssu.android.domain.model.Review
import com.eatssu.android.data.model.Review
import com.google.gson.annotations.SerializedName

data class GetReviewListResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

data class AndroidMessage(
val dialog: Boolean,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.eatssu.android.data.model

data class CalendarData(
var cl_date: String = "", // ๋‚ ์งœ
var cl_day: String = "" // ์š”์ผ
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

data class Menu(
val id: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

data class MenuMini(
val id: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

import com.eatssu.android.data.enums.Restaurant

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

data class Review(
val isWriter: Boolean,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

data class ReviewInfo(
var name: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.model
package com.eatssu.android.data.model

import com.eatssu.android.data.enums.MenuType
import com.eatssu.android.data.enums.Restaurant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.eatssu.android.data.repository

import com.eatssu.android.R
import com.eatssu.android.data.enums.Restaurant
import com.eatssu.android.domain.model.RestaurantInfo
import com.eatssu.android.data.model.RestaurantInfo
import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import com.google.firebase.remoteconfig.FirebaseRemoteConfigSettings
import org.json.JSONArray
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.repository
package com.eatssu.android.data.repository


interface ImageRepository {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.eatssu.android.data.repository

import com.eatssu.android.domain.repository.ImageRepository
import com.eatssu.android.domain.service.ImageService
import com.eatssu.android.data.service.ImageService
import javax.inject.Inject

class ImageRepositoryImpl @Inject constructor(private val imageService: ImageService) :
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.repository
package com.eatssu.android.data.repository

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.LoginWithKakaoRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package com.eatssu.android.data.repository
import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.LoginWithKakaoRequest
import com.eatssu.android.data.dto.response.TokenResponse
import com.eatssu.android.domain.repository.OauthRepository
import com.eatssu.android.domain.service.OauthService
import com.eatssu.android.data.service.OauthService
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.repository
package com.eatssu.android.data.repository

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.ReportRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ package com.eatssu.android.data.repository

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.ReportRequest
import com.eatssu.android.domain.repository.ReportRepository
import com.eatssu.android.domain.service.ReportService
import com.eatssu.android.data.service.ReportService
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.eatssu.android.data.repository

import com.eatssu.android.domain.service.ReviewService
import com.eatssu.android.data.service.ReviewService

class ReviewRepository(private val reviewService: ReviewService) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.repository
package com.eatssu.android.data.repository

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.ChangeNicknameRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.ChangeNicknameRequest
import com.eatssu.android.data.dto.response.MyInfoResponse
import com.eatssu.android.data.dto.response.MyReviewResponse
import com.eatssu.android.domain.repository.UserRepository
import com.eatssu.android.domain.service.UserService
import com.eatssu.android.data.service.UserService
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.service
package com.eatssu.android.data.service

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.response.ImageResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.service
package com.eatssu.android.data.service

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.response.GetMealResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.service
package com.eatssu.android.data.service

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.response.GetFixedMenuResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.service
package com.eatssu.android.data.service

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.LoginWithKakaoRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.service
package com.eatssu.android.data.service

import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.ReportRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.eatssu.android.domain.service
package com.eatssu.android.data.service


import com.eatssu.android.base.BaseResponse
Expand All @@ -8,13 +8,7 @@ import com.eatssu.android.data.dto.response.GetMealReviewInfoResponse
import com.eatssu.android.data.dto.response.GetMenuReviewInfoResponse
import com.eatssu.android.data.dto.response.GetReviewListResponse
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.PATCH
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query
import retrofit2.http.*


interface ReviewService {
Expand Down
Loading

0 comments on commit 1f4a727

Please sign in to comment.