1require 'json'
2
3package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
4
5Pod::Spec.new do |s|
6  s.name           = 'ExpoSQLite'
7  s.version        = package['version']
8  s.summary        = package['description']
9  s.description    = package['description']
10  s.license        = package['license']
11  s.author         = package['author']
12  s.homepage       = package['homepage']
13  s.platform       = :ios, '13.0'
14  s.source         = { git: 'https://github.com/expo/expo.git' }
15  s.static_framework = true
16
17  s.dependency 'ExpoModulesCore'
18  s.dependency 'sqlite3', '~> 3.39.4'
19  s.resource_bundles = { 'ExpoSQLite' => ['../crsqlite.dylib'] }
20
21  # Swift/Objective-C compatibility
22  s.pod_target_xcconfig = {
23    'DEFINES_MODULE' => 'YES',
24  }
25
26  s.source_files = "**/*.{h,m,swift}"
27  s.vendored_frameworks = 'crsqlite.xcframework'
28end
29