Files
sodalive-ios/docs/20260226_내페이지채널후원버튼숨김.md

2.5 KiB

20260226 내 페이지 채널 후원 버튼 숨김

구현 체크리스트

  • 크리에이터 채널 내 채널 후원하기 버튼 렌더링 위치 및 표시 조건 확인
  • UserProfileChannelDonationView에 버튼 표시 제어 파라미터 추가
  • UserProfileView에서 내 페이지 여부에 따라 버튼 표시값 전달
  • 진단/빌드/테스트 검증 수행 및 결과 기록

검증 기록

  • 무엇: UserProfileChannelDonationView/UserProfileView 표시 조건 위치 확인 왜: 내 페이지에서만 버튼을 숨기는 최소 수정 지점을 특정하기 위함 어떻게: grep/read채널 후원하기 렌더링 및 creatorId == UserDefaults.int(forKey: .userId) 비교 로직 확인 결과: 버튼 렌더링은 UserProfileChannelDonationView, 내 페이지 판별값은 UserProfileView에서 확보

  • 무엇: 버튼 표시 제어 파라미터 적용 왜: 채널 후원 영역은 유지하면서 버튼만 숨겨야 하기 때문 어떻게: UserProfileChannelDonationViewisShowDonationButton 파라미터 추가 후 버튼 if 분기, UserProfileView에서 내 페이지일 때 false 전달 결과: 내 페이지에서는 채널 후원하기 버튼 미노출, 타인 페이지는 기존과 동일

  • 무엇: 변경 직후 정적 진단 확인 왜: 수정 파일의 즉시 오류 여부 확인 필요 어떻게: lsp_diagnostics 실행 결과: SourceKit 환경 의존 오류 확인(No such module 'Kingfisher' 등), 이후 실제 빌드 성공으로 컴파일 정상 확인

  • 무엇: 빌드 검증(기본 스킴) 왜: 변경이 앱 컴파일에 미치는 영향 확인 어떻게: xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -configuration Debug build 결과: 1차 BUILD FAILED(extra argument 'isShowDonationButton' in call) 확인 후 초기화 시그니처 수정, 재실행 ** BUILD SUCCEEDED **

  • 무엇: 빌드 검증(dev 스킴) 왜: 동일 변경의 dev 스킴 회귀 여부 확인 어떻게: xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build 결과: ** BUILD SUCCEEDED **

  • 무엇: 테스트 액션 실행 가능 여부 확인 왜: 저장소 검증 절차상 테스트 명령 수행 결과 확인 필요 어떻게: xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" testxcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" test 결과: 두 스킴 모두 Scheme ... is not currently configured for the test action.로 테스트 액션 미구성