Skip to content

Commit

Permalink
fix: 2.4.1 Swift error on jpegdata
Browse files Browse the repository at this point in the history
  • Loading branch information
sowens-csd committed Mar 18, 2021
1 parent 86d37ae commit 9edbe9b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.4.1

### Updates
* fix compile error on latest Xcode

## 2.4.0

### Updates
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b0bc8966d9e961330a0943924de9f2d7
1b75e7e76d71c143253a149c2f83623b
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a

COCOAPODS: 1.9.3
COCOAPODS: 1.10.1
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.4.0"
version: "2.4.1"
matcher:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SwiftLocalImageProviderPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 9edbe9b

Please sign in to comment.