Skip to content

Commit

Permalink
chore(release): update DyteUiKit to 0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dyte-devel committed Apr 28, 2024
1 parent b9c5565 commit a2d129a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DyteUiKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'DyteUiKit'
s.version = '0.6.7'
s.version = '0.6.8'
s.summary = 'Customise UI of your Dyte meetings'

s.description = "Customise UI of your Dyte meetings. You can use this prebuilt meeting flow or you can customise it on individual component level"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,27 +166,31 @@ extension WebinarParticipantViewControllerModel {
}

private func getOnStageSection(minimumParticpantCountToShowSearchBar: Int) -> BaseConfiguratorSection<CollectionTableConfigurator> {
let joinedParticipants = self.mobileClient.participants.active
var arrJoinedParticipants = self.mobileClient.participants.joined
var onStageParticipants = [DyteJoinedMeetingParticipant]()
for participant in arrJoinedParticipants {
if participant.stageStatus == StageStatus.onStage {
onStageParticipants.append(participant)
}
}
let sectionTwo = BaseConfiguratorSection<CollectionTableConfigurator>()

if joinedParticipants.count > 0 {
if onStageParticipants.count > 0 {
var participantCount = ""
if joinedParticipants.count > 1 {
participantCount = " (\(joinedParticipants.count))"
if onStageParticipants.count > 1 {
participantCount = " (\(onStageParticipants.count))"
}
sectionTwo.insert(TableItemConfigurator<TitleTableViewCell,TitleTableViewCellModel>(model:TitleTableViewCellModel(title: "On stage\(participantCount)")))

if joinedParticipants.count > minimumParticpantCountToShowSearchBar {
if onStageParticipants.count > minimumParticpantCountToShowSearchBar {
sectionTwo.insert(TableItemConfigurator<SearchTableViewCell,SearchTableViewCellModel>(model:SearchTableViewCellModel(placeHolder: "Search Participant")))

}

for (index, participant) in joinedParticipants.enumerated() {
for (index, participant) in onStageParticipants.enumerated() {
var showBottomSeparator = true
if index == joinedParticipants.count - 1 {
if index == onStageParticipants.count - 1 {
showBottomSeparator = false
}

func showMoreButton() -> Bool {
var canShow = false
let hostPermission = self.mobileClient.localUser.permissions.host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,12 @@ public class DyteChatViewController: DyteBaseViewController, NSTextStorageDelega
}

private func refreshPermission() {
let canSendFiles = self.meeting.localUser.permissions.chat.canSendFiles
let canSendText = self.meeting.localUser.permissions.chat.canSendText
var canSendFiles = self.meeting.localUser.permissions.chat.canSendFiles
var canSendText = self.meeting.localUser.permissions.chat.canSendText
if self.meeting.localUser.permissions.chat.canSend == false {
canSendText = false
canSendFiles = false
}
self.sendTextViewDisabledView.isHidden = canSendText
self.sendFileButtonDisabledView.isHidden = canSendFiles
messageTextView.resignFirstResponder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ public class DyteEventSelfListner {
}

extension DyteEventSelfListner: DyteStageEventListener {
public func onPresentRequestRejected(participant: DyteJoinedMeetingParticipant) {

}


public func onParticipantStartedPresenting(participant: DyteJoinedMeetingParticipant) {

Expand Down Expand Up @@ -266,8 +270,6 @@ extension DyteEventSelfListner: DyteStageEventListener {
}
}

public func onPresentRequestRejected(participant: DyteJoinedMeetingParticipant) {}

public func onPresentRequestWithdrawn(participant: DyteJoinedMeetingParticipant) {
if participant.id == self.dyteMobileClient.localUser.id {
self.selfCancelRequestToGetPermissionToJoinStageCompletion?(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ public class DyteStageActionButtonControlBar: DyteControlBarButton {
removeAlertView()
Shared.data.delegate?.webinarJoinStagePopupDidHide(click: .cancel)
self.stateMachine.handleEvent(event: .onFail)
self.selfListner.leaveWebinarStage { success in

}
}

@objc func click(button: DyteControlBarButton) {
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let package = Package(
),
.binaryTarget(
name: "DyteiOSCore",
url: "https://dyte-assets.s3.ap-south-1.amazonaws.com/sdk/ios_core/DyteiOSCore-1.34.6-bcc02b90-0426-4618-ac18-d617627b4a5c.xcframework.zip",
checksum: "e06a9cf7168ebaae4d53d46b01b8112ee80bc740fee04d8fd5cf2cfd17a39898"
url: "https://dyte-assets.s3.ap-south-1.amazonaws.com/sdk/ios_core/DyteiOSCore-1.34.4-2f1b5054-85a7-450f-8afa-41ce2ab9cce5.xcframework.zip",
checksum: "a0eb4e74239fb655ed38afc6771e1a092c01233a2ac9067aee6db9bfd1ade361"
),
.binaryTarget(
name: "AmazonIVSPlayer",
Expand Down

0 comments on commit a2d129a

Please sign in to comment.