From 7e290784548cbf4e17e9be4e14083907db4869e0 Mon Sep 17 00:00:00 2001 From: w3ggy Date: Mon, 12 May 2025 16:05:32 +0400 Subject: [PATCH] Release 4.5.0 --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- CHANGELOG.md | 5 + example/android/.gitignore | 1 + example/android/app/build.gradle | 29 +- example/android/build.gradle | 17 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/android/settings.gradle | 30 +- example/lib/app.dart | 62 ++-- example/pubspec.lock | 269 +++++++-------- pubspec.lock | 287 ++++++++-------- pubspec.yaml | 16 +- test/api_client_test.mocks.dart | 321 +++++++++++------- 13 files changed, 559 insertions(+), 484 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d9fdf8b..e3769ad 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: uses: flutter-actions/setup-flutter@v2 with: channel: stable - version: 3.24.3 + version: 3.29.3 - name: Install dependencies run: flutter pub get diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ae9a6d9..e291025 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: uses: flutter-actions/setup-flutter@v2 with: channel: stable - version: 3.24.3 + version: 3.29.3 - name: Analyze run: flutter analyze diff --git a/CHANGELOG.md b/CHANGELOG.md index 1de79b6..97b814b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## [4.5.0] + +- Bump dependencies +- Upgrade android example project to the latest version + ## [4.4.0] - Added opportunity to use `body` with `GET` requests diff --git a/example/android/.gitignore b/example/android/.gitignore index 694936d..c7abb89 100644 --- a/example/android/.gitignore +++ b/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +/app/.cxx/ # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 8eedbdc..ce09f8e 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,22 +22,20 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { - compileSdkVersion 33 + compileSdkVersion 36 sourceSets { main.java.srcDirs += 'src/main/kotlin' } + namespace = "org.dashkit.network.example" + defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "org.dashkit.network.example" - minSdkVersion 18 - targetSdkVersion 33 + minSdkVersion flutter.minSdkVersion + targetSdkVersion 36 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } @@ -48,6 +47,11 @@ android { signingConfig signingConfigs.debug } } + + compileOptions { + sourceCompatibility = "21" + targetCompatibility = "21" + } } flutter { @@ -55,5 +59,4 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } diff --git a/example/android/build.gradle b/example/android/build.gradle index 3648aa9..1627dad 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.5.30' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.0.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() @@ -24,6 +11,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { - delete rootProject.buildDir +tasks.register("clean", Delete) { + delete rootProject.layout.buildDirectory } diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index b8793d3..8f3239a 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 44e62bc..311e0e8 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" // apply true + id "com.android.application" version "8.10.0" apply false + id "org.jetbrains.kotlin.android" version "2.1.20" apply false +} + +include ":app" \ No newline at end of file diff --git a/example/lib/app.dart b/example/lib/app.dart index 615c1e6..820131c 100644 --- a/example/lib/app.dart +++ b/example/lib/app.dart @@ -62,36 +62,38 @@ class _MyHomePageState extends State { appBar: AppBar( title: Text(widget.title), ), - body: LayoutBuilder(builder: (context, constraints) { - return isLoading - ? _getProgressWidget() - : Column( - mainAxisSize: MainAxisSize.min, - children: [ - SizedBox( - height: constraints.maxHeight * 0.8, - child: getUsersWidget(users), - ), - const Spacer(), - MaterialButton( - padding: const EdgeInsets.all(10), - color: Colors.blueAccent, - onPressed: _loadNextPage, - minWidth: constraints.maxWidth * 0.9, - child: const Text('Get next users'), - ), - const SizedBox(height: 8), - MaterialButton( - padding: const EdgeInsets.all(10), - color: Colors.red, - onPressed: _loadErrorPage, - minWidth: constraints.maxWidth * 0.9, - child: const Text('Error request'), - ), - const Spacer(), - ], - ); - }), + body: SafeArea( + child: LayoutBuilder(builder: (context, constraints) { + return isLoading + ? _getProgressWidget() + : Column( + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox( + height: constraints.maxHeight * 0.8, + child: getUsersWidget(users), + ), + const Spacer(), + MaterialButton( + padding: const EdgeInsets.all(10), + color: Colors.blueAccent, + onPressed: _loadNextPage, + minWidth: constraints.maxWidth * 0.9, + child: const Text('Get next users'), + ), + const SizedBox(height: 8), + MaterialButton( + padding: const EdgeInsets.all(10), + color: Colors.red, + onPressed: _loadErrorPage, + minWidth: constraints.maxWidth * 0.9, + child: const Text('Error request'), + ), + const Spacer(), + ], + ); + }), + ), floatingActionButton: FloatingActionButton( onPressed: _loadUserList, tooltip: 'Load a user list', diff --git a/example/pubspec.lock b/example/pubspec.lock index 91d46c4..4f34244 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,95 +5,90 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + sha256: e55636ed79578b9abca5fecf9437947798f5ef7456308b5cb85720b793eac92f url: "https://pub.dev" source: hosted - version: "72.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.2" + version: "82.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + sha256: "904ae5bb474d32c38fb9482e2d925d5454cda04ddd0e55d2e6826bc72f6ba8c0" url: "https://pub.dev" source: hosted - version: "6.7.0" + version: "7.4.5" args: dependency: transitive description: name: args - sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 url: "https://pub.dev" source: hosted - version: "2.6.0" + version: "2.7.0" async: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63 url: "https://pub.dev" source: hosted - version: "2.11.0" + version: "2.12.0" boolean_selector: dependency: transitive description: name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" build: dependency: transitive description: name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" + sha256: cef23f1eda9b57566c81e2133d196f8e3df48f244b317368d65c5943d91148f0 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" build_config: dependency: transitive description: name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 + sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" build_daemon: dependency: transitive description: name: build_daemon - sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" + sha256: "8e928697a82be082206edb0b9c99c5a4ad6bc31c9e9b8b2f291ae65cd4a25daa" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.0.4" build_resolvers: dependency: "direct dev" description: name: build_resolvers - sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" + sha256: b9e4fda21d846e192628e7a4f6deda6888c36b5b69ba02ff291a01fd529140f0 url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.4.4" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d" + sha256: "058fe9dce1de7d69c4b84fada934df3e0153dd000758c4d65964d0166779aa99" url: "https://pub.dev" source: hosted - version: "2.4.13" + version: "2.4.15" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 + sha256: "22e3aa1c80e0ada3722fe5b63fd43d9c8990759d0a2cf489c8c5d7b2bdebc021" url: "https://pub.dev" source: hosted - version: "7.3.2" + version: "8.0.0" built_collection: dependency: "direct main" description: @@ -106,26 +101,26 @@ packages: dependency: "direct main" description: name: built_value - sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb + sha256: ea90e81dc4a25a043d9bee692d20ed6d1c4a1662a28c03a96417446c093ed6b4 url: "https://pub.dev" source: hosted - version: "8.9.2" + version: "8.9.5" built_value_generator: dependency: "direct main" description: name: built_value_generator - sha256: bb06c5e9dbdbd35ed6de21520e2e5112582c964fa584e2a4bb59887fc7a169b0 + sha256: be8640bd52d67a5e6747379778b81ca2e6a40f61df475f81beb72fde62e32524 url: "https://pub.dev" source: hosted - version: "8.9.2" + version: "8.9.5" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.0" checked_yaml: dependency: transitive description: @@ -138,10 +133,10 @@ packages: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" code_builder: dependency: transitive description: @@ -154,10 +149,10 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.1" convert: dependency: transitive description: @@ -186,49 +181,49 @@ packages: dependency: transitive description: name: dart_style - sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" + sha256: "27eb0ae77836989a3bc541ce55595e8ceee0992807f14511552a898ddd0d88ac" url: "https://pub.dev" source: hosted - version: "2.3.7" + version: "3.0.1" dash_kit_network: dependency: "direct main" description: path: ".." relative: true source: path - version: "4.3.1" + version: "4.5.0" dio: dependency: transitive description: name: dio - sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" + sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9" url: "https://pub.dev" source: hosted - version: "5.7.0" + version: "5.8.0+1" dio_web_adapter: dependency: transitive description: name: dio_web_adapter - sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" + sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.1.1" fake_async: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc" url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.2" ffi: dependency: transitive description: name: ffi - sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" + sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" file: dependency: transitive description: @@ -254,26 +249,26 @@ packages: dependency: transitive description: name: flutter_secure_storage - sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0" + sha256: "9cad52d75ebc511adfae3d447d5d13da15a55a92c9410e50f67335b6d21d16ea" url: "https://pub.dev" source: hosted - version: "9.2.2" + version: "9.2.4" flutter_secure_storage_linux: dependency: transitive description: name: flutter_secure_storage_linux - sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b" + sha256: be76c1d24a97d0b98f8b54bce6b481a380a6590df992d0098f868ad54dc8f688 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.3" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos - sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81" + sha256: "6c0a2795a2d1de26ae202a0d78527d163f4acbb11cde4c75c670f3a0fc064247" url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" flutter_secure_storage_platform_interface: dependency: transitive description: @@ -320,10 +315,10 @@ packages: dependency: transitive description: name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" graphs: dependency: transitive description: @@ -332,22 +327,30 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.2" + http: + dependency: transitive + description: + name: http + sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b" + url: "https://pub.dev" + source: hosted + version: "1.4.0" http_multi_server: dependency: transitive description: name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" http_parser: dependency: transitive description: name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.1.2" io: dependency: transitive description: @@ -376,26 +379,26 @@ packages: dependency: "direct dev" description: name: json_serializable - sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7c + sha256: c50ef5fc083d5b5e12eef489503ba3bf5ccc899e487d691584699b4bdefeea8c url: "https://pub.dev" source: hosted - version: "6.9.0" + version: "6.9.5" leak_tracker: dependency: transitive description: name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec url: "https://pub.dev" source: hosted - version: "10.0.5" + version: "10.0.8" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.0.9" leak_tracker_testing: dependency: transitive description: @@ -412,22 +415,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" - macros: - dependency: transitive - description: - name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" - url: "https://pub.dev" - source: hosted - version: "0.1.2-main.4" matcher: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.17" material_color_utilities: dependency: transitive description: @@ -440,10 +435,10 @@ packages: dependency: transitive description: name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.16.0" mime: dependency: transitive description: @@ -456,18 +451,18 @@ packages: dependency: transitive description: name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.2.0" path: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" path_provider: dependency: transitive description: @@ -480,10 +475,10 @@ packages: dependency: transitive description: name: path_provider_android - sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" + sha256: d0d310befe2c8ab9e7f393288ccbb11b60c019c6b5afc21973eeee4dda2b35e9 url: "https://pub.dev" source: hosted - version: "2.2.15" + version: "2.2.17" path_provider_foundation: dependency: transitive description: @@ -544,18 +539,18 @@ packages: dependency: transitive description: name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 + sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082" url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.5.0" rxdart: dependency: transitive description: @@ -568,26 +563,26 @@ packages: dependency: transitive description: name: shared_preferences - sha256: "95f9997ca1fb9799d494d0cb2a780fd7be075818d59f00c43832ed112b158a82" + sha256: "6e8bf70b7fef813df4e9a36f658ac46d107db4b4cfe1048b477d4e453a8159f5" url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.5.3" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "7f172d1b06de5da47b6264c2692ee2ead20bbbc246690427cdb4fc301cd0c549" + sha256: "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.4.10" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "07e050c7cd39bad516f8d64c455f04508d09df104be326d8c02551590a0d513d" + sha256: "6a52cfcdaeac77cad8c97b539ff688ccfc458c007b4db12be584fbe5c0e49e03" url: "https://pub.dev" source: hosted - version: "2.5.3" + version: "2.5.4" shared_preferences_linux: dependency: transitive description: @@ -608,10 +603,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e + sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.4.3" shared_preferences_windows: dependency: transitive description: @@ -624,103 +619,103 @@ packages: dependency: transitive description: name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 url: "https://pub.dev" source: hosted - version: "1.4.1" + version: "1.4.2" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67 + sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.0" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_gen: dependency: transitive description: name: source_gen - sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" + sha256: "35c8150ece9e8c8d263337a265153c3329667640850b9304861faea59fc98f6b" url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "2.0.0" source_helper: dependency: transitive description: name: source_helper - sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd" + sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c" url: "https://pub.dev" source: hosted - version: "1.3.4" + version: "1.3.5" source_span: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.10.1" stack_trace: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" stream_transform: dependency: transitive description: name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" + sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871 url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.4.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" test_api: dependency: transitive description: name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.2" + version: "0.7.4" timing: dependency: transitive description: name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" + sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.2" typed_data: dependency: transitive description: @@ -741,50 +736,50 @@ packages: dependency: transitive description: name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14" url: "https://pub.dev" source: hosted - version: "14.2.5" + version: "14.3.1" watcher: dependency: transitive description: name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + sha256: "69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" web: dependency: transitive description: name: web - sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" web_socket: dependency: transitive description: name: web_socket - sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" url: "https://pub.dev" source: hosted - version: "0.1.6" + version: "1.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.3" win32: dependency: transitive description: name: win32 - sha256: "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69" + sha256: "329edf97fdd893e0f1e3b9e88d6a0e627128cc17cc316a8d67fda8f1451178ba" url: "https://pub.dev" source: hosted - version: "5.9.0" + version: "5.13.0" xdg_directories: dependency: transitive description: @@ -797,10 +792,10 @@ packages: dependency: transitive description: name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" sdks: - dart: ">=3.5.0 <4.0.0" - flutter: ">=3.24.0" + dart: ">=3.7.0 <4.0.0" + flutter: ">=3.27.0" diff --git a/pubspec.lock b/pubspec.lock index 7dfb9dc..76a24ff 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,95 +5,90 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + sha256: e55636ed79578b9abca5fecf9437947798f5ef7456308b5cb85720b793eac92f url: "https://pub.dev" source: hosted - version: "72.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.2" + version: "82.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + sha256: "904ae5bb474d32c38fb9482e2d925d5454cda04ddd0e55d2e6826bc72f6ba8c0" url: "https://pub.dev" source: hosted - version: "6.7.0" + version: "7.4.5" args: dependency: transitive description: name: args - sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 url: "https://pub.dev" source: hosted - version: "2.6.0" + version: "2.7.0" async: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63 url: "https://pub.dev" source: hosted - version: "2.11.0" + version: "2.12.0" boolean_selector: dependency: transitive description: name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" build: dependency: transitive description: name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" + sha256: cef23f1eda9b57566c81e2133d196f8e3df48f244b317368d65c5943d91148f0 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" build_config: dependency: transitive description: name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 + sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" build_daemon: dependency: transitive description: name: build_daemon - sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" + sha256: "8e928697a82be082206edb0b9c99c5a4ad6bc31c9e9b8b2f291ae65cd4a25daa" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.0.4" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" + sha256: b9e4fda21d846e192628e7a4f6deda6888c36b5b69ba02ff291a01fd529140f0 url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.4.4" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d" + sha256: "058fe9dce1de7d69c4b84fada934df3e0153dd000758c4d65964d0166779aa99" url: "https://pub.dev" source: hosted - version: "2.4.13" + version: "2.4.15" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 + sha256: "22e3aa1c80e0ada3722fe5b63fd43d9c8990759d0a2cf489c8c5d7b2bdebc021" url: "https://pub.dev" source: hosted - version: "7.3.2" + version: "8.0.0" built_collection: dependency: transitive description: @@ -106,18 +101,18 @@ packages: dependency: transitive description: name: built_value - sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb + sha256: ea90e81dc4a25a043d9bee692d20ed6d1c4a1662a28c03a96417446c093ed6b4 url: "https://pub.dev" source: hosted - version: "8.9.2" + version: "8.9.5" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.0" checked_yaml: dependency: transitive description: @@ -126,14 +121,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.3" + cli_config: + dependency: transitive + description: + name: cli_config + sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec + url: "https://pub.dev" + source: hosted + version: "0.2.0" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" code_builder: dependency: transitive description: @@ -146,10 +149,10 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.1" convert: dependency: transitive description: @@ -162,10 +165,10 @@ packages: dependency: transitive description: name: coverage - sha256: e3493833ea012784c740e341952298f1cc77f1f01b1bbc3eb4eecf6984fb7f43 + sha256: "802bd084fb82e55df091ec8ad1553a7331b61c08251eef19a508b6f3f3a9858d" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.13.1" crypto: dependency: transitive description: @@ -178,50 +181,50 @@ packages: dependency: transitive description: name: dart_style - sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" + sha256: "27eb0ae77836989a3bc541ce55595e8ceee0992807f14511552a898ddd0d88ac" url: "https://pub.dev" source: hosted - version: "2.3.7" + version: "3.0.1" dash_kit_lints: dependency: "direct dev" description: name: dash_kit_lints - sha256: "9027e19f1d19fa11a5ce85baef35983e326056e2948487ab014c9c0da0bedc05" + sha256: "1d6f9d0e79205c80036b0e3c38a1dc5bac603a8d70ff60d556455c7b6a368bb9" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.4" dio: dependency: "direct main" description: name: dio - sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" + sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9" url: "https://pub.dev" source: hosted - version: "5.7.0" + version: "5.8.0+1" dio_web_adapter: dependency: transitive description: name: dio_web_adapter - sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" + sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.1.1" fake_async: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc" url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.2" ffi: dependency: transitive description: name: ffi - sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" + sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" file: dependency: transitive description: @@ -255,26 +258,26 @@ packages: dependency: "direct main" description: name: flutter_secure_storage - sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0" + sha256: "9cad52d75ebc511adfae3d447d5d13da15a55a92c9410e50f67335b6d21d16ea" url: "https://pub.dev" source: hosted - version: "9.2.2" + version: "9.2.4" flutter_secure_storage_linux: dependency: transitive description: name: flutter_secure_storage_linux - sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b" + sha256: be76c1d24a97d0b98f8b54bce6b481a380a6590df992d0098f868ad54dc8f688 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.3" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos - sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81" + sha256: "6c0a2795a2d1de26ae202a0d78527d163f4acbb11cde4c75c670f3a0fc064247" url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" flutter_secure_storage_platform_interface: dependency: transitive description: @@ -321,10 +324,10 @@ packages: dependency: transitive description: name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" graphs: dependency: transitive description: @@ -333,22 +336,30 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.2" + http: + dependency: transitive + description: + name: http + sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b" + url: "https://pub.dev" + source: hosted + version: "1.4.0" http_multi_server: dependency: transitive description: name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" http_parser: dependency: transitive description: name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.1.2" io: dependency: transitive description: @@ -377,18 +388,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec url: "https://pub.dev" source: hosted - version: "10.0.5" + version: "10.0.8" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.0.9" leak_tracker_testing: dependency: transitive description: @@ -413,22 +424,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" - macros: - dependency: transitive - description: - name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" - url: "https://pub.dev" - source: hosted - version: "0.1.2-main.4" matcher: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.17" material_color_utilities: dependency: transitive description: @@ -441,10 +444,10 @@ packages: dependency: transitive description: name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.16.0" mime: dependency: transitive description: @@ -457,10 +460,10 @@ packages: dependency: "direct dev" description: name: mockito - sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" + sha256: "4546eac99e8967ea91bae633d2ca7698181d008e95fa4627330cf903d573277a" url: "https://pub.dev" source: hosted - version: "5.4.4" + version: "5.4.6" node_preamble: dependency: transitive description: @@ -473,18 +476,18 @@ packages: dependency: transitive description: name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.2.0" path: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" path_provider: dependency: transitive description: @@ -497,10 +500,10 @@ packages: dependency: transitive description: name: path_provider_android - sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" + sha256: d0d310befe2c8ab9e7f393288ccbb11b60c019c6b5afc21973eeee4dda2b35e9 url: "https://pub.dev" source: hosted - version: "2.2.15" + version: "2.2.17" path_provider_foundation: dependency: transitive description: @@ -561,18 +564,18 @@ packages: dependency: transitive description: name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 + sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082" url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.5.0" rxdart: dependency: "direct main" description: @@ -585,26 +588,26 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: "95f9997ca1fb9799d494d0cb2a780fd7be075818d59f00c43832ed112b158a82" + sha256: "6e8bf70b7fef813df4e9a36f658ac46d107db4b4cfe1048b477d4e453a8159f5" url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.5.3" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "7f172d1b06de5da47b6264c2692ee2ead20bbbc246690427cdb4fc301cd0c549" + sha256: "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.4.10" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "07e050c7cd39bad516f8d64c455f04508d09df104be326d8c02551590a0d513d" + sha256: "6a52cfcdaeac77cad8c97b539ff688ccfc458c007b4db12be584fbe5c0e49e03" url: "https://pub.dev" source: hosted - version: "2.5.3" + version: "2.5.4" shared_preferences_linux: dependency: transitive description: @@ -625,10 +628,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e + sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.4.3" shared_preferences_windows: dependency: transitive description: @@ -641,10 +644,10 @@ packages: dependency: transitive description: name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 url: "https://pub.dev" source: hosted - version: "1.4.1" + version: "1.4.2" shelf_packages_handler: dependency: transitive description: @@ -665,23 +668,23 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67 + sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.0" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_gen: dependency: transitive description: name: source_gen - sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" + sha256: "35c8150ece9e8c8d263337a265153c3329667640850b9304861faea59fc98f6b" url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "2.0.0" source_map_stack_trace: dependency: transitive description: @@ -694,90 +697,90 @@ packages: dependency: transitive description: name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812" url: "https://pub.dev" source: hosted - version: "0.10.12" + version: "0.10.13" source_span: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.10.1" stack_trace: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" stream_transform: dependency: transitive description: name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" + sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871 url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.4.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" test: dependency: "direct dev" description: name: test - sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" + sha256: "301b213cd241ca982e9ba50266bd3f5bd1ea33f1455554c5abb85d1be0e2d87e" url: "https://pub.dev" source: hosted - version: "1.25.7" + version: "1.25.15" test_api: dependency: transitive description: name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.2" + version: "0.7.4" test_core: dependency: transitive description: name: test_core - sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" + sha256: "84d17c3486c8dfdbe5e12a50c8ae176d15e2a771b96909a9442b40173649ccaa" url: "https://pub.dev" source: hosted - version: "0.6.4" + version: "0.6.8" timing: dependency: transitive description: name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" + sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.2" typed_data: dependency: transitive description: @@ -798,42 +801,42 @@ packages: dependency: transitive description: name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14" url: "https://pub.dev" source: hosted - version: "14.2.5" + version: "14.3.1" watcher: dependency: transitive description: name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + sha256: "69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" web: dependency: transitive description: name: web - sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" web_socket: dependency: transitive description: name: web_socket - sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" url: "https://pub.dev" source: hosted - version: "0.1.6" + version: "1.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.3" webkit_inspection_protocol: dependency: transitive description: @@ -846,10 +849,10 @@ packages: dependency: transitive description: name: win32 - sha256: "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69" + sha256: "329edf97fdd893e0f1e3b9e88d6a0e627128cc17cc316a8d67fda8f1451178ba" url: "https://pub.dev" source: hosted - version: "5.9.0" + version: "5.13.0" xdg_directories: dependency: transitive description: @@ -862,10 +865,10 @@ packages: dependency: transitive description: name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" sdks: - dart: ">=3.5.0 <4.0.0" - flutter: ">=3.24.0" + dart: ">=3.7.0 <4.0.0" + flutter: ">=3.27.0" diff --git a/pubspec.yaml b/pubspec.yaml index c28ce7d..107e195 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,23 +1,23 @@ name: dash_kit_network description: The DashKit plugin that provides basic network functionality including token refresh. -version: 4.4.0 +version: 4.5.0 homepage: https://github.com/Dash-Kit/dash-kit-network environment: sdk: ">=3.0.0 <4.0.0" dependencies: - dio: ^5.4.3+1 + dio: ^5.8.0+1 flutter: sdk: flutter - flutter_secure_storage: ^9.2.2 + flutter_secure_storage: ^9.2.4 rxdart: ^0.28.0 - shared_preferences: ^2.2.3 + shared_preferences: ^2.5.3 dev_dependencies: - build_runner: ^2.4.11 - dash_kit_lints: ^3.0.3 + build_runner: ^2.4.15 + dash_kit_lints: ^3.0.4 flutter_test: sdk: flutter - mockito: ^5.4.4 - test: ^1.24.3 + mockito: ^5.4.6 + test: ^1.25.15 diff --git a/test/api_client_test.mocks.dart b/test/api_client_test.mocks.dart index 15b9d75..bcd1ef5 100644 --- a/test/api_client_test.mocks.dart +++ b/test/api_client_test.mocks.dart @@ -1,14 +1,14 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.6 from annotations // in dash_kit_network/test/api_client_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i9; +import 'dart:async' as _i10; -import 'package:dash_kit_network/src/token_storage.dart' as _i8; +import 'package:dash_kit_network/src/token_storage.dart' as _i9; import 'package:dio/src/adapter.dart' as _i4; import 'package:dio/src/cancel_token.dart' as _i11; -import 'package:dio/src/dio.dart' as _i10; +import 'package:dio/src/dio.dart' as _i8; import 'package:dio/src/dio_mixin.dart' as _i6; import 'package:dio/src/options.dart' as _i3; import 'package:dio/src/response.dart' as _i7; @@ -24,6 +24,7 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -91,10 +92,20 @@ class _FakeResponse_5 extends _i1.SmartFake implements _i7.Response { ); } +class _FakeDio_6 extends _i1.SmartFake implements _i8.Dio { + _FakeDio_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + /// A class which mocks [TokenStorage]. /// /// See the documentation for Mockito's code generation for more information. -class MockTokenStorage extends _i1.Mock implements _i8.TokenStorage { +class MockTokenStorage extends _i1.Mock implements _i9.TokenStorage { @override _i2.FlutterSecureStorage get storage => (super.noSuchMethod( Invocation.getter(#storage), @@ -109,37 +120,37 @@ class MockTokenStorage extends _i1.Mock implements _i8.TokenStorage { ) as _i2.FlutterSecureStorage); @override - _i9.Future isAuthorized() => (super.noSuchMethod( + _i10.Future isAuthorized() => (super.noSuchMethod( Invocation.method( #isAuthorized, [], ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i10.Future.value(false), + returnValueForMissingStub: _i10.Future.value(false), + ) as _i10.Future); @override - _i9.Future getAccessToken() => (super.noSuchMethod( + _i10.Future getAccessToken() => (super.noSuchMethod( Invocation.method( #getAccessToken, [], ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i10.Future.value(), + returnValueForMissingStub: _i10.Future.value(), + ) as _i10.Future); @override - _i9.Future getRefreshToken() => (super.noSuchMethod( + _i10.Future getRefreshToken() => (super.noSuchMethod( Invocation.method( #getRefreshToken, [], ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i10.Future.value(), + returnValueForMissingStub: _i10.Future.value(), + ) as _i10.Future); @override - _i9.Future saveTokens({ + _i10.Future saveTokens({ required String? accessToken, required String? refreshToken, }) => @@ -152,35 +163,35 @@ class MockTokenStorage extends _i1.Mock implements _i8.TokenStorage { #refreshToken: refreshToken, }, ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i10.Future.value(), + returnValueForMissingStub: _i10.Future.value(), + ) as _i10.Future); @override - _i9.Future clearTokens() => (super.noSuchMethod( + _i10.Future clearTokens() => (super.noSuchMethod( Invocation.method( #clearTokens, [], ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i10.Future.value(), + returnValueForMissingStub: _i10.Future.value(), + ) as _i10.Future); @override - _i9.Future clearAll() => (super.noSuchMethod( + _i10.Future clearAll() => (super.noSuchMethod( Invocation.method( #clearAll, [], ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i10.Future.value(), + returnValueForMissingStub: _i10.Future.value(), + ) as _i10.Future); } /// A class which mocks [Dio]. /// /// See the documentation for Mockito's code generation for more information. -class MockDio extends _i1.Mock implements _i10.Dio { +class MockDio extends _i1.Mock implements _i8.Dio { @override _i3.BaseOptions get options => (super.noSuchMethod( Invocation.getter(#options), @@ -194,15 +205,6 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), ) as _i3.BaseOptions); - @override - set options(_i3.BaseOptions? _options) => super.noSuchMethod( - Invocation.setter( - #options, - _options, - ), - returnValueForMissingStub: null, - ); - @override _i4.HttpClientAdapter get httpClientAdapter => (super.noSuchMethod( Invocation.getter(#httpClientAdapter), @@ -216,16 +218,6 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), ) as _i4.HttpClientAdapter); - @override - set httpClientAdapter(_i4.HttpClientAdapter? _httpClientAdapter) => - super.noSuchMethod( - Invocation.setter( - #httpClientAdapter, - _httpClientAdapter, - ), - returnValueForMissingStub: null, - ); - @override _i5.Transformer get transformer => (super.noSuchMethod( Invocation.getter(#transformer), @@ -239,15 +231,6 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), ) as _i5.Transformer); - @override - set transformer(_i5.Transformer? _transformer) => super.noSuchMethod( - Invocation.setter( - #transformer, - _transformer, - ), - returnValueForMissingStub: null, - ); - @override _i6.Interceptors get interceptors => (super.noSuchMethod( Invocation.getter(#interceptors), @@ -261,6 +244,34 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), ) as _i6.Interceptors); + @override + set options(_i3.BaseOptions? _options) => super.noSuchMethod( + Invocation.setter( + #options, + _options, + ), + returnValueForMissingStub: null, + ); + + @override + set httpClientAdapter(_i4.HttpClientAdapter? _httpClientAdapter) => + super.noSuchMethod( + Invocation.setter( + #httpClientAdapter, + _httpClientAdapter, + ), + returnValueForMissingStub: null, + ); + + @override + set transformer(_i5.Transformer? _transformer) => super.noSuchMethod( + Invocation.setter( + #transformer, + _transformer, + ), + returnValueForMissingStub: null, + ); + @override void close({bool? force = false}) => super.noSuchMethod( Invocation.method( @@ -272,7 +283,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ); @override - _i9.Future<_i7.Response> head( + _i10.Future<_i7.Response> head( String? path, { Object? data, Map? queryParameters, @@ -290,7 +301,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #head, @@ -304,7 +315,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #head, @@ -317,10 +328,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> headUri( + _i10.Future<_i7.Response> headUri( Uri? uri, { Object? data, _i3.Options? options, @@ -336,7 +347,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #headUri, @@ -349,7 +360,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #headUri, @@ -361,10 +372,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> get( + _i10.Future<_i7.Response> get( String? path, { Object? data, Map? queryParameters, @@ -384,7 +395,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #get, @@ -399,7 +410,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #get, @@ -413,10 +424,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> getUri( + _i10.Future<_i7.Response> getUri( Uri? uri, { Object? data, _i3.Options? options, @@ -434,7 +445,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #getUri, @@ -448,7 +459,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #getUri, @@ -461,10 +472,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> post( + _i10.Future<_i7.Response> post( String? path, { Object? data, Map? queryParameters, @@ -486,7 +497,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #post, @@ -502,7 +513,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #post, @@ -517,10 +528,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> postUri( + _i10.Future<_i7.Response> postUri( Uri? uri, { Object? data, _i3.Options? options, @@ -540,7 +551,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #postUri, @@ -555,7 +566,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #postUri, @@ -569,10 +580,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> put( + _i10.Future<_i7.Response> put( String? path, { Object? data, Map? queryParameters, @@ -594,7 +605,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #put, @@ -610,7 +621,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #put, @@ -625,10 +636,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> putUri( + _i10.Future<_i7.Response> putUri( Uri? uri, { Object? data, _i3.Options? options, @@ -648,7 +659,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #putUri, @@ -663,7 +674,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #putUri, @@ -677,10 +688,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> patch( + _i10.Future<_i7.Response> patch( String? path, { Object? data, Map? queryParameters, @@ -702,7 +713,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #patch, @@ -718,7 +729,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #patch, @@ -733,10 +744,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> patchUri( + _i10.Future<_i7.Response> patchUri( Uri? uri, { Object? data, _i3.Options? options, @@ -756,7 +767,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #patchUri, @@ -771,7 +782,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #patchUri, @@ -785,10 +796,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> delete( + _i10.Future<_i7.Response> delete( String? path, { Object? data, Map? queryParameters, @@ -806,7 +817,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #delete, @@ -820,7 +831,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #delete, @@ -833,10 +844,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> deleteUri( + _i10.Future<_i7.Response> deleteUri( Uri? uri, { Object? data, _i3.Options? options, @@ -852,7 +863,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #deleteUri, @@ -865,7 +876,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #deleteUri, @@ -877,17 +888,18 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> download( + _i10.Future<_i7.Response> download( String? urlPath, dynamic savePath, { _i3.ProgressCallback? onReceiveProgress, Map? queryParameters, _i11.CancelToken? cancelToken, bool? deleteOnError = true, - String? lengthHeader = r'content-length', + _i3.FileAccessMode? fileAccessMode = _i3.FileAccessMode.write, + String? lengthHeader = 'content-length', Object? data, _i3.Options? options, }) => @@ -903,13 +915,14 @@ class MockDio extends _i1.Mock implements _i10.Dio { #queryParameters: queryParameters, #cancelToken: cancelToken, #deleteOnError: deleteOnError, + #fileAccessMode: fileAccessMode, #lengthHeader: lengthHeader, #data: data, #options: options, }, ), returnValue: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #download, @@ -922,6 +935,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #queryParameters: queryParameters, #cancelToken: cancelToken, #deleteOnError: deleteOnError, + #fileAccessMode: fileAccessMode, #lengthHeader: lengthHeader, #data: data, #options: options, @@ -929,7 +943,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #download, @@ -942,22 +956,24 @@ class MockDio extends _i1.Mock implements _i10.Dio { #queryParameters: queryParameters, #cancelToken: cancelToken, #deleteOnError: deleteOnError, + #fileAccessMode: fileAccessMode, #lengthHeader: lengthHeader, #data: data, #options: options, }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> downloadUri( + _i10.Future<_i7.Response> downloadUri( Uri? uri, dynamic savePath, { _i3.ProgressCallback? onReceiveProgress, _i11.CancelToken? cancelToken, bool? deleteOnError = true, - String? lengthHeader = r'content-length', + _i3.FileAccessMode? fileAccessMode = _i3.FileAccessMode.write, + String? lengthHeader = 'content-length', Object? data, _i3.Options? options, }) => @@ -972,13 +988,14 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, #cancelToken: cancelToken, #deleteOnError: deleteOnError, + #fileAccessMode: fileAccessMode, #lengthHeader: lengthHeader, #data: data, #options: options, }, ), returnValue: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #downloadUri, @@ -990,6 +1007,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, #cancelToken: cancelToken, #deleteOnError: deleteOnError, + #fileAccessMode: fileAccessMode, #lengthHeader: lengthHeader, #data: data, #options: options, @@ -997,7 +1015,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #downloadUri, @@ -1009,16 +1027,17 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, #cancelToken: cancelToken, #deleteOnError: deleteOnError, + #fileAccessMode: fileAccessMode, #lengthHeader: lengthHeader, #data: data, #options: options, }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> request( + _i10.Future<_i7.Response> request( String? url, { Object? data, Map? queryParameters, @@ -1040,7 +1059,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #request, @@ -1056,7 +1075,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #request, @@ -1071,10 +1090,10 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> requestUri( + _i10.Future<_i7.Response> requestUri( Uri? uri, { Object? data, _i11.CancelToken? cancelToken, @@ -1094,7 +1113,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #requestUri, @@ -1109,7 +1128,7 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #requestUri, @@ -1123,16 +1142,16 @@ class MockDio extends _i1.Mock implements _i10.Dio { }, ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); @override - _i9.Future<_i7.Response> fetch(_i3.RequestOptions? requestOptions) => + _i10.Future<_i7.Response> fetch(_i3.RequestOptions? requestOptions) => (super.noSuchMethod( Invocation.method( #fetch, [requestOptions], ), - returnValue: _i9.Future<_i7.Response>.value(_FakeResponse_5( + returnValue: _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #fetch, @@ -1140,12 +1159,58 @@ class MockDio extends _i1.Mock implements _i10.Dio { ), )), returnValueForMissingStub: - _i9.Future<_i7.Response>.value(_FakeResponse_5( + _i10.Future<_i7.Response>.value(_FakeResponse_5( this, Invocation.method( #fetch, [requestOptions], ), )), - ) as _i9.Future<_i7.Response>); + ) as _i10.Future<_i7.Response>); + + @override + _i8.Dio clone({ + _i3.BaseOptions? options, + _i6.Interceptors? interceptors, + _i4.HttpClientAdapter? httpClientAdapter, + _i5.Transformer? transformer, + }) => + (super.noSuchMethod( + Invocation.method( + #clone, + [], + { + #options: options, + #interceptors: interceptors, + #httpClientAdapter: httpClientAdapter, + #transformer: transformer, + }, + ), + returnValue: _FakeDio_6( + this, + Invocation.method( + #clone, + [], + { + #options: options, + #interceptors: interceptors, + #httpClientAdapter: httpClientAdapter, + #transformer: transformer, + }, + ), + ), + returnValueForMissingStub: _FakeDio_6( + this, + Invocation.method( + #clone, + [], + { + #options: options, + #interceptors: interceptors, + #httpClientAdapter: httpClientAdapter, + #transformer: transformer, + }, + ), + ), + ) as _i8.Dio); }