fix(content): 콘텐츠 상세 광고를 제거한다

This commit is contained in:
Yu Sung
2026-07-13 16:57:55 +09:00
parent 9b115f3339
commit dec6fb6fb8
5 changed files with 31 additions and 149 deletions

View File

@@ -9,6 +9,9 @@
- [x] `ContentDetailView` 오픈예정/theme 표시와 다음화/이전화 사이 배너 삽입
- [x] `ContentDetailPlayView` 무료 재생/미리듣기 시작 전 전면광고 삽입
- [x] 빌드 및 정적 검증 기록 추가
- [x] 2026-07-13 `ContentDetailView` 콘텐츠 상세 Yandex 인라인 배너 제거
- [x] 2026-07-13 `ContentDetailPlayView` 콘텐츠 상세 재생 전 Yandex 전면광고 제거
- [x] 2026-07-13 콘텐츠 상세 전용 Yandex placement/ad unit/전면광고 매니저 미사용 코드 제거
## 작업 기준
@@ -103,3 +106,18 @@
- 결과:
- 페이지별 광고 ID를 독립적으로 설정할 수 있는 구조로 전환됨
- completion closure 기반 `self` 캡처 경고 제거 대상 구조를 async/await로 대체함
- 2026-07-13 / 콘텐츠 상세 Yandex 광고 제거
- 무엇: 콘텐츠 상세 화면의 Yandex 인라인 배너와 재생 전 Yandex 전면광고 흐름을 제거했다.
- 왜: 콘텐츠 상세 페이지에서 광고 영역과 재생 전 전면광고를 더 이상 사용하지 않기 위해서다.
- 어떻게:
- `SodaLive/Sources/Content/Detail/ContentDetailView.swift`에서 `YandexInlineBannerView(placement: .contentDetail)` 호출을 제거했다.
- `SodaLive/Sources/Content/Detail/ContentDetailPlayView.swift`에서 `YandexInterstitialAdManager` preload/show 호출과 `shouldShowInterstitialBeforePlayback` 가드를 제거했다.
- `SodaLive/Sources/Common/YandexAdSupport.swift`에서 콘텐츠 상세 전용 배너 placement, interstitial placement, `YandexInterstitialAdManager`를 제거했다.
- `SodaLive/Sources/Utils/Constants.swift`, `SodaLive/Sources/Debug/Utils/Constants.swift`에서 콘텐츠 상세 배너/전면광고 ad unit 상수를 제거했다.
- `rg -n "YandexInlineBannerView\\(placement: \\.contentDetail\\)|YandexInterstitialPlacement|YandexInterstitialAdManager|YANDEX_CONTENT_DETAIL_(BANNER|INTERSTITIAL)_AD_UNIT_ID|shouldShowInterstitialBeforePlayback|showAdIfAvailable\\(for: \\.contentDetail|preloadAd\\(for: \\.contentDetail" SodaLive/Sources`
- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`
- 결과:
- 콘텐츠 상세 전용 Yandex 배너/전면광고 참조가 `SodaLive/Sources`에 남지 않음
- `SodaLive-dev` Debug 빌드 성공
- 다른 화면의 Yandex 인라인 배너와 채팅 rewarded 광고 지원 코드는 유지

View File

@@ -38,3 +38,15 @@
- `SodaLive` Debug 빌드 성공
- `lsp_diagnostics`는 SourceKit 단독 해석에서 `YandexMobileAds` 모듈 미해결을 보고했으나, 실제 Xcode 빌드는 두 스킴 모두 성공했다.
- 실제 기기에서 광고 시청 후 오디오가 시작되는 수동 QA는 이 환경에서 앱 로그인/콘텐츠/광고 표시 조작이 불가해 수행하지 못했다.
- 2026-07-13 / 후속 변경: 콘텐츠 상세 재생 전 광고 제거
- 무엇: 콘텐츠 상세 재생 전 Yandex 전면광고 preload/show 흐름과 관련 공용 interstitial 매니저를 제거했다.
- 왜: 콘텐츠 상세에서 재생 전 광고를 더 이상 사용하지 않도록 정책이 변경되었기 때문이다.
- 어떻게:
- `SodaLive/Sources/Content/Detail/ContentDetailPlayView.swift`에서 `YandexInterstitialAdManager` 호출과 광고 표시 조건 함수를 제거했다.
- `SodaLive/Sources/Common/YandexAdSupport.swift`에서 `YandexInterstitialAdManager`, `YandexInterstitialPlacement`, interstitial ad unit 조회를 제거했다.
- `rg`로 콘텐츠 상세 전용 interstitial 참조가 남지 않는지 확인했다.
- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`
- 결과:
- 콘텐츠 상세 재생 탭은 광고 분기 없이 기존 재생 액션을 바로 실행한다.
- `SodaLive-dev` Debug 빌드 성공