Skip to content

Commit 24ebcfa

Browse files
Merge pull request #742 from 100mslive/dev
Dev to release
2 parents 14ab265 + b3007e0 commit 24ebcfa

16 files changed

+515
-44
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dependencies {
8484
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
8585

8686
// Get Permissions easily
87-
implementation 'pub.devrel:easypermissions:1.1.3'
87+
implementation 'pub.devrel:easypermissions:3.0.0'
8888

8989
// Firebase Crashlytics
9090
// Import the BoM for the Firebase platform

gradle.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
1515
# Android operating system, and which are packaged with your app"s APK
1616
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1717
android.useAndroidX=true
18-
# Automatically convert third-party libraries to use AndroidX
19-
android.enableJetifier=true
2018
# Kotlin code style for this project: "official" or "obsolete":
2119
kotlin.code.style=official
2220
100MS_APP_VERSION_CODE=376
2321
100MS_APP_VERSION_NAME=5.0.10
2422
hmsRoomKitGroup=live.100ms
25-
HMS_ROOM_KIT_VERSION=1.2.15
23+
HMS_ROOM_KIT_VERSION=1.2.16
2624
android.suppressUnsupportedCompileSdk=33

room-kit/src/main/java/live/hms/roomkit/ui/meeting/ClosedCaptionsForEveryone.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package live.hms.roomkit.ui.meeting
22

3-
import android.content.DialogInterface
43
import android.os.Bundle
54
import android.view.LayoutInflater
65
import android.view.View
@@ -45,7 +44,7 @@ import live.hms.video.sdk.models.TranscriptionsMode
4544
class ClosedCaptionsForEveryone : BottomSheetDialogFragment() {
4645

4746
companion object {
48-
val TAG = "ClosedCaptionsForEveryoneBottomFragment"
47+
const val TAG = "ClosedCaptionsForEveryoneBottomFragment"
4948
}
5049

5150

@@ -153,7 +152,7 @@ fun EnableCaptionsDisplay(onEnableForEveryoneClicked : () -> Unit,
153152
text = screen.title, style = TextStyle(
154153
fontSize = 20.sp,
155154
lineHeight = 24.sp,
156-
fontFamily = FontFamily(Font(live.hms.roomkit.R.font.inter_bold)),
155+
fontFamily = FontFamily(Font(R.font.inter_bold)),
157156
fontWeight = FontWeight(600),
158157
color = Variables.OnSecondaryHigh,
159158
letterSpacing = 0.15.sp,
@@ -164,7 +163,7 @@ fun EnableCaptionsDisplay(onEnableForEveryoneClicked : () -> Unit,
164163
.padding(1.dp)
165164
.size(24.dp)
166165
.clickable { close() },
167-
painter = painterResource(id = live.hms.roomkit.R.drawable.outline_cross),
166+
painter = painterResource(id = R.drawable.outline_cross),
168167
contentDescription = "Close",
169168
contentScale = ContentScale.None
170169
)
@@ -203,11 +202,11 @@ fun EnableButton(
203202
Text(
204203
modifier = Modifier.clickable { onEnableClicked.invoke() },
205204
text = text,
206-
// Desktop/Button-Semibold-16px
205+
207206
style = TextStyle(
208207
fontSize = 16.sp,
209208
lineHeight = 24.sp,
210-
fontFamily = FontFamily(Font(live.hms.roomkit.R.font.inter_bold)),
209+
fontFamily = FontFamily(Font(R.font.inter_bold)),
211210
fontWeight = FontWeight(600),
212211
color = Variables.OnPrimaryHigh,
213212
textAlign = TextAlign.Center,
@@ -226,7 +225,7 @@ fun DescriptionText(text : String) {
226225
style = TextStyle(
227226
fontSize = 14.sp,
228227
lineHeight = 20.sp,
229-
fontFamily = FontFamily(Font(live.hms.roomkit.R.font.inter_regular)),
228+
fontFamily = FontFamily(Font(R.font.inter_regular)),
230229
fontWeight = FontWeight(400),
231230
color = Variables.OnSurfaceMedium,
232231
letterSpacing = 0.25.sp,

room-kit/src/main/java/live/hms/roomkit/ui/meeting/MeetingViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,5 +2808,6 @@ class MeetingViewModel(
28082808
val hlsStreamEndedFlow : Flow<StreamState> = _hlsStreamEndedFlow
28092809

28102810
fun ncPreviewNoiseCancellationInLayout() = prebuiltInfoContainer.ncInPreviewState()
2811+
fun getAllWhitelistedRolesForChangeRole() = prebuiltInfoContainer.getAllWhitelistedRolesForChangeRole()
28112812
}
28122813

room-kit/src/main/java/live/hms/roomkit/ui/meeting/MessageOptionsBottomSheet.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class MessageOptionsBottomSheet(private val chatMessage: ChatMessage,
4646
}
4747

4848
private var binding by viewLifecycle<BottomSheetMessageOptionsBinding>()
49-
// private val chatMessage: ChatMessage? = arguments?.getParcelable(CHAT_MESSAGE_OPTIONS_EXTRA) as ChatMessage?
5049

5150
private val meetingViewModel: MeetingViewModel by activityViewModels {
5251
MeetingViewModelFactory(

room-kit/src/main/java/live/hms/roomkit/ui/meeting/PrebuiltInfoContainer.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ class PrebuiltInfoContainer(private val hmssdk: HMSSDK) {
180180
return available
181181
}
182182

183+
fun getAllWhitelistedRolesForChangeRole() = roleMap[localPeer.hmsRole.name]?.screens?.conferencing
184+
?.default?.elements?.chat?.rolesWhiteList ?: emptyList()
185+
183186
}
184187

185188
data class AllowedToMessageParticipants(

0 commit comments

Comments
 (0)