From dccb8e1d175485ab70318c4c72cedb0b4e6ebe98 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Fri, 9 Aug 2024 18:10:05 +0200 Subject: [PATCH 01/49] docs: Add link to gradle plugin docs in COMPILATION.yaml (#3166) --- .github/ISSUE_TEMPLATE/BUG.yaml | 2 ++ .github/ISSUE_TEMPLATE/COMPILATION.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/BUG.yaml b/.github/ISSUE_TEMPLATE/BUG.yaml index 88bf3c0962..de6c30e13b 100644 --- a/.github/ISSUE_TEMPLATE/BUG.yaml +++ b/.github/ISSUE_TEMPLATE/BUG.yaml @@ -12,6 +12,8 @@ body: or consider asking a question on Stack Overflow: * https://plus.fluttercommunity.dev/docs/overview + If you have a **compilation issue**, please use the [Compile Issue Template](https://github.com/fluttercommunity/plus_plugins/issues/new?assignees=&labels=compile%2Ctriage&projects=&template=COMPILATION.yaml&title=%5BCompile%5D%3A+). + If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill our the template below. diff --git a/.github/ISSUE_TEMPLATE/COMPILATION.yaml b/.github/ISSUE_TEMPLATE/COMPILATION.yaml index f3c67ea06e..c512668957 100644 --- a/.github/ISSUE_TEMPLATE/COMPILATION.yaml +++ b/.github/ISSUE_TEMPLATE/COMPILATION.yaml @@ -13,6 +13,7 @@ body: 3. Search on Google or other general purpose search engines. 4. Perform a `flutter upgrade`, followed by `flutter pub upgrade` and finally `flutter clean`, then try again. 5. Perform a `flutter pub cache repair` to clean install of the packages in your system cache. See [`dart pub cache`](https://dart.dev/tools/pub/cmd/pub-cache) for more info. + 6. Android compilation issues? Ensure your gradle configuration is up-to-date: https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply If you can prove that you have done all these steps and still have problems, proceed with the following template. From e61b4725332adfca756cd77c97354f2f29be0907 Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Fri, 9 Aug 2024 21:23:53 +0300 Subject: [PATCH 02/49] chore(release): prepare for release (#3165) --- packages/battery_plus/battery_plus/CHANGELOG.md | 7 +++++++ packages/battery_plus/battery_plus/example/pubspec.yaml | 2 +- packages/battery_plus/battery_plus/pubspec.yaml | 2 +- packages/connectivity_plus/connectivity_plus/CHANGELOG.md | 4 ++++ .../connectivity_plus/example/pubspec.yaml | 2 +- packages/connectivity_plus/connectivity_plus/pubspec.yaml | 2 +- packages/device_info_plus/device_info_plus/CHANGELOG.md | 4 ++++ .../device_info_plus/device_info_plus/example/pubspec.yaml | 2 +- packages/device_info_plus/device_info_plus/pubspec.yaml | 2 +- packages/package_info_plus/package_info_plus/CHANGELOG.md | 5 +++++ .../package_info_plus/example/pubspec.yaml | 4 ++-- packages/package_info_plus/package_info_plus/pubspec.yaml | 2 +- packages/sensors_plus/sensors_plus/CHANGELOG.md | 4 ++++ packages/sensors_plus/sensors_plus/example/pubspec.yaml | 2 +- packages/sensors_plus/sensors_plus/pubspec.yaml | 2 +- packages/share_plus/share_plus/CHANGELOG.md | 4 ++++ packages/share_plus/share_plus/example/pubspec.yaml | 2 +- packages/share_plus/share_plus/pubspec.yaml | 2 +- 18 files changed, 41 insertions(+), 13 deletions(-) diff --git a/packages/battery_plus/battery_plus/CHANGELOG.md b/packages/battery_plus/battery_plus/CHANGELOG.md index c454c606fa..cee757d696 100644 --- a/packages/battery_plus/battery_plus/CHANGELOG.md +++ b/packages/battery_plus/battery_plus/CHANGELOG.md @@ -1,3 +1,10 @@ +## 6.0.3 + + - **CHORE**(battery_plus): Update to package:web to ^1.0.0 ([#3103](https://github.com/fluttercommunity/plus_plugins/pull/3103)). ([cf534eec](https://github.com/fluttercommunity/plus_plugins/commit/cf534eec402b57b70ffe96bf5351afcdfa8c7c7e)) + - **FIX**(battery_plus): Fix type conversion ([#3159](https://github.com/fluttercommunity/plus_plugins/issues/3159)). ([1145af14](https://github.com/fluttercommunity/plus_plugins/commit/1145af14298ecab7d7be57bfa9a32c628b9acdf3)) + - **FIX**(battery_plus): Fix crash when retrieving battery level on desktop Mac. ([#3155](https://github.com/fluttercommunity/plus_plugins/issues/3155)). ([36e7dd16](https://github.com/fluttercommunity/plus_plugins/commit/36e7dd16de3ac43d83eeece7e682b265c93f2fbe)) + - **DOCS**(battery_plus): Update plugin requirements ([#3158](https://github.com/fluttercommunity/plus_plugins/issues/3158)). ([c0353107](https://github.com/fluttercommunity/plus_plugins/commit/c0353107f17e5e32ca33e44742343ccd2c391a0c)) + ## 6.0.2 - **REFACTOR**(all): Remove website files, configs, mentions ([#3018](https://github.com/fluttercommunity/plus_plugins/issues/3018)). ([ecc57146](https://github.com/fluttercommunity/plus_plugins/commit/ecc57146aa8c6b1c9c332169d3cc2205bc4a700f)) diff --git a/packages/battery_plus/battery_plus/example/pubspec.yaml b/packages/battery_plus/battery_plus/example/pubspec.yaml index 4b74e2adb0..bcdf87032e 100644 --- a/packages/battery_plus/battery_plus/example/pubspec.yaml +++ b/packages/battery_plus/battery_plus/example/pubspec.yaml @@ -8,7 +8,7 @@ environment: dependencies: flutter: sdk: flutter - battery_plus: ^6.0.2 + battery_plus: ^6.0.3 dev_dependencies: flutter_driver: diff --git a/packages/battery_plus/battery_plus/pubspec.yaml b/packages/battery_plus/battery_plus/pubspec.yaml index 2c90f51e9d..db772443ed 100644 --- a/packages/battery_plus/battery_plus/pubspec.yaml +++ b/packages/battery_plus/battery_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: battery_plus description: Flutter plugin for accessing information about the battery state(full, charging, discharging). -version: 6.0.2 +version: 6.0.3 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus/battery_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/battery_plus diff --git a/packages/connectivity_plus/connectivity_plus/CHANGELOG.md b/packages/connectivity_plus/connectivity_plus/CHANGELOG.md index 4f58e928f3..02a57c8d8e 100644 --- a/packages/connectivity_plus/connectivity_plus/CHANGELOG.md +++ b/packages/connectivity_plus/connectivity_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.0.5 + + - **DOCS**(connectivity_plus): Update plugin requirements in README ([#3160](https://github.com/fluttercommunity/plus_plugins/issues/3160)). ([277f8b6b](https://github.com/fluttercommunity/plus_plugins/commit/277f8b6ba9ee6e7e5e3b1cce3e5eb8416830ba6b)) + ## 6.0.4 - **CHORE**(connectivity_plus): Use `>=0.5.0 < 2.0.0` version range for package:web. diff --git a/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml b/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml index e09017a547..64fc0b64a6 100644 --- a/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml +++ b/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml @@ -7,7 +7,7 @@ environment: dependencies: flutter: sdk: flutter - connectivity_plus: ^6.0.4 + connectivity_plus: ^6.0.5 dev_dependencies: flutter_driver: diff --git a/packages/connectivity_plus/connectivity_plus/pubspec.yaml b/packages/connectivity_plus/connectivity_plus/pubspec.yaml index 47cbd01446..66956fff22 100644 --- a/packages/connectivity_plus/connectivity_plus/pubspec.yaml +++ b/packages/connectivity_plus/connectivity_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: connectivity_plus description: Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS. -version: 6.0.4 +version: 6.0.5 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/connectivity_plus/connectivity_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/connectivity_plus diff --git a/packages/device_info_plus/device_info_plus/CHANGELOG.md b/packages/device_info_plus/device_info_plus/CHANGELOG.md index 3a7283602d..9c37b58572 100644 --- a/packages/device_info_plus/device_info_plus/CHANGELOG.md +++ b/packages/device_info_plus/device_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 10.1.2 + + - **DOCS**(device_info_plus): Update plugin requirements in README ([#3162](https://github.com/fluttercommunity/plus_plugins/issues/3162)). ([6cfa950f](https://github.com/fluttercommunity/plus_plugins/commit/6cfa950f66fec649093b6c44755dc06a3a23319e)) + ## 10.1.1 - **CHORE**(device_info_plus): Use `>=0.5.0 < 2.0.0` version range for package:web. diff --git a/packages/device_info_plus/device_info_plus/example/pubspec.yaml b/packages/device_info_plus/device_info_plus/example/pubspec.yaml index efee946d3f..f2f5ba1e41 100644 --- a/packages/device_info_plus/device_info_plus/example/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the device_info_plus plugin. dependencies: flutter: sdk: flutter - device_info_plus: ^10.1.1 + device_info_plus: ^10.1.2 dev_dependencies: flutter_driver: diff --git a/packages/device_info_plus/device_info_plus/pubspec.yaml b/packages/device_info_plus/device_info_plus/pubspec.yaml index 6f854ba659..3457c632f0 100644 --- a/packages/device_info_plus/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/pubspec.yaml @@ -1,7 +1,7 @@ name: device_info_plus description: Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on. -version: 10.1.1 +version: 10.1.2 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/device_info_plus/device_info_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/device_info_plus diff --git a/packages/package_info_plus/package_info_plus/CHANGELOG.md b/packages/package_info_plus/package_info_plus/CHANGELOG.md index a0f2644f80..ff6ee2a267 100644 --- a/packages/package_info_plus/package_info_plus/CHANGELOG.md +++ b/packages/package_info_plus/package_info_plus/CHANGELOG.md @@ -1,3 +1,8 @@ +## 8.0.2 + + - **CHORE**(package_info_plus): Update to package:web to ">=0.5.0 <2.0.0" ([#3102](https://github.com/fluttercommunity/plus_plugins/pull/3102)). ([05f8afb8](https://github.com/fluttercommunity/plus_plugins/commit/05f8afb8fc43bc702ab5e3e14e3cba9d79983446)) + - **DOCS**(package_info_plus): Update plugin requirements in README ([#3163](https://github.com/fluttercommunity/plus_plugins/issues/3163)). ([6f09bb7e](https://github.com/fluttercommunity/plus_plugins/commit/6f09bb7ec4c0f88fea557a87dc0cd3aaa64ac9ee)) + ## 8.0.1 - **FIX**(package_info_plus): Address changed fields nullability on Android 15 (API 35) ([#2975](https://github.com/fluttercommunity/plus_plugins/issues/2975)). ([dfa3bc2d](https://github.com/fluttercommunity/plus_plugins/commit/dfa3bc2de7d2a010bc81b0a7f19395b373e31cf1)) diff --git a/packages/package_info_plus/package_info_plus/example/pubspec.yaml b/packages/package_info_plus/package_info_plus/example/pubspec.yaml index 72b9102c97..ce6d7b68ee 100644 --- a/packages/package_info_plus/package_info_plus/example/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/example/pubspec.yaml @@ -11,11 +11,11 @@ dependencies: flutter: sdk: flutter http: ">=0.13.5 <2.0.0" - package_info_plus: ^8.0.1 + package_info_plus: ^8.0.2 dev_dependencies: build_runner: ^2.3.3 - device_info_plus: ^10.1.1 + device_info_plus: ^10.1.2 integration_test: sdk: flutter flutter_driver: diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index e17a84e561..9cd39d1c2c 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: package_info_plus description: Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android. -version: 8.0.1 +version: 8.0.2 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus/package_info_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/package_info_plus diff --git a/packages/sensors_plus/sensors_plus/CHANGELOG.md b/packages/sensors_plus/sensors_plus/CHANGELOG.md index 84ed9b2576..994b4114c3 100644 --- a/packages/sensors_plus/sensors_plus/CHANGELOG.md +++ b/packages/sensors_plus/sensors_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.0.1 + + - **DOCS**(sensors_plus): Update plugin requirements in README ([#3164](https://github.com/fluttercommunity/plus_plugins/issues/3164)). ([82d95db4](https://github.com/fluttercommunity/plus_plugins/commit/82d95db42dbe9bad821fbcd033ea317cf6771691)) + ## 6.0.0 > Note: This release has breaking changes. Starting with this release on iOS it is required to add `NSMotionUsageDescription` entry in the Info.plist file. More info available in the README file. diff --git a/packages/sensors_plus/sensors_plus/example/pubspec.yaml b/packages/sensors_plus/sensors_plus/example/pubspec.yaml index 456f8a7640..ffdc0c0455 100644 --- a/packages/sensors_plus/sensors_plus/example/pubspec.yaml +++ b/packages/sensors_plus/sensors_plus/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the sensors plugin. dependencies: flutter: sdk: flutter - sensors_plus: ^6.0.0 + sensors_plus: ^6.0.1 dev_dependencies: flutter_driver: diff --git a/packages/sensors_plus/sensors_plus/pubspec.yaml b/packages/sensors_plus/sensors_plus/pubspec.yaml index f7d9de63e5..f2b1f8c070 100644 --- a/packages/sensors_plus/sensors_plus/pubspec.yaml +++ b/packages/sensors_plus/sensors_plus/pubspec.yaml @@ -1,7 +1,7 @@ name: sensors_plus description: Flutter plugin for accessing accelerometer, gyroscope, and magnetometer sensors. -version: 6.0.0 +version: 6.0.1 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/sensors_plus/sensors_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/sensors_plus diff --git a/packages/share_plus/share_plus/CHANGELOG.md b/packages/share_plus/share_plus/CHANGELOG.md index 792e904885..db9e98121b 100644 --- a/packages/share_plus/share_plus/CHANGELOG.md +++ b/packages/share_plus/share_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 10.0.1 + +- **CHORE**(share_plus): Update to package:web to ^1.0.0 ([#3105](https://github.com/fluttercommunity/plus_plugins/pull/3105)). ([1f23910a](https://github.com/fluttercommunity/plus_plugins/commit/1f23910ab50fef2e499054f35cedfd14c578976a)) + ## 10.0.0 > Note: This release has breaking changes. diff --git a/packages/share_plus/share_plus/example/pubspec.yaml b/packages/share_plus/share_plus/example/pubspec.yaml index e1a4763051..4162863bd0 100644 --- a/packages/share_plus/share_plus/example/pubspec.yaml +++ b/packages/share_plus/share_plus/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the share_plus plugin. dependencies: flutter: sdk: flutter - share_plus: ^10.0.0 + share_plus: ^10.0.1 image_picker: ^1.1.2 file_selector: ^1.0.3 diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index e458f0017b..3484bcd7fa 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: share_plus description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. -version: 10.0.0 +version: 10.0.1 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/share_plus From bba781187b4af5682331ed90929c61c13137809a Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Tue, 13 Aug 2024 12:54:37 +0200 Subject: [PATCH 03/49] fix(share_plus): #2910 Handle user dismissing dialog on shareUri() in web (#3175) --- packages/share_plus/share_plus/lib/src/share_plus_web.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/share_plus/share_plus/lib/src/share_plus_web.dart b/packages/share_plus/share_plus/lib/src/share_plus_web.dart index 8c75833a91..45d7968aee 100644 --- a/packages/share_plus/share_plus/lib/src/share_plus_web.dart +++ b/packages/share_plus/share_plus/lib/src/share_plus_web.dart @@ -56,6 +56,10 @@ class SharePlusWebPlugin extends SharePlatform { try { await _navigator.share(data).toDart; } on DOMException catch (e) { + if (e.name case 'AbortError') { + return _resultDismissed; + } + developer.log( 'Failed to share uri', error: '${e.name}: ${e.message}', From 79f61add195693f33330103dd5f31f6433dfc1f2 Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Wed, 14 Aug 2024 13:15:57 +0300 Subject: [PATCH 04/49] fix(network_info_plus): Avoid usage of unsupported package:win32 versions (#3179) --- .../lib/src/network_info_plus_windows.dart | 76 ++++++++++++++----- .../network_info_plus/pubspec.yaml | 3 +- 2 files changed, 58 insertions(+), 21 deletions(-) diff --git a/packages/network_info_plus/network_info_plus/lib/src/network_info_plus_windows.dart b/packages/network_info_plus/network_info_plus/lib/src/network_info_plus_windows.dart index 2571a8b589..ad0a4a6a33 100644 --- a/packages/network_info_plus/network_info_plus/lib/src/network_info_plus_windows.dart +++ b/packages/network_info_plus/network_info_plus/lib/src/network_info_plus_windows.dart @@ -1,6 +1,4 @@ /// The Windows implementation of `network_info_plus`. -// ignore_for_file: constant_identifier_names - library network_info_plus_windows; import 'dart:ffi'; @@ -12,7 +10,9 @@ import 'package:network_info_plus_platform_interface/network_info_plus_platform_ import 'package:win32/winsock2.dart'; typedef WlanQuery = String? Function( - Pointer pGuid, Pointer pAttributes); + Pointer pGuid, + Pointer pAttributes, +); class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { int clientHandle = NULL; @@ -24,14 +24,19 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { void openHandle() { if (clientHandle != NULL) return; + // ignore: constant_identifier_names const WLAN_API_VERSION_2_0 = 0x00000002; final phClientHandle = calloc(); final pdwNegotiatedVersion = calloc(); try { final hr = WlanOpenHandle( - WLAN_API_VERSION_2_0, nullptr, pdwNegotiatedVersion, phClientHandle); - if (hr == ERROR_SERVICE_NOT_ACTIVE) return; + WLAN_API_VERSION_2_0, + nullptr, + pdwNegotiatedVersion, + phClientHandle, + ); + if (hr == WIN32_ERROR.ERROR_SERVICE_NOT_ACTIVE) return; clientHandle = phClientHandle.value; } finally { free(pdwNegotiatedVersion); @@ -53,7 +58,9 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { try { var hr = WlanEnumInterfaces(clientHandle, nullptr, ppInterfaceList); - if (hr != ERROR_SUCCESS) return null; // no wifi interface available + if (hr != WIN32_ERROR.ERROR_SUCCESS) { + return null; // no wifi interface available + } for (var i = 0; i < ppInterfaceList.value.ref.dwNumberOfItems; i++) { final pInterfaceGuid = calloc() @@ -65,9 +72,16 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { final ppAttributes = calloc>(); try { - hr = WlanQueryInterface(clientHandle, pInterfaceGuid, opCode, nullptr, - pdwDataSize, ppAttributes.cast(), nullptr); - if (hr != ERROR_SUCCESS) break; + hr = WlanQueryInterface( + clientHandle, + pInterfaceGuid, + opCode, + nullptr, + pdwDataSize, + ppAttributes.cast(), + nullptr, + ); + if (hr != WIN32_ERROR.ERROR_SUCCESS) break; if (ppAttributes.value.ref.isState != 0) { return query(pInterfaceGuid, ppAttributes.value); } @@ -93,19 +107,19 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { String formatIPAddress(Pointer addr) { final buffer = calloc(64).cast(); try { - if (addr.ref.sa_family == AF_INET) { + if (addr.ref.sa_family == ADDRESS_FAMILY.AF_INET) { final sinAddr = addr.cast().ref.sin_addr; final sinAddrPtr = calloc(); sinAddrPtr.value = sinAddr; - inet_ntop(AF_INET, sinAddrPtr, buffer, 64); + inet_ntop(ADDRESS_FAMILY.AF_INET, sinAddrPtr, buffer, 64); free(sinAddrPtr); - } else if (addr.ref.sa_family == AF_INET6) { + } else if (addr.ref.sa_family == ADDRESS_FAMILY.AF_INET6) { final sinAddr = addr.cast().ref.sin6_addr; final sinAddrPtr = calloc(16); for (var i = 0; i < 16; i++) { sinAddrPtr[i] = sinAddr[i]; } - inet_ntop(AF_INET6, sinAddrPtr, buffer, 64); + inet_ntop(ADDRESS_FAMILY.AF_INET6, sinAddrPtr, buffer, 64); free(sinAddrPtr); } return buffer.cast().toDartString(); @@ -187,13 +201,13 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { /// Obtains the IP v4 address of the connected wifi network @override Future getWifiIP() { - return getIPAddr(AF_INET); + return getIPAddr(ADDRESS_FAMILY.AF_INET); } /// Obtains the IP v6 address of the connected wifi network @override Future getWifiIPv6() { - return getIPAddr(AF_INET6); + return getIPAddr(ADDRESS_FAMILY.AF_INET6); } /// Obtains the subnet mask of the connected wifi network @@ -203,9 +217,21 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { final ulSize = calloc(); Pointer pIpAdapterAddress = nullptr; try { - GetAdaptersAddresses(AF_INET, 0, nullptr, nullptr, ulSize); + GetAdaptersAddresses( + ADDRESS_FAMILY.AF_INET, + 0, + nullptr, + nullptr, + ulSize, + ); pIpAdapterAddress = HeapAlloc(GetProcessHeap(), 0, ulSize.value).cast(); - GetAdaptersAddresses(AF_INET, 0, nullptr, pIpAdapterAddress, ulSize); + GetAdaptersAddresses( + ADDRESS_FAMILY.AF_INET, + 0, + nullptr, + pIpAdapterAddress, + ulSize, + ); final pAddr = getAdapterAddress(pGuid, pIpAdapterAddress); if (pAddr == null) return null; return extractSubnet(pAddr); @@ -263,9 +289,21 @@ class NetworkInfoPlusWindowsPlugin extends NetworkInfoPlatform { final ulSize = calloc(); Pointer pIpAdapterAddress = nullptr; try { - GetAdaptersAddresses(AF_INET, 0x80, nullptr, nullptr, ulSize); + GetAdaptersAddresses( + ADDRESS_FAMILY.AF_INET, + 0x80, + nullptr, + nullptr, + ulSize, + ); pIpAdapterAddress = HeapAlloc(GetProcessHeap(), 0, ulSize.value).cast(); - GetAdaptersAddresses(AF_INET, 0x80, nullptr, pIpAdapterAddress, ulSize); + GetAdaptersAddresses( + ADDRESS_FAMILY.AF_INET, + 0x80, + nullptr, + pIpAdapterAddress, + ulSize, + ); final pAddr = getAdapterAddress(pGuid, pIpAdapterAddress); if (pAddr == null) return null; if (pAddr.ref.FirstGatewayAddress == nullptr) return null; diff --git a/packages/network_info_plus/network_info_plus/pubspec.yaml b/packages/network_info_plus/network_info_plus/pubspec.yaml index 5e2dc24b83..ac6e208a0d 100644 --- a/packages/network_info_plus/network_info_plus/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/pubspec.yaml @@ -40,8 +40,7 @@ dependencies: sdk: flutter meta: ^1.8.0 network_info_plus_platform_interface: ^2.0.1 - # win32 is compatible across v4 and v5 for Win32 only (not COM) - win32: ">=4.0.0 <6.0.0" + win32: ^5.4.0 ffi: ^2.0.1 dev_dependencies: From 4c5f49ac0169dc4619e3bbb349aa7c07da4d794e Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Thu, 15 Aug 2024 16:18:44 +0300 Subject: [PATCH 05/49] chore(release): prepare for release (#3182) --- packages/network_info_plus/network_info_plus/CHANGELOG.md | 4 ++++ .../network_info_plus/network_info_plus/example/pubspec.yaml | 2 +- packages/network_info_plus/network_info_plus/pubspec.yaml | 2 +- packages/share_plus/share_plus/CHANGELOG.md | 4 ++++ packages/share_plus/share_plus/example/pubspec.yaml | 2 +- packages/share_plus/share_plus/pubspec.yaml | 2 +- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/network_info_plus/network_info_plus/CHANGELOG.md b/packages/network_info_plus/network_info_plus/CHANGELOG.md index db64d4a9c9..3197f7cc7c 100644 --- a/packages/network_info_plus/network_info_plus/CHANGELOG.md +++ b/packages/network_info_plus/network_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.0.1 + + - **FIX**(network_info_plus): Avoid usage of unsupported package:win32 versions ([#3179](https://github.com/fluttercommunity/plus_plugins/issues/3179)). ([79f61add](https://github.com/fluttercommunity/plus_plugins/commit/79f61add195693f33330103dd5f31f6433dfc1f2)) + ## 6.0.0 > Note: This release has breaking changes. diff --git a/packages/network_info_plus/network_info_plus/example/pubspec.yaml b/packages/network_info_plus/network_info_plus/example/pubspec.yaml index cbc44a1dd7..2ebe1afe9c 100644 --- a/packages/network_info_plus/network_info_plus/example/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/example/pubspec.yaml @@ -7,7 +7,7 @@ environment: dependencies: flutter: sdk: flutter - network_info_plus: ^6.0.0 + network_info_plus: ^6.0.1 permission_handler: ^11.3.0 dev_dependencies: diff --git a/packages/network_info_plus/network_info_plus/pubspec.yaml b/packages/network_info_plus/network_info_plus/pubspec.yaml index ac6e208a0d..2246b1e446 100644 --- a/packages/network_info_plus/network_info_plus/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: network_info_plus description: Flutter plugin for discovering information (e.g. WiFi details) of the network. -version: 6.0.0 +version: 6.0.1 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/network_info_plus/network_info_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/network_info_plus diff --git a/packages/share_plus/share_plus/CHANGELOG.md b/packages/share_plus/share_plus/CHANGELOG.md index db9e98121b..ecc6ebe831 100644 --- a/packages/share_plus/share_plus/CHANGELOG.md +++ b/packages/share_plus/share_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 10.0.2 + + - **FIX**(share_plus): [#2910](https://github.com/fluttercommunity/plus_plugins/issues/2910) Handle user dismissing dialog on shareUri() in web ([#3175](https://github.com/fluttercommunity/plus_plugins/issues/3175)). ([bba78118](https://github.com/fluttercommunity/plus_plugins/commit/bba781187b4af5682331ed90929c61c13137809a)) + ## 10.0.1 - **CHORE**(share_plus): Update to package:web to ^1.0.0 ([#3105](https://github.com/fluttercommunity/plus_plugins/pull/3105)). ([1f23910a](https://github.com/fluttercommunity/plus_plugins/commit/1f23910ab50fef2e499054f35cedfd14c578976a)) diff --git a/packages/share_plus/share_plus/example/pubspec.yaml b/packages/share_plus/share_plus/example/pubspec.yaml index 4162863bd0..f4b5f69c63 100644 --- a/packages/share_plus/share_plus/example/pubspec.yaml +++ b/packages/share_plus/share_plus/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the share_plus plugin. dependencies: flutter: sdk: flutter - share_plus: ^10.0.1 + share_plus: ^10.0.2 image_picker: ^1.1.2 file_selector: ^1.0.3 diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index 3484bcd7fa..44905f13e9 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: share_plus description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. -version: 10.0.1 +version: 10.0.2 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/share_plus From 0c5706fa0cda418e552980c93a52e15667e5bb3f Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Thu, 15 Aug 2024 16:19:40 +0300 Subject: [PATCH 06/49] docs: Update CONTRIBUTING.md (#3183) --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6290a0bf53..e7d8643e23 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -284,11 +284,11 @@ Some things to keep in mind before publishing the release: 1. Switch to `main` branch locally. 2. Run `git pull origin main`. 3. Run `git pull --tags` to make sure all tags are fetched. -4. Create new branch with the signature `release/[year]-[month]-[day]`. +4. Create new branch with the signature `release/[year]-[month]-[day]` and push it without any commits to remote as otherwise Melos would fail to version changes on next steps. 5. Run `melos version --no-git-commit-version` to automatically version packages and update Changelogs. 6. Run `melos publish` to dry run and confirm all packages are publishable. 7. After successful dry run, commit all changes with the signature "chore(release): prepare for release". 8. Run `git push origin [RELEASE BRANCH NAME]` & open pull request for review on GitHub. 9. After successful review and merge of the pull request, switch to main branch locally, & run `git pull origin main`. -10. Run `melos publish --no-dry-run --git-tag-version` to now publish to Pub.dev. +10. Run `melos publish --no-dry-run --git-tag-version` to now publish to pub.dev. 11. Run `git push --tags` to push tags to repository. From 91f48a6bc7d11c4238c9539ca06e6fa768995580 Mon Sep 17 00:00:00 2001 From: Konstantin Ullrich Date: Mon, 19 Aug 2024 14:58:45 +0200 Subject: [PATCH 07/49] fix(device_info_plus): Fix type cast of digitalProductId on windows (#3188) --- .../device_info_plus/lib/src/device_info_plus_windows.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart b/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart index 217540fe65..cb966bdb49 100644 --- a/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart +++ b/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart @@ -56,7 +56,7 @@ class DeviceInfoPlusWindowsPlugin extends DeviceInfoPlatform { final digitalProductId = digitalProductIdValue != null && digitalProductIdValue.data is Uint8List ? digitalProductIdValue.data as Uint8List - : [] as Uint8List; + : Uint8List.fromList([]); final displayVersion = currentVersionKey.getValueAsString('DisplayVersion') ?? ''; final editionId = currentVersionKey.getValueAsString('EditionID') ?? ''; From 4e6def451016ca07d1f1ce80b881225e1f52b577 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Mon, 2 Sep 2024 13:56:52 +0200 Subject: [PATCH 08/49] ci(all): Remove Gradle Dependabot config (#3243) --- .github/dependabot.yml | 162 ----------------------------------------- 1 file changed, 162 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6f0ee147ad..1e6185f2f2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -28,24 +28,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/android_alarm_manager_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/android_alarm_manager_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - package-ecosystem: "pub" directory: "/packages/android_alarm_manager_plus/example" schedule: @@ -84,24 +66,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/android_intent_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/android_intent_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Battery Plus dependencies updates config - package-ecosystem: "pub" @@ -140,24 +104,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/battery_plus/battery_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "packages/battery_plus/battery_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Connectivity Plus dependencies updates config - package-ecosystem: "pub" @@ -196,24 +142,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/connectivity_plus/connectivity_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/connectivity_plus/connectivity_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Device Info Plus dependencies updates config - package-ecosystem: "pub" @@ -252,24 +180,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/device_info_plus/device_info_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/device_info_plus/device_info_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Network Info Plus dependencies updates config - package-ecosystem: "pub" @@ -308,24 +218,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/network_info_plus/network_info_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/network_info_plus/network_info_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Package Info Plus dependencies updates config - package-ecosystem: "pub" @@ -364,24 +256,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/package_info_plus/package_info_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/package_info_plus/package_info_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Sensors Plus dependencies updates config - package-ecosystem: "pub" @@ -420,24 +294,6 @@ updates: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - package-ecosystem: "gradle" - directory: "/packages/sensors_plus/sensors_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/sensors_plus/sensors_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - # Share Plus dependencies updates config - package-ecosystem: "pub" @@ -475,21 +331,3 @@ updates: ignore: - dependency-name: "*" update-types: ["version-update:semver-minor", "version-update:semver-patch"] - - - package-ecosystem: "gradle" - directory: "/packages/share_plus/share_plus/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" - - - package-ecosystem: "gradle" - directory: "/packages/share_plus/share_plus/example/android" - schedule: - interval: "monthly" - rebase-strategy: "disabled" - commit-message: - prefix: "chore" - include: "scope" From bf5dad2ad249605055bcbd5f663e42569df12d64 Mon Sep 17 00:00:00 2001 From: kjxbyz Date: Wed, 11 Sep 2024 13:04:18 +0800 Subject: [PATCH 09/49] fix(all): Add macOS Privacy Manifests (#3251) --- .../battery_plus/macos/PrivacyInfo.xcprivacy | 14 ++++++++++++++ .../battery_plus/macos/battery_plus.podspec | 1 + .../device_info_plus/macos/PrivacyInfo.xcprivacy | 14 ++++++++++++++ .../macos/device_info_plus.podspec | 1 + .../network_info_plus/macos/PrivacyInfo.xcprivacy | 14 ++++++++++++++ .../macos/network_info_plus.podspec | 1 + .../package_info_plus/macos/PrivacyInfo.xcprivacy | 14 ++++++++++++++ .../macos/package_info_plus.podspec | 1 + .../share_plus/macos/PrivacyInfo.xcprivacy | 14 ++++++++++++++ .../share_plus/share_plus/macos/share_plus.podspec | 1 + 10 files changed, 75 insertions(+) create mode 100644 packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy create mode 100644 packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy create mode 100644 packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy create mode 100644 packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy create mode 100644 packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy diff --git a/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy b/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..a34b7e2e60 --- /dev/null +++ b/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/battery_plus/battery_plus/macos/battery_plus.podspec b/packages/battery_plus/battery_plus/macos/battery_plus.podspec index 7f715df700..86042e4383 100644 --- a/packages/battery_plus/battery_plus/macos/battery_plus.podspec +++ b/packages/battery_plus/battery_plus/macos/battery_plus.podspec @@ -19,4 +19,5 @@ A Flutter plugin for accessing information about the battery state(full, chargin s.platform = :osx, '10.14' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.swift_version = '5.0' + s.resource_bundles = {'batery_plus_privacy' => ['PrivacyInfo.xcprivacy']} end diff --git a/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy b/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..a34b7e2e60 --- /dev/null +++ b/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/device_info_plus/device_info_plus/macos/device_info_plus.podspec b/packages/device_info_plus/device_info_plus/macos/device_info_plus.podspec index e64838ca23..b437ffb64c 100644 --- a/packages/device_info_plus/device_info_plus/macos/device_info_plus.podspec +++ b/packages/device_info_plus/device_info_plus/macos/device_info_plus.podspec @@ -19,4 +19,5 @@ https://github.com/flutter/flutter/issues/46618 s.platform = :osx s.osx.deployment_target = '10.14' + s.resource_bundles = {'device_info_plus_privacy' => ['PrivacyInfo.xcprivacy']} end diff --git a/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy b/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..a34b7e2e60 --- /dev/null +++ b/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/network_info_plus/network_info_plus/macos/network_info_plus.podspec b/packages/network_info_plus/network_info_plus/macos/network_info_plus.podspec index ecbb164a12..b15ab9fbf8 100644 --- a/packages/network_info_plus/network_info_plus/macos/network_info_plus.podspec +++ b/packages/network_info_plus/network_info_plus/macos/network_info_plus.podspec @@ -19,5 +19,6 @@ Pod::Spec.new do |s| s.platform = :osx s.osx.deployment_target = '10.14' + s.resource_bundles = {'network_info_plus_privacy' => ['PrivacyInfo.xcprivacy']} end diff --git a/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy b/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..a34b7e2e60 --- /dev/null +++ b/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec b/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec index 6041584bcd..5153a46242 100644 --- a/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec +++ b/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec @@ -17,4 +17,5 @@ Pod::Spec.new do |s| s.dependency 'FlutterMacOS' s.platform = :osx, '10.14' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } + s.resource_bundles = {'package_info_plus_privacy' => ['PrivacyInfo.xcprivacy']} end diff --git a/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy b/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..a34b7e2e60 --- /dev/null +++ b/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/share_plus/share_plus/macos/share_plus.podspec b/packages/share_plus/share_plus/macos/share_plus.podspec index 07fdfcee3e..c0991cd138 100644 --- a/packages/share_plus/share_plus/macos/share_plus.podspec +++ b/packages/share_plus/share_plus/macos/share_plus.podspec @@ -19,4 +19,5 @@ https://github.com/flutter/flutter/issues/46618 s.platform = :osx s.osx.deployment_target = '10.14' + s.resource_bundles = {'share_plus_privacy' => ['PrivacyInfo.xcprivacy']} end From 06b2b28be93049c9e459700736622269e18c74ca Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:05:47 +0300 Subject: [PATCH 10/49] chore(deps): bump androidx.test:runner from 1.6.1 to 1.6.2 in /packages/connectivity_plus/connectivity_plus/example/android (#3224) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../connectivity_plus/example/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectivity_plus/connectivity_plus/example/android/app/build.gradle b/packages/connectivity_plus/connectivity_plus/example/android/app/build.gradle index 6485aa45fa..3efaaa1a6e 100644 --- a/packages/connectivity_plus/connectivity_plus/example/android/app/build.gradle +++ b/packages/connectivity_plus/connectivity_plus/example/android/app/build.gradle @@ -62,6 +62,6 @@ flutter { dependencies { testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test:runner:1.6.1' + androidTestImplementation 'androidx.test:runner:1.6.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' } From b645a11412b887b12c801dd20b39506dfbb9e857 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:06:00 +0300 Subject: [PATCH 11/49] chore(deps): bump androidx.test:runner from 1.6.1 to 1.6.2 in /packages/share_plus/share_plus/example/android (#3214) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/share_plus/share_plus/example/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/example/android/app/build.gradle b/packages/share_plus/share_plus/example/android/app/build.gradle index 077039fc0d..239a45415a 100644 --- a/packages/share_plus/share_plus/example/android/app/build.gradle +++ b/packages/share_plus/share_plus/example/android/app/build.gradle @@ -59,6 +59,6 @@ flutter { dependencies { testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test:runner:1.6.1' + androidTestImplementation 'androidx.test:runner:1.6.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' } From c6cbbad3da4528a8ccbc4767899a7c47d7231738 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:16:44 +0300 Subject: [PATCH 12/49] chore(deps): bump androidx.test:runner from 1.6.1 to 1.6.2 in /packages/package_info_plus/package_info_plus/example/android (#3201) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../package_info_plus/example/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/package_info_plus/package_info_plus/example/android/app/build.gradle b/packages/package_info_plus/package_info_plus/example/android/app/build.gradle index 2ed1337b30..a03abe94af 100644 --- a/packages/package_info_plus/package_info_plus/example/android/app/build.gradle +++ b/packages/package_info_plus/package_info_plus/example/android/app/build.gradle @@ -67,6 +67,6 @@ flutter { dependencies { testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test:runner:1.6.1' + androidTestImplementation 'androidx.test:runner:1.6.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' } From 78f385f4f03dcfe0c767bebf408a90705e9261e2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:17:01 +0300 Subject: [PATCH 13/49] chore(deps): bump androidx.test:runner from 1.6.1 to 1.6.2 in /packages/network_info_plus/network_info_plus/example/android (#3203) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../network_info_plus/example/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/network_info_plus/network_info_plus/example/android/app/build.gradle b/packages/network_info_plus/network_info_plus/example/android/app/build.gradle index dee8053e53..6e56eead76 100644 --- a/packages/network_info_plus/network_info_plus/example/android/app/build.gradle +++ b/packages/network_info_plus/network_info_plus/example/android/app/build.gradle @@ -61,6 +61,6 @@ flutter { dependencies { testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test:runner:1.6.1' + androidTestImplementation 'androidx.test:runner:1.6.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' } From 85deaec1df936dfdd16b7e3b016beadd67c25d29 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:18:22 +0300 Subject: [PATCH 14/49] chore(deps): bump org.mockito:mockito-core from 5.12.0 to 5.13.0 in /packages/android_intent_plus/android (#3209) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/android_intent_plus/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/android_intent_plus/android/build.gradle b/packages/android_intent_plus/android/build.gradle index db83eea2b2..4f2795ba80 100644 --- a/packages/android_intent_plus/android/build.gradle +++ b/packages/android_intent_plus/android/build.gradle @@ -48,7 +48,7 @@ android { dependencies { implementation 'androidx.annotation:annotation:1.8.1' testImplementation 'junit:junit:4.13.2' - testImplementation 'org.mockito:mockito-core:5.12.0' + testImplementation 'org.mockito:mockito-core:5.13.0' testImplementation 'androidx.test:core:1.6.1' testImplementation 'org.robolectric:robolectric:4.13' } From 550c1a315ade5a6cbbd799c24688aac398b27c91 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:21:23 +0300 Subject: [PATCH 15/49] chore(deps): bump androidx.annotation:annotation from 1.8.1 to 1.8.2 in /packages/android_intent_plus/android (#3211) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/android_intent_plus/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/android_intent_plus/android/build.gradle b/packages/android_intent_plus/android/build.gradle index 4f2795ba80..fcc7295eb0 100644 --- a/packages/android_intent_plus/android/build.gradle +++ b/packages/android_intent_plus/android/build.gradle @@ -46,7 +46,7 @@ android { } dependencies { - implementation 'androidx.annotation:annotation:1.8.1' + implementation 'androidx.annotation:annotation:1.8.2' testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:5.13.0' testImplementation 'androidx.test:core:1.6.1' From aa8e221c72f37ddd703929f3324b6a1941798392 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:21:33 +0300 Subject: [PATCH 16/49] chore(deps): bump androidx.annotation:annotation from 1.8.1 to 1.8.2 in /packages/share_plus/share_plus/android (#3207) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/share_plus/share_plus/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/android/build.gradle b/packages/share_plus/share_plus/android/build.gradle index 3bfe3e723b..56b97cf921 100644 --- a/packages/share_plus/share_plus/android/build.gradle +++ b/packages/share_plus/share_plus/android/build.gradle @@ -50,6 +50,6 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.13.1' - implementation 'androidx.annotation:annotation:1.8.1' + implementation 'androidx.annotation:annotation:1.8.2' } } From 15c43c950d1f8c93c602b284c9653622abd8c15b Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 18 Sep 2024 16:48:17 +0200 Subject: [PATCH 17/49] chore(all): set `win32` dependency to `^5.5.3` (#3260) --- packages/device_info_plus/device_info_plus/pubspec.yaml | 4 +--- packages/network_info_plus/network_info_plus/pubspec.yaml | 2 +- packages/package_info_plus/package_info_plus/pubspec.yaml | 4 +--- packages/share_plus/share_plus/pubspec.yaml | 4 +--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/device_info_plus/device_info_plus/pubspec.yaml b/packages/device_info_plus/device_info_plus/pubspec.yaml index 3457c632f0..b3b72119cb 100644 --- a/packages/device_info_plus/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/pubspec.yaml @@ -38,9 +38,7 @@ dependencies: sdk: flutter meta: ^1.8.0 web: ">=0.5.0 <2.0.0" - - # win32 is compatible across v4 and v5 for Win32 only (not COM) - win32: ">=4.0.0 <6.0.0" + win32: ^5.5.3 win32_registry: ^1.1.0 dev_dependencies: diff --git a/packages/network_info_plus/network_info_plus/pubspec.yaml b/packages/network_info_plus/network_info_plus/pubspec.yaml index 2246b1e446..c24f5f74a1 100644 --- a/packages/network_info_plus/network_info_plus/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: sdk: flutter meta: ^1.8.0 network_info_plus_platform_interface: ^2.0.1 - win32: ^5.4.0 + win32: ^5.5.3 ffi: ^2.0.1 dev_dependencies: diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index 9cd39d1c2c..cdce53035a 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -38,9 +38,7 @@ dependencies: path: ^1.8.2 package_info_plus_platform_interface: ^3.0.1 web: ">=0.5.0 <2.0.0" - - # win32 is compatible across v4 and v5 for Win32 only (not COM) - win32: ">=4.0.0 <6.0.0" + win32: ^5.5.3 clock: ^1.1.1 dev_dependencies: diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index 44905f13e9..0a8e6f0d0a 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -43,9 +43,7 @@ dependencies: url_launcher_platform_interface: ^2.3.2 ffi: ^2.1.2 web: ^1.0.0 - - # win32 is compatible across v4 and v5 for Win32 only (not COM) - win32: ">=4.0.0 <6.0.0" + win32: ^5.5.3 dev_dependencies: flutter_test: From ac2f72bc703de55a4067cc96b612f4864dca4c62 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:45:53 +0200 Subject: [PATCH 18/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/connectivity_plus/connectivity_plus (#3271) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/connectivity_plus/connectivity_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectivity_plus/connectivity_plus/pubspec.yaml b/packages/connectivity_plus/connectivity_plus/pubspec.yaml index 66956fff22..9536fad050 100644 --- a/packages/connectivity_plus/connectivity_plus/pubspec.yaml +++ b/packages/connectivity_plus/connectivity_plus/pubspec.yaml @@ -51,7 +51,7 @@ dev_dependencies: sdk: flutter build_runner: ^2.3.3 dbus: ^0.7.8 - flutter_lints: ^4.0.0 + flutter_lints: ">=4.0.0 <6.0.0" mockito: ^5.4.0 plugin_platform_interface: ^2.1.5 test: ^1.22.0 From e14075a3c2d93892723a31a1efc7132af5bf545f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:46:22 +0200 Subject: [PATCH 19/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/battery_plus/battery_plus/example (#3272) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/battery_plus/battery_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/battery_plus/battery_plus/example/pubspec.yaml b/packages/battery_plus/battery_plus/example/pubspec.yaml index bcdf87032e..f3e08e7cec 100644 --- a/packages/battery_plus/battery_plus/example/pubspec.yaml +++ b/packages/battery_plus/battery_plus/example/pubspec.yaml @@ -17,7 +17,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 flutter: uses-material-design: true From bc3eac380a6e352652aa80660f8dc339bcb14a7c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:46:42 +0200 Subject: [PATCH 20/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/sensors_plus/sensors_plus (#3273) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/sensors_plus/sensors_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sensors_plus/sensors_plus/pubspec.yaml b/packages/sensors_plus/sensors_plus/pubspec.yaml index f2b1f8c070..98186db936 100644 --- a/packages/sensors_plus/sensors_plus/pubspec.yaml +++ b/packages/sensors_plus/sensors_plus/pubspec.yaml @@ -33,7 +33,7 @@ dev_dependencies: test: ^1.22.0 flutter_test: sdk: flutter - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" environment: sdk: ">=3.3.0 <4.0.0" From b243dacf157376bc8431d3a602ca3aee6d38ecfb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:47:16 +0200 Subject: [PATCH 21/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/android_alarm_manager_plus/example (#3274) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/android_alarm_manager_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/android_alarm_manager_plus/example/pubspec.yaml b/packages/android_alarm_manager_plus/example/pubspec.yaml index 92dc1d6738..495544fc92 100644 --- a/packages/android_alarm_manager_plus/example/pubspec.yaml +++ b/packages/android_alarm_manager_plus/example/pubspec.yaml @@ -18,7 +18,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 flutter: uses-material-design: true From 247fe5f030e0391a1d51aab6f113401bcb7b38b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:47:33 +0200 Subject: [PATCH 22/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/battery_plus/battery_plus (#3275) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/battery_plus/battery_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/battery_plus/battery_plus/pubspec.yaml b/packages/battery_plus/battery_plus/pubspec.yaml index db772443ed..cf5001a24a 100644 --- a/packages/battery_plus/battery_plus/pubspec.yaml +++ b/packages/battery_plus/battery_plus/pubspec.yaml @@ -40,7 +40,7 @@ dev_dependencies: flutter_test: sdk: flutter async: ^2.10.0 - flutter_lints: ^4.0.0 + flutter_lints: ">=4.0.0 <6.0.0" mockito: ^5.4.0 plugin_platform_interface: ^2.1.4 From 0f2f924f735e0ff2ea85b4e0de7d8bb69382b368 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:47:46 +0200 Subject: [PATCH 23/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/network_info_plus/network_info_plus (#3276) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/network_info_plus/network_info_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/network_info_plus/network_info_plus/pubspec.yaml b/packages/network_info_plus/network_info_plus/pubspec.yaml index c24f5f74a1..304d2412b2 100644 --- a/packages/network_info_plus/network_info_plus/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/pubspec.yaml @@ -48,4 +48,4 @@ dev_dependencies: sdk: flutter mockito: ^5.4.0 plugin_platform_interface: ^2.1.4 - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" From c7ca7f27a1c70ccc7ac7ce9bccb9ec5892b20102 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:51:12 +0200 Subject: [PATCH 24/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/share_plus/share_plus (#3277) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/share_plus/share_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index 0a8e6f0d0a..b613b5ff79 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -48,7 +48,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" environment: sdk: ">=3.3.0 <4.0.0" From ac4318614c89f77a173c7993cc83f871a021b4f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:51:36 +0200 Subject: [PATCH 25/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/network_info_plus/network_info_plus_platform_interface (#3278) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../network_info_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/network_info_plus/network_info_plus_platform_interface/pubspec.yaml b/packages/network_info_plus/network_info_plus_platform_interface/pubspec.yaml index 8296ba0e8c..b5959a485a 100644 --- a/packages/network_info_plus/network_info_plus_platform_interface/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus_platform_interface/pubspec.yaml @@ -17,4 +17,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" From f0a3a2ec0b60fbd0cf97b7d0fd10bbd04ab3f454 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:53:41 +0200 Subject: [PATCH 26/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/device_info_plus/device_info_plus_platform_interface (#3279) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../device_info_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus_platform_interface/pubspec.yaml b/packages/device_info_plus/device_info_plus_platform_interface/pubspec.yaml index d07eb8fa68..2ae11e4430 100644 --- a/packages/device_info_plus/device_info_plus_platform_interface/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus_platform_interface/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: plugin_platform_interface: ^2.1.4 dev_dependencies: - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" flutter_test: sdk: flutter mockito: ^5.4.0 From cddc2913816e16824879fce34422c5944603339d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:54:21 +0200 Subject: [PATCH 27/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/battery_plus/battery_plus_platform_interface (#3280) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../battery_plus/battery_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/battery_plus/battery_plus_platform_interface/pubspec.yaml b/packages/battery_plus/battery_plus_platform_interface/pubspec.yaml index 4749ad5723..a548eef44e 100644 --- a/packages/battery_plus/battery_plus_platform_interface/pubspec.yaml +++ b/packages/battery_plus/battery_plus_platform_interface/pubspec.yaml @@ -17,4 +17,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ">=4.0.0 <6.0.0" From 8fefe5d710e37bf061820aa5cfa41d998b2d419c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:54:38 +0200 Subject: [PATCH 28/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/android_intent_plus (#3281) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/android_intent_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/android_intent_plus/pubspec.yaml b/packages/android_intent_plus/pubspec.yaml index 55ef794afe..cd5f62b4d2 100644 --- a/packages/android_intent_plus/pubspec.yaml +++ b/packages/android_intent_plus/pubspec.yaml @@ -31,4 +31,4 @@ dev_dependencies: sdk: flutter test: ^1.12.0 mockito: ^5.4.0 - flutter_lints: ^4.0.0 + flutter_lints: ">=4.0.0 <6.0.0" From 868b57116bef63206b5985ab38a6b5667213b90c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:54:50 +0200 Subject: [PATCH 29/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/share_plus/share_plus/example (#3282) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/share_plus/share_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/example/pubspec.yaml b/packages/share_plus/share_plus/example/pubspec.yaml index f4b5f69c63..80fed4d4da 100644 --- a/packages/share_plus/share_plus/example/pubspec.yaml +++ b/packages/share_plus/share_plus/example/pubspec.yaml @@ -15,7 +15,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 flutter: uses-material-design: true From 72621b37974403a04cac03e7232d9b1ad7b39fc2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:55:01 +0200 Subject: [PATCH 30/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/package_info_plus/package_info_plus_platform_interface (#3283) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../package_info_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/package_info_plus/package_info_plus_platform_interface/pubspec.yaml b/packages/package_info_plus/package_info_plus_platform_interface/pubspec.yaml index 8363b9d8e8..a700b4ca97 100644 --- a/packages/package_info_plus/package_info_plus_platform_interface/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus_platform_interface/pubspec.yaml @@ -14,7 +14,7 @@ dev_dependencies: flutter_test: sdk: flutter mockito: ^5.4.0 - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" environment: sdk: ">=2.18.0 <4.0.0" From 40eff5e58e47707ddcc5f87f7ef35a9ad2b74706 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:55:13 +0200 Subject: [PATCH 31/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/connectivity_plus/connectivity_plus_platform_interface (#3284) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../connectivity_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectivity_plus/connectivity_plus_platform_interface/pubspec.yaml b/packages/connectivity_plus/connectivity_plus_platform_interface/pubspec.yaml index db32dd0847..d63e508b94 100644 --- a/packages/connectivity_plus/connectivity_plus_platform_interface/pubspec.yaml +++ b/packages/connectivity_plus/connectivity_plus_platform_interface/pubspec.yaml @@ -17,4 +17,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ">=4.0.0 <6.0.0" From f220115b4257cc5664e5f3fc04a496a3a4dfca89 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:55:25 +0200 Subject: [PATCH 32/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/connectivity_plus/connectivity_plus/example (#3285) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../connectivity_plus/connectivity_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml b/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml index 64fc0b64a6..a84de80b65 100644 --- a/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml +++ b/packages/connectivity_plus/connectivity_plus/example/pubspec.yaml @@ -17,7 +17,7 @@ dev_dependencies: integration_test: sdk: flutter test: ^1.16.4 - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 flutter: uses-material-design: true From ff868e490eeff38c0267cb84b5d9557ae92a2f9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:57:56 +0200 Subject: [PATCH 33/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/network_info_plus/network_info_plus/example (#3286) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../network_info_plus/network_info_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/network_info_plus/network_info_plus/example/pubspec.yaml b/packages/network_info_plus/network_info_plus/example/pubspec.yaml index 2ebe1afe9c..8808aba0f0 100644 --- a/packages/network_info_plus/network_info_plus/example/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/example/pubspec.yaml @@ -16,7 +16,7 @@ dev_dependencies: integration_test: sdk: flutter test: ^1.21.0 - flutter_lints: ^3.0.1 + flutter_lints: ^5.0.0 flutter: uses-material-design: true From 2539f51bc9ccb05e9efb3178c3e2e5c68605bc09 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:41:41 +0200 Subject: [PATCH 34/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/share_plus/share_plus_platform_interface (#3287) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/share_plus/share_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus_platform_interface/pubspec.yaml b/packages/share_plus/share_plus_platform_interface/pubspec.yaml index c1260f36a2..8ed3d00457 100644 --- a/packages/share_plus/share_plus_platform_interface/pubspec.yaml +++ b/packages/share_plus/share_plus_platform_interface/pubspec.yaml @@ -18,7 +18,7 @@ dev_dependencies: flutter_test: sdk: flutter mockito: ^5.4.0 - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" test: ^1.22.0 environment: From e071d55cf770e8a01964c24d3b55cfb852df00ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:42:08 +0200 Subject: [PATCH 35/49] chore(deps): bump mime from 1.0.6 to 2.0.0 in /packages/share_plus/share_plus_platform_interface (#3288) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/share_plus/share_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus_platform_interface/pubspec.yaml b/packages/share_plus/share_plus_platform_interface/pubspec.yaml index 8ed3d00457..0f318d2d0e 100644 --- a/packages/share_plus/share_plus_platform_interface/pubspec.yaml +++ b/packages/share_plus/share_plus_platform_interface/pubspec.yaml @@ -9,7 +9,7 @@ dependencies: flutter: sdk: flutter meta: ^1.8.0 - mime: ^1.0.4 + mime: ">=1.0.4 <3.0.0" plugin_platform_interface: ^2.1.4 path_provider: ^2.0.14 uuid: ">=3.0.7 <5.0.0" From ff5d4b2e3da0018ad3f3a1a4b916d662c478b7b0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:42:21 +0200 Subject: [PATCH 36/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/android_alarm_manager_plus (#3289) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/android_alarm_manager_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/android_alarm_manager_plus/pubspec.yaml b/packages/android_alarm_manager_plus/pubspec.yaml index 98fb8a33d5..d25d278392 100644 --- a/packages/android_alarm_manager_plus/pubspec.yaml +++ b/packages/android_alarm_manager_plus/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ">=4.0.0 <6.0.0" flutter: plugin: From 04b1612667e48ccb15fee0b35d3a7dea48e225b0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:42:35 +0200 Subject: [PATCH 37/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/sensors_plus/sensors_plus/example (#3290) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/sensors_plus/sensors_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sensors_plus/sensors_plus/example/pubspec.yaml b/packages/sensors_plus/sensors_plus/example/pubspec.yaml index ffdc0c0455..9f4a3d8f72 100644 --- a/packages/sensors_plus/sensors_plus/example/pubspec.yaml +++ b/packages/sensors_plus/sensors_plus/example/pubspec.yaml @@ -11,7 +11,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - flutter_lints: ^3.0.1 + flutter_lints: ^5.0.0 flutter_test: sdk: flutter From 156139a75c2af980b65bf366ec478b51b7afd293 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:42:50 +0200 Subject: [PATCH 38/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/device_info_plus/device_info_plus/example (#3291) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/device_info_plus/device_info_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus/example/pubspec.yaml b/packages/device_info_plus/device_info_plus/example/pubspec.yaml index f2f5ba1e41..afcf74b382 100644 --- a/packages/device_info_plus/device_info_plus/example/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/example/pubspec.yaml @@ -13,7 +13,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - flutter_lints: ^3.0.1 + flutter_lints: ^5.0.0 flutter: uses-material-design: true From 331ce459ca243883ca213962ca8891c7ad14f304 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:43:03 +0200 Subject: [PATCH 39/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/device_info_plus/device_info_plus (#3292) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/device_info_plus/device_info_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus/pubspec.yaml b/packages/device_info_plus/device_info_plus/pubspec.yaml index b3b72119cb..be63972e14 100644 --- a/packages/device_info_plus/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/pubspec.yaml @@ -42,7 +42,7 @@ dependencies: win32_registry: ^1.1.0 dev_dependencies: - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" flutter_test: sdk: flutter mockito: ^5.4.0 From d0b081b5271f705ebb3f3efdcf5572506d5e234a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:57:56 +0200 Subject: [PATCH 40/49] chore(deps): bump flutter_lints from 4.0.0 to 5.0.0 in /packages/android_intent_plus/example (#3293) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/android_intent_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/android_intent_plus/example/pubspec.yaml b/packages/android_intent_plus/example/pubspec.yaml index 83e77f1e48..df7d137a91 100644 --- a/packages/android_intent_plus/example/pubspec.yaml +++ b/packages/android_intent_plus/example/pubspec.yaml @@ -18,7 +18,7 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 # The following section is specific to Flutter. flutter: From 2a8c890687f8414bc5b04da9c63a98f0c6f6bbdc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:58:09 +0200 Subject: [PATCH 41/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/package_info_plus/package_info_plus (#3294) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/package_info_plus/package_info_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index cdce53035a..592e2c2f1d 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -42,7 +42,7 @@ dependencies: clock: ^1.1.1 dev_dependencies: - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" flutter_test: sdk: flutter test: ^1.22.0 From e634dfa0838e4dca0f96f28c9be6d8ab106a875f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:58:22 +0200 Subject: [PATCH 42/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/package_info_plus/package_info_plus/example (#3295) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../package_info_plus/package_info_plus/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/package_info_plus/package_info_plus/example/pubspec.yaml b/packages/package_info_plus/package_info_plus/example/pubspec.yaml index ce6d7b68ee..fe133f1a8e 100644 --- a/packages/package_info_plus/package_info_plus/example/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/example/pubspec.yaml @@ -20,7 +20,7 @@ dev_dependencies: sdk: flutter flutter_driver: sdk: flutter - flutter_lints: ^3.0.1 + flutter_lints: ^5.0.0 flutter_test: sdk: flutter mockito: ^5.4.0 From d010d76b3764122c7bffa7a83be02f852d90351b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:58:41 +0200 Subject: [PATCH 43/49] chore(deps): bump flutter_lints from 3.0.2 to 5.0.0 in /packages/sensors_plus/sensors_plus_platform_interface (#3296) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .../sensors_plus/sensors_plus_platform_interface/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sensors_plus/sensors_plus_platform_interface/pubspec.yaml b/packages/sensors_plus/sensors_plus_platform_interface/pubspec.yaml index 7c78bba9a5..54f6c4a56b 100644 --- a/packages/sensors_plus/sensors_plus_platform_interface/pubspec.yaml +++ b/packages/sensors_plus/sensors_plus_platform_interface/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ">=2.0.1 <4.0.0" + flutter_lints: ">=2.0.1 <6.0.0" test: ^1.22.0 environment: From d7b98ebd7d39b0143931f5cc6e627187576223dc Mon Sep 17 00:00:00 2001 From: kjxbyz Date: Tue, 1 Oct 2024 15:00:42 +0800 Subject: [PATCH 44/49] fix(all): Clean up macOS Privacy Manifests (#3268) --- packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy | 2 -- .../device_info_plus/macos/PrivacyInfo.xcprivacy | 2 -- .../network_info_plus/macos/PrivacyInfo.xcprivacy | 2 -- .../package_info_plus/macos/PrivacyInfo.xcprivacy | 2 -- packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy | 2 -- 5 files changed, 10 deletions(-) diff --git a/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy b/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy index a34b7e2e60..918d80be43 100644 --- a/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy +++ b/packages/battery_plus/battery_plus/macos/PrivacyInfo.xcprivacy @@ -4,8 +4,6 @@ NSPrivacyTrackingDomains - NSPrivacyAccessedAPITypes - NSPrivacyCollectedDataTypes NSPrivacyTracking diff --git a/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy b/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy index a34b7e2e60..918d80be43 100644 --- a/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy +++ b/packages/device_info_plus/device_info_plus/macos/PrivacyInfo.xcprivacy @@ -4,8 +4,6 @@ NSPrivacyTrackingDomains - NSPrivacyAccessedAPITypes - NSPrivacyCollectedDataTypes NSPrivacyTracking diff --git a/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy b/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy index a34b7e2e60..918d80be43 100644 --- a/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy +++ b/packages/network_info_plus/network_info_plus/macos/PrivacyInfo.xcprivacy @@ -4,8 +4,6 @@ NSPrivacyTrackingDomains - NSPrivacyAccessedAPITypes - NSPrivacyCollectedDataTypes NSPrivacyTracking diff --git a/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy b/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy index a34b7e2e60..918d80be43 100644 --- a/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy +++ b/packages/package_info_plus/package_info_plus/macos/PrivacyInfo.xcprivacy @@ -4,8 +4,6 @@ NSPrivacyTrackingDomains - NSPrivacyAccessedAPITypes - NSPrivacyCollectedDataTypes NSPrivacyTracking diff --git a/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy b/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy index a34b7e2e60..918d80be43 100644 --- a/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy +++ b/packages/share_plus/share_plus/macos/PrivacyInfo.xcprivacy @@ -4,8 +4,6 @@ NSPrivacyTrackingDomains - NSPrivacyAccessedAPITypes - NSPrivacyCollectedDataTypes NSPrivacyTracking From 401db75efa24c40fd96a05e79d12801f92666efd Mon Sep 17 00:00:00 2001 From: Masahiro Aoki Date: Tue, 8 Oct 2024 14:14:27 +0900 Subject: [PATCH 45/49] fix(share_plus): `mime` compatible with v2 (v1 still supported) (#3309) Co-authored-by: Miguel Beltran --- packages/share_plus/share_plus/pubspec.yaml | 2 +- .../lib/method_channel/method_channel_share.dart | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index b613b5ff79..d4f0ba12a7 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -30,7 +30,7 @@ flutter: dependencies: cross_file: ^0.3.4+2 meta: ^1.8.0 - mime: ^1.0.4 + mime: ">=1.0.4 <3.0.0" flutter: sdk: flutter flutter_web_plugins: diff --git a/packages/share_plus/share_plus_platform_interface/lib/method_channel/method_channel_share.dart b/packages/share_plus/share_plus_platform_interface/lib/method_channel/method_channel_share.dart index 20edd2108b..bb7fa696c6 100644 --- a/packages/share_plus/share_plus_platform_interface/lib/method_channel/method_channel_share.dart +++ b/packages/share_plus/share_plus_platform_interface/lib/method_channel/method_channel_share.dart @@ -130,11 +130,10 @@ class MethodChannelShare extends SharePlatform { return file; } else { tempRoot ??= (await getTemporaryDirectory()).path; - var extension = extensionFromMime(file.mimeType ?? 'octet-stream'); - - // TODO: As soon as the mime package fixes the image/jpe issue, remove this line immediately - // Reference: https://github.com/dart-lang/mime/issues/55 - extension = extension == "jpe" ? "jpeg" : extension; + // Method returns null as in v2.0.0 + final extension = + // ignore: dead_null_aware_expression + extensionFromMime(file.mimeType ?? 'octet-stream') ?? 'bin'; //By having a UUID v4 folder wrapping the file //This path generation algorithm will not only minimize the risk of name collision but also ensure that the filename From e35e2123451fc103bbb6f6d94f71ebced2ae8af5 Mon Sep 17 00:00:00 2001 From: Arnaud Ruffin Date: Tue, 8 Oct 2024 11:08:19 +0200 Subject: [PATCH 46/49] fix(device_info_plus)!: fixed webasm compliance (#3254) Co-authored-by: Miguel Beltran --- .../device_info_plus/example/web/index.html | 12 +----------- .../lib/src/device_info_plus_web.dart | 10 ++-------- .../lib/src/model/web_browser_info.dart | 2 +- .../device_info_plus/device_info_plus/pubspec.yaml | 2 +- .../test/model/web_browser_info_test.dart | 2 +- 5 files changed, 6 insertions(+), 22 deletions(-) diff --git a/packages/device_info_plus/device_info_plus/example/web/index.html b/packages/device_info_plus/device_info_plus/example/web/index.html index a0c14606fc..99eacb2839 100644 --- a/packages/device_info_plus/device_info_plus/example/web/index.html +++ b/packages/device_info_plus/device_info_plus/example/web/index.html @@ -18,16 +18,6 @@ - - - + diff --git a/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_web.dart b/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_web.dart index 4ebe0b874f..1112acbbe6 100644 --- a/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_web.dart +++ b/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_web.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'dart:js_interop'; import 'package:web/web.dart' as html show window, Navigator; import 'package:device_info_plus_platform_interface/device_info_plus_platform_interface.dart'; @@ -30,7 +31,7 @@ class DeviceInfoPlusWebPlugin extends DeviceInfoPlatform { 'appVersion': _navigator.appVersion, 'deviceMemory': _navigator.deviceMemory, 'language': _navigator.language, - 'languages': _navigator.languages, + 'languages': _navigator.languages.toDart, 'platform': _navigator.platform, 'product': _navigator.product, 'productSub': _navigator.productSub, @@ -44,10 +45,3 @@ class DeviceInfoPlusWebPlugin extends DeviceInfoPlatform { ); } } - -/// Property is missing. -/// Ticket: https://github.com/dart-lang/web/issues/192 -/// Probably won't be an int? in the future! -extension on html.Navigator { - external int? get deviceMemory; -} diff --git a/packages/device_info_plus/device_info_plus/lib/src/model/web_browser_info.dart b/packages/device_info_plus/device_info_plus/lib/src/model/web_browser_info.dart index dfad60aa96..03fa7f83cc 100644 --- a/packages/device_info_plus/device_info_plus/lib/src/model/web_browser_info.dart +++ b/packages/device_info_plus/device_info_plus/lib/src/model/web_browser_info.dart @@ -71,7 +71,7 @@ class WebBrowserInfo implements BaseDeviceInfo { final String? appVersion; /// the amount of device memory in gigabytes. This value is an approximation given by rounding to the nearest power of 2 and dividing that number by 1024. - final int? deviceMemory; + final double? deviceMemory; /// a DOMString representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown. final String? language; diff --git a/packages/device_info_plus/device_info_plus/pubspec.yaml b/packages/device_info_plus/device_info_plus/pubspec.yaml index be63972e14..48c932959d 100644 --- a/packages/device_info_plus/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/pubspec.yaml @@ -37,7 +37,7 @@ dependencies: flutter_web_plugins: sdk: flutter meta: ^1.8.0 - web: ">=0.5.0 <2.0.0" + web: ^1.0.0 win32: ^5.5.3 win32_registry: ^1.1.0 diff --git a/packages/device_info_plus/device_info_plus/test/model/web_browser_info_test.dart b/packages/device_info_plus/device_info_plus/test/model/web_browser_info_test.dart index 51e5fa6a0f..15b4f49705 100644 --- a/packages/device_info_plus/device_info_plus/test/model/web_browser_info_test.dart +++ b/packages/device_info_plus/device_info_plus/test/model/web_browser_info_test.dart @@ -11,7 +11,7 @@ void main() { 'appCodeName': 'appCodeName', 'appName': 'appName', 'appVersion': 'appVersion', - 'deviceMemory': 42, + 'deviceMemory': 42.0, 'language': 'language', 'languages': ['en', 'es'], 'platform': 'platform', From 93fed6380fb81460954ef56ad6b651ef4462f599 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 9 Oct 2024 07:42:25 +0200 Subject: [PATCH 47/49] chore(release): prepare for release (#3311) --- packages/battery_plus/battery_plus/CHANGELOG.md | 5 +++++ packages/battery_plus/battery_plus/example/pubspec.yaml | 2 +- packages/battery_plus/battery_plus/pubspec.yaml | 2 +- packages/device_info_plus/device_info_plus/CHANGELOG.md | 9 +++++++++ .../device_info_plus/example/pubspec.yaml | 2 +- packages/device_info_plus/device_info_plus/pubspec.yaml | 2 +- .../network_info_plus/network_info_plus/CHANGELOG.md | 5 +++++ .../network_info_plus/example/pubspec.yaml | 2 +- .../network_info_plus/network_info_plus/pubspec.yaml | 2 +- .../package_info_plus/package_info_plus/CHANGELOG.md | 5 +++++ .../package_info_plus/example/pubspec.yaml | 4 ++-- .../package_info_plus/package_info_plus/pubspec.yaml | 2 +- packages/share_plus/share_plus/CHANGELOG.md | 6 ++++++ packages/share_plus/share_plus/example/pubspec.yaml | 2 +- packages/share_plus/share_plus/pubspec.yaml | 4 ++-- .../share_plus_platform_interface/CHANGELOG.md | 4 ++++ .../share_plus_platform_interface/pubspec.yaml | 2 +- 17 files changed, 47 insertions(+), 13 deletions(-) diff --git a/packages/battery_plus/battery_plus/CHANGELOG.md b/packages/battery_plus/battery_plus/CHANGELOG.md index cee757d696..5f8d52ce90 100644 --- a/packages/battery_plus/battery_plus/CHANGELOG.md +++ b/packages/battery_plus/battery_plus/CHANGELOG.md @@ -1,3 +1,8 @@ +## 6.0.4 + + - **FIX**(all): Clean up macOS Privacy Manifests ([#3268](https://github.com/fluttercommunity/plus_plugins/issues/3268)). ([d7b98ebd](https://github.com/fluttercommunity/plus_plugins/commit/d7b98ebd7d39b0143931f5cc6e627187576223dc)) + - **FIX**(all): Add macOS Privacy Manifests ([#3251](https://github.com/fluttercommunity/plus_plugins/issues/3251)). ([bf5dad2a](https://github.com/fluttercommunity/plus_plugins/commit/bf5dad2ad249605055bcbd5f663e42569df12d64)) + ## 6.0.3 - **CHORE**(battery_plus): Update to package:web to ^1.0.0 ([#3103](https://github.com/fluttercommunity/plus_plugins/pull/3103)). ([cf534eec](https://github.com/fluttercommunity/plus_plugins/commit/cf534eec402b57b70ffe96bf5351afcdfa8c7c7e)) diff --git a/packages/battery_plus/battery_plus/example/pubspec.yaml b/packages/battery_plus/battery_plus/example/pubspec.yaml index f3e08e7cec..55427e77f0 100644 --- a/packages/battery_plus/battery_plus/example/pubspec.yaml +++ b/packages/battery_plus/battery_plus/example/pubspec.yaml @@ -8,7 +8,7 @@ environment: dependencies: flutter: sdk: flutter - battery_plus: ^6.0.3 + battery_plus: ^6.0.4 dev_dependencies: flutter_driver: diff --git a/packages/battery_plus/battery_plus/pubspec.yaml b/packages/battery_plus/battery_plus/pubspec.yaml index cf5001a24a..b8bc2e8b5d 100644 --- a/packages/battery_plus/battery_plus/pubspec.yaml +++ b/packages/battery_plus/battery_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: battery_plus description: Flutter plugin for accessing information about the battery state(full, charging, discharging). -version: 6.0.3 +version: 6.0.4 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus/battery_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/battery_plus diff --git a/packages/device_info_plus/device_info_plus/CHANGELOG.md b/packages/device_info_plus/device_info_plus/CHANGELOG.md index 9c37b58572..a6395171c6 100644 --- a/packages/device_info_plus/device_info_plus/CHANGELOG.md +++ b/packages/device_info_plus/device_info_plus/CHANGELOG.md @@ -1,3 +1,12 @@ +## 11.0.0 + +> Note: This release has breaking changes. + + - **FIX**(all): Clean up macOS Privacy Manifests ([#3268](https://github.com/fluttercommunity/plus_plugins/issues/3268)). ([d7b98ebd](https://github.com/fluttercommunity/plus_plugins/commit/d7b98ebd7d39b0143931f5cc6e627187576223dc)) + - **FIX**(all): Add macOS Privacy Manifests ([#3251](https://github.com/fluttercommunity/plus_plugins/issues/3251)). ([bf5dad2a](https://github.com/fluttercommunity/plus_plugins/commit/bf5dad2ad249605055bcbd5f663e42569df12d64)) + - **FIX**(device_info_plus): Fix type cast of digitalProductId on windows ([#3188](https://github.com/fluttercommunity/plus_plugins/issues/3188)). ([91f48a6b](https://github.com/fluttercommunity/plus_plugins/commit/91f48a6bc7d11c4238c9539ca06e6fa768995580)) + - **BREAKING** **FIX**(device_info_plus): fixed webasm compliance ([#3254](https://github.com/fluttercommunity/plus_plugins/issues/3254)). ([e35e2123](https://github.com/fluttercommunity/plus_plugins/commit/e35e2123451fc103bbb6f6d94f71ebced2ae8af5)) + ## 10.1.2 - **DOCS**(device_info_plus): Update plugin requirements in README ([#3162](https://github.com/fluttercommunity/plus_plugins/issues/3162)). ([6cfa950f](https://github.com/fluttercommunity/plus_plugins/commit/6cfa950f66fec649093b6c44755dc06a3a23319e)) diff --git a/packages/device_info_plus/device_info_plus/example/pubspec.yaml b/packages/device_info_plus/device_info_plus/example/pubspec.yaml index afcf74b382..f5d1171c03 100644 --- a/packages/device_info_plus/device_info_plus/example/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the device_info_plus plugin. dependencies: flutter: sdk: flutter - device_info_plus: ^10.1.2 + device_info_plus: ^11.0.0 dev_dependencies: flutter_driver: diff --git a/packages/device_info_plus/device_info_plus/pubspec.yaml b/packages/device_info_plus/device_info_plus/pubspec.yaml index 48c932959d..2491cdcb97 100644 --- a/packages/device_info_plus/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/pubspec.yaml @@ -1,7 +1,7 @@ name: device_info_plus description: Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on. -version: 10.1.2 +version: 11.0.0 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/device_info_plus/device_info_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/device_info_plus diff --git a/packages/network_info_plus/network_info_plus/CHANGELOG.md b/packages/network_info_plus/network_info_plus/CHANGELOG.md index 3197f7cc7c..bc22d069f9 100644 --- a/packages/network_info_plus/network_info_plus/CHANGELOG.md +++ b/packages/network_info_plus/network_info_plus/CHANGELOG.md @@ -1,3 +1,8 @@ +## 6.0.2 + + - **FIX**(all): Clean up macOS Privacy Manifests ([#3268](https://github.com/fluttercommunity/plus_plugins/issues/3268)). ([d7b98ebd](https://github.com/fluttercommunity/plus_plugins/commit/d7b98ebd7d39b0143931f5cc6e627187576223dc)) + - **FIX**(all): Add macOS Privacy Manifests ([#3251](https://github.com/fluttercommunity/plus_plugins/issues/3251)). ([bf5dad2a](https://github.com/fluttercommunity/plus_plugins/commit/bf5dad2ad249605055bcbd5f663e42569df12d64)) + ## 6.0.1 - **FIX**(network_info_plus): Avoid usage of unsupported package:win32 versions ([#3179](https://github.com/fluttercommunity/plus_plugins/issues/3179)). ([79f61add](https://github.com/fluttercommunity/plus_plugins/commit/79f61add195693f33330103dd5f31f6433dfc1f2)) diff --git a/packages/network_info_plus/network_info_plus/example/pubspec.yaml b/packages/network_info_plus/network_info_plus/example/pubspec.yaml index 8808aba0f0..0b69c1fe51 100644 --- a/packages/network_info_plus/network_info_plus/example/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/example/pubspec.yaml @@ -7,7 +7,7 @@ environment: dependencies: flutter: sdk: flutter - network_info_plus: ^6.0.1 + network_info_plus: ^6.0.2 permission_handler: ^11.3.0 dev_dependencies: diff --git a/packages/network_info_plus/network_info_plus/pubspec.yaml b/packages/network_info_plus/network_info_plus/pubspec.yaml index 304d2412b2..8b6f72a4d8 100644 --- a/packages/network_info_plus/network_info_plus/pubspec.yaml +++ b/packages/network_info_plus/network_info_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: network_info_plus description: Flutter plugin for discovering information (e.g. WiFi details) of the network. -version: 6.0.1 +version: 6.0.2 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/network_info_plus/network_info_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/network_info_plus diff --git a/packages/package_info_plus/package_info_plus/CHANGELOG.md b/packages/package_info_plus/package_info_plus/CHANGELOG.md index ff6ee2a267..bfaedbaa37 100644 --- a/packages/package_info_plus/package_info_plus/CHANGELOG.md +++ b/packages/package_info_plus/package_info_plus/CHANGELOG.md @@ -1,3 +1,8 @@ +## 8.0.3 + + - **FIX**(all): Clean up macOS Privacy Manifests ([#3268](https://github.com/fluttercommunity/plus_plugins/issues/3268)). ([d7b98ebd](https://github.com/fluttercommunity/plus_plugins/commit/d7b98ebd7d39b0143931f5cc6e627187576223dc)) + - **FIX**(all): Add macOS Privacy Manifests ([#3251](https://github.com/fluttercommunity/plus_plugins/issues/3251)). ([bf5dad2a](https://github.com/fluttercommunity/plus_plugins/commit/bf5dad2ad249605055bcbd5f663e42569df12d64)) + ## 8.0.2 - **CHORE**(package_info_plus): Update to package:web to ">=0.5.0 <2.0.0" ([#3102](https://github.com/fluttercommunity/plus_plugins/pull/3102)). ([05f8afb8](https://github.com/fluttercommunity/plus_plugins/commit/05f8afb8fc43bc702ab5e3e14e3cba9d79983446)) diff --git a/packages/package_info_plus/package_info_plus/example/pubspec.yaml b/packages/package_info_plus/package_info_plus/example/pubspec.yaml index fe133f1a8e..a2104f0ff3 100644 --- a/packages/package_info_plus/package_info_plus/example/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/example/pubspec.yaml @@ -11,11 +11,11 @@ dependencies: flutter: sdk: flutter http: ">=0.13.5 <2.0.0" - package_info_plus: ^8.0.2 + package_info_plus: ^8.0.3 dev_dependencies: build_runner: ^2.3.3 - device_info_plus: ^10.1.2 + device_info_plus: ^11.0.0 integration_test: sdk: flutter flutter_driver: diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index 592e2c2f1d..4114d381ad 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: package_info_plus description: Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android. -version: 8.0.2 +version: 8.0.3 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus/package_info_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/package_info_plus diff --git a/packages/share_plus/share_plus/CHANGELOG.md b/packages/share_plus/share_plus/CHANGELOG.md index ecc6ebe831..bb806a8e71 100644 --- a/packages/share_plus/share_plus/CHANGELOG.md +++ b/packages/share_plus/share_plus/CHANGELOG.md @@ -1,3 +1,9 @@ +## 10.0.3 + + - **FIX**(share_plus): `mime` compatible with v2 (v1 still supported) ([#3309](https://github.com/fluttercommunity/plus_plugins/issues/3309)). ([401db75e](https://github.com/fluttercommunity/plus_plugins/commit/401db75efa24c40fd96a05e79d12801f92666efd)) + - **FIX**(all): Clean up macOS Privacy Manifests ([#3268](https://github.com/fluttercommunity/plus_plugins/issues/3268)). ([d7b98ebd](https://github.com/fluttercommunity/plus_plugins/commit/d7b98ebd7d39b0143931f5cc6e627187576223dc)) + - **FIX**(all): Add macOS Privacy Manifests ([#3251](https://github.com/fluttercommunity/plus_plugins/issues/3251)). ([bf5dad2a](https://github.com/fluttercommunity/plus_plugins/commit/bf5dad2ad249605055bcbd5f663e42569df12d64)) + ## 10.0.2 - **FIX**(share_plus): [#2910](https://github.com/fluttercommunity/plus_plugins/issues/2910) Handle user dismissing dialog on shareUri() in web ([#3175](https://github.com/fluttercommunity/plus_plugins/issues/3175)). ([bba78118](https://github.com/fluttercommunity/plus_plugins/commit/bba781187b4af5682331ed90929c61c13137809a)) diff --git a/packages/share_plus/share_plus/example/pubspec.yaml b/packages/share_plus/share_plus/example/pubspec.yaml index 80fed4d4da..2dfee397bd 100644 --- a/packages/share_plus/share_plus/example/pubspec.yaml +++ b/packages/share_plus/share_plus/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the share_plus plugin. dependencies: flutter: sdk: flutter - share_plus: ^10.0.2 + share_plus: ^10.0.3 image_picker: ^1.1.2 file_selector: ^1.0.3 diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index d4f0ba12a7..200ab87229 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: share_plus description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. -version: 10.0.2 +version: 10.0.3 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus issue_tracker: https://github.com/fluttercommunity/plus_plugins/labels/share_plus @@ -35,7 +35,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - share_plus_platform_interface: ^5.0.0 + share_plus_platform_interface: ^5.0.1 file: ">=6.1.4 <8.0.0" url_launcher_web: ^2.3.2 url_launcher_windows: ^3.1.2 diff --git a/packages/share_plus/share_plus_platform_interface/CHANGELOG.md b/packages/share_plus/share_plus_platform_interface/CHANGELOG.md index 6397500e6c..8490ee6199 100644 --- a/packages/share_plus/share_plus_platform_interface/CHANGELOG.md +++ b/packages/share_plus/share_plus_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.0.1 + + - **FIX**(share_plus): `mime` compatible with v2 (v1 still supported) ([#3309](https://github.com/fluttercommunity/plus_plugins/issues/3309)). ([401db75e](https://github.com/fluttercommunity/plus_plugins/commit/401db75efa24c40fd96a05e79d12801f92666efd)) + ## 5.0.0 > Note: This release has breaking changes. diff --git a/packages/share_plus/share_plus_platform_interface/pubspec.yaml b/packages/share_plus/share_plus_platform_interface/pubspec.yaml index 0f318d2d0e..11080838d6 100644 --- a/packages/share_plus/share_plus_platform_interface/pubspec.yaml +++ b/packages/share_plus/share_plus_platform_interface/pubspec.yaml @@ -1,6 +1,6 @@ name: share_plus_platform_interface description: A common platform interface for the share_plus plugin. -version: 5.0.0 +version: 5.0.1 homepage: https://github.com/fluttercommunity/plus_plugins repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ From 6469523fb14f32f7aa23892183693a8f502992d3 Mon Sep 17 00:00:00 2001 From: Ahmet TOK <48218623+arrrrny@users.noreply.github.com> Date: Sat, 12 Oct 2024 18:02:58 +0300 Subject: [PATCH 48/49] fix(device_info_plus): Ignore `MissingPermission` lint error on Android (#3317) Co-authored-by: Miguel Beltran --- packages/device_info_plus/device_info_plus/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus/android/build.gradle b/packages/device_info_plus/device_info_plus/android/build.gradle index 9326a43742..5213cd0a10 100644 --- a/packages/device_info_plus/device_info_plus/android/build.gradle +++ b/packages/device_info_plus/device_info_plus/android/build.gradle @@ -44,7 +44,7 @@ android { } lintOptions { - disable 'InvalidPackage' + disable 'InvalidPackage', 'MissingPermission' } dependencies { From 8ad1c6d9e061a59383f82f9b4a7703ef03e4c04c Mon Sep 17 00:00:00 2001 From: Josh Burton Date: Sun, 13 Oct 2024 04:33:03 +1300 Subject: [PATCH 49/49] feat(android_intent_plus): adds getResolvedActivity method (#3313) --- packages/android_intent_plus/README.md | 19 +++++ .../plus/androidintent/IntentSender.java | 38 +++++++++ .../androidintent/MethodCallHandlerImpl.java | 2 + .../android/app/src/main/AndroidManifest.xml | 13 ++- .../android_intent_plus_test.dart | 21 ++++- .../android_intent_plus/example/lib/main.dart | 21 +++++ .../lib/android_intent.dart | 55 +++++++++++++ .../test/android_intent_test.dart | 80 +++++++++++++++++++ 8 files changed, 247 insertions(+), 2 deletions(-) diff --git a/packages/android_intent_plus/README.md b/packages/android_intent_plus/README.md index 2cfa7718b1..cd6ff9fba5 100644 --- a/packages/android_intent_plus/README.md +++ b/packages/android_intent_plus/README.md @@ -83,6 +83,25 @@ of integers or strings. > ACTION_VIEW intents for Android, however this intent plugin also allows > clients to set extra parameters for the intent. +### Querying activities +`canResolveActivity()` and `getResolvedActivity()` can be used to query whether an activity can handle an intent, +or get the details of the activity that can handle the intent. + +```dart +final intent = AndroidIntent( + action: 'action_view', + data: Uri.encodeFull('http://'), + ); + +// can this intent be handled by an activity +final canHandleIntent = await intent.canResolveActivity(); + +// get the details of the activity that will handle this intent +final details = await intent.getResolvedActivity(); + +print(details.packageName); // prints com.google.chrome +``` + ## Android 11 package visibility Android 11 introduced new permissions for package visibility. diff --git a/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/IntentSender.java b/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/IntentSender.java index 2158b42024..ef2bd7a549 100644 --- a/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/IntentSender.java +++ b/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/IntentSender.java @@ -5,12 +5,15 @@ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import androidx.annotation.Nullable; import java.net.URISyntaxException; +import java.util.HashMap; +import java.util.Map; /** Forms and launches intents. */ public final class IntentSender { @@ -102,6 +105,41 @@ boolean canResolveActivity(Intent intent) { return packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) != null; } + /** + * Get the default activity that will resolve the intent + * + *

This will fail to create and send the intent if {@code applicationContext} hasn't been set * + * at the time of calling. + * + *

This currently only supports resolving activities. + * + * @param intent Fully built intent. + * @return Whether the package manager found {@link android.content.pm.ResolveInfo} using its + * {@link PackageManager#resolveActivity(Intent, int)} method. + * @see #buildIntent(String, Integer, String, Uri, Bundle, String, ComponentName, String) + */ + @Nullable + Map getResolvedActivity(Intent intent) { + if (applicationContext == null) { + Log.wtf(TAG, "Trying to resolve an activity before the applicationContext was initialized."); + return null; + } + + final PackageManager packageManager = applicationContext.getPackageManager(); + ResolveInfo resolveInfo = + packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); + + if (resolveInfo != null) { + Map resultMap = new HashMap<>(); + resultMap.put("activityName", resolveInfo.activityInfo.name); + resultMap.put("packageName", resolveInfo.activityInfo.packageName); + resultMap.put("appName", resolveInfo.loadLabel(packageManager)); + return resultMap; + } + + return null; + } + /** Caches the given {@code activity} to use for {@link #send}. */ void setActivity(@Nullable Activity activity) { this.activity = activity; diff --git a/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/MethodCallHandlerImpl.java b/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/MethodCallHandlerImpl.java index b56ff44845..0cd0a0765f 100644 --- a/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/MethodCallHandlerImpl.java +++ b/packages/android_intent_plus/android/src/main/java/dev/fluttercommunity/plus/androidintent/MethodCallHandlerImpl.java @@ -119,6 +119,8 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) { result.success(null); } else if ("canResolveActivity".equalsIgnoreCase(call.method)) { result.success(sender.canResolveActivity(intent)); + } else if ("getResolvedActivity".equalsIgnoreCase(call.method)) { + result.success(sender.getResolvedActivity(intent)); } else { result.notImplemented(); } diff --git a/packages/android_intent_plus/example/android/app/src/main/AndroidManifest.xml b/packages/android_intent_plus/example/android/app/src/main/AndroidManifest.xml index e033f9db7b..20f0667b3e 100644 --- a/packages/android_intent_plus/example/android/app/src/main/AndroidManifest.xml +++ b/packages/android_intent_plus/example/android/app/src/main/AndroidManifest.xml @@ -8,7 +8,18 @@ flutter needs it to communicate with the running application to allow setting breakpoints, to provide hot reload, etc. --> - + + + + + + + + + + + + _getResolvedActivity(context), + child: const Text( + 'Tap here to get default resolved activity', + ), + ), + const SizedBox(height: 16), ElevatedButton( onPressed: _openGmail, child: const Text( diff --git a/packages/android_intent_plus/lib/android_intent.dart b/packages/android_intent_plus/lib/android_intent.dart index b680b962af..42494eb4aa 100644 --- a/packages/android_intent_plus/lib/android_intent.dart +++ b/packages/android_intent_plus/lib/android_intent.dart @@ -207,6 +207,31 @@ class AndroidIntent { ); } + /// Get the default activity that will resolve the intent + /// + /// Note: ensure the calling app's AndroidManifest contains queries that match the intent. + /// See: https://developer.android.com/guide/topics/manifest/queries-element + Future getResolvedActivity() async { + if (!_platform.isAndroid) { + return null; + } + + final result = await _channel.invokeMethod>( + 'getResolvedActivity', + _buildArguments(), + ); + + if (result != null) { + return ResolvedActivity( + appName: result["appName"] as String, + activityName: result["activityName"] as String, + packageName: result["packageName"] as String, + ); + } + + return null; + } + /// Constructs the map of arguments which is passed to the plugin. Map _buildArguments() { return { @@ -224,3 +249,33 @@ class AndroidIntent { }; } } + +class ResolvedActivity { + final String appName; + final String activityName; + final String packageName; + + ResolvedActivity({ + required this.appName, + required this.activityName, + required this.packageName, + }); + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ResolvedActivity && + runtimeType == other.runtimeType && + appName == other.appName && + activityName == other.activityName && + packageName == other.packageName; + + @override + int get hashCode => + appName.hashCode ^ activityName.hashCode ^ packageName.hashCode; + + @override + String toString() { + return 'ResolvedActivity{appName: $appName, activityName: $activityName, packageName: $packageName}'; + } +} diff --git a/packages/android_intent_plus/test/android_intent_test.dart b/packages/android_intent_plus/test/android_intent_test.dart index 2ff4fd8e00..1d39129f2e 100644 --- a/packages/android_intent_plus/test/android_intent_test.dart +++ b/packages/android_intent_plus/test/android_intent_test.dart @@ -141,6 +141,86 @@ void main() { }); }); + group('getResolvedActivity', () { + test('pass right params', () async { + androidIntent = AndroidIntent.private( + action: 'action_view', + data: Uri.encodeFull('https://flutter.dev'), + flags: [Flag.FLAG_ACTIVITY_NEW_TASK], + channel: mockChannel, + platform: FakePlatform(operatingSystem: 'android'), + type: 'video/*'); + await androidIntent.getResolvedActivity(); + verify(mockChannel + .invokeMethod('getResolvedActivity', { + 'action': 'action_view', + 'data': Uri.encodeFull('https://flutter.dev'), + 'flags': + androidIntent.convertFlags([Flag.FLAG_ACTIVITY_NEW_TASK]), + 'type': 'video/*', + })); + }); + + test('returns a ResolvedActivity', () async { + androidIntent = AndroidIntent.private( + action: 'action_view', + data: Uri.encodeFull('https://flutter.dev'), + channel: mockChannel, + platform: FakePlatform(operatingSystem: 'android'), + ); + + when(mockChannel.invokeMethod("getResolvedActivity", any)) + .thenAnswer((_) async => { + "activityName": "activity name", + "appName": "App Name", + "packageName": "com.packagename", + }); + + final result = await androidIntent.getResolvedActivity(); + + expect(result?.activityName, equals("activity name")); + expect(result?.appName, equals("App Name")); + expect(result?.packageName, equals("com.packagename")); + }); + + test('can send Intent with an action and no component', () async { + androidIntent = AndroidIntent.private( + action: 'action_view', + channel: mockChannel, + platform: FakePlatform(operatingSystem: 'android'), + ); + await androidIntent.getResolvedActivity(); + verify(mockChannel + .invokeMethod('getResolvedActivity', { + 'action': 'action_view', + })); + }); + + test('can send Intent with a component and no action', () async { + androidIntent = AndroidIntent.private( + package: 'packageName', + componentName: 'componentName', + channel: mockChannel, + platform: FakePlatform(operatingSystem: 'android'), + ); + await androidIntent.getResolvedActivity(); + verify(mockChannel + .invokeMethod('getResolvedActivity', { + 'package': 'packageName', + 'componentName': 'componentName', + })); + }); + + test('call in ios platform', () async { + androidIntent = AndroidIntent.private( + action: 'action_view', + channel: mockChannel, + platform: FakePlatform(operatingSystem: 'ios')); + await androidIntent.getResolvedActivity(); + verifyZeroInteractions(mockChannel); + }); + }); + group('launchChooser', () { test('pass title', () async { androidIntent = AndroidIntent.private(