Pod::Spec.new do |s|
  s.name = 'DailyNotificationPlugin'
  s.version = '1.2.0'
  s.summary = 'Daily Notification Plugin for Capacitor'
  s.license = 'MIT'
  s.homepage = 'https://github.com/timesafari/daily-notification-plugin'
  s.author = 'Matthew Raymer'
  s.source = { :git => 'https://github.com/timesafari/daily-notification-plugin.git', :tag => s.version.to_s }
  s.source_files = 'Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
  s.ios.deployment_target  = '13.0'
  s.dependency 'Capacitor', '>= 5.0.0'
  s.dependency 'CapacitorCordova', '>= 5.0.0'
  s.swift_version = '5.1'
  # Explicitly link against system SQLite library to avoid conflicts with
  # macOS SQLite libraries (e.g., from pkgx or other package managers that
  # may set DYLD_LIBRARY_PATH or similar environment variables)
  s.xcconfig = { 
    'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1',
    'OTHER_LDFLAGS' => '$(inherited) -lsqlite3'
  }
  s.deprecated = false
  # Set to false so Capacitor can discover the plugin
  # Capacitor iOS does not scan static frameworks for plugin discovery
  # Dynamic frameworks are discoverable via Objective-C runtime scanning
  s.static_framework = false
end 