-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dff19ab
Showing
1,289 changed files
with
102,766 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pbxproj merge=union |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Xcode | ||
*.xcuserstate | ||
*.xcworkspace | ||
!*.xcworkspace/contents.xcworkspacedata | ||
!*.xcworkspace/contents.xcworkspacedata/* | ||
|
||
# CocoaPods | ||
Pods/ | ||
*.lock | ||
|
||
# Swift Package Manager | ||
.build/ | ||
.swiftpm/ | ||
Package.resolved | ||
|
||
|
||
# Build Artifacts | ||
build/ | ||
*.app | ||
*.ipa | ||
*.dSYM | ||
|
||
|
||
# Code Coverage | ||
*.xccoverage | ||
|
||
# Dependency Managers | ||
Pods/ | ||
|
||
|
||
# xcuserdata | ||
*.xcuserdatad/ | ||
|
||
# IDE Workspace Checkpoints | ||
*.xcworkspace/ | ||
|
||
# Generated Schemes | ||
xcuserdata/ | ||
|
||
|
||
# Swift Package Manager | ||
.build/ | ||
DerivedData/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
CometChatUIKitSwift.xcodeproj/xcshareddata/xcschemes/CometChatUIKitSwift.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1600" | ||
version = "1.7"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES" | ||
buildArchitectures = "Automatic"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8466DBFE2AA7B5DD00093E91" | ||
BuildableName = "CometChatUIKitSwift.framework" | ||
BlueprintName = "CometChatUIKitSwift" | ||
ReferencedContainer = "container:CometChatUIKitSwift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
shouldAutocreateTestPlan = "YES"> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8466DBFE2AA7B5DD00093E91" | ||
BuildableName = "CometChatUIKitSwift.framework" | ||
BlueprintName = "CometChatUIKitSwift" | ||
ReferencedContainer = "container:CometChatUIKitSwift.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
78 changes: 78 additions & 0 deletions
78
CometChatUIKitSwift.xcodeproj/xcshareddata/xcschemes/SampleAppPushNotificationAPNs.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1600" | ||
version = "1.7"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES" | ||
buildArchitectures = "Automatic"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "18A541DD2CC12E1700AA055A" | ||
BuildableName = "SampleAppPushNotificationAPNs.app" | ||
BlueprintName = "SampleAppPushNotificationAPNs" | ||
ReferencedContainer = "container:CometChatUIKitSwift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
shouldAutocreateTestPlan = "YES"> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "18A541DD2CC12E1700AA055A" | ||
BuildableName = "SampleAppPushNotificationAPNs.app" | ||
BlueprintName = "SampleAppPushNotificationAPNs" | ||
ReferencedContainer = "container:CometChatUIKitSwift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "18A541DD2CC12E1700AA055A" | ||
BuildableName = "SampleAppPushNotificationAPNs.app" | ||
BlueprintName = "SampleAppPushNotificationAPNs" | ||
ReferencedContainer = "container:CometChatUIKitSwift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// | ||
// AppDelegate.swift | ||
// Demo | ||
// | ||
// Created by CometChat Inc. on 16/12/19. | ||
// Copyright © 2020 CometChat Inc. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import CometChatSDK | ||
import CometChatUIKit | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
var window: UIWindow? | ||
|
||
func randomString(length: Int) -> String { | ||
let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | ||
return String((0..<length).map{ _ in letters.randomElement()! }) | ||
} | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
self.initialization() | ||
|
||
if CometChat.getLoggedInUser() != nil { | ||
let storyboard = UIStoryboard(name: "Main", bundle: nil) | ||
let mainVC = storyboard.instantiateViewController(withIdentifier: "home") as! Home | ||
let navigationController: UINavigationController = UINavigationController(rootViewController: mainVC) | ||
navigationController.modalPresentationStyle = .fullScreen | ||
navigationController.navigationBar.prefersLargeTitles = true | ||
window?.rootViewController = navigationController | ||
window?.makeKeyAndVisible() | ||
} | ||
return true | ||
|
||
|
||
} | ||
|
||
|
||
|
||
func initialization() { | ||
if(AppConstants.APP_ID.contains("Enter") || AppConstants.APP_ID.contains("ENTER") || AppConstants.APP_ID.contains("NULL") || AppConstants.APP_ID.contains("null") || AppConstants.APP_ID.count == 0) { | ||
|
||
} else { | ||
let uikitSettings = UIKitSettings() | ||
uikitSettings.set(appID: AppConstants.APP_ID) | ||
.set(authKey: AppConstants.AUTH_KEY) | ||
.set(region: AppConstants.REGION) | ||
// .overrideAdminHost(AppConstants.API_HOST) | ||
// .overrideClientHost(AppConstants.CLIENT_HOST) | ||
.subscribePresenceForAllUsers() | ||
.build() | ||
|
||
CometChatUIKit.init(uiKitSettings: uikitSettings, result: { | ||
result in | ||
switch result { | ||
case .success(_): | ||
CometChat.setSource(resource: "uikit-v4", platform: "ios", language: "swift") | ||
break | ||
case .failure(let error): | ||
print( "Initialization Error: \(error.localizedDescription)") | ||
print( "Initialization Error Description: \(error.localizedDescription)") | ||
break | ||
} | ||
}) | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
CometChatUIKitSwift/CometChatUIKitSwift.docc/CometChatUIKitSwift.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ``CometChatUIKitSwift`` | ||
|
||
<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@--> | ||
|
||
## Overview | ||
|
||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@--> | ||
|
||
## Topics | ||
|
||
### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@--> | ||
|
||
- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// CometChatUIKitSwift.h | ||
// CometChatUIKitSwift | ||
// | ||
// Created by Admin on 06/09/23. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
//! Project version number for CometChatUIKitSwiCometChatUIKitSwiftCallsCallsRT double CometChatUIKitSwiftVersionNumber; | ||
|
||
//! Project version string for CometChatUIKitSwift. | ||
FOUNDATION_EXPORT const unsigned char CometChatUIKitSwiftVersionString[]; | ||
|
||
|
||
|
||
@interface CometChatUIKitSwiftCalls: NSObject | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// CometChatUIKitSwift.m | ||
// CometChatUIKitSwift | ||
// | ||
// Created by Admin on 08/09/23. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "CometChatUIKitSwift.h" | ||
|
||
|
||
|
||
@implementation CometChatUIKitSwiftCalls | ||
|
||
@end |
Oops, something went wrong.