Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jitvarpatil committed Jan 7, 2025
0 parents commit dff19ab
Show file tree
Hide file tree
Showing 1,289 changed files with 102,766 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj merge=union
44 changes: 44 additions & 0 deletions .gitignore
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/

4,068 changes: 4,068 additions & 0 deletions CometChatUIKitSwift.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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>
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>
69 changes: 69 additions & 0 deletions CometChatUIKitSwift/AppDelegate.swift
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
}
})
}
}
}
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@-->
20 changes: 20 additions & 0 deletions CometChatUIKitSwift/CometChatUIKitSwift.h
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
15 changes: 15 additions & 0 deletions CometChatUIKitSwift/CometChatUIKitSwift.m
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
Loading

0 comments on commit dff19ab

Please sign in to comment.