From ad9e34a49e9145349a71d6065bc48b18bb43d96e Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 27 Jan 2023 14:11:49 +0100 Subject: [PATCH] fix: Shared preferences package for flutter 3.7 --- ios/Runner.xcodeproj/project.pbxproj | 4 +++- ios/Runner/Info.plist | 2 ++ macos/Flutter/GeneratedPluginRegistrant.swift | 2 +- pubspec.lock | 20 +++++++++---------- pubspec.yaml | 2 +- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index a3dd9d16..b0c275cc 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 51; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -286,6 +286,7 @@ /* Begin PBXShellScriptBuildPhase section */ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); @@ -322,6 +323,7 @@ }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index dfb6129b..f53992f9 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -110,5 +110,7 @@ CADisableMinimumFrameDurationOnPhone + UIApplicationSupportsIndirectInputEvents + diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 5e2ff6af..6ed3c677 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -25,7 +25,7 @@ import package_info_plus_macos import path_provider_foundation import record_macos import share_plus_macos -import shared_preferences_foundation +import shared_preferences_macos import sqflite import system_theme import url_launcher_macos diff --git a/pubspec.lock b/pubspec.lock index 5fd9450f..6f54b1cd 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1708,10 +1708,10 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: "5949029e70abe87f75cfe59d17bf5c397619c4b74a099b10116baeb34786fad9" + sha256: "76917b7d4b9526b2ba416808a7eb9fb2863c1a09cf63ec85f1453da240fa818a" url: "https://pub.dev" source: hosted - version: "2.0.17" + version: "2.0.15" shared_preferences_android: dependency: transitive description: @@ -1720,14 +1720,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.15" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "1ffa239043ab8baf881ec3094a3c767af9d10399b2839020b9e4d44c0bb23951" - url: "https://pub.dev" - source: hosted - version: "2.1.2" shared_preferences_ios: dependency: transitive description: @@ -1744,6 +1736,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.3" + shared_preferences_macos: + dependency: transitive + description: + name: shared_preferences_macos + sha256: "81b6a60b2d27020eb0fc41f4cebc91353047309967901a79ee8203e40c42ed46" + url: "https://pub.dev" + source: hosted + version: "2.0.5" shared_preferences_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 5de18d9d..0dd46ccb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -75,7 +75,7 @@ dependencies: record: ^4.4.4 scroll_to_index: ^3.0.1 share_plus: ^4.0.10+1 - shared_preferences: ^2.0.13 + shared_preferences: 2.0.15 # Pinned because https://github.com/flutter/flutter/issues/118401 slugify: ^2.0.0 swipe_to_action: ^0.2.0 system_theme: ^2.0.0