From 3642cf080131302cfad87cfdc59dddec1697e1cb Mon Sep 17 00:00:00 2001 From: Alex Demchenko Date: Sun, 24 Oct 2021 17:48:55 +0200 Subject: [PATCH] Update dependencies --- .metadata | 2 +- CHANGELOG.md | 5 ++ example/.metadata | 2 +- .../android/app/src/main/AndroidManifest.xml | 9 +++ example/ios/.gitignore | 1 + example/ios/Podfile.lock | 4 +- example/ios/Runner.xcodeproj/project.pbxproj | 80 +++++++++---------- example/pubspec.yaml | 2 +- lib/src/widgets/link_preview.dart | 2 - pubspec.yaml | 10 +-- 10 files changed, 65 insertions(+), 52 deletions(-) diff --git a/.metadata b/.metadata index a699f96..db56104 100644 --- a/.metadata +++ b/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e + revision: 18116933e77adc82f80866c928266a5b4f1ed645 channel: stable project_type: package diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a17af4..1df31f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.0 + +- Updated dependencies (requires Dart >=2.14.0) +- Fixed Android example. Thanks @rvndsngwn for reporting! + ## 2.5.2 Additionally, revert `json_annotation` upgrade diff --git a/example/.metadata b/example/.metadata index be0f63d..a5584fc 100644 --- a/example/.metadata +++ b/example/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e + revision: 18116933e77adc82f80866c928266a5b4f1ed645 channel: stable project_type: app diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index bff188d..0250a7e 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,14 @@ + + + + + + + + + diff --git a/example/ios/.gitignore b/example/ios/.gitignore index 151026b..7a7f987 100644 --- a/example/ios/.gitignore +++ b/example/ios/.gitignore @@ -1,3 +1,4 @@ +**/dgph *.mode1v3 *.mode2v3 *.moved-aside diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index d18dbd8..984701a 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -15,8 +15,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a - url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef + url_launcher: b6e016d912f04be9f5bf6e8e82dc599b7ba59649 PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c -COCOAPODS: 1.11.0 +COCOAPODS: 1.11.2 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 4739ad0..7966e4e 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -8,12 +8,12 @@ /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 351C1AD4A6DC97DC52FEDC45 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A18F438DCB8C8AC00141B730 /* Pods_Runner.framework */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + ED00DE14BFFE645EDAC1CF9C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34F8130FA1B5E326426E9E92 /* Pods_Runner.framework */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -30,11 +30,11 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 054DE45676E2D258B85F39A9 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 34F8130FA1B5E326426E9E92 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 35982681DB2108D7AE3E3DE1 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 60CACA96015C87EF5EFD01F1 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; @@ -45,8 +45,8 @@ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - A18F438DCB8C8AC00141B730 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A1BE681B160CB696829B5C73 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + E0F7385E9E357B9BC3461BE8 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + FA3A8B79876CDB15905FBEA3 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -54,24 +54,13 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 351C1AD4A6DC97DC52FEDC45 /* Pods_Runner.framework in Frameworks */, + ED00DE14BFFE645EDAC1CF9C /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 0DCE4135B6C5F6D0C151F1F5 /* Pods */ = { - isa = PBXGroup; - children = ( - 054DE45676E2D258B85F39A9 /* Pods-Runner.debug.xcconfig */, - 60CACA96015C87EF5EFD01F1 /* Pods-Runner.release.xcconfig */, - A1BE681B160CB696829B5C73 /* Pods-Runner.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -89,8 +78,8 @@ 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, - 0DCE4135B6C5F6D0C151F1F5 /* Pods */, - D441DA8EA9567925EE464583 /* Frameworks */, + EA4BD8D8D4C5C58345B353DF /* Pods */, + 9E99862D21709204A24C70C9 /* Frameworks */, ); sourceTree = ""; }; @@ -117,14 +106,25 @@ path = Runner; sourceTree = ""; }; - D441DA8EA9567925EE464583 /* Frameworks */ = { + 9E99862D21709204A24C70C9 /* Frameworks */ = { isa = PBXGroup; children = ( - A18F438DCB8C8AC00141B730 /* Pods_Runner.framework */, + 34F8130FA1B5E326426E9E92 /* Pods_Runner.framework */, ); name = Frameworks; sourceTree = ""; }; + EA4BD8D8D4C5C58345B353DF /* Pods */ = { + isa = PBXGroup; + children = ( + E0F7385E9E357B9BC3461BE8 /* Pods-Runner.debug.xcconfig */, + 35982681DB2108D7AE3E3DE1 /* Pods-Runner.release.xcconfig */, + FA3A8B79876CDB15905FBEA3 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -132,14 +132,14 @@ isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( - EEE98BB7E89E3EEADAA35D23 /* [CP] Check Pods Manifest.lock */, + E39CBC8D73D9497AD9711F77 /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 0618F10392A47896FA6018CE /* [CP] Embed Pods Frameworks */, + BECED64360A6B6999D734680 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -198,52 +198,52 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 0618F10392A47896FA6018CE /* [CP] Embed Pods Frameworks */ = { + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + inputPaths = ( ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + name = "Thin Binary"; + outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); - name = "Thin Binary"; + name = "Run Script"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; - 9740EEB61CF901F6004384FC /* Run Script */ = { + BECED64360A6B6999D734680 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputPaths = ( + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "Run Script"; - outputPaths = ( + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; }; - EEE98BB7E89E3EEADAA35D23 /* [CP] Check Pods Manifest.lock */ = { + E39CBC8D73D9497AD9711F77 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 73f19b7..8bb5c6c 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.14.0 <3.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions diff --git a/lib/src/widgets/link_preview.dart b/lib/src/widgets/link_preview.dart index 1f3289c..3fc36f8 100644 --- a/lib/src/widgets/link_preview.dart +++ b/lib/src/widgets/link_preview.dart @@ -178,8 +178,6 @@ class _LinkPreviewState extends State Future _onOpen(LinkableElement link) async { if (await canLaunch(link.url)) { await launch(link.url); - } else { - throw 'Could not launch $link'; } } diff --git a/pubspec.yaml b/pubspec.yaml index 738ea3c..29cb412 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,24 +2,24 @@ name: flutter_link_previewer description: > URL preview extracted from the provided text with basic customization and ability to render from cached data. -version: 2.5.2 +version: 2.6.0 homepage: https://flyer.chat repository: https://github.com/flyerhq/flutter_link_previewer environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.14.0 <3.0.0" flutter: ">=2.0.0" dependencies: flutter: sdk: flutter - flutter_chat_types: ^3.1.2 + flutter_chat_types: ^3.2.0 flutter_linkify: ^5.0.2 html: ^0.15.0 - http: ^0.13.3 + http: ^0.13.4 linkify: ^4.1.0 meta: ^1.3.0 - url_launcher: ^6.0.10 + url_launcher: ^6.0.12 dev_dependencies: flutter_lints: ^1.0.4