Skip to content

Commit

Permalink
Merge pull request #2 from CleverTap/0.0.1_release
Browse files Browse the repository at this point in the history
Updated DirectCall to SignedCall
  • Loading branch information
Sonal-Kachare authored Nov 8, 2022
2 parents ac89e68 + e2008ef commit 307cf9b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Change Log
All notable changes to this project will be documented in this file.

### [Version 0.0.1](https://github.com/CleverTap/clevertap-directcall-ios-sdk/releases/tag/0.0.1) (August 17, 2022)
### [Version 0.0.1](https://github.com/CleverTap/clevertap-signedcall-ios-sdk/releases/tag/0.0.1) (November 8, 2022)

### [Version 0.0.4-alpha](https://github.com/CleverTap/clevertap-directcall-ios-sdk/releases/tag/0.0.4-alpha) (March 20, 2022)
### [Version 0.0.4-alpha](https://github.com/CleverTap/clevertap-signedcall-ios-sdk/releases/tag/0.0.4-alpha) (March 20, 2022)

- Adds suupport for arm64 simulators

### [Version 0.0.3-alpha](https://github.com/CleverTap/clevertap-directcall-ios-sdk/releases/tag/0.0.3-alpha) (March 12, 2022)
### [Version 0.0.3-alpha](https://github.com/CleverTap/clevertap-signedcall-ios-sdk/releases/tag/0.0.3-alpha) (March 12, 2022)

### [Version 0.0.2-alpha](https://github.com/CleverTap/clevertap-directcall-ios-sdk/releases/tag/0.0.2-alpha) (March 10, 2022)
### [Version 0.0.2-alpha](https://github.com/CleverTap/clevertap-signedcall-ios-sdk/releases/tag/0.0.2-alpha) (March 10, 2022)

### [Version 0.0.1-alpha](https://github.com/CleverTap/clevertap-directcall-ios-sdk/releases/tag/0.0.1-alpha) (March 9, 2022)
### [Version 0.0.1-alpha](https://github.com/CleverTap/clevertap-signedcall-ios-sdk/releases/tag/0.0.1-alpha) (March 9, 2022)


Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Pod::Spec.new do |s|
s.name = "CleverTap-DirectCall-SDK"
s.name = "CleverTap-SignedCall-SDK"
s.version = '0.0.1'
s.summary = "CleverTap-DirectCall-SDK supports 1-1 voice calls"
s.homepage = "https://github.com/CleverTap/clevertap-directcall-ios-sdk"
s.source = { :http => "https://github.com/CleverTap/clevertap-directcall-ios-sdk/releases/download/#{s.version}/DirectCallSDK.xcframework.zip" }
s.summary = "CleverTap-SignedCall-SDK supports 1-1 voice calls"
s.homepage = "https://github.com/CleverTap/clevertap-signedcall-ios-sdk"
s.source = { :http => "https://github.com/CleverTap/clevertap-signedcall-ios-sdk/releases/download/#{s.version}/SignedCallSDK.xcframework.zip" }
s.license = { :type => 'Commercial', :text => 'Copyright (c) 2022 CleverTap. All rights reserved. Use of this software is subject to the terms and conditions of the CleverTap Terms of Service' }
s.author = { "CleverTap" => "http://www.clevertap.com" }
s.module_name = 'DirectCallSDK'
s.module_name = 'SignedCallSDK'

s.platform = :ios, '10.0'
s.ios.deployment_target = '10.0'
s.swift_version = "5.0"

s.ios.frameworks = 'Foundation', 'UIKit', 'Security', 'CoreGraphics', 'CoreImage', 'CoreFoundation', 'AVFoundation', 'AudioToolbox', 'VideoToolbox'

s.vendored_frameworks = 'DirectCallSDK.xcframework'
s.vendored_frameworks = 'SignedCallSDK.xcframework'

s.ios.dependency 'Socket.IO-Client-Swift', '16.0.1'
s.ios.dependency 'CTSoftPhone', '0.0.4-alpha'
s.ios.dependency 'CTSoftPhone', '0.0.5-alpha'
s.ios.dependency 'CTSimplePing', '1.0.1'
s.ios.dependency 'CleverTap-iOS-SDK'
s.ios.dependency 'CleverTap-iOS-SDK', '4.1.4'

end
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## 👋 Introduction

CleverTap provides in-app calls via its Direct Call iOS SDK, which means you can make and receive calls in any iOS app if the device has an internet connection and Direct Call iOS SDK. This section shows you how to set up and integrate the Direct Call iOS SDK and manage calls.
CleverTap provides in-app calls via its Signed Call iOS SDK, which means you can make and receive calls in any iOS app if the device has an internet connection and Signed Call iOS SDK. This section shows you how to set up and integrate the Signed Call iOS SDK and manage calls.

To know more about the Direct Call feature, refer to [Direct Call](https://docs.clevertap.com/docs/direct-call).
To know more about the Signed Call feature, refer to [Signed Call](https://docs.clevertap.com/docs/signed-call).

Refer to [Direct Call Developer Documentation](https://developer.clevertap.com/docs/direct-call-ios-sdk) for detailed installation and integration steps.
Refer to [Signed Call Developer Documentation](https://developer.clevertap.com/docs/signed-call-ios-sdk) for detailed installation and integration steps.


## 🎉 Installation
Expand All @@ -15,17 +15,17 @@ source 'https://github.com/CleverTap/podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'
target 'YOUR_TARGET_NAME' do
pod 'CleverTap-DirectCall-SDK'
pod 'CleverTap-SignedCall-SDK'
end
```

## 🚀 Integration

Import CleverTap and Direct Call SDKs:
Import CleverTap and Signed Call SDKs:

```
import CleverTapSDK
import DirectCallSDK
import SignedCallSDK
```

In your AppDelegate file, call the registerVoIP function to generate a VoIP token and set pushRegistryDelegate:
Expand All @@ -35,22 +35,22 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
// Override point for customization after application launch.
CleverTap.setDebugLevel(CleverTapLogLevel.off.rawValue)
CleverTap.autoIntegrate()
DirectCall.isLoggingEnabled = true
DirectCall.cleverTapInstance = CleverTap.sharedInstance()
SignedCall.isLoggingEnabled = true
SignedCall.cleverTapInstance = CleverTap.sharedInstance()
guard let rootView = self.window?.rootViewController else {
return true
}
DirectCall.registerVoIP(withRootView: rootView)
SignedCall.registerVoIP(withRootView: rootView)
return true
}
```

Initialize the Direct Call iOS SDK as follows:
Initialize the Signed Call iOS SDK as follows:

```
DirectCall.initSDK(withInitOptions: initOptions) { result in
SignedCall.initSDK(withInitOptions: initOptions) { result in
switch result {
case .success(let success):
print("SDK Initialized! \(success)")
Expand All @@ -63,12 +63,12 @@ DirectCall.initSDK(withInitOptions: initOptions) { result in
}
```

Use the following code to make a Direct Call:
Use the following code to make a Signed Call:

```
let callOptions = DCCallOptionsModel(context: "contextString", cuid: "cuidString")
let callOptions = SCCallOptionsModel(context: "contextString", cuid: "cuidString")
DirectCall.call(callOptions: callOptions) { result in
SignedCall.call(callOptions: callOptions) { result in
switch result {
case .success(let success):
//Handle call initiated
Expand Down
Binary file removed Release/DirectCallSDK.xcframework.zip
Binary file not shown.
Binary file added Release/SignedCallSDK.xcframework.zip
Binary file not shown.

0 comments on commit 307cf9b

Please sign in to comment.