Skip to content

Commit

Permalink
Bump version to 0.6.0, minor import and git fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itaihanski committed Aug 9, 2023
1 parent 2960e2d commit d8d8864
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 88 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 0.6.0

- Beta release.
- `README.md` updated to convey all changes.

## New Features

- The new `Descope` convenience class wraps around the `DescopeSdk` and provides easier access for most cases. Alternatively `DescopeSdk` instances can still be created.
- Manage your session using the new `DescopeSessionManager`. Sessions are saved securely on Android and iOS.
- Added `http.Request` authorization extensions.
- Added `createdTime` to `UserResponse`.

## Breaking Changes

- Authentication methods no longer return a session directly, but rather the new `AuthenticationResponse`. It can be converted into a `DescopeSession` by calling `DescopeSession.fromAuthenticationResponse(authResponse)`.
- `DescopeSDK` renamed to `DescopeSdk`.
- `refreshSession()` now returns `RefreshResponse` instead of `DescopeSession`.
- `DescopeConfig` constructor changed.
- `User` renamed to `SignUpDetials`.
- `me` request now returns a `DescopeUser` instead of `MeResponse` which has been deleted.

# 0.5.1

- Fixed publish workflow
Expand Down
19 changes: 0 additions & 19 deletions ios/Runner/GeneratedPluginRegistrant.h

This file was deleted.

14 changes: 0 additions & 14 deletions ios/Runner/GeneratedPluginRegistrant.m

This file was deleted.

7 changes: 3 additions & 4 deletions lib/src/internal/routes/flow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import 'dart:io' show Platform;
import 'dart:math';

import 'package:cryptography/cryptography.dart';
import 'package:descope/src/internal/routes/shared.dart';
import 'package:descope/src/types/responses.dart';
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/services.dart';

import '/src/internal/http/descope_client.dart';
import '/src/internal/routes/shared.dart';
import '/src/sdk/routes.dart';
import '/src/types/responses.dart';

const _defaultRedirectURL = 'descopeauth://flow';

Expand Down Expand Up @@ -76,7 +76,7 @@ class Flow extends DescopeFlow {
StreamSubscription? subscription;
subscription = _eChannel.receiveBroadcastStream().listen((event) {
final str = event as String;
switch(str) {
switch (str) {
case 'canceled':
_completeWithError('Flow canceled by user');
break;
Expand All @@ -96,7 +96,6 @@ class Flow extends DescopeFlow {
_completeWithError('Authentication failed');
subscription?.cancel();
});

}

void _completeWithError(String errorString) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/types/responses.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:typed_data';

import '/descope.dart';
import '/src/session/token.dart';
import '/src/types/user.dart';

/// Returned from user authentication calls.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: descope
description: A Flutter package for working with the Descope API.
version: 0.5.1
version: 0.6.0
homepage: https://www.descope.com
repository: https://github.com/descope/descope-flutter
issue_tracker: https://github.com/descope/descope-flutter/issues
Expand Down
11 changes: 0 additions & 11 deletions windows/flutter/generated_plugin_registrant.cc

This file was deleted.

15 changes: 0 additions & 15 deletions windows/flutter/generated_plugin_registrant.h

This file was deleted.

23 changes: 0 additions & 23 deletions windows/flutter/generated_plugins.cmake

This file was deleted.

0 comments on commit d8d8864

Please sign in to comment.