[ios] update pod spec & template
This commit is contained in:
parent
8fe6ffee8c
commit
618b34cd4f
@ -6,7 +6,7 @@ Pod::Spec.new do |s|
|
||||
s.version = package["version"]
|
||||
s.summary = package["description"]
|
||||
s.description = <<-DESC
|
||||
Wanna integrate firebase into your app using React Native?
|
||||
Integrate firebase into your app using the React Native SDKs.
|
||||
DESC
|
||||
s.homepage = "http://invertase.io"
|
||||
s.license = package['license']
|
||||
@ -16,11 +16,4 @@ Pod::Spec.new do |s|
|
||||
s.platform = :ios, "8.0"
|
||||
s.preserve_paths = 'README.md', 'package.json', '*.js'
|
||||
s.source_files = 'ios/RNFirebase/*.{h,m}'
|
||||
s.dependency 'React'
|
||||
s.dependency 'Firebase/Auth'
|
||||
s.dependency 'Firebase/Core'
|
||||
s.dependency 'Firebase/Database'
|
||||
s.dependency 'Firebase/Messaging'
|
||||
s.dependency 'Firebase/RemoteConfig'
|
||||
s.dependency 'Firebase/Storage'
|
||||
end
|
||||
|
71
ios/Podfile
71
ios/Podfile
@ -1,71 +0,0 @@
|
||||
source 'https://github.com/CocoaPods/Specs.git'
|
||||
use_frameworks!
|
||||
platform :ios, '8.0'
|
||||
|
||||
def common_pods
|
||||
# pod 'RNFirebase', :path => '../'
|
||||
# pod 'React', :path => '../node_modules/react-native'
|
||||
[
|
||||
'Firebase',
|
||||
'Firebase/Core',
|
||||
'Firebase/Auth',
|
||||
'Firebase/Storage',
|
||||
'Firebase/Database',
|
||||
'Firebase/RemoteConfig',
|
||||
'Firebase/Messaging'
|
||||
].each do |lib|
|
||||
pod lib
|
||||
end
|
||||
end
|
||||
|
||||
def test_pods
|
||||
pod 'Quick', '~> 0.8.0'
|
||||
pod 'Nimble', '~> 3.0.0'
|
||||
end
|
||||
|
||||
def setup
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
target.build_configurations.each do |configuration|
|
||||
# configuration.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
|
||||
# configuration.build_settings['CODE_SIGNING_REQUIRED'] = "YES"
|
||||
# configuration.build_settings['CODE_SIGNING_ALLOWED'] = "YES"
|
||||
|
||||
target.build_settings(configuration.name)['OTHER_LDFLAGS'] = '$(inherited)'
|
||||
target.build_settings(configuration.name)['USER_HEADER_SEARCH_PATHS'] = "$(BUILT_PRODUCTS_DIR)"
|
||||
target.build_settings(configuration.name)['LD_DYLIB_INSTALL_NAME'] = '@rpath/${EXECUTABLE_NAME}'
|
||||
target.build_settings(configuration.name)['LD_RUNPATH_SEARCH_PATHS'] = '$(inherited) @rpath @loader_path/../Frameworks @executable_path/Frameworks'
|
||||
|
||||
target.build_settings(configuration.name)['ONLY_ACTIVE_ARCH'] = 'NO'
|
||||
target.build_settings(configuration.name)['HEADER_SEARCH_PATHS'] = [
|
||||
"$(inherited)",
|
||||
"${PODS_ROOT}/Headers/**",
|
||||
"$(SRCROOT)/../../React/**",
|
||||
"$(SRCROOT)/../../react-native/React/**",
|
||||
'$(RN_ROOT)/React/**',
|
||||
'$(PODS_ROOT)/Headers'
|
||||
].join(' ')
|
||||
target.build_settings(configuration.name)['FRAMEWORK_SEARCH_PATHS'] = [
|
||||
"$(inherited)",
|
||||
'$(PODS_ROOT)/**',
|
||||
'$(PODS_CONFIGURATION_BUILD_DIR)/**'
|
||||
].join(' ')
|
||||
target.build_settings(configuration.name)['OTHER_LDFLAGS'] = "$(inherited)"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# target 'RNFirebase' do
|
||||
# common_pods
|
||||
# project "RNFirebase.xcodeproj"
|
||||
# setup
|
||||
# end
|
||||
|
||||
target 'RNFirebaseTests' do
|
||||
use_frameworks!
|
||||
common_pods
|
||||
test_pods
|
||||
pod 'React', :path => '../node_modules/react-native'
|
||||
setup
|
||||
end
|
@ -77,8 +77,6 @@ PODS:
|
||||
- GoogleToolboxForMac/NSString+URLArguments (2.1.1)
|
||||
- GTMSessionFetcher/Core (1.1.8)
|
||||
- Protobuf (3.2.0)
|
||||
- React (0.40.0):
|
||||
- React/Core (= 0.40.0)
|
||||
- React/Core (0.40.0):
|
||||
- React/cxxreact
|
||||
- React/yoga
|
||||
@ -112,14 +110,7 @@ PODS:
|
||||
- React/RCTWebSocket (0.40.0):
|
||||
- React/Core
|
||||
- React/yoga (0.40.0)
|
||||
- RNFirebase (1.0.0-alpha13):
|
||||
- Firebase/Auth
|
||||
- Firebase/Core
|
||||
- Firebase/Database
|
||||
- Firebase/Messaging
|
||||
- Firebase/RemoteConfig
|
||||
- Firebase/Storage
|
||||
- React
|
||||
- RNFirebase (1.0.0-alpha13)
|
||||
|
||||
DEPENDENCIES:
|
||||
- Firebase/Analytics
|
||||
@ -170,7 +161,7 @@ SPEC CHECKSUMS:
|
||||
GTMSessionFetcher: 6f8d8b28b7e345549ac471071608170b31cb4977
|
||||
Protobuf: 745f59e122e5de98d4d7ef291e264a0eef80f58e
|
||||
React: 6dfb2f72edb1d74a800127ae157af038646673ce
|
||||
RNFirebase: 2e27a1e4530653630913ebdfb49de5ef8858e3b4
|
||||
RNFirebase: 46bfe1099349ac6fac8c5e57cf4f0b0f4b7938ac
|
||||
|
||||
PODFILE CHECKSUM: f8bc5de55afd159ec2faf523f1b8e0d861d0832b
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user