refactor(core): 핵심 서비스 로직 개선
- audio_service: 오디오 처리 로직 수정 - ad_service: 광고 서비스 개선 - character_roll_service: 캐릭터 롤 로직 수정 - iap_service: 인앱 결제 로직 개선 - progress_loop: 진행 루프 업데이트 - return_rewards_service: 복귀 보상 로직 개선 - settings_repository: 설정 저장소 수정
This commit is contained in:
@@ -5,6 +5,8 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:in_app_purchase/in_app_purchase.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'package:asciineverdie/data/game_text_l10n.dart' as game_l10n;
|
||||
|
||||
/// IAP 상품 ID
|
||||
class IAPProductIds {
|
||||
IAPProductIds._();
|
||||
@@ -193,7 +195,15 @@ class IAPService {
|
||||
|
||||
/// 광고 제거 상품 가격 문자열
|
||||
String get removeAdsPrice {
|
||||
return _removeAdsProduct?.price ?? '\$9.99';
|
||||
if (_removeAdsProduct != null) {
|
||||
return _removeAdsProduct!.price;
|
||||
}
|
||||
// 스토어 미연결 시 로케일별 대체 가격
|
||||
return switch (game_l10n.currentGameLocale) {
|
||||
'ko' => '₩9,900',
|
||||
'ja' => '¥990',
|
||||
_ => '\$9.99',
|
||||
};
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user