Skip to content

Commit 0ed6c4e

Browse files
authored
Merge pull request #96 from kdawgwilk/add-cocoapods-support
Add CocoaPods support
2 parents 0c2635f + dbb9635 commit 0ed6c4e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

ios/VydiaRNFileUploader.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
"$(SRCROOT)/../node_modules/react-native/React/**",
205205
"$(SRCROOT)/../../react-native/React/**",
206206
"$(SRCROOT)/../Example/node_modules/react-native/React/**",
207+
"$(SRCROOT)/../../../ios/Pods/Headers/Public/**",
207208
);
208209
OTHER_LDFLAGS = "-ObjC";
209210
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -218,6 +219,7 @@
218219
"$(SRCROOT)/../node_modules/react-native/React/**",
219220
"$(SRCROOT)/../../react-native/React/**",
220221
"$(SRCROOT)/../Example/node_modules/react-native/React/**",
222+
"$(SRCROOT)/../../../ios/Pods/Headers/Public/**",
221223
);
222224
OTHER_LDFLAGS = "-ObjC";
223225
PRODUCT_NAME = "$(TARGET_NAME)";
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require "json"
2+
3+
json = File.read(File.join(__dir__, "package.json"))
4+
package = JSON.parse(json).deep_symbolize_keys
5+
6+
Pod::Spec.new do |s|
7+
s.name = package[:name]
8+
s.version = package[:version]
9+
s.license = { type: "MIT" }
10+
s.homepage = "https://github.com/Vydia/react-native-background-upload"
11+
s.authors = package[:author]
12+
s.summary = package[:description]
13+
s.source = { git: package[:repository][:url] }
14+
s.source_files = "ios/*.{h,m}"
15+
s.platform = :ios, "8.0"
16+
17+
s.dependency "React"
18+
end

0 commit comments

Comments
 (0)