Skip to content

Commit a455d42

Browse files
authored
feat: bump dart sdk version to 3.0 (#57)
1 parent 5172e91 commit a455d42

File tree

7 files changed

+50
-42
lines changed

7 files changed

+50
-42
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,11 @@ iOS, Android
5050

5151
- Export all the necessary classes and interfaces from `logto_core` to `logto_client` package
5252
- Update the example app to demonstrate the new organization feature
53+
54+
## 2.0.0
55+
56+
Upgrade to dart 3.0.0
57+
58+
- Fix the `UserInfo` abstract class used as mixin incompatibility issue
59+
- SDK now supports Dart ^3.0.0
60+
- < 3.0.0 users please use the previous version of the SDK

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
2-
import 'package:logto_dart_sdk/logto_client.dart';
32
import 'package:http/http.dart' as http;
3+
import 'package:logto_dart_sdk/logto_client.dart';
44

55
void main() async {
66
WidgetsFlutterBinding.ensureInitialized();

example/pubspec.lock

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: args
24-
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
24+
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "2.4.2"
27+
version: "2.5.0"
2828
asn1lib:
2929
dependency: transitive
3030
description:
3131
name: asn1lib
32-
sha256: c9c85fedbe2188b95133cbe960e16f5f448860f7133330e272edbbca5893ddc6
32+
sha256: "58082b3f0dca697204dbab0ef9ff208bfaea7767ea771076af9a343488428dda"
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.5.2"
35+
version: "1.5.3"
3636
async:
3737
dependency: transitive
3838
description:
@@ -85,10 +85,10 @@ packages:
8585
dependency: transitive
8686
description:
8787
name: coverage
88-
sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76"
88+
sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e"
8989
url: "https://pub.dev"
9090
source: hosted
91-
version: "1.7.2"
91+
version: "1.8.0"
9292
crypto:
9393
dependency: transitive
9494
description:
@@ -109,10 +109,10 @@ packages:
109109
dependency: "direct main"
110110
description:
111111
name: cupertino_icons
112-
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
112+
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
113113
url: "https://pub.dev"
114114
source: hosted
115-
version: "1.0.6"
115+
version: "1.0.8"
116116
fake_async:
117117
dependency: transitive
118118
description:
@@ -146,58 +146,58 @@ packages:
146146
dependency: "direct dev"
147147
description:
148148
name: flutter_lints
149-
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
149+
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
150150
url: "https://pub.dev"
151151
source: hosted
152-
version: "3.0.1"
152+
version: "3.0.2"
153153
flutter_secure_storage:
154154
dependency: transitive
155155
description:
156156
name: flutter_secure_storage
157-
sha256: ffdbb60130e4665d2af814a0267c481bcf522c41ae2e43caf69fa0146876d685
157+
sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0"
158158
url: "https://pub.dev"
159159
source: hosted
160-
version: "9.0.0"
160+
version: "9.2.2"
161161
flutter_secure_storage_linux:
162162
dependency: transitive
163163
description:
164164
name: flutter_secure_storage_linux
165-
sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e"
165+
sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b"
166166
url: "https://pub.dev"
167167
source: hosted
168-
version: "1.2.0"
168+
version: "1.2.1"
169169
flutter_secure_storage_macos:
170170
dependency: transitive
171171
description:
172172
name: flutter_secure_storage_macos
173-
sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c
173+
sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81"
174174
url: "https://pub.dev"
175175
source: hosted
176-
version: "3.0.1"
176+
version: "3.1.2"
177177
flutter_secure_storage_platform_interface:
178178
dependency: transitive
179179
description:
180180
name: flutter_secure_storage_platform_interface
181-
sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e"
181+
sha256: cf91ad32ce5adef6fba4d736a542baca9daf3beac4db2d04be350b87f69ac4a8
182182
url: "https://pub.dev"
183183
source: hosted
184-
version: "1.0.2"
184+
version: "1.1.2"
185185
flutter_secure_storage_web:
186186
dependency: transitive
187187
description:
188188
name: flutter_secure_storage_web
189-
sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20"
189+
sha256: f4ebff989b4f07b2656fb16b47852c0aab9fed9b4ec1c70103368337bc1886a9
190190
url: "https://pub.dev"
191191
source: hosted
192-
version: "1.1.2"
192+
version: "1.2.1"
193193
flutter_secure_storage_windows:
194194
dependency: transitive
195195
description:
196196
name: flutter_secure_storage_windows
197-
sha256: "5809c66f9dd3b4b93b0a6e2e8561539405322ee767ac2f64d084e2ab5429d108"
197+
sha256: b20b07cb5ed4ed74fc567b78a72936203f587eba460af1df11281c9326cd3709
198198
url: "https://pub.dev"
199199
source: hosted
200-
version: "3.0.0"
200+
version: "3.1.2"
201201
flutter_test:
202202
dependency: "direct dev"
203203
description: flutter
@@ -284,10 +284,10 @@ packages:
284284
dependency: transitive
285285
description:
286286
name: json_annotation
287-
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
287+
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
288288
url: "https://pub.dev"
289289
source: hosted
290-
version: "4.8.1"
290+
version: "4.9.0"
291291
lints:
292292
dependency: transitive
293293
description:
@@ -310,7 +310,7 @@ packages:
310310
path: ".."
311311
relative: true
312312
source: path
313-
version: "1.1.0"
313+
version: "1.2.0"
314314
matcher:
315315
dependency: transitive
316316
description:
@@ -379,26 +379,26 @@ packages:
379379
dependency: transitive
380380
description:
381381
name: path_provider
382-
sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b
382+
sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161
383383
url: "https://pub.dev"
384384
source: hosted
385-
version: "2.1.2"
385+
version: "2.1.3"
386386
path_provider_android:
387387
dependency: transitive
388388
description:
389389
name: path_provider_android
390-
sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668"
390+
sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d
391391
url: "https://pub.dev"
392392
source: hosted
393-
version: "2.2.2"
393+
version: "2.2.4"
394394
path_provider_foundation:
395395
dependency: transitive
396396
description:
397397
name: path_provider_foundation
398-
sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f"
398+
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
399399
url: "https://pub.dev"
400400
source: hosted
401-
version: "2.3.2"
401+
version: "2.4.0"
402402
path_provider_linux:
403403
dependency: transitive
404404
description:
@@ -443,10 +443,10 @@ packages:
443443
dependency: transitive
444444
description:
445445
name: pointycastle
446-
sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29"
446+
sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe"
447447
url: "https://pub.dev"
448448
source: hosted
449-
version: "3.7.4"
449+
version: "3.9.1"
450450
pool:
451451
dependency: transitive
452452
description:
@@ -677,5 +677,5 @@ packages:
677677
source: hosted
678678
version: "3.1.2"
679679
sdks:
680-
dart: ">=3.2.0 <4.0.0"
681-
flutter: ">=3.10.0"
680+
dart: ">=3.2.3 <4.0.0"
681+
flutter: ">=3.16.6"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1818
version: 1.0.1+1
1919

2020
environment:
21-
sdk: ">=2.17.6 <3.0.0"
21+
sdk: ">=3.0.0 <4.0.0"
2222

2323
# Dependencies specify other packages that your package needs in order to work.
2424
# To automatically upgrade your package dependencies to the latest versions

lib/src/modules/id_token.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:jose/jose.dart';
22
// ignore: implementation_imports
33
import 'package:jose/src/util.dart';
44

5-
abstract class UserInfo implements JsonObject {
5+
abstract mixin class UserInfo implements JsonObject {
66
/// Subject (the user ID) of this token.
77
String get subject => this['sub'];
88

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: logto_dart_sdk
2-
description: Logto's Flutter SDK packages
3-
version: 1.2.0
2+
description: Logto's Flutter SDK packages.
3+
version: 2.0.0
44
homepage: https://github.com/logto-io/dart
55
documentation: https://docs.logto.io/sdk/flutter/
66

77
environment:
8-
sdk: ">=2.17.6 <3.0.0"
8+
sdk: ">=3.0.0 <4.0.0"
99
flutter: ">=1.17.0"
1010

1111
dependencies:

0 commit comments

Comments
 (0)