Skip to content

Commit

Permalink
Merge pull request #7 from cbajapan/documentation
Browse files Browse the repository at this point in the history
Added CocoaPod support
  • Loading branch information
Cartisim authored Mar 13, 2023
2 parents 803f57d + 9ba3bac commit bffae3b
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
15 changes: 15 additions & 0 deletions FCSDKiOS/4.2.0/FCSDKiOS.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = 'FCSDKiOS'
s.version = '4.2.0'
s.summary = 'FCSDKiOS XCFramework'
s.homepage = 'https://github.com/cbajapan/swift-fcsdk-ios'

s.author = { 'Name' => 'Communication Business Avenue, Inc.' }
s.license = { :type => 'Commercial', :text => 'Copyright Communication Business Avenue, Inc. Use of this software is subject to the terms and conditions located at https://github.com/cbajapan/swift-fcsdk-ios/blob/main/License.txt'}

s.source = { :http => 'https://swift-sdk.s3.us-east-2.amazonaws.com/client_sdk/FCSDKiOS-4.2.0.xcframework.zip' }

s.platforms = { :ios => "13.0" }

s.vendored_frameworks = 'FCSDKiOS.xcframework'
end
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,34 @@ dependencies: [
]
```

You can import the SDK in your project file like so for
## CocoaPods ##

Starting in version 4.2.0 of FCSDKiOS we are supporting CocoaPods as a delivery mechanism.

In order to use our CocoaPod please follow the following instructions.

1. Navigate to your project
2. Run `pod init`
3. Run `open -a Xcode Podfile`
4. Edit the Podfile as indicated below

```
source 'https://github.com/cbajapan/swift-fcsdk-ios'
target 'CBAFusion' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for CBAFusion
pod 'FCSDKiOS', '~> 4.2.0'
pod 'WebRTC', '~> 110.0.0'
end
```
5. Close the Podfile
6. Run `pod install`
7. You now will use the **.xcworkspace** instead of **.xcodeproj** as a project source.

## Import the SDK into your project ##
Swift
```swift
import FCSDKiOS
Expand All @@ -69,4 +96,3 @@ Objective-C
```swift
@import FCSDKiOS;
```

15 changes: 15 additions & 0 deletions WebRTC/110.0.0/WebRTC.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = 'WebRTC'
s.version = '110.0.0'
s.summary = 'WebRTC XCFramework'
s.homepage = 'https://github.com/cbajapan/swift-fcsdk-ios'

s.author = { 'Name' => 'Communication Business Avenue, Inc.' }
s.license = { :type => 'Commercial', :text => 'Copyright Communication Business Avenue, Inc. Use of this software is subject to the terms and conditions located at https://github.com/cbajapan/swift-fcsdk-ios/blob/main/Open-Source%20Licenses/WebRTC.txt' }

s.source = { :http => 'https://swift-sdk.s3.us-east-2.amazonaws.com/real_time/WebRTC-m110.xcframework.zip' }

s.platforms = { :ios => "13.0" }

s.vendored_frameworks = 'WebRTC.xcframework'
end

0 comments on commit bffae3b

Please sign in to comment.