forked from instructure/canvas-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPodfile
More file actions
151 lines (132 loc) · 4.69 KB
/
Podfile
File metadata and controls
151 lines (132 loc) · 4.69 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
source 'https://github.com/CocoaPods/Specs.git'
workspace 'Canvas.xcworkspace'
inhibit_all_warnings!
platform :ios, '12.0'
abstract_target 'defaults' do
use_frameworks!
nm_path = './rn/Teacher/node_modules/'
rn_path = nm_path + 'react-native/'
pod 'React', :path => rn_path, :subspecs => [
'Core',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
'RCTWebSocket', # needed for debugging
# Add any other subspecs you want to use in your project
'ART',
'RCTActionSheet',
'RCTAnimation',
'RCTImage',
'RCTSettings',
'RCTVibration',
'RCTPushNotification',
'RCTLinkingIOS',
'fishhook'
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod "yoga", :path => rn_path + 'ReactCommon/yoga'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => rn_path + 'third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => rn_path + 'third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => rn_path + 'third-party-podspecs/Folly.podspec'
# node modules
pod 'RNCAsyncStorage', :path => nm_path + '@react-native-community/async-storage'
pod 'RNFS', :path => nm_path + 'react-native-fs'
pod 'RNDeviceInfo', :path => nm_path + 'react-native-device-info'
pod 'react-native-image-picker', :path => nm_path + 'react-native-image-picker'
pod 'Interactable', :path => nm_path + 'react-native-interactable'
pod 'BVLinearGradient', :path => nm_path + 'react-native-linear-gradient'
pod 'RNSearchBar', :path => nm_path + 'react-native-search-bar'
pod 'react-native-document-picker', :path => nm_path + 'react-native-document-picker'
pod 'RNAudio', :path => nm_path + 'react-native-audio'
pod 'RNSound', :path => nm_path + 'react-native-sound'
pod 'react-native-camera', :path => nm_path + 'react-native-camera'
pod 'Marshal', '~> 1.2.7'
pod 'Cartography', '~> 3.1'
pod 'AFNetworking', '~> 4.0'
pod 'Mantle', '~> 1.5.5'
target 'PactTests' do
project 'Core/Core.xcodeproj'
pod 'PactConsumerSwift', :git => 'https://github.com/DiUS/pact-consumer-swift.git'
end
target 'Parent' do
project 'Parent/Parent.xcodeproj'
pod 'Fabric', '~> 1.10.2'
pod 'Firebase/Core', '~> 6.13'
pod 'Firebase/RemoteConfig', '~> 6.13'
pod 'Firebase/Analytics', '~> 6.13'
end
target 'ParentUnitTests' do
project 'Parent/Parent.xcodeproj'
pod 'Fabric', '~> 1.10.2'
pod 'Firebase/Core', '~> 6.13'
pod 'Firebase/RemoteConfig', '~> 6.13'
pod 'Firebase/Analytics', '~> 6.13'
end
target 'Teacher' do
project 'rn/Teacher/ios/Teacher.xcodeproj'
pod 'Fabric', '~> 1.10.2'
pod 'Firebase/Core', '~> 6.13'
pod 'Firebase/RemoteConfig', '~> 6.13'
pod 'Firebase/Analytics', '~> 6.13'
end
target 'TeacherTests' do
project 'rn/Teacher/ios/Teacher.xcodeproj'
pod 'Fabric', '~> 1.10.2'
pod 'Firebase/Core', '~> 6.13'
pod 'Firebase/RemoteConfig', '~> 6.13'
pod 'Firebase/Analytics', '~> 6.13'
end
target 'Student' do
project 'Student/Student.xcodeproj'
pod 'Fabric', '~> 1.10.2'
pod 'Firebase/Core', '~> 6.13'
pod 'Firebase/RemoteConfig', '~> 6.13'
pod 'Firebase/Analytics', '~> 6.13'
end
target 'StudentUnitTests' do
project 'Student/Student.xcodeproj'
pod 'Fabric', '~> 1.10.2'
pod 'Firebase/Core', '~> 6.13'
pod 'Firebase/RemoteConfig', '~> 6.13'
pod 'Firebase/Analytics', '~> 6.13'
end
target 'CanvasCore' do
project 'CanvasCore/CanvasCore.xcodeproj'
pod 'Crashlytics', '~> 3.14.0'
end
target 'CanvasKit' do
project 'Frameworks/CanvasKit/CanvasKit.xcodeproj'
end
end
post_install do |installer|
installer.pod_targets.each do |target|
silenceWarningsInUmbrellas = %w[ React ]
next unless silenceWarningsInUmbrellas.include? target.name
target.umbrella_header_path.open("r+") do |file|
contents = file.read()
file.seek 0
file.puts '_Pragma("clang diagnostic push")'
file.puts '_Pragma("clang diagnostic ignored \"-Weverything\"")'
file.puts contents
file.puts '_Pragma("clang diagnostic pop")'
end
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = 'YES'
end
usesNonAppExAPI = %w[
react-native-camera
React
react-native-document-picker
react-native-wkwebview
]
next unless usesNonAppExAPI.include? target.name
puts "*** Setting #{target.name} target to APPLICATION_EXTENSION_API_ONLY = NO ***"
target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
end
end
end