Skip to content

Commit

Permalink
bumped package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed May 15, 2024
1 parent d8d3093 commit b9b9b83
Show file tree
Hide file tree
Showing 30 changed files with 306 additions and 343 deletions.
20 changes: 10 additions & 10 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
version: 0.1
cli:
version: 1.21.0
version: 1.22.1
plugins:
sources:
- id: trunk
ref: v1.4.5
ref: v1.5.0
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- actionlint@1.6.27
- [email protected].71
- [email protected].2
- trivy@0.50.1
- trufflehog@3.71.0
- oxipng@9.0.0
- actionlint@1.7.0
- [email protected].91
- [email protected].3
- trivy@0.51.1
- trufflehog@3.76.0
- oxipng@9.1.1
- [email protected]
- markdownlint@0.39.0
- markdownlint@0.40.0
- [email protected]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- svgo@3.2.0
- svgo@3.3.2
- [email protected]
runtimes:
enabled:
Expand Down
30 changes: 7 additions & 23 deletions packages/hms_room_kit/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ packages:
dependency: transitive
description:
name: archive
sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d"
sha256: ecf4273855368121b1caed0d10d4513c7241dfc813f7d3c8933b36622ae9b265
url: "https://pub.dev"
source: hosted
version: "3.4.10"
version: "3.5.1"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -65,14 +65,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.17.2"
convert:
dependency: transitive
description:
name: convert
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
url: "https://pub.dev"
source: hosted
version: "3.1.1"
cross_file:
dependency: transitive
description:
Expand Down Expand Up @@ -206,7 +198,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.2"
version: "1.1.3"
hmssdk_flutter:
dependency: transitive
description:
Expand Down Expand Up @@ -443,10 +435,10 @@ packages:
dependency: transitive
description:
name: pointer_interceptor
sha256: bd18321519718678d5fa98ad3a3359cbc7a31f018554eab80b73d08a7f0c165a
sha256: d0a8e660d1204eaec5bd34b34cc92174690e076d2e4f893d9d68c486a13b07c4
url: "https://pub.dev"
source: hosted
version: "0.10.1"
version: "0.10.1+1"
pointer_interceptor_ios:
dependency: transitive
description:
Expand All @@ -471,14 +463,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.10.0"
pointycastle:
dependency: transitive
description:
name: pointycastle
sha256: "70fe966348fe08c34bf929582f1d8247d9d9408130723206472b4687227e4333"
url: "https://pub.dev"
source: hosted
version: "3.8.0"
provider:
dependency: transitive
description:
Expand Down Expand Up @@ -672,10 +656,10 @@ packages:
dependency: transitive
description:
name: url_launcher_macos
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de"
url: "https://pub.dev"
source: hosted
version: "3.1.0"
version: "3.2.0"
url_launcher_platform_interface:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/hms_room_kit/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.2
version: 1.1.3

environment:
sdk: ">=2.19.6 <3.0.0"
Expand Down
28 changes: 6 additions & 22 deletions packages/hms_room_kit/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ packages:
dependency: transitive
description:
name: archive
sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d"
sha256: ecf4273855368121b1caed0d10d4513c7241dfc813f7d3c8933b36622ae9b265
url: "https://pub.dev"
source: hosted
version: "3.4.10"
version: "3.5.1"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -65,14 +65,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.17.2"
convert:
dependency: transitive
description:
name: convert
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
url: "https://pub.dev"
source: hosted
version: "3.1.1"
cross_file:
dependency: transitive
description:
Expand Down Expand Up @@ -420,10 +412,10 @@ packages:
dependency: "direct main"
description:
name: pointer_interceptor
sha256: bd18321519718678d5fa98ad3a3359cbc7a31f018554eab80b73d08a7f0c165a
sha256: d0a8e660d1204eaec5bd34b34cc92174690e076d2e4f893d9d68c486a13b07c4
url: "https://pub.dev"
source: hosted
version: "0.10.1"
version: "0.10.1+1"
pointer_interceptor_ios:
dependency: transitive
description:
Expand All @@ -448,14 +440,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.10.0"
pointycastle:
dependency: transitive
description:
name: pointycastle
sha256: "70fe966348fe08c34bf929582f1d8247d9d9408130723206472b4687227e4333"
url: "https://pub.dev"
source: hosted
version: "3.8.0"
provider:
dependency: "direct main"
description:
Expand Down Expand Up @@ -649,10 +633,10 @@ packages:
dependency: transitive
description:
name: url_launcher_macos
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de"
url: "https://pub.dev"
source: hosted
version: "3.1.0"
version: "3.2.0"
url_launcher_platform_interface:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/hms_room_kit/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hms_room_kit
description: 100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
version: 1.1.2
version: 1.1.3
homepage: https://www.100ms.live/
repository: https://github.com/100mslive/100ms-flutter
issue_tracker: https://github.com/100mslive/100ms-flutter/issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ package live.hms.hmssdk_flutter
import live.hms.hls_player.HmsHlsLayer

class HMSHLSLayerExtension {

companion object{
fun toDictionary(hmsHLSLayer :HmsHlsLayer?): HashMap<Any,Any?>?{

if(hmsHLSLayer == null){
return null;
companion object {
fun toDictionary(hmsHLSLayer: HmsHlsLayer?): HashMap<Any, Any?>? {
if (hmsHLSLayer == null) {
return null
}
val map = HashMap<Any,Any?>()
if(hmsHLSLayer == HmsHlsLayer.AUTO){
val map = HashMap<Any, Any?>()
if (hmsHLSLayer == HmsHlsLayer.AUTO) {
return map
}
(hmsHLSLayer as HmsHlsLayer.LayerInfo?)?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class HMSHLSVariantExtension {
return args
}

private fun getHMSHLSVariantToString(hmsHlsVariantType: HMSHLSPlaylistType?): String{

return when(hmsHlsVariantType){
private fun getHMSHLSVariantToString(hmsHlsVariantType: HMSHLSPlaylistType?): String {
return when (hmsHlsVariantType) {
HMSHLSPlaylistType.dvr -> {
"dvr"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package live.hms.hmssdk_flutter

import android.annotation.SuppressLint
import live.hms.hmssdk_flutter.hms_role_components.PermissionParamsExtension
import live.hms.hmssdk_flutter.hms_role_components.PublishParamsExtension
import live.hms.hmssdk_flutter.hms_role_components.SubscribeSettings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
package live.hms.hmssdk_flutter

import live.hms.video.sdk.models.HMSPeer
import live.hms.video.whiteboard.HMSWhiteboard
import live.hms.video.whiteboard.State

class HMSWhiteboardExtension {
companion object{

fun toDictionary(hmsWhiteboard: HMSWhiteboard?): HashMap<String,Any?>?{

if(hmsWhiteboard == null){
companion object {
fun toDictionary(hmsWhiteboard: HMSWhiteboard?): HashMap<String, Any?>? {
if (hmsWhiteboard == null) {
return null
}

val whiteboardMap = HashMap<String,Any?>()
val whiteboardMap = HashMap<String, Any?>()

whiteboardMap["id"] = hmsWhiteboard.id
whiteboardMap["id"] = hmsWhiteboard.id
whiteboardMap["owner"] = HMSPeerExtension.toDictionary(hmsWhiteboard.owner)
whiteboardMap["title"] = hmsWhiteboard.title
whiteboardMap["url"] = hmsWhiteboard.url
Expand All @@ -24,8 +21,8 @@ class HMSWhiteboardExtension {
return whiteboardMap
}

private fun getStateFromString(state: State): String{
return when(state){
private fun getStateFromString(state: State): String {
return when (state) {
State.Started -> "started"
State.Stopped -> "stopped"
else -> "stopped"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class HmssdkFlutterPlugin :
this.sessionStoreChannel?.setStreamHandler(this) ?: Log.e("Channel Error", "Session Store channel not found")
this.hlsPlayerChannel?.setStreamHandler(this) ?: Log.e("Channel Error", "HLS Player channel not found")
this.pollsEventChannel?.setStreamHandler(this) ?: Log.e("Channel Error", "polls events channel not found")
this.whiteboardEventChannel?.setStreamHandler(this)?:Log.e("Channel Error", "whiteboard events channel not found")
this.whiteboardEventChannel?.setStreamHandler(this) ?: Log.e("Channel Error", "whiteboard events channel not found")
this.hmsVideoFactory = HMSVideoViewFactory(this)
this.hmsHLSPlayerFactory = HMSHLSPlayerFactory(this)

Expand Down Expand Up @@ -260,7 +260,7 @@ class HmssdkFlutterPlugin :
"remove_key_change_listener" -> {
removeKeyChangeListener(call, result)
}
"start_hls_player", "stop_hls_player", "pause_hls_player", "resume_hls_player", "seek_to_live_position", "seek_forward", "seek_backward", "set_hls_player_volume", "add_hls_stats_listener", "remove_hls_stats_listener", "are_closed_captions_supported", "enable_closed_captions", "disable_closed_captions", "get_stream_properties","get_hls_layers", "set_hls_layer", "get_current_hls_layer" -> {
"start_hls_player", "stop_hls_player", "pause_hls_player", "resume_hls_player", "seek_to_live_position", "seek_forward", "seek_backward", "set_hls_player_volume", "add_hls_stats_listener", "remove_hls_stats_listener", "are_closed_captions_supported", "enable_closed_captions", "disable_closed_captions", "get_stream_properties", "get_hls_layers", "set_hls_layer", "get_current_hls_layer" -> {
HMSHLSPlayerAction.hlsPlayerAction(call, result)
}
"toggle_always_screen_on" -> {
Expand Down Expand Up @@ -302,7 +302,7 @@ class HmssdkFlutterPlugin :
}

"start_whiteboard", "stop_whiteboard", "add_whiteboard_update_listener", "remove_whiteboard_update_listener" -> {
whiteboardActions(call,result)
whiteboardActions(call, result)
}

else -> {
Expand Down Expand Up @@ -486,16 +486,16 @@ class HmssdkFlutterPlugin :

private fun whiteboardActions(
call: MethodCall,
result: Result
){
when(call.method){
result: Result,
) {
when (call.method) {
"add_whiteboard_update_listener" ->
hmssdk?.getHmsInteractivityCenter()?.setWhiteboardUpdateListener(whiteboardListener)
"remove_whiteboard_update_listener" ->
hmssdk?.getHmsInteractivityCenter()?.removeWhiteboardUpdateListener(whiteboardListener)
else ->
hmssdk?.let {
HMSWhiteboardAction.whiteboardActions(call,result,it)
HMSWhiteboardAction.whiteboardActions(call, result, it)
}
}
}
Expand Down Expand Up @@ -671,7 +671,7 @@ class HmssdkFlutterPlugin :
this.hlsPlayerSink = events
} else if (nameOfEventSink == "polls") {
this.pollsSink = events
} else if(nameOfEventSink == "whiteboard") {
} else if (nameOfEventSink == "whiteboard") {
this.whiteboardSink = events
}
}
Expand Down Expand Up @@ -1549,7 +1549,10 @@ class HmssdkFlutterPlugin :
}
}

override fun peerListUpdated(addedPeers: ArrayList<HMSPeer>?, removedPeers: ArrayList<HMSPeer>?){
override fun peerListUpdated(
addedPeers: ArrayList<HMSPeer>?,
removedPeers: ArrayList<HMSPeer>?,
) {
val args = HashMap<String, Any?>()
args["event_name"] = "on_peer_list_update"
val parameters = HashMap<String, Any?>()
Expand Down Expand Up @@ -2225,12 +2228,11 @@ class HmssdkFlutterPlugin :
}

private val whiteboardListener =
object: HMSWhiteboardUpdateListener{
object : HMSWhiteboardUpdateListener {
override fun onUpdate(hmsWhiteboardUpdate: HMSWhiteboardUpdate) {
when(hmsWhiteboardUpdate){
when (hmsWhiteboardUpdate) {
is HMSWhiteboardUpdate.Start -> {

val args = HashMap<String,Any?>()
val args = HashMap<String, Any?>()

args["event_name"] = "on_whiteboard_start"

Expand All @@ -2244,7 +2246,7 @@ class HmssdkFlutterPlugin :
}
is HMSWhiteboardUpdate.Stop ->
{
val args = HashMap<String,Any?>()
val args = HashMap<String, Any?>()

args["event_name"] = "on_whiteboard_stop"

Expand All @@ -2258,6 +2260,5 @@ class HmssdkFlutterPlugin :
}
}
}

}
}
Loading

0 comments on commit b9b9b83

Please sign in to comment.