Skip to content

Commit

Permalink
Issues #287 fix: 실행되는 형태로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
audxo112 committed Feb 7, 2023
1 parent df971ae commit 81dda87
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 23 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies {
implementation(projects.model)
implementation(projects.common)
implementation(projects.commonAndroid)
implementation(projects.commonLocation)
implementation(projects.domain)
implementation(projects.presentation)
implementation(projects.data)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/lighthouse/di/ProviderModule.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.lighthouse.di

import android.content.Context
import com.lighthouse.datasource.location.SharedLocationManager
import com.lighthouse.common.utils.location.SharedLocationManager
import com.lighthouse.presentation.background.NotificationHelper
import dagger.Module
import dagger.Provides
Expand Down
2 changes: 1 addition & 1 deletion commons/common-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
namespace = "com.lighthouse.beep.common"
namespace = "com.lighthouse.beep.common.android"
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion commons/common-location/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
namespace = "com.lighthouse.beep.common"
namespace = "com.lighthouse.beep.common.location"
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion commons/common-recognizer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
namespace = "com.lighthouse.beep.common"
namespace = "com.lighthouse.beep.common.recognizer"
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.webkit.MimeTypeMap
import com.lighthouse.domain.model.GalleryImage
import com.lighthouse.beep.model.gallery.GalleryImage
import java.util.Date
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.lighthouse.datasource.gallery

import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.lighthouse.domain.model.GalleryImage
import com.lighthouse.beep.model.gallery.GalleryImage

class GalleryImagePagingSource(
private val localSource: GalleryImageLocalSource,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.lighthouse.datasource.gifticon

import com.lighthouse.beep.model.brand.Brand
import com.lighthouse.beep.model.etc.SortBy
import com.lighthouse.beep.model.gifticon.Gifticon
import com.lighthouse.beep.model.user.UsageHistory
import com.lighthouse.database.entity.GifticonEntity
import com.lighthouse.database.entity.GifticonWithCrop
import com.lighthouse.domain.model.Brand
import com.lighthouse.domain.model.Gifticon
import com.lighthouse.domain.model.SortBy
import com.lighthouse.domain.model.UsageHistory
import kotlinx.coroutines.flow.Flow

interface GifticonLocalDataSource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.lighthouse.datasource.gifticon

import com.lighthouse.beep.model.brand.Brand
import com.lighthouse.beep.model.etc.SortBy
import com.lighthouse.beep.model.gifticon.Gifticon
import com.lighthouse.beep.model.user.UsageHistory
import com.lighthouse.core.exts.isExpired
import com.lighthouse.core.exts.today
import com.lighthouse.database.dao.GifticonDao
import com.lighthouse.database.entity.GifticonEntity
import com.lighthouse.database.entity.GifticonWithCrop
import com.lighthouse.database.mapper.toUsageHistory
import com.lighthouse.database.mapper.toUsageHistoryEntity
import com.lighthouse.domain.model.Brand
import com.lighthouse.domain.model.Gifticon
import com.lighthouse.domain.model.SortBy
import com.lighthouse.domain.model.UsageHistory
import com.lighthouse.mapper.toDomain
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.lighthouse.mapper

import com.lighthouse.domain.model.BrandPlaceInfo
import com.lighthouse.beep.model.brand.BrandPlaceInfo
import com.lighthouse.model.BrandPlaceInfoDataContainer

internal fun List<BrandPlaceInfoDataContainer.BrandPlaceInfoData>.toDomain(brandName: String): List<BrandPlaceInfo> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax.inject.Inject

@AndroidEntryPoint
class LargeBarcodeDialog : DialogFragment(R.layout.dialog_large_barcode) {
Expand All @@ -26,8 +25,8 @@ class LargeBarcodeDialog : DialogFragment(R.layout.dialog_large_barcode) {
""
}

@Inject
lateinit var barcodeUtil: BarcodeUtil
// Hilt를 이용하여 주입
private val barcodeUtil = BarcodeUtil()

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ import com.lighthouse.presentation.ui.detailgifticon.GifticonDetailViewModel
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import javax.inject.Inject

@AndroidEntryPoint
class UseGifticonDialog : BottomSheetDialogFragment(R.layout.dialog_use_gifticon) {
private val binding: DialogUseGifticonBinding by viewBindings()
private val viewModel: GifticonDetailViewModel by activityViewModels()
private var amountToUse = mutableStateOf(0)

@Inject
lateinit var barcodeUtil: BarcodeUtil
private val barcodeUtil = BarcodeUtil()

override fun getTheme(): Int {
return R.style.Theme_BEEP_BottomSheetDialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.lighthouse.presentation.ui.setting

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lighthouse.domain.model.DbResult
import com.lighthouse.beep.model.result.DbResult
import com.lighthouse.domain.usecase.GetGifticonsUseCase
import com.lighthouse.presentation.mapper.toPresentation
import dagger.hilt.android.lifecycle.HiltViewModel
Expand Down
2 changes: 1 addition & 1 deletion presentation/src/main/res/layout/fragment_setting_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<data>

<import type="com.lighthouse.domain.model.UserPreferenceOption" />
<import type="com.lighthouse.beep.model.user.UserPreferenceOption" />

<variable
name="vm"
Expand Down

0 comments on commit 81dda87

Please sign in to comment.