source 'http://stove-developers-gitlab.sginfra.net/stove-sdk/Specs.git'
# source 'https://git.sginfra.net/mobilesdk/sample_specs.git'
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '15.0'

use_frameworks!

target 'UnityFramework' do
  pod 'Stove', '4.0.0'
  pod 'StoveProviders', '4.0.0'
  pod 'StoveIAP2', '4.0.0'
  pod 'StovePush', '4.0.0'

  # 게임 로그 독립 모듈 (Stove 비의존). GameLogNativeInterface.mm 이 참조
  pod 'StoveGameLog', '4.0.0'
end

target 'Unity-iPhone' do
end

# When Use NotificationServiceExtension
target 'NotificationServiceExtension' do
  pod 'StovePushExtension', '4.0.0'
end

# Xcode 27+ requires IPHONEOS_DEPLOYMENT_TARGET >= 15.0.
# Third-party dependency pods (Facebook, Google, Naver, etc.) still declare lower targets in their podspecs.
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 15.0
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
      end
    end
  end
end
