Skip to content

Commit ca00e87

Browse files
Merge pull request #770 from 100mslive/dev
1.2.20 release
2 parents f4060ad + 81156d8 commit ca00e87

File tree

13 files changed

+48
-46
lines changed

13 files changed

+48
-46
lines changed

app/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
}
99
android {
1010
compileSdk 34
11+
namespace = "live.hms.app2"
1112

1213
defaultConfig {
1314
applicationId "live.hms.app2"
@@ -41,13 +42,14 @@ android {
4142

4243
buildFeatures {
4344
viewBinding = true
45+
buildConfig = true
4446
}
4547
compileOptions {
46-
sourceCompatibility = "1.8"
47-
targetCompatibility = "1.8"
48+
sourceCompatibility JavaVersion.VERSION_17
49+
targetCompatibility JavaVersion.VERSION_17
4850
}
4951
kotlinOptions {
50-
jvmTarget = '1.8'
52+
jvmTarget = '17'
5153
}
5254
}
5355

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.4.2'
12+
classpath 'com.android.tools.build:gradle:8.2.0'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

1515
// Jetpack Navigation

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ kotlin.code.style=official
2020
100MS_APP_VERSION_CODE=378
2121
100MS_APP_VERSION_NAME=5.0.13
2222
hmsRoomKitGroup=live.100ms
23-
HMS_ROOM_KIT_VERSION=1.2.19
23+
HMS_ROOM_KIT_VERSION=1.2.20
2424
android.suppressUnsupportedCompileSdk=33
2525
HMS_SDK_VERSION=2.9.68
2626
# Common publishing info
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Feb 10 17:14:29 IST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

prebuilt-themes/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ android {
2727
}
2828
}
2929
compileOptions {
30-
sourceCompatibility = JavaVersion.VERSION_1_8
31-
targetCompatibility = JavaVersion.VERSION_1_8
30+
sourceCompatibility = JavaVersion.VERSION_17
31+
targetCompatibility = JavaVersion.VERSION_17
3232
}
3333
kotlinOptions {
34-
jvmTarget = "1.8"
34+
jvmTarget = "17"
3535
}
3636
}
3737

room-kit/build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,18 @@ android {
3939
}
4040
}
4141
compileOptions {
42-
sourceCompatibility JavaVersion.VERSION_1_8
43-
targetCompatibility JavaVersion.VERSION_1_8
42+
sourceCompatibility JavaVersion.VERSION_17
43+
targetCompatibility JavaVersion.VERSION_17
4444
}
4545
kotlinOptions {
46-
jvmTarget = '1.8'
46+
jvmTarget = '17'
4747
}
4848

4949
buildFeatures {
5050
viewBinding true
51-
dataBinding {
52-
enabled true
53-
}
51+
dataBinding true
5452
compose true
53+
buildConfig = true
5554
}
5655
composeOptions {
5756
kotlinCompilerExtensionVersion = "1.4.8"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fun EnableCaptionsDisplay(onEnableForEveryoneClicked : () -> Unit,
152152
text = screen.title, style = TextStyle(
153153
fontSize = 20.sp,
154154
lineHeight = 24.sp,
155-
fontFamily = FontFamily(Font(R.font.inter_bold)),
155+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
156156
fontWeight = FontWeight(600),
157157
color = Variables.OnSecondaryHigh,
158158
letterSpacing = 0.15.sp,
@@ -206,7 +206,7 @@ fun EnableButton(
206206
style = TextStyle(
207207
fontSize = 16.sp,
208208
lineHeight = 24.sp,
209-
fontFamily = FontFamily(Font(R.font.inter_bold)),
209+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
210210
fontWeight = FontWeight(600),
211211
color = Variables.OnPrimaryHigh,
212212
textAlign = TextAlign.Center,
@@ -225,7 +225,7 @@ fun DescriptionText(text : String) {
225225
style = TextStyle(
226226
fontSize = 14.sp,
227227
lineHeight = 20.sp,
228-
fontFamily = FontFamily(Font(R.font.inter_regular)),
228+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
229229
fontWeight = FontWeight(400),
230230
color = Variables.OnSurfaceMedium,
231231
letterSpacing = 0.25.sp,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ class PreviewFragment : Fragment() {
652652
if (setTextOnce.not()) {
653653
setupUI(room.localPeer?.hmsRole?.name.orEmpty())
654654
binding.nameInitials.visibility = View.VISIBLE
655-
binding.nameInitials.text = NameUtils.getInitials(room.localPeer!!.name)
655+
room.localPeer?.name?.let { binding.nameInitials.text = it }
656656
binding.editTextName.setText(
657657
room.localPeer?.name.orEmpty(), TextView.BufferType.EDITABLE
658658
)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fun SwitchComponent(
175175
) {
176176
fun getDescriptionText(): AnnotatedString {
177177
val nameStyle = SpanStyle(
178-
fontFamily = FontFamily(Font(R.font.inter_bold)),
178+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
179179
)
180180
return buildAnnotatedString {
181181

@@ -222,7 +222,7 @@ fun SwitchComponent(
222222
modifier = Modifier.weight(1f), text = "Switch Role", style = TextStyle(
223223
fontSize = 20.sp,
224224
lineHeight = 24.sp,
225-
fontFamily = FontFamily(Font(R.font.inter_bold)),
225+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
226226
fontWeight = FontWeight(600),
227227
color = Variables.OnSecondaryHigh,
228228
letterSpacing = 0.15.sp,
@@ -242,7 +242,7 @@ fun SwitchComponent(
242242
modifier = Modifier.fillMaxWidth(), text = getDescriptionText(), style = TextStyle(
243243
fontSize = 14.sp,
244244
lineHeight = 20.sp,
245-
fontFamily = FontFamily(Font(R.font.inter_regular)),
245+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
246246
fontWeight = FontWeight(400),
247247
color = Variables.OnSurfaceMedium,
248248
letterSpacing = 0.25.sp,
@@ -311,7 +311,7 @@ fun SpinnerText(it: String, modifier: Modifier) {
311311
text = it, modifier, style = TextStyle(
312312
fontSize = 16.sp,
313313
lineHeight = 24.sp,
314-
fontFamily = FontFamily(Font(R.font.inter_regular)),
314+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)),
315315
fontWeight = FontWeight(400),
316316
color = Variables.OnSurfaceHigh
317317
)
@@ -388,7 +388,7 @@ fun ChangeRoleButton(
388388
style = TextStyle(
389389
fontSize = 16.sp,
390390
lineHeight = 24.sp,
391-
fontFamily = FontFamily(Font(R.font.inter_bold)),
391+
fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)),
392392
fontWeight = FontWeight(600),
393393
color = Variables.OnPrimaryHigh,
394394
textAlign = TextAlign.Center,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ data class TranscriptViewHolder(
152152
}
153153
fun getSubtitle() : AnnotatedString {
154154
return buildAnnotatedString {
155-
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(R.font.inter_bold)))) {
155+
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_bold)))) {
156156
append(peerName)
157157
append(": ")
158158
}
159-
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(R.font.inter_regular)))) {
159+
withStyle(style = SpanStyle(fontFamily = FontFamily(Font(live.hms.prebuilt_themes.R.font.inter_regular)))) {
160160
append(text)
161161
}
162162
}

0 commit comments

Comments
 (0)