Skip to content

Commit

Permalink
Merge pull request hui-z#139 from nicolas-landa/fix/ios-closure-self
Browse files Browse the repository at this point in the history
Fix/ios closure self
  • Loading branch information
xqqlv committed Nov 27, 2020
2 parents 769d0aa + 27f9265 commit 5170bcb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.6.7

- fix ios bug

## 1.6.6
* fix ios bug

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ We use the `image_picker` plugin to select images from the Android and iOS image
To use this plugin, add `image_gallery_saver` as a dependency in your pubspec.yaml file. For example:
```yaml
dependencies:
image_gallery_saver: '^1.6.6'
image_gallery_saver: '^1.6.7'
```
## iOS
Expand Down
6 changes: 3 additions & 3 deletions ios/Classes/SwiftImageGallerySaverPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class SwiftImageGallerySaverPlugin: NSObject, FlutterPlugin {
}
}
} else {
self.saveResult(isSuccess: false, error: errorMessage)
self.saveResult(isSuccess: false, error: self.errorMessage)
}
}
})
Expand Down Expand Up @@ -101,7 +101,7 @@ public class SwiftImageGallerySaverPlugin: NSObject, FlutterPlugin {
}
}
} else {
self.saveResult(isSuccess: false, error: errorMessage)
self.saveResult(isSuccess: false, error: self.errorMessage)
}
}
})
Expand Down Expand Up @@ -138,7 +138,7 @@ public class SwiftImageGallerySaverPlugin: NSObject, FlutterPlugin {
}
}
} else {
self.saveResult(isSuccess: false, error: errorMessage)
self.saveResult(isSuccess: false, error: self.errorMessage)
}
}
})
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: image_gallery_saver
description: A new flutter plugin project for save image to gallery, iOS need to add the following keys to your Info.plist file.
version: 1.6.6
version: 1.6.7
author: quicey <quiceyxu@gmail.com>
homepage: https://github.com/hui-z/image_gallery_saver

Expand Down

0 comments on commit 5170bcb

Please sign in to comment.