Skip to content

Commit 6d79e54

Browse files
dobromirdobrevMihail Varbanovmihail-varbanovTodorBachvarovshurwit
authored
Release/v1.5.4 (#395)
* Updated CHANGELOG.md [#288]. * Added sortOrder field to content attribute [#288]. * Do not revers items when transitioning List <=> LinkedHashSet in content attributes [#288]. * Event2Query.typeFilters renamed to just types [#288]. * Added various utils for Set and LinkedHashSet [#288]. * Added EventTypeFilter list builders [#288]. * Content attribute values reworked to separate value and label [#288]. * Implemented attribute values grouping [#288]. * Introduced more EventTimeFilter types [#288]. * Added info for content attributes [#288]. * More precise work with attribute requirements based on their scope [#288]. * Added getter for multiple value groups [#288]. * Fixed EventTimeFilter.nextWeek evaluation [#288]. * Added custom data field to ContentAttributeValue, make info mutable [#288]. * Differentiate selectLabel and selectedLabel in ContentAttributeValue, use different strings for custom range event times [#288]. * Switch to POST events/load instead of GET [#288]. * Do not apply empty attributes to Events2 query [#288]. * Build more precisely debug content from sample events [#288]. * All Event2 enums renamed to contain Event2 prefix [#288]. * Fixed sample events content when no limit is specified [#288]. * Created TZDateTime extension, exposed TZDateTime JSON serialization [#288]. * Exposed modular access to NotificationService routines [#288]. * Defined RegistrationDetails and Event2Type for Event2 [#288]. * Event2: added requiresRegistration flag and label in RegistrationDetails [#288]. * Event2: added cost field [#288]. * Event2: added timezone field [#288]. * Event2: required flag renamed to attendanceRequired [#288]. * Added Event2.eventUrl [#288]. * Sync Event2 model with latest backend updates [#288]. * Lineup code [#288]. * Fixed ContentAttributes.isSelectionValid parameter type [#288]. * Acknowledged hybrid event type in Event2TypeFilter, acknowledged type search param [#288]. * Code realigned [#288]. * Added Event2.createEvent API [#288]. * Added isCalendarAdmin getter to Auth2Account [rokwire/illinois-app#3343]. * Rename maxEventCapacity to eventCapacity [#288]. * Removed multiple content support from FlexUI [#313]. * Added Auth2UserPrefs.clear utility [#313]. * Updated CHANGELOG [#313]. * Encode Event2 start and end time as seconds since epoch [#288]. * Defined AttendanceDetails for Event2 [#288]. * Added description support to Ribbon button [#288]. * Bring back attendanceRequired flag as it is still required by Create Event API [#288]. * Undo removing multiple content support from FlexUI [#313]. * Fixed Auth2UserPrefs.clear [#313]. * Updated CHANGELOG.md [#313]. * Added Event2 prefix to the names of all Event2 sub-classes [#288]. * Event2RegistrationDetails reworked according to latest requirements there [#288]. * events2 introduce registerToEvent and unregisterFromEvent * add ids to Events2Query * introduce events2.loadEvent(eventId) * Introduce survey details in event2 model [#318] * Load surveys [#318] * Update CHANGELOG.md [#318] * Fixed method unavailable warning [#288]. * Send update notification when creating a new event [#288]. * Make sure to always set time lower boundary when querying events2 [rokwire/illinois-app#3361]. * Introduce new color in styles. * update changelog * Removed unused Event2AttendanceDetails failed [rokwire/illinois-app#3374]. * Fix unregisterFromEvent * Prepare deleteEven (to be hooked when API is ready) * notify changed when successful register/unregister * Events2Query => Events2LoadQuery [#324]. * Undo Events2Query => Events2LoadQuery [#324]. * Acknowledged new response format of ${Config().calendarUrl}/events/load API [#324]. * Fixed CHANGELOG.md [#318]. * Introduce new event role - "attendance_taker" [#326] * Use lowerCamelCase naming [#326]. * Removed sample events2 [#328]. * Added back ids parameter to Event2Query [#328]. * Removed unused warnings [#328]. * Created Events2.loadEventsList helper method [#328]. * RoundedButton: center progress (fix bad progress when got weight) * Created Events2.updateEvent API [rokwire/illinois-app#3396]. * Added client parameter to Events2.loadEvents and Network.post APIs [rokwire/illinois-app#3401]. * Use "event_type" parameter when filtering by type [rokwire/calendar-building-block#160]. * Defined scopes for profile & prefs for transfer anonymous data to existing user account [#332]. * Added registrants to Event2RegistrationDetails [#288]. * Added registrants to Event2RegistrationDetails [#288]. * Created updateEventRegistration API in Events2 service [#288]. * Added attendanceTakers to Event2AttendanceDetails, fixed "is_id_scanning_enabled" case [#288]. * Added Events2updateEventAttendanceDetails API, updateEventRegistration renamed to updateEventRegistrationDetails [#288]. * Added ListUtils.notEmpty helper [#288]. * Added ListUtils.stripEmptyStrings [#288]. * Created Event2Person model [#288]. * Created Events2loadEventPeople API [#288]. * Created dummy APIs in Events2 for attendance registration and de-registration [#288]. * Reworked expected attendance APIs [#288]. * Prepare attend and unattend APIs to call the backend service [#288]. * Events2 APIs standardized and cleaned up [#288]. * Added StringUtils.isNotEmptyString helper [#288]. * Turn on useAttendShortcuts [#288]. * Rework attendance APIs to the latest updates from backend [#288]. * Added updateEventSurveyDetails API [#288]. * Added Survey.findInList helper [#288]. * Event2SurveyDetails redesigned to keep survey id [#288]. * Added extended load methods in Events2 that return error reason [rokwire/illinois-app#3447]. * [#340] Add query params to load surveys (#341) * add query params to Surveys().loadSurveys() * make function arguments match query params * remove survey ID from event survey details * add calendar event ID to survey model * add survey type strings * add survey to event survey details, add replace key survey func * fix survey preview * Removed unused warnings [#340]. * Removed survey from Event2SurveyDetails, it is not a part of the model [#340]. * Search survey by title [#340]. * Added Surverys.deleteSurvey, just a placeholder for now, no real backend API behind yet [#340]. * fix updateEventSurveyDetails to match calendar BB, allow setting survey ID when copying --------- Co-authored-by: Stephen Hurwit <[email protected]> Co-authored-by: Mihail Varbanov <[email protected]> * Enable progress for ToggleRibbonButton [rokwire/illinois-app#3453]. * Added list lookup helpers in Event2 [#288] [rokwire/illinois-app/#3453]. * Broadcast notification when an event gets updated [#288] [rokwire/illinois-app/#3453]. * add title argument to survey response card * fix updateEventSurveyDetails, scroll pager updates, fix survey response card UI issue * Do not look at attendanceTakers list when estimating if attendance details are empty or not [#344]. * Created regular and extended versions of loadEventPeople API [rokwire/illinois-app#3452]. * Added Event2RegistrationDetails.requiresRegistration helper [rokwire/illinois-app#3475]. * Updated processing of event-person/register & unregister responses from the backend [rokwire/illinois-app#3479]. * Fixed Events2.loadEventPeople API [#288]. * ContentAttributeRequirements.scope renamed to functionalScope [#349]. * ContentAttributeRequirements.scope renamed to functionalScope [#349]. * Created ListUtils.first helper [#349]. * Added scope to ContentAttributeRequirements, make content attributes requirements a list, build active requirements by scope [#349]. * Updated CHANGELOG.md [#349]. * return empty responses list on successful request if no responses were found * Fixed super_event JSON field name [#351]. * Added isSuperEvent & isRecurring getters [#351]. * Reflect to latest backend updates of Event2Grouping model [#351]. * Fixed build errors and warnings after plugin reinstallation. * Use isOnline and isInPerson getters [#351]. * Rename Event2GroupingType.recurring to recurrence [#351]. * Added grouping to Events2Query [#351]. * groups use events2 (in progress) * Renamed explore.model.time string entries (this should not reside in the plugin!) [#351]. * Undo fixing build errors and warnings after plugin reinstallation, something went wrong but not sure what exactly. * Updated CHANGELOG.md [#351]. * Prepare analysis options. * Added progress to SectionSlantHeader [#351]. * Updated CHANGELOG.md [#351]. * fix cast error event to event2 * add get all survey responses function, set readOnly argument for disabled survey text fields [#354] * Added "Multi-person" event type [#356]. * introduce storage.calendarEnabledToAutoSave * Load again content attributes JSON from content service [#359]. * Added language selection capability to Localization service [#361]. * Acknowledge the new 'source' and 'data' fields that come from Calendar BB [#363] * Update CHANGELOG.md [#363] * Added HEAD request in Network service [rokwire/illinois-app#3580]. * Added UrlUtils.fixUriAsync helper [rokwire/illinois-app#3580]. * fix repeating local notifications * Use common approach for displaying dates [#367] * Update CHANGELOG.md [#367] * Revert commit 2036971. * fix storage import capitalization in config.dart * Added published flag to event [#369]. * Use own parse URL utility [rokwire/illinois-app#3580]. * - Added Pinch Zoom support for ModalImagePane [#3305] * Groups load upcoming events * remove loadEventsById since Events2Query can pass ids. Replace with loadEventsList and pass ids. * Update Changelog * Fix error. Bring back loadEventsByIds as it is still used * allow overriding survey preview popup widget [#373] * fix content_attributes min-selection requirement validation * Add loadAdminUserGroups to groups service * load group events from calendarBB/events/lite * Added Event2Person.countInList utility [#375]. * Event2RegistrationDetails.requiresRegistration moved to extension at all level [#375]. * Added registrationOccupancy to Event2PersonsResult [#375]. * Updated CHANGELOG.md [#375]. * Build event time options in local timezone [#377] * Show am and pm in lower case. * Update CHANGELOG.md [#377] * Tidy source code [#377]. * Upgrade to connectivity_plus [rokmetro/vogue-app#45]. * Use connectivity_plus 3.0.0 [rokmetro/vogue-app#45]. * Do not lower the case for the formatted date time. * Fixed string representation for "attendance taker" event user role. [rokwire/illinois-app#3656] * Display raw attribute value as it is if it does not persist as content attribite value [#3743]. * Updated CHANGELOG for version 1.5.0 * Acknowledge the value of the new 'time' field [#381] * Update CHANGELOG.md [#381] * version: 1.5.1 * Prepare the service APIs for the new /group/events/v3 backend APIs [#384]. * Enable again updateLinkedEventMembers API [#384]. * Fixed passing Events2Query to '/group/$groupId/events/v3/load' API call [#384]. * Updated CHANGELOG.md [#384]. * version: 1.5.2 * Hooked up GET users API in Events2 service [#387]. * Removed TMP shortcut [#387]. * Updated CHANGELOG.md [#387]. * Plugin version 1.5.3 * Set default scope when user authenticates with oidc [#393] * Update CHANGELOG.md [#393] * Make Auth2AccountScope constructor const [#393]. * Apply default account scope to all login types [#393]. * Plugin version: 1.5.4 --------- Co-authored-by: Mihail Varbanov <[email protected]> Co-authored-by: Mihail Varbanov <[email protected]> Co-authored-by: Todor Bachvarov <[email protected]> Co-authored-by: Stephen Hurwit <[email protected]> Co-authored-by: Ryan Oberlander <[email protected]> Co-authored-by: Ryan Oberlander <[email protected]>
1 parent 6d247e6 commit 6d79e54

File tree

7 files changed

+28
-19
lines changed

7 files changed

+28
-19
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [1.5.4] - 2023-10-06
10+
### Changed
11+
- Set default preferences when user signs in [#393](https://github.com/rokwire/app-flutter-plugin/issues/393).
12+
913
## [1.5.3] - 2023-09-27
1014
### Changed
1115
- Acknowledged new Groups BB's API person identifier resolving [#387](https://github.com/rokwire/app-flutter-plugin/issues/387).

SECURITY.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
Patches for [ **illinois-app** ] will only be applied to the following versions:
66

77
| Version | Supported |
8-
| ------- | ------------------ |
9-
| 1.5.3 | :white_check_mark: |
10-
| < 1.5.3 | :x: |
11-
| 1.4.0 | :white_check_mark: |
12-
| 1.3.2 | :white_check_mark: |
13-
| 1.3.0 | :white_check_mark: |
14-
| 1.2.4 | :white_check_mark: |
15-
| 1.2.0 | :white_check_mark: |
16-
| 1.1.0 | :white_check_mark: |
8+
|---------| ------------------ |
9+
| 1.5.4 | :white_check_mark: |
10+
| < 1.5.4 | :x: |
11+
| 1.4.0 | :white_check_mark: |
12+
| 1.3.2 | :white_check_mark: |
13+
| 1.3.0 | :white_check_mark: |
14+
| 1.2.4 | :white_check_mark: |
15+
| 1.2.0 | :white_check_mark: |
16+
| 1.1.0 | :white_check_mark: |
1717
| < 1.1.0 | :x: |
18-
| 1.0.2 | :white_check_mark: |
18+
| 1.0.2 | :white_check_mark: |
1919

2020
## Reporting a Bug or Vulnerability
2121

example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ packages:
670670
path: ".."
671671
relative: true
672672
source: path
673-
version: "1.5.3"
673+
version: "1.5.4"
674674
shared_preferences:
675675
dependency: transitive
676676
description:

ios/rokwire_plugin.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'rokwire_plugin'
7-
s.version = '1.5.3'
7+
s.version = '1.5.4'
88
s.summary = 'Rokwire Flutter plugin'
99
s.description = <<-DESC
1010
Rokwire Flutter plugin

lib/model/auth2.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class Auth2AccountScope {
248248
final Set<Auth2UserPrefsScope>? prefs;
249249
final Set<Auth2UserProfileScope>? profile;
250250

251-
Auth2AccountScope({this.prefs, this.profile});
251+
const Auth2AccountScope({this.prefs, this.profile});
252252
}
253253

254254
////////////////////////////////

lib/service/auth2.dart

+10-5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ class Auth2 with Service, NetworkAuthProvider implements NotificationsListener {
3434

3535
static const String _deviceIdIdentifier = 'edu.illinois.rokwire.device_id';
3636

37+
static const Auth2AccountScope defaultLoginScope = const Auth2AccountScope(
38+
prefs: { Auth2UserPrefsScope.privacyLevel, Auth2UserPrefsScope.roles }
39+
);
40+
41+
3742
_OidcLogin? _oidcLogin;
3843
Auth2AccountScope? _oidcScope;
3944
bool? _oidcLink;
@@ -325,7 +330,7 @@ class Auth2 with Service, NetworkAuthProvider implements NotificationsListener {
325330

326331
// OIDC Authentication
327332

328-
Future<Auth2OidcAuthenticateResult?> authenticateWithOidc({ Auth2AccountScope? scope, bool? link}) async {
333+
Future<Auth2OidcAuthenticateResult?> authenticateWithOidc({ Auth2AccountScope? scope = defaultLoginScope, bool? link}) async {
329334
if ((Config().coreUrl != null) && (Config().appPlatformId != null) && (Config().coreOrgId != null)) {
330335

331336
if (_oidcAuthenticationCompleters == null) {
@@ -543,7 +548,7 @@ class Auth2 with Service, NetworkAuthProvider implements NotificationsListener {
543548
return Auth2PhoneRequestCodeResult.failed;
544549
}
545550

546-
Future<Auth2PhoneSendCodeResult> handlePhoneAuthentication(String? phoneNumber, String? code, { Auth2AccountScope? scope }) async {
551+
Future<Auth2PhoneSendCodeResult> handlePhoneAuthentication(String? phoneNumber, String? code, { Auth2AccountScope? scope = defaultLoginScope }) async {
547552
if ((Config().coreUrl != null) && (Config().appPlatformId != null) && (Config().coreOrgId != null) && (phoneNumber != null) && (code != null)) {
548553
String url = "${Config().coreUrl}/services/auth/login";
549554
Map<String, String> headers = {
@@ -582,7 +587,7 @@ class Auth2 with Service, NetworkAuthProvider implements NotificationsListener {
582587

583588
// Email Authentication
584589

585-
Future<Auth2EmailSignInResult> authenticateWithEmail(String? email, String? password, { Auth2AccountScope? scope }) async {
590+
Future<Auth2EmailSignInResult> authenticateWithEmail(String? email, String? password, { Auth2AccountScope? scope = defaultLoginScope }) async {
586591
if ((Config().coreUrl != null) && (Config().appPlatformId != null) && (Config().coreOrgId != null) && (email != null) && (password != null)) {
587592

588593
NotificationService().notify(notifyLoginStarted, emailLoginType);
@@ -741,7 +746,7 @@ class Auth2 with Service, NetworkAuthProvider implements NotificationsListener {
741746

742747
// Username Authentication
743748

744-
Future<Auth2UsernameSignInResult> authenticateWithUsername(String? username, String? password, { Auth2AccountScope? scope }) async {
749+
Future<Auth2UsernameSignInResult> authenticateWithUsername(String? username, String? password, { Auth2AccountScope? scope = defaultLoginScope }) async {
745750
if ((Config().coreUrl != null) && (Config().appPlatformId != null) && (Config().coreOrgId != null) && (username != null) && (password != null)) {
746751

747752
NotificationService().notify(notifyLoginStarted, usernameLoginType);
@@ -786,7 +791,7 @@ class Auth2 with Service, NetworkAuthProvider implements NotificationsListener {
786791
return Auth2UsernameSignInResult.failed;
787792
}
788793

789-
Future<Auth2UsernameSignUpResult> signUpWithUsername(String? username, String? password, { Auth2AccountScope? scope }) async {
794+
Future<Auth2UsernameSignUpResult> signUpWithUsername(String? username, String? password, { Auth2AccountScope? scope = defaultLoginScope }) async {
790795
if ((Config().coreUrl != null) && (Config().appPlatformId != null) && (Config().coreOrgId != null) && (username != null) && (password != null)) {
791796
String url = "${Config().coreUrl}/services/auth/login";
792797
Map<String, String> headers = {

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: rokwire_plugin
22
description: Rokwire Flutter plugin
3-
version: 1.5.3
3+
version: 1.5.4
44
homepage:
55

66
environment:

0 commit comments

Comments
 (0)