File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## [ 0.1.5] - 02/03/2026
2+
3+ - Replicate upstream dependency/example updates from ` ofload/native_updater ` PR #40 .
4+ - Add ` dio: ^5.2.1+1 ` to ** example** dependencies.
5+ - Update Dio example to use ` DioException ` handling compatible with Dio 5.
6+ - Credit: original PR authored by [ @benthemobileguy ] ( https://github.com/benthemobileguy ) (Ben CHUKWUMA).
7+
18## [ 0.1.4] - 02/03/2026
29
310- Replicate upstream Dart SDK constraint bump from ` ofload/native_updater ` PR #35 .
Original file line number Diff line number Diff line change @@ -61,12 +61,9 @@ class _HomeState extends State<Home> {
6161 ));
6262
6363 try {
64- await dio.get ('/get' );
65- } on DioError catch (e) {
66- final statusCode = e.response? .statusCode;
67- if (statusCode != null ) {
68- checkVersion (statusCode);
69- }
64+ Response response = await dio.get ('/get' );
65+ } on DioException catch (e) {
66+ checkVersion (e.response! .statusCode! );
7067 }
7168 }
7269}
Original file line number Diff line number Diff line change @@ -61,10 +61,18 @@ packages:
6161 dependency: "direct main"
6262 description:
6363 name: dio
64- sha256: bf173c8bc66b776e3c2892b6ac56ac1a5ad73d21dd06d337f9fe656f63612947
64+ sha256: aff32c08f92787a557dd5c0145ac91536481831a01b4648136373cddb0e64f8c
6565 url: "https://pub.dev"
6666 source: hosted
67- version: "4.0.0"
67+ version: "5.9.2"
68+ dio_web_adapter:
69+ dependency: transitive
70+ description:
71+ name: dio_web_adapter
72+ sha256: "2f9e64323a7c3c7ef69567d5c800424a11f8337b8b228bad02524c9fb3c1f340"
73+ url: "https://pub.dev"
74+ source: hosted
75+ version: "2.1.2"
6876 fake_async:
6977 dependency: transitive
7078 description:
@@ -168,13 +176,21 @@ packages:
168176 url: "https://pub.dev"
169177 source: hosted
170178 version: "1.17.0"
179+ mime:
180+ dependency: transitive
181+ description:
182+ name: mime
183+ sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
184+ url: "https://pub.dev"
185+ source: hosted
186+ version: "2.0.0"
171187 native_updater:
172188 dependency: "direct main"
173189 description:
174190 path: ".."
175191 relative: true
176192 source: path
177- version: "0.1.4 "
193+ version: "0.1.5 "
178194 package_info_plus:
179195 dependency: transitive
180196 description:
@@ -348,6 +364,14 @@ packages:
348364 url: "https://pub.dev"
349365 source: hosted
350366 version: "15.0.2"
367+ web:
368+ dependency: transitive
369+ description:
370+ name: web
371+ sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
372+ url: "https://pub.dev"
373+ source: hosted
374+ version: "1.1.1"
351375 win32:
352376 dependency: transitive
353377 description:
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ dependencies:
1010 flutter :
1111 sdk : flutter
1212 cupertino_icons : ^1.0.3
13- dio : ^4.0.0
13+ dio : ^5.2.1+1
1414 native_updater :
1515 path : ../
1616
Original file line number Diff line number Diff line change @@ -111,11 +111,17 @@ class NativeUpdater {
111111
112112 if (_updateInfo.updateAvailability == UpdateAvailability .updateAvailable) {
113113 if (_forceUpdate == true ) {
114- InAppUpdate .performImmediateUpdate ()
115- .catchError ((e) => developer.log (e.toString ()));
114+ try {
115+ await InAppUpdate .performImmediateUpdate ();
116+ } catch (e) {
117+ developer.log (e.toString ());
118+ }
116119 } else if (_forceUpdate == false ) {
117- InAppUpdate .startFlexibleUpdate ()
118- .catchError ((e) => developer.log (e.toString ()));
120+ try {
121+ await InAppUpdate .startFlexibleUpdate ();
122+ } catch (e) {
123+ developer.log (e.toString ());
124+ }
119125 }
120126 }
121127 } on PlatformException catch (e) {
Original file line number Diff line number Diff line change 11name : native_updater
22description : Flutter package for prompting users to update with a native dialog whether using the app store version or any version at the user's discretion.
33
4- version : 0.1.4
4+ version : 0.1.5
55homepage : https://github.com/milhomem/native_updater
66
77environment :
You can’t perform that action at this time.
0 commit comments