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

user defaults service #27

Closed
2 tasks done
jeonghomoon opened this issue Sep 20, 2022 · 0 comments · Fixed by #28
Closed
2 tasks done

user defaults service #27

jeonghomoon opened this issue Sep 20, 2022 · 0 comments · Fixed by #28
Assignees
Labels
feat 기능 추가

Comments

@jeonghomoon
Copy link
Owner

jeonghomoon commented Sep 20, 2022

Description

Keychain에서 저장하는 정보 외의 알람 설정같은 간단한 키-값 쌍의 데이터를 UserDefaults를 통해 저장할 수 있습니다.

요구사항

  1. 테스트가 가능한 구조가 되기 위해 서비스 클래스 혹은 레핑 클래스의 초기화 시에 suiteName을 주입 받아야 함.
  2. Keychain과 유사하게 CRUD 인터페이스를 가져야함

TODO

  • UserDefaultsService initializer with suiteName
  • CRUD

Environment

macOS: Monterey 12.5.1, Apple M1
iOS: 15.5, iPhone 13 mini
IDE: Xcode 13.4.1

Related: #

@jeonghomoon jeonghomoon added the feat 기능 추가 label Sep 20, 2022
@jeonghomoon jeonghomoon self-assigned this Sep 20, 2022
@jeonghomoon jeonghomoon changed the title user defaults user defaults service Sep 22, 2022
jeonghomoon added a commit that referenced this issue Sep 22, 2022
UserDefaultsService
identifier를 주입받아 테스트 환경과 실제 환경을 구별하기 위한 initializer 추가
UserDefaults에 대한 CRUD 메소드 작성
CRUD 이전에 데이터 유무를 확인하는 findObject 메소드 추가

Refs: #27
jeonghomoon added a commit that referenced this issue Sep 22, 2022
UserDefaultsService
identifier를 주입받아 테스트 환경과 실제 환경을 구별하기 위한 initializer 추가
UserDefaults에 대한 CRUD 메소드 작성
CRUD 이전에 데이터 유무를 확인하는 findObject 메소드 추가

Refs: #27
@jeonghomoon jeonghomoon mentioned this issue Sep 23, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 추가
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant