Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#v5.13.2 - Release #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MirrorflyShareKit/ShareKitViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ import Contacts

let BASE_URL = "https://api-preprod-sandbox.mirrorfly.com/api/v1/"
let CONTAINER_ID = "group.com.mirrorfly.qa"
let LICENSE_KEY = "xxxxxxxxxxxxxxxx"
let LICENSE_KEY = "XXXXXXXXXXXXXX"
let IS_LIVE = false
let APP_NAME = "UiKit"
let ENABLE_CONTACT_SYNC = false


protocol ShareKitDelegate {
func removeData()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ func userUpdatedTheirProfile(for jid: String, profileDetails: ProfileDetails) {
}

extension SharekitShareToViewController : GroupEventsDelegate {
func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {
func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {
}

func didAddNewMemeberToGroup(groupJid: String, newMemberJid: String, addedByMemberJid: String) {
Expand Down
2 changes: 2 additions & 0 deletions MirrorflyUIkit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@
CEB66AC929AE2DC90084559C /* ShareKitShareViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareKitShareViewModel.swift; sourceTree = "<group>"; };
CEBE3BD82959CF1F004E7C49 /* FooterSectionCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FooterSectionCell.xib; sourceTree = "<group>"; };
CEC08B6127E23B0D005E48C5 /* Mirrorfly-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Mirrorfly-Info.plist"; path = "/Users/user/Desktop/UiKit/Mirrorfly-Info.plist"; sourceTree = "<absolute>"; };
CEC08B7227E23B9F005E48C5 /* MirrorflyNotificationExtention-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "MirrorflyNotificationExtention-Info.plist"; path = "/Users/user/Desktop/UiKit/MirrorflyNotificationExtention-Info.plist"; sourceTree = "<absolute>"; };
CEC08B7427E243D9005E48C5 /* MirrorflyNotificationextention.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = MirrorflyNotificationextention.entitlements; sourceTree = "<group>"; };
CEC08B7E27E24F41005E48C5 /* GoogleService-Qa-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Qa-Info.plist"; sourceTree = "<group>"; };
CEC2D48827A5AAA700AB107A /* ContactInfoViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactInfoViewModel.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2692,6 +2693,7 @@
CEC08B7427E243D9005E48C5 /* MirrorflyNotificationextention.entitlements */,
CEF43750273BCAB2008D0F39 /* NotificationExtentionQa.entitlements */,
CEF43746273BCA77008D0F39 /* NotificationService.swift */,
CEC08B7227E23B9F005E48C5 /* MirrorflyNotificationExtention-Info.plist */,
CEF43748273BCA77008D0F39 /* Info.plist */,
);
path = NotificationExtention;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<MacroExpansion>
<BuildableReference
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CEE7C59C299F6505002F22FA"
BuildableName = "MirrorflyShareKit.appex"
BlueprintName = "MirrorflyShareKit"
ReferencedContainer = "container:MirrorflyUIkit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CEC08A9C27E23B0D005E48C5"
BuildableName = "Mirrorfly.app"
BlueprintName = "Mirrorfly"
ReferencedContainer = "container:MirrorflyUIkit.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 = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CEC08A9C27E23B0D005E48C5"
BuildableName = "Mirrorfly.app"
BlueprintName = "Mirrorfly"
ReferencedContainer = "container:MirrorflyUIkit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CEC08A9C27E23B0D005E48C5"
BuildableName = "Mirrorfly.app"
BlueprintName = "Mirrorfly"
ReferencedContainer = "container:MirrorflyUIkit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
4 changes: 2 additions & 2 deletions MirrorflyUIkit/Chat/ChatViewParentController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7015,8 +7015,8 @@ extension ChatViewParentController : GroupEventsDelegate {

}

func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {

func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {
checkMemberOfGroup()
}

func didDeleteGroupLocally(groupJid: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ extension InstantScheduledMeetingViewController : GroupEventsDelegate {

}

func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {
func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {

}

Expand Down
2 changes: 1 addition & 1 deletion MirrorflyUIkit/Controllers/Delegates/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import AVFoundation
import MirrorFlySDK

let BASE_URL = "https://api-preprod-sandbox.mirrorfly.com/api/v1/"
let LICENSE_KEY = "xxxxxxxxxxxxxxxx"
let LICENSE_KEY = "XXXXXXXXXXXXXX"
let XMPP_DOMAIN = "xmpp-preprod-sandbox.mirrorfly.com"
let XMPP_PORT = 5222
let SOCKETIO_SERVER_HOST = "https://signal-preprod-sandbox.mirrorfly.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ func userUpdatedTheirProfile(for jid: String, profileDetails: ProfileDetails) {
}

extension ForwardViewController : GroupEventsDelegate {
func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {
func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {
}

func didAddNewMemeberToGroup(groupJid: String, newMemberJid: String, addedByMemberJid: String) {
Expand Down
2 changes: 1 addition & 1 deletion MirrorflyUIkit/Controllers/Image/ImageEditController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ extension ImageEditController: GroupEventsDelegate {

}

func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {
func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2512,7 +2512,7 @@ extension RecentChatViewController : GroupCreationDelegate {
}

extension RecentChatViewController : GroupEventsDelegate {
func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {
func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {
DispatchQueue.main.async { [weak self] in
self?.updateGroupInRecentChat(groupJid: groupJid)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ class GroupInfoOptions {
}
}

protocol GroupInfoOptionsDelegate: class {
protocol GroupInfoOptionsDelegate: AnyObject {
func makeGroupAdmin(groupID: String, userJid: String, userName: String)
func removeGroupAdmin(groupID: String, userJid: String, userName: String)
func removeParticipant(groupID: String, removeGroupMemberJid: String, userName: String)
func navigateToUserProfile(userJid: String)
func navigateToChat(userJid: String)
Expand Down
14 changes: 11 additions & 3 deletions MirrorflyUIkit/Group Info/Controller/GroupInfoViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,10 @@ extension GroupInfoViewController: AddParticipantsDelegate {
}

extension GroupInfoViewController: GroupInfoOptionsDelegate {
func removeGroupAdmin(groupID: String, userJid: String, userName: String) {

}


func makeGroupAdmin(groupID: String, userJid: String, userName: String) {

Expand Down Expand Up @@ -804,12 +808,16 @@ extension GroupInfoViewController: GroupInfoOptionsDelegate {
AppAlert.shared.onAlertAction = { [weak self] (result) -> Void in
let isBlocked = self?.groupInfoViewModel.isBlockedByAdmin(groupJid: self?.groupID ?? "") ?? false
if result == 0 && !isBlocked {
self?.groupInfoViewModel.removeParticipantFromGroup(groupID: groupID, removeGroupMemberJid: removeGroupMemberJid) { [weak self] success in
self?.groupInfoViewModel.removeParticipantFromGroup(groupID: groupID, removeGroupMemberJid: removeGroupMemberJid) { [weak self] success,FlyError,data in
if self?.isAdminMember == true {
if success {
self?.getGroupMembers()
self?.refreshData()
AppAlert.shared.showToast(message: removeUserStatus)
} else {
self?.getGroupMembers()
self?.refreshData()
AppAlert.shared.showToast(message: FlyError?.description ?? "")
}
} else {
self?.getGroupMembers()
Expand Down Expand Up @@ -965,8 +973,8 @@ extension GroupInfoViewController : GroupEventsDelegate {
tableView.reloadSections(IndexSet(integer: 3), with: .none)
}

func didRemoveMemberFromAdmin(groupJid: String, removedAdminMemberJid: String, removedByMemberJid: String) {
if let row = self.groupMembers.firstIndex(where: {$0.memberJid == removedAdminMemberJid}) {
func didRevokedAdminAccess(groupJid: String, revokedAdminMemberJid: String, revokedByMemberJid: String) {
if let row = self.groupMembers.firstIndex(where: {$0.memberJid == revokedAdminMemberJid}) {
groupMembers[row].isAdminMember = false
}
tableView.reloadSections(IndexSet(integer: 3), with: .none)
Expand Down
7 changes: 3 additions & 4 deletions MirrorflyUIkit/Group Info/Controller/GroupInfoViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ class GroupInfoViewModel: NSObject {
}
}


func removeParticipantFromGroup(groupID: String, removeGroupMemberJid: String,
completionHandler: @escaping (Bool) -> Void) {
completionHandler: @escaping FlyCompletionHandler) {

try! GroupManager.shared.removeParticipantFromGroup(groupId: groupID,
removeGroupMemberJid: removeGroupMemberJid) { isSuccess, error, data in
completionHandler(isSuccess)
}
removeGroupMemberJid: removeGroupMemberJid, completionHandler: completionHandler)
}

func removeGroupProfileImage(groupID: String, completionHandler: @escaping(_ isSuccess: Bool,
Expand Down
4 changes: 2 additions & 2 deletions MirrorflyUIkit/Plist/MirrorflyUIkit-info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<string>SF-UI-Display-Heavy.otf</string>
</array>
<key>googleApiKey</key>
<string>xxxx</string>
<string>XXXXXXXXXXXXXX</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
Expand Down Expand Up @@ -157,6 +157,6 @@
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>googleApiKey_Translation</key>
<string>xxxx</string>
<string>XXXXXXXXXXXXXX</string>
</dict>
</plist>
10 changes: 2 additions & 8 deletions MirrorflyUIkit/group/GroupCreationViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,10 @@ class GroupCreationViewModel : NSObject {
}

func addNewParticipantToGroup(groupID: String,
completionHandler: @escaping (Bool) -> Void) {
completionHandler: @escaping FlyCompletionHandler) {

let contactList = getParticiapntsJID()

try! GroupManager.shared.addParticipantToGroup(groupId: groupID, newUserJidList: contactList) { isSuccess, error, data in

if isSuccess {
print("SUCCESSSS")
}
completionHandler(isSuccess)
}
try! GroupManager.shared.addParticipantToGroup(groupId: groupID, newUserJidList: contactList, completionHandler: completionHandler)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,17 @@ class AddParticipantsViewController: UIViewController {
AppAlert.shared.showToast(message: "Please select minimum one Participant")
return
}
groupCreationViewModel.addNewParticipantToGroup(groupID: groupID) { [weak self] success in
groupCreationViewModel.addNewParticipantToGroup(groupID: groupID) { [weak self] success,error,data in
if success {
self?.groupCreationViewModel.initializeGroupCreationData()
self?.navigationController?.popViewController(animated: true)
self?.delegate?.updatedAddParticipants()
AppAlert.shared.showToast(message: "Members added successfully")
} else {
self?.groupCreationViewModel.initializeGroupCreationData()
self?.navigationController?.popViewController(animated: true)
self?.delegate?.updatedAddParticipants()
AppAlert.shared.showToast(message: error?.errorDescription ?? "")
}
}

Expand Down
3 changes: 2 additions & 1 deletion NotificationExtention/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ import MirrorFlySDK

let BASE_URL = "https://api-preprod-sandbox.mirrorfly.com/api/v1/"
let CONTAINER_ID = "group.com.mirrorfly.qa"
let LICENSE_KEY = "xxxxxxxxxxxxxxxx"
let LICENSE_KEY = "XXXXXXXXXXXXXX"
let IS_LIVE = false
let APP_NAME = "UiKit"
let ENABLE_CONTACT_SYNC = false


let isHideNotificationContent = false

class NotificationService: UNNotificationServiceExtension {
Expand Down
4 changes: 2 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def uikit_pods
pod 'lottie-ios'
pod 'BottomSheet', :git => 'https://github.com/joomcode/BottomSheet'

pod 'MirrorFlySDK', '5.13.0'
pod 'MirrorFlySDK', '5.13.2'

end

def notification_pods

pod 'MirrorFlySDK', '5.13.0'
pod 'MirrorFlySDK', '5.13.2'

end

Expand Down