Skip to content

Commit 7d48b26

Browse files
committed
WIP: podspec
1 parent 4f5b8a3 commit 7d48b26

File tree

9 files changed

+40
-69
lines changed

9 files changed

+40
-69
lines changed

ios/Firestack.podspec renamed to Firestack.podspec

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
#
2-
# Be sure to run `pod spec lint Firestack.podspec' to ensure this is a
3-
# valid spec and to remove all comments including this before submitting the spec.
4-
#
5-
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6-
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7-
#
1+
require 'json'
2+
package = JSON.parse(File.read('package.json'))
3+
version = package["version"]
4+
repo = package['repository']
5+
author = package['author']
86

97
Pod::Spec.new do |s|
108

11-
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
12-
#
13-
# These will help people to find your library, and whilst it
14-
# can feel like a chore to fill in it's definitely to your advantage. The
15-
# summary should be tweet-length, and the description more in depth.
16-
#
17-
189
s.name = "Firestack"
19-
s.version = "0.0.1"
10+
s.version = version
2011
s.summary = "Firestack makes working with Firebase v3 easy"
2112

2213
# This description is used to generate tags and improve search results.
@@ -39,7 +30,7 @@ Pod::Spec.new do |s|
3930
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
4031
#
4132

42-
s.license = { :type => "MIT", :file => "../LICENSE" }
33+
s.license = { :type => "MIT", :file => "LICENSE" }
4334

4435

4536
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
@@ -52,7 +43,7 @@ Pod::Spec.new do |s|
5243
# profile URL.
5344
#
5445

55-
s.author = { "Ari Lerner" => "arilerner@mac.com" }
46+
s.author = { "Ari Lerner" => author }
5647
# Or just: s.author = "Ari Lerner"
5748
# s.authors = { "Ari Lerner" => "arilerner@mac.com" }
5849
# s.social_media_url = "http://twitter.com/Ari Lerner"
@@ -61,18 +52,12 @@ Pod::Spec.new do |s|
6152
#
6253
# If this Pod runs only on iOS or OS X, then specify the platform and
6354
# the deployment target. You can optionally include the target after the platform.
64-
#
65-
66-
s.ios.deployment_target = '9.0'
67-
s.osx.deployment_target = '10.9'
68-
s.tvos.deployment_target = '9.0'
69-
s.watchos.deployment_target = '2.0'
7055

71-
# s.platform = :ios
56+
s.platform = :ios
7257
# s.platform = :ios, "5.0"
7358

7459
# When using multiple platforms
75-
# s.ios.deployment_target = "5.0"
60+
s.ios.deployment_target = "8.0"
7661
# s.osx.deployment_target = "10.7"
7762
# s.watchos.deployment_target = "2.0"
7863
# s.tvos.deployment_target = "9.0"
@@ -84,7 +69,8 @@ Pod::Spec.new do |s|
8469
# Supports git, hg, bzr, svn and HTTP.
8570
#
8671

87-
# s.source = { :git => "http://EXAMPLE/Firestack.git", :tag => "#{s.version}" }
72+
# s.source = { :git => "https://github.com/fullstackreact/react-native-firestack.git", :tag => "#{s.version}" }
73+
s.source = { :git => repo['url'], :branch => "feature/remoteConfig" }
8874

8975

9076
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
@@ -95,12 +81,9 @@ Pod::Spec.new do |s|
9581
# Not including the public_header_files will make all headers public.
9682
#
9783

98-
s.source_files = "Firestack", "Firestack/**/*.{h,m}"
84+
# s.source_files = "ios/Firestack"#, "ios/Firestack/*.{h,m}"
9985
# s.exclude_files = "Classes/Exclude"
10086

101-
# s.public_header_files = "Classes/**/*.h"
102-
103-
10487
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
10588
#
10689
# A list of resources included with the Pod. These are copied into the
@@ -112,7 +95,10 @@ Pod::Spec.new do |s|
11295
# s.resource = "icon.png"
11396
# s.resources = "Resources/*.png"
11497

98+
s.source_files = 'ios/Firestack/**/*.{h,m}'
11599
s.preserve_paths = "**/*.js"
100+
s.dependency 'React'
101+
# s.preserve_paths = ["**/*.js", "ios/Firestack/Pods/**/*"]
116102

117103

118104
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
@@ -133,6 +119,15 @@ Pod::Spec.new do |s|
133119
s.dependency lib
134120
end
135121

122+
s.pod_target_xcconfig = {
123+
'OTHER_LDFLAGS' => '$(inherited) -ObjC -lBOZO'
124+
}
125+
126+
# s.ios.vendored_library = 'libFirestack.a'
127+
s.ios.framework = 'SystemConfiguration', 'CFNetwork', 'Security'
128+
s.ios.libraries = 'c++'
129+
130+
136131
# s.library = "iconv"
137132
# s.libraries = "iconv", "xml2"
138133

@@ -147,5 +142,4 @@ Pod::Spec.new do |s|
147142

148143
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
149144
# s.dependency "JSONKit", "~> 1.4"
150-
151145
end

ios/Firestack.xcodeproj/project.pbxproj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
34479201EEBCE83274AC8AC5 /* Pods_Firestack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D19566CC272D13C2115F15C8 /* Pods_Firestack.framework */; };
1011
D950369E1D19C77400F7094D /* Firestack.m in Sources */ = {isa = PBXBuildFile; fileRef = D950369D1D19C77400F7094D /* Firestack.m */; };
1112
D9FF4BF31D19F5FF00238046 /* Pods_Firestack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D95036B81D19C90300F7094D /* Pods_Firestack.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
1213
/* End PBXBuildFile section */
@@ -44,10 +45,10 @@
4445
134814201AA4EA6300B7C361 /* libFirestack.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libFirestack.a; sourceTree = BUILT_PRODUCTS_DIR; };
4546
612D3268D15D0E9231997758 /* Pods-Firestack.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Firestack.release.xcconfig"; path = "Pods/Target Support Files/Pods-Firestack/Pods-Firestack.release.xcconfig"; sourceTree = "<group>"; };
4647
CEE8E427185097CF7EF3A3EB /* Pods-Firestack.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Firestack.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Firestack/Pods-Firestack.debug.xcconfig"; sourceTree = "<group>"; };
48+
D19566CC272D13C2115F15C8 /* Pods_Firestack.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Firestack.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4749
D950369C1D19C77400F7094D /* Firestack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Firestack.h; path = Firestack/Firestack.h; sourceTree = "<group>"; };
4850
D950369D1D19C77400F7094D /* Firestack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Firestack.m; path = Firestack/Firestack.m; sourceTree = "<group>"; };
4951
D95036B31D19C90300F7094D /* Pods.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pods.xcodeproj; path = Pods/Pods.xcodeproj; sourceTree = "<group>"; };
50-
F73732AB87B93D6C70882AD0 /* Pods_Firestack.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Firestack.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5152
/* End PBXFileReference section */
5253

5354
/* Begin PBXFrameworksBuildPhase section */
@@ -56,6 +57,7 @@
5657
buildActionMask = 2147483647;
5758
files = (
5859
D9FF4BF31D19F5FF00238046 /* Pods_Firestack.framework in Frameworks */,
60+
34479201EEBCE83274AC8AC5 /* Pods_Firestack.framework in Frameworks */,
5961
);
6062
runOnlyForDeploymentPostprocessing = 0;
6163
};
@@ -74,7 +76,7 @@
7476
isa = PBXGroup;
7577
children = (
7678
D95036B31D19C90300F7094D /* Pods.xcodeproj */,
77-
F73732AB87B93D6C70882AD0 /* Pods_Firestack.framework */,
79+
D19566CC272D13C2115F15C8 /* Pods_Firestack.framework */,
7880
);
7981
name = Frameworks;
8082
sourceTree = "<group>";
@@ -310,7 +312,7 @@
310312
isa = XCBuildConfiguration;
311313
baseConfigurationReference = CEE8E427185097CF7EF3A3EB /* Pods-Firestack.debug.xcconfig */;
312314
buildSettings = {
313-
DYLIB_INSTALL_NAME_BASE = "@rpath";
315+
DYLIB_INSTALL_NAME_BASE = "";
314316
ENABLE_BITCODE = NO;
315317
FRAMEWORK_SEARCH_PATHS = (
316318
"$(inherited)",
@@ -326,7 +328,7 @@
326328
"$(SRCROOT)/../../node_modules/react-native/React/**",
327329
"$(SRCROOT)/../../react-native/React/**",
328330
);
329-
LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
331+
LD_DYLIB_INSTALL_NAME = "";
330332
LIBRARY_SEARCH_PATHS = "$(inherited)";
331333
MACH_O_TYPE = mh_dylib;
332334
ONLY_ACTIVE_ARCH = YES;
@@ -344,7 +346,7 @@
344346
isa = XCBuildConfiguration;
345347
baseConfigurationReference = 612D3268D15D0E9231997758 /* Pods-Firestack.release.xcconfig */;
346348
buildSettings = {
347-
DYLIB_INSTALL_NAME_BASE = "@rpath";
349+
DYLIB_INSTALL_NAME_BASE = "";
348350
ENABLE_BITCODE = NO;
349351
FRAMEWORK_SEARCH_PATHS = (
350352
"$(inherited)",
@@ -360,7 +362,7 @@
360362
"$(SRCROOT)/../../node_modules/react-native/React/**",
361363
"$(SRCROOT)/../../react-native/React/**",
362364
);
363-
LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
365+
LD_DYLIB_INSTALL_NAME = "";
364366
LIBRARY_SEARCH_PATHS = "$(inherited)";
365367
MACH_O_TYPE = mh_dylib;
366368
OTHER_LDFLAGS = (

ios/Firestack/Firestack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Copyright © 2016 Facebook. All rights reserved.
55
//
66

7-
#import <UIKit/UIKit.h>
7+
// #import <UIKit/UIKit.h>
88
#import <Firebase.h>
99
#import "RCTBridgeModule.h"
1010
#import "RCTEventDispatcher.h"

ios/Podfile

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,5 @@ platform :ios, '8.0'
44
target 'Firestack' do
55
use_frameworks!
66

7-
podspec :path => "./Firestack.podspec"
8-
project 'Firestack'
9-
10-
# [
11-
# 'Firebase',
12-
# 'Firebase/Auth',
13-
# 'Firebase/Storage',
14-
# 'Firebase/Database',
15-
# 'Firebase/RemoteConfig'
16-
# ].each do |lib|
17-
# pod lib
18-
# end
19-
20-
# post_install do |installer|
21-
# installer.pods_project.targets.each do |target|
22-
# target.build_configurations.each do |configuration|
23-
# target.build_settings(configuration.name)['LIBRARY_SEARCH_PATHS'] = [
24-
# '$(inherited)',
25-
# '$(SRCROOT)/../../React',
26-
# '$(SRCROOT)/../../node_modules/react-native/React',
27-
# '$(SRCROOT)/../../react-native/React'
28-
# ]
29-
# end
30-
# end
31-
# end
32-
7+
podspec :path => "../Firestack.podspec"
338
end

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ SPEC CHECKSUMS:
7474
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
7575
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032
7676

77-
PODFILE CHECKSUM: 5557b05e2a8c6f6ed500f3d5cfd3b27bfc513a8c
77+
PODFILE CHECKSUM: 35cbea64870a29bcbd008bc037d2f879c5571439
7878

7979
COCOAPODS: 1.0.1

ios/Pods/Manifest.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-firestack",
3-
"version": "1.1.1",
3+
"version": "0.0.2",
44
"author": "Ari Lerner <ari@fullstack.io> (https://fullstackreact.com)",
55
"description": "A firebase v3 adapter",
66
"main": "firestack",

0 commit comments

Comments
 (0)