Skip to content

Commit

Permalink
Merge pull request #770 from 100mslive/dev
Browse files Browse the repository at this point in the history
1.2.20 release
  • Loading branch information
PratimMallick authored Oct 16, 2024
2 parents f4060ad + 81156d8 commit ca00e87
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 46 deletions.
8 changes: 5 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
}
android {
compileSdk 34
namespace = "live.hms.app2"

defaultConfig {
applicationId "live.hms.app2"
Expand Down Expand Up @@ -41,13 +42,14 @@ android {

buildFeatures {
viewBinding = true
buildConfig = true
}
compileOptions {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// Jetpack Navigation
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kotlin.code.style=official
100MS_APP_VERSION_CODE=378
100MS_APP_VERSION_NAME=5.0.13
hmsRoomKitGroup=live.100ms
HMS_ROOM_KIT_VERSION=1.2.19
HMS_ROOM_KIT_VERSION=1.2.20
android.suppressUnsupportedCompileSdk=33
HMS_SDK_VERSION=2.9.68
# Common publishing info
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Feb 10 17:14:29 IST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
6 changes: 3 additions & 3 deletions prebuilt-themes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
}

Expand Down
11 changes: 5 additions & 6 deletions room-kit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,18 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}

buildFeatures {
viewBinding true
dataBinding {
enabled true
}
dataBinding true
compose true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fun EnableCaptionsDisplay(onEnableForEveryoneClicked : () -> Unit,
text = screen.title, style = TextStyle(
fontSize = 20.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
fontWeight = FontWeight(600),
color = Variables.OnSecondaryHigh,
letterSpacing = 0.15.sp,
Expand Down Expand Up @@ -206,7 +206,7 @@ fun EnableButton(
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
fontWeight = FontWeight(600),
color = Variables.OnPrimaryHigh,
textAlign = TextAlign.Center,
Expand All @@ -225,7 +225,7 @@ fun DescriptionText(text : String) {
style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = Variables.OnSurfaceMedium,
letterSpacing = 0.25.sp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class PreviewFragment : Fragment() {
if (setTextOnce.not()) {
setupUI(room.localPeer?.hmsRole?.name.orEmpty())
binding.nameInitials.visibility = View.VISIBLE
binding.nameInitials.text = NameUtils.getInitials(room.localPeer!!.name)
room.localPeer?.name?.let { binding.nameInitials.text = it }
binding.editTextName.setText(
room.localPeer?.name.orEmpty(), TextView.BufferType.EDITABLE
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ fun SwitchComponent(
) {
fun getDescriptionText(): AnnotatedString {
val nameStyle = SpanStyle(
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
)
return buildAnnotatedString {

Expand Down Expand Up @@ -222,7 +222,7 @@ fun SwitchComponent(
modifier = Modifier.weight(1f), text = "Switch Role", style = TextStyle(
fontSize = 20.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
fontWeight = FontWeight(600),
color = Variables.OnSecondaryHigh,
letterSpacing = 0.15.sp,
Expand All @@ -242,7 +242,7 @@ fun SwitchComponent(
modifier = Modifier.fillMaxWidth(), text = getDescriptionText(), style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = Variables.OnSurfaceMedium,
letterSpacing = 0.25.sp,
Expand Down Expand Up @@ -311,7 +311,7 @@ fun SpinnerText(it: String, modifier: Modifier) {
text = it, modifier, style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = Variables.OnSurfaceHigh
)
Expand Down Expand Up @@ -388,7 +388,7 @@ fun ChangeRoleButton(
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
fontWeight = FontWeight(600),
color = Variables.OnPrimaryHigh,
textAlign = TextAlign.Center,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ data class TranscriptViewHolder(
}
fun getSubtitle() : AnnotatedString {
return buildAnnotatedString {
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(R.font.inter_bold)))) {
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)))) {
append(peerName)
append(": ")
}
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(R.font.inter_regular)))) {
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)))) {
append(text)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ fun ChatHeader(
"About Session",
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_semibold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_semibold)),
fontWeight = FontWeight(600),
color = OnSurfaceHigh,
letterSpacing = 0.15.sp,
Expand Down Expand Up @@ -613,7 +613,7 @@ fun ChatHeader(

GlideImage(
model = logoUrl,
loading = if (LocalInspectionMode.current) placeholder(R.drawable.exo_edit_mode_logo) else null,
loading = if (LocalInspectionMode.current) placeholder(androidx.media3.ui.R.drawable.exo_edit_mode_logo) else null,
contentDescription = "Logo"
)
Column {
Expand All @@ -622,7 +622,7 @@ fun ChatHeader(
it, style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(600),
color = Variables.OnSecondaryHigh,
letterSpacing = 0.1.sp,
Expand All @@ -633,13 +633,13 @@ fun ChatHeader(
Row(horizontalArrangement = Arrangement.spacedBy(12.dp, Alignment.Start)) {
val textStyle = SpanStyle(
fontSize = 12.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = Variables.OnSurfaceMedium,
letterSpacing = 0.4.sp,
)
val moreStyle = SpanStyle(
fontFamily = FontFamily(Font(R.font.inter_semibold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_semibold)),
fontSize = 12.sp,
fontWeight = FontWeight(600),
color = OnSurfaceHigh,
Expand Down Expand Up @@ -677,7 +677,7 @@ fun ChatHeader(
text = description,
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = Variables.OnSurfaceMedium,
)
Expand Down Expand Up @@ -757,7 +757,7 @@ fun ChatMessage(name: String, message: String) {
name, style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(600),
color = OnSurfaceHigh,
letterSpacing = 0.1.sp,
Expand All @@ -767,7 +767,7 @@ fun ChatMessage(name: String, message: String) {
message, style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = OnSurfaceHigh,
letterSpacing = 0.25.sp,
Expand Down Expand Up @@ -834,7 +834,7 @@ fun GoLiveText(isLive : Boolean, behindBy: String, goLiveClicked : () -> Unit) {
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(600),
color = if(isLive) OnSurfaceHigh else Variables.OnSurfaceMedium,
letterSpacing = 0.5.sp,
Expand All @@ -849,7 +849,7 @@ fun GoLiveText(isLive : Boolean, behindBy: String, goLiveClicked : () -> Unit) {
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(600),
color = if(isLive) OnSurfaceHigh else Variables.OnSurfaceMedium,
letterSpacing = 0.5.sp,
Expand Down Expand Up @@ -893,6 +893,7 @@ fun SettingsButton(
// }
//}

@SuppressLint("UnusedBoxWithConstraintsScope")
@OptIn(ExperimentalComposeUiApi::class)
@UnstableApi
@Composable
Expand Down Expand Up @@ -1013,7 +1014,7 @@ fun HlsComposable(
style = TextStyle(
fontSize = 11.sp,
lineHeight = 13.sp,
fontFamily = FontFamily(Font(R.font.inter_semibold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_semibold)),
color = Color.White,
letterSpacing = 0.5.sp,
)
Expand Down Expand Up @@ -1426,7 +1427,7 @@ fun HlsChatIcon(chatEnabled: Boolean, unreadMessages :Int?, buttonClicked: () ->
lineHeight = 16.sp,
color = OnSurfaceHigh,
fontSize = 10.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(600),
textAlign = TextAlign.Center,
)
Expand Down
6 changes: 3 additions & 3 deletions vb-prebuilt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}

buildFeatures {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fun VirtualBackgroundOptions(
text = "Effects", style = TextStyle(
fontSize = 14.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(600),
color = Variables.OnSecondaryHigh,
letterSpacing = 0.15.sp,
Expand Down Expand Up @@ -187,7 +187,7 @@ fun VirtualBackgroundOptions(
style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
fontWeight = FontWeight(600),
color = Variables.OnSurfaceHigh,
letterSpacing = 0.1.sp,
Expand Down Expand Up @@ -276,7 +276,7 @@ fun BottomSheetHeader(close : () -> Unit,) {
text = "Virtual Background", style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = FontFamily(Font(R.font.inter_bold)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
fontWeight = FontWeight(600),
color = Variables.OnSecondaryHigh,
letterSpacing = 0.15.sp,
Expand All @@ -287,7 +287,7 @@ fun BottomSheetHeader(close : () -> Unit,) {
.padding(1.dp)
.size(24.dp)
.clickable { close() },
painter = painterResource(id = R.drawable.outline_cross),
painter = painterResource(id = live.hms.prebuilt_themes.R.drawable.outline_cross),
contentDescription = "Close",
contentScale = ContentScale.None
)
Expand Down Expand Up @@ -325,7 +325,7 @@ fun VbOptionButton(@DrawableRes drawable : Int,
style = TextStyle(
fontSize = 12.sp,
lineHeight = 16.sp,
fontFamily = FontFamily(Font(R.font.inter_regular)),
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
fontWeight = FontWeight(400),
color = Variables.OnSurfaceMedium,
letterSpacing = 0.4.sp,
Expand Down

0 comments on commit ca00e87

Please sign in to comment.