Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDLE-446] 알림 기능을 모킹한다. #87

Merged
merged 16 commits into from
Oct 16, 2024

Conversation

J0onYEong
Copy link
Contributor

변경된 점

  • 알림정보를 가지고 있는 NotificationRepository구현 및 모킹
  • NotificationPage진입 여부를 RemoteConfig로 설정

알림정보를 가지고 있는 NotificationRepository구현 및 모킹

레포지토리들의 상호작용이 필요없다고 판단하여 ViewModel에 NotificationRepository를 직접적으로 주입했습니다.
백엔드 구현이 완료되지 않은 상태라 Proxyman툴을 사용하여 모킹한 상태입니다.

NotificationPage진입 여부를 RemoteConfig로 설정

백엔드에서 해당 기능에 대한 개발을 완료하기 전, 배포 심사를 통과하기 위해 해당 기능에 대한 실행 가능 여부를 RemoteConfig로 제어할 수 있도록 구현했습니다.

public protocol RemoteConfigService {
    
    func fetchRemoteConfig() -> Single<Result<Bool, Error>>
    
    func getJSONProperty<T: Decodable>(key: String) throws -> T
    
    func getBoolProperty(key: String) throws -> Bool
}

RemoteConfig에 대한 접근을 여러 Feature에서 가능하게 하기 위해 RemoteConfigService프로콜을 만들고 의존성 주입을 사용했습니다.

시현영상

Simulator Screen Recording - iPhone 15 Pro - 2024-10-16 at 13 50 15

@J0onYEong J0onYEong merged commit d176182 into develop Oct 16, 2024
@J0onYEong J0onYEong deleted the feature/notification_page branch October 16, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant