From 9edbe9b9cfb76be67aa70cb4ac4ca7ae05287b00 Mon Sep 17 00:00:00 2001 From: sowens-csd Date: Thu, 18 Mar 2021 09:05:58 -0400 Subject: [PATCH] fix: 2.4.1 Swift error on jpegdata --- CHANGELOG.md | 5 +++++ README.md | 2 +- example/ios/Flutter/.last_build_id | 2 +- example/ios/Podfile.lock | 2 +- example/pubspec.lock | 2 +- ios/Classes/SwiftLocalImageProviderPlugin.swift | 2 +- pubspec.yaml | 2 +- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 512af2d..7175d08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.4.1 + +### Updates +* fix compile error on latest Xcode + ## 2.4.0 ### Updates diff --git a/README.md b/README.md index 128eca8..a1e54ca 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Local Image Provider Plugin -[![pub package](https://img.shields.io/badge/pub-v2.4.0-blue)](https://pub.dartlang.org/packages/local_image_provider) [![build status](https://github.com/csdcorp/local_image_provider/workflows/build/badge.svg)](https://github.com/csdcorp/local_image_provider/actions?query=workflow%3Abuild) +[![pub package](https://img.shields.io/badge/pub-v2.4.1-blue)](https://pub.dartlang.org/packages/local_image_provider) [![build status](https://github.com/csdcorp/local_image_provider/workflows/build/badge.svg)](https://github.com/csdcorp/local_image_provider/actions?query=workflow%3Abuild) A library for searching and retrieving the metadata and contents of the images and albums on a mobile device. diff --git a/example/ios/Flutter/.last_build_id b/example/ios/Flutter/.last_build_id index bcd19a9..ffb9c90 100644 --- a/example/ios/Flutter/.last_build_id +++ b/example/ios/Flutter/.last_build_id @@ -1 +1 @@ -b0bc8966d9e961330a0943924de9f2d7 \ No newline at end of file +1b75e7e76d71c143253a149c2f83623b \ No newline at end of file diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 193f364..02253c5 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -43,4 +43,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a -COCOAPODS: 1.9.3 +COCOAPODS: 1.10.1 diff --git a/example/pubspec.lock b/example/pubspec.lock index 5dbe522..95f5198 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -99,7 +99,7 @@ packages: path: ".." relative: true source: path - version: "2.4.0" + version: "2.4.1" matcher: dependency: transitive description: diff --git a/ios/Classes/SwiftLocalImageProviderPlugin.swift b/ios/Classes/SwiftLocalImageProviderPlugin.swift index 180e393..e4baa2c 100644 --- a/ios/Classes/SwiftLocalImageProviderPlugin.swift +++ b/ios/Classes/SwiftLocalImageProviderPlugin.swift @@ -430,7 +430,7 @@ public class SwiftLocalImageProviderPlugin: NSObject, FlutterPlugin { details = "cgImage nil" } - if let data = image.jpegData(compressionQuality: CGFloat(Float(compression) / 100.0) { + if let data = image.jpegData(compressionQuality: CGFloat(Float(compression) / 100.0)) { let typedData = FlutterStandardTypedData( bytes: data ); DispatchQueue.main.async { flutterResult( typedData) diff --git a/pubspec.yaml b/pubspec.yaml index 3c83f51..7c4ea0a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: local_image_provider description: A library for retrieving the metadata and contents of the images, videos, and albums on a mobile device. -version: 2.4.0 +version: 2.4.1 homepage: https://github.com/csdcorp/local_image_provider environment: