Skip to content

Commit 214c524

Browse files
authored
Merge pull request rnc-archive#26 from teatimegames/podspec
Add support for Cocoapods by adding podspec
2 parents 8d1eb37 + b0d3e41 commit 214c524

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

react-native-webgl.podspec

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = package['name']
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.homepage = 'https://github.com/react-community/react-native-webgl'
10+
s.license = package['license']
11+
s.author = package['author']
12+
s.source = { :git => 'https://github.com/react-community/react-native-webgl.git', :tag => "v#{package['version']}" }
13+
s.requires_arc = true
14+
s.platform = :ios, '10.0'
15+
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
16+
s.source_files = 'ios/*.{h,m}','cpp/*.{h,c,cpp,mm}'
17+
s.framework = 'OpenGLES'
18+
s.dependency 'GPUImage'
19+
s.dependency 'React'
20+
end

0 commit comments

Comments
 (0)