forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EXUpdates.podspec
65 lines (57 loc) · 2.23 KB
/
EXUpdates.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
require 'json'
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
Pod::Spec.new do |s|
s.name = 'EXUpdates'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.platform = :ios, '12.0'
s.swift_version = '5.4'
s.source = { git: 'https://github.com/expo/expo.git' }
s.static_framework = true
s.dependency 'ExpoModulesCore'
s.dependency 'React-Core'
s.dependency 'EXStructuredHeaders'
s.dependency 'EXUpdatesInterface'
s.dependency 'EXManifests'
s.dependency 'EASClient'
s.dependency 'ASN1Decoder', '~> 1.8'
s.pod_target_xcconfig = {
'GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS' => 'YES',
'GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS' => 'YES',
'DEFINES_MODULE' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule'
}
if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
s.source_files = "#{s.name}/**/*.h"
s.vendored_frameworks = "#{s.name}.xcframework"
else
s.source_files = "#{s.name}/**/*.{h,m,swift}"
end
if $expo_updates_create_manifest != false
s.script_phase = {
:name => 'Generate app.manifest for expo-updates',
:script => 'bash -l -c "$PODS_TARGET_SRCROOT/../scripts/create-manifest-ios.sh"',
:execution_position => :before_compile
}
# Generate EXUpdates.bundle without existing resources
# `create-manifest-ios.sh` will generate app.manifest in EXUpdates.bundle
s.resource_bundles = {
'EXUpdates' => []
}
end
s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests/*.{h,m,swift}'
test_spec.resources = 'Tests/Support/**/*'
test_spec.dependency 'OCMockito', '~> 6.0'
test_spec.pod_target_xcconfig = {
'GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS' => 'YES',
'GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS' => 'YES',
'DEFINES_MODULE' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule'
}
end
end