Skip to content

Commit

Permalink
Updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Feb 12, 2024
1 parent 9be0748 commit f74bb33
Show file tree
Hide file tree
Showing 28 changed files with 185 additions and 49 deletions.
15 changes: 15 additions & 0 deletions packages/hms_room_kit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
| hms_room_kit | [![Pub Version](https://img.shields.io/pub/v/hms_room_kit)](https://pub.dev/packages/hms_room_kit) |
| hmssdk_flutter | [![Pub Version](https://img.shields.io/pub/v/hmssdk_flutter)](https://pub.dev/packages/hmssdk_flutter) |

## 1.0.12 - 2024-02-12

| Package | Version |
| -------------- | ------------------------------------------------------------------------------------------------------ |
| hms_room_kit | 1.0.12 |
| hmssdk_flutter | 1.9.9 |

### 🚀 Added

- Introducing polls on prebuilt

Users can now create, manage, and stop polls directly from the prebuilt interface.

Updated `hmssdk_flutter` package version to 1.9.9

## 1.0.11 - 2024-02-01

| Package | Version |
Expand Down
4 changes: 2 additions & 2 deletions packages/hms_room_kit/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.11"
version: "1.0.12"
hmssdk_flutter:
dependency: transitive
description:
path: "../../hmssdk_flutter"
relative: true
source: path
version: "1.9.8"
version: "1.9.9"
http:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:tuple/tuple.dart';
import 'package:hms_room_kit/hms_room_kit.dart';
import 'package:hms_room_kit/src/meeting/meeting_store.dart';
import 'package:hms_room_kit/src/model/poll_store.dart';
import 'package:hms_room_kit/src/widgets/poll_widgets/poll_quiz_selection_widget.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/hms_cross_button.dart';
import 'package:hms_room_kit/src/widgets/poll_widgets/poll_creation_widgets/poll_form.dart';
import 'package:hms_room_kit/src/widgets/poll_widgets/poll_creation_widgets/poll_question_card.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
///Dart imports
import 'dart:math' as math;

///Package imports
import 'package:flutter/material.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

///Project imports
import 'package:hms_room_kit/src/layout_api/hms_theme_colors.dart';
import 'package:hms_room_kit/src/meeting/meeting_store.dart';
import 'package:hms_room_kit/src/model/poll_store.dart';
Expand All @@ -11,9 +16,8 @@ import 'package:hms_room_kit/src/widgets/common_widgets/hms_title_text.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/live_badge.dart';
import 'package:hms_room_kit/src/widgets/poll_widgets/voting_flow_widgets/poll_result_card.dart';
import 'package:hms_room_kit/src/widgets/poll_widgets/voting_flow_widgets/poll_vote_card.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

///[PollVoteBottomSheet] renders the voting bottom sheet for polls
class PollVoteBottomSheet extends StatefulWidget {
const PollVoteBottomSheet({super.key});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///Package imports
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
///Package imports
import 'package:flutter/cupertino.dart';
import 'package:hms_room_kit/hms_room_kit.dart';
import 'package:hms_room_kit/src/widgets/poll_widgets/poll_quiz_selection_button.dart';

///[PollQuizSelectionWidget] renders the widget for poll or quiz selection
class PollQuizSelectionWidget extends StatefulWidget {
const PollQuizSelectionWidget({super.key});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
///Package imports
import 'package:flutter/material.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';

///Project imports
import 'package:hms_room_kit/hms_room_kit.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/hms_subheading_text.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';

///[PollResultCard] renders the results for polls
class PollResultCard extends StatelessWidget {
final int questionNumber;
final int totalQuestions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
///Package imports
import 'package:flutter/material.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

///Project imports
import 'package:hms_room_kit/hms_room_kit.dart';
import 'package:hms_room_kit/src/meeting/meeting_store.dart';
import 'package:hms_room_kit/src/model/poll_store.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/hms_button.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/hms_subheading_text.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

///[PollVoteCard] renders the vote card for polls
class PollVoteCard extends StatefulWidget {
final int questionNumber;
final int totalQuestions;
Expand Down
2 changes: 1 addition & 1 deletion packages/hms_room_kit/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ packages:
path: "../hmssdk_flutter"
relative: true
source: path
version: "1.9.8"
version: "1.9.9"
http:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion packages/hms_room_kit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ dependencies:
flutter:
sdk: flutter

hmssdk_flutter: 1.9.8
hmssdk_flutter:
path: ../hmssdk_flutter
intl: ^0.18.0
permission_handler: ^11.0.0
provider: ^6.0.5
Expand Down
28 changes: 28 additions & 0 deletions packages/hmssdk_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,34 @@
| hms_room_kit | [![Pub Version](https://img.shields.io/pub/v/hms_room_kit)](https://pub.dev/packages/hms_room_kit) |
| hmssdk_flutter | [![Pub Version](https://img.shields.io/pub/v/hmssdk_flutter)](https://pub.dev/packages/hmssdk_flutter) |

# 1.9.9 - 2024-02-12

| Package | Version |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| hms_room_kit | 1.0.12 |
| hmssdk_flutter | 1.9.9 |

### ✨ Added

- Introducing Polls

- APIs for Comprehensive Poll Management:
- `quickStartPoll` to start polls
- `addSingleChoicePollResponse` & `addMultiChoicePollResponse` for adding single and multi choice response
- `stopPoll` to stop polls

- Poll Update Listeners for Real-Time Notifications:
- Use `addPollUpdateListener` to start listening to poll updates
- Use `removePollUpdateListener` to stop listening to poll updates

- Enhanced Poll Permissions within `HMSPermissions`:
- `pollRead` property ensures controlled read access to poll results and details.
- `pollWrite` property enables secure write access, allowing for poll creation and response submission.

Updated to Android SDK 2.9.0 & iOS SDK 1.5.0

**Full Changelog**: [1.9.8...1.9.9](https://github.com/100mslive/100ms-flutter/compare/1.9.8...1.9.9)

# 1.9.8 - 2024-02-01

| Package | Version |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package live.hms.hmssdk_flutter
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Context.*
import android.content.Intent
import android.content.IntentFilter
import android.media.projection.MediaProjectionManager
Expand Down Expand Up @@ -1578,11 +1577,7 @@ class HmssdkFlutterPlugin :

private fun startScreenShare(result: Result) {
androidScreenshareResult = result
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
activity.applicationContext?.registerReceiver(activityBroadcastReceiver, IntentFilter("ACTIVITY_RECEIVER"), RECEIVER_EXPORTED)
}else {
activity.applicationContext?.registerReceiver(activityBroadcastReceiver, IntentFilter("ACTIVITY_RECEIVER"))
}
activity.applicationContext?.registerReceiver(activityBroadcastReceiver, IntentFilter("ACTIVITY_RECEIVER"))
val mediaProjectionManager: MediaProjectionManager =
activity.getSystemService(
Context.MEDIA_PROJECTION_SERVICE,
Expand Down Expand Up @@ -1647,11 +1642,7 @@ class HmssdkFlutterPlugin :
) {
androidAudioShareResult = result
mode = call.argument<String>("audio_mixing_mode")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
activity.applicationContext?.registerReceiver(activityBroadcastReceiver, IntentFilter("ACTIVITY_RECEIVER"), RECEIVER_EXPORTED)
}else {
activity.applicationContext?.registerReceiver(activityBroadcastReceiver, IntentFilter("ACTIVITY_RECEIVER"),)
}
activity.applicationContext?.registerReceiver(activityBroadcastReceiver, IntentFilter("ACTIVITY_RECEIVER"))
val mediaProjectionManager: MediaProjectionManager? =
activity.getSystemService(
Context.MEDIA_PROJECTION_SERVICE,
Expand Down
9 changes: 4 additions & 5 deletions packages/hmssdk_flutter/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,10 @@ packages:
hmssdk_flutter:
dependency: transitive
description:
name: hmssdk_flutter
sha256: ff1697824b42d31cb093fd4319c8fa3ba6872b7877707630062ed3cd9cf40813
url: "https://pub.dev"
source: hosted
version: "1.9.8"
path: ".."
relative: true
source: path
version: "1.9.9"
http:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion packages/hmssdk_flutter/lib/hmssdk_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export 'src/model/hms_peer_removed_from_room.dart';
export 'src/model/hms_message_recipient.dart';
export 'src/model/hms_logs_listener.dart';
export 'src/model/hms_actions_result_listener.dart';
export 'src/model/hms_message_result_listener.dart';
export 'src/enum/hms_action_result_listener_method.dart';
export 'src/model/hms_remote_peer.dart';
export 'src/model/hms_hls_config.dart';
Expand Down
6 changes: 6 additions & 0 deletions packages/hmssdk_flutter/lib/src/enum/hms_poll_enum.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
///[HMSPollUserTrackingMode] is the mode based on which the app identifies the user
enum HMSPollUserTrackingMode { user_id, peer_id, username }

extension HMSPollUserTrackingModeValues on HMSPollUserTrackingMode {
Expand Down Expand Up @@ -30,6 +31,7 @@ extension HMSPollUserTrackingModeValues on HMSPollUserTrackingMode {
}
}

///The [HMSPollCategory] enum categorizes whether a poll or quiz is being represented.
enum HMSPollCategory { poll, quiz }

extension HMSPollCategoryValues on HMSPollCategory {
Expand All @@ -56,6 +58,7 @@ extension HMSPollCategoryValues on HMSPollCategory {
}
}

///[HMSPollQuestionType] enum categorizes the type of question
enum HMSPollQuestionType { singleChoice, multiChoice, shortAnswer, longAnswer }

extension HMSPollQuestionTypeValues on HMSPollQuestionType {
Expand Down Expand Up @@ -92,6 +95,7 @@ extension HMSPollQuestionTypeValues on HMSPollQuestionType {
}
}

///[HMSPollState] enum represents the different states a poll can be in.
enum HMSPollState { started, stopped, created }

extension HMSPollStateValues on HMSPollState {
Expand Down Expand Up @@ -122,6 +126,7 @@ extension HMSPollStateValues on HMSPollState {
}
}

///[HMSPollUpdateType] enum represents different types of updates that can occur in a poll.
enum HMSPollUpdateType { started, stopped, resultsupdated }

extension HMSPollUpdateTypeValues on HMSPollUpdateType {
Expand All @@ -140,6 +145,7 @@ extension HMSPollUpdateTypeValues on HMSPollUpdateType {
}
}

///[HMSPollListenerMethod] contains the [HMSPollListener] methods
enum HMSPollListenerMethod { onPollUpdate, unknown }

extension HMSPollListenerMethodValues on HMSPollListenerMethod {
Expand Down

This file was deleted.

6 changes: 6 additions & 0 deletions packages/hmssdk_flutter/lib/src/model/polls/hms_poll.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
///Project imports
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:hmssdk_flutter/src/model/hms_date_extension.dart';
import 'package:hmssdk_flutter/src/model/polls/hms_poll_result_display.dart';

///[HMSPoll] class represents poll
///
///This class encapsulates various properties and methods related to a poll, including its ID, title, anonymity status,
///category (poll or quiz), creator, duration, user tracking mode, question count, questions, result display settings,
///roles that can view responses, roles that can vote, start time, starter, current state, stop time, and stopper.
class HMSPoll {
final String pollId;
final String title;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
///Project imports
import 'package:hmssdk_flutter/src/enum/hms_poll_enum.dart';

///[HMSPollAnswer] class represents answer to poll questions
class HMSPollAnswer {
final String? answerText;
final Duration duration;
Expand All @@ -21,6 +23,7 @@ class HMSPollAnswer {
required this.update,
});

///Method to get HMSPollAnswer from map
factory HMSPollAnswer.fromMap(Map map) {
return HMSPollAnswer(
answerText: map['answer'],
Expand All @@ -37,6 +40,7 @@ class HMSPollAnswer {
);
}

///Method to get map from HMSPollAnswer Object
Map<String, dynamic> toMap() {
return {
'answer': answerText,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
///Project imports
import 'package:hmssdk_flutter/hmssdk_flutter.dart';

///The[HMSPollAnswerResponse] class represents the poll answer
class HMSPollAnswerResponse {
final bool correct;
final HMSException? error;
Expand Down
Loading

0 comments on commit f74bb33

Please sign in to comment.