Skip to content

Commit

Permalink
Merge pull request #145 from natsuk4ze/update-to-2.0.0
Browse files Browse the repository at this point in the history
Update to 2.0.0
  • Loading branch information
natsuk4ze authored Sep 7, 2023
2 parents 9ff6c74 + 5f9e323 commit 8e817d0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.0.0

* **ADD: macOS support** #142
* **BREAKING CHANGE**: `flutter: '>=3.3.0'` to `flutter: '>=3.7.0'` #142
* **BREAKING CHANGE**: `GalException.error` to `GalException.platformException` #143
* **BREAKING CHANGE**: Remove `GalExceptionType.notHandle` (had marked deprecated) #144

## 1.9.1

* FIX: `album` option is not working on Android API 29 #130
Expand Down
3 changes: 0 additions & 3 deletions darwin/Classes/GalPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ public class GalPlugin: NSObject, FlutterPlugin {

private func hasAccess(toAlbum: Bool) -> Bool {
if #available(iOS 14, macOS 11, *) {
print(PHPhotoLibrary.authorizationStatus(for: .addOnly) == .authorized)
print(PHPhotoLibrary.authorizationStatus(for: .readWrite) == .authorized)
print(PHPhotoLibrary.authorizationStatus(for: .readWrite) == .limited)
return toAlbum
? PHPhotoLibrary.authorizationStatus(for: .readWrite) == .authorized
|| PHPhotoLibrary.authorizationStatus(for: .readWrite) == .limited
Expand Down
5 changes: 3 additions & 2 deletions example/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
isa = PBXAggregateTarget;
buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
buildPhases = (
33CC111E2044C6BF0003C045 /* ShellScript */,
33CC111E2044C6BF0003C045 /* Run Script */,
);
dependencies = (
);
Expand Down Expand Up @@ -273,7 +273,7 @@
shellPath = /bin/sh;
shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
};
33CC111E2044C6BF0003C045 /* ShellScript */ = {
33CC111E2044C6BF0003C045 /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
Expand All @@ -285,6 +285,7 @@
inputPaths = (
Flutter/ephemeral/tripwire,
);
name = "Run Script";
outputFileListPaths = (
Flutter/ephemeral/FlutterOutputs.xcfilelist,
);
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gal_example
description: Demonstrates how to use the gal plugin.
version: 1.9.1
version: 2.0.0
publish_to: none

environment:
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: gal
description: Gal is a Flutter plugin for saving image/video to gallary app. You can also easily handle permissions.
version: 1.9.1
version: 2.0.0
homepage: https://pub.dev/packages/gal
repository: https://github.com/natsuk4ze/gal

Expand Down

0 comments on commit 8e817d0

Please sign in to comment.