-
Notifications
You must be signed in to change notification settings - Fork 266
fix: Incompatible with iOS 26.0 under flutter_image_compress_common #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,12 +1,12 @@ | ||||||||||
| // | ||||||||||
| // SYMetadata.h | ||||||||||
| // SYPictureMetadataExample | ||||||||||
| // | ||||||||||
| // Created by Stan Chevallier on 12/13/12. | ||||||||||
| // Copyright (c) 2012 Syan. All rights reserved. | ||||||||||
| // | ||||||||||
|
|
||||||||||
| #import <Foundation/Foundation.h> | ||||||||||
|
|
||||||||||
| // Forward declare to reduce header coupling; Photos is imported in SYMetadata.m. | ||||||||||
| @class PHAsset; | ||||||||||
|
|
||||||||||
| #import "SYMetadataTIFF.h" | ||||||||||
| #import "SYMetadataGIF.h" | ||||||||||
| #import "SYMetadataJFIF.h" | ||||||||||
|
|
@@ -26,11 +26,6 @@ | |||||||||
| #import "SYMetadataDNG.h" | ||||||||||
| #import "SYMetadataExifAux.h" | ||||||||||
|
|
||||||||||
| // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/index.html | ||||||||||
| // http://www.exiv2.org/tags.html | ||||||||||
|
|
||||||||||
| @class ALAsset; | ||||||||||
|
|
||||||||||
| @interface SYMetadata : SYMetadataBase | ||||||||||
|
|
||||||||||
| @property SYMETADATA_PROPERTY_COPY NSDictionary *originalDictionary; | ||||||||||
|
|
@@ -54,7 +49,8 @@ | |||||||||
| @property SYMETADATA_PROPERTY_STRONG SYMetadataDNG *metadataDNG; | ||||||||||
| @property SYMETADATA_PROPERTY_STRONG SYMetadataExifAux *metadataExifAux; | ||||||||||
|
|
||||||||||
| // we don't know how to parse those, so we juste give access to them | ||||||||||
| // Fallback | ||||||||||
| // Unparsed vendor-specific dictionaries exposed as-is for consumers (fallback for unknown/proprietary metadata). | ||||||||||
| @property SYMETADATA_PROPERTY_COPY NSDictionary *metadataApple; | ||||||||||
| @property SYMETADATA_PROPERTY_COPY NSDictionary *metadataPictureStyle; | ||||||||||
|
|
||||||||||
|
|
@@ -72,12 +68,27 @@ | |||||||||
| @property (nonatomic, copy, readonly) NSString *profileName; | ||||||||||
|
|
||||||||||
| + (instancetype)metadataWithDictionary:(NSDictionary *)dictionary; | ||||||||||
| + (instancetype)metadataWithAsset:(ALAsset *)asset __TVOS_PROHIBITED; | ||||||||||
| + (instancetype)metadataWithAssetURL:(NSURL *)assetURL __TVOS_PROHIBITED; | ||||||||||
|
|
||||||||||
| /// Photos-framework based metadata extraction. | ||||||||||
| + (instancetype)metadataWithPHAsset:(PHAsset *)asset; | ||||||||||
|
|
||||||||||
| /// Deprecated legacy API (ALAsset-era). Prefer `metadataWithPHAsset:`. | ||||||||||
| /// | ||||||||||
| /// This keeps source compatibility with older versions of this library without | ||||||||||
| /// referencing the removed AssetsLibrary framework types. | ||||||||||
| + (instancetype)metadataWithAsset:(id)asset __attribute__((deprecated("Use metadataWithPHAsset: instead."))); | ||||||||||
|
|
||||||||||
| /// Deprecated legacy API (ALAsset URL-era). Prefer `metadataWithPHAsset:`. | ||||||||||
| + (instancetype)metadataWithAssetURL:(NSURL *)assetURL __attribute__((deprecated("Use metadataWithPHAsset: instead."))); | ||||||||||
|
|
||||||||||
| + (instancetype)metadataWithFileURL:(NSURL *)fileURL; | ||||||||||
| + (instancetype)metadataWithImageData:(NSData *)imageData; | ||||||||||
|
|
||||||||||
| + (NSDictionary *)dictionaryWithAssetURL:(NSURL *)assetURL __TVOS_PROHIBITED; | ||||||||||
| /// Photos-framework based metadata dictionary extraction. | ||||||||||
| + (NSDictionary *)dictionaryWithPHAsset:(PHAsset *)asset; | ||||||||||
|
|
||||||||||
| /// Deprecated legacy API (ALAsset URL-era). Prefer `dictionaryWithPHAsset:`. | ||||||||||
| + (NSDictionary *)dictionaryWithAssetURL:(NSURL *)assetURL __attribute__((deprecated("Use dictionaryWithPHAsset: instead."))); | ||||||||||
|
|
||||||||||
|
||||||||||
| // Deprecated: Use dictionaryWithPHAsset: instead. This wrapper fetches PHAsset from ALAsset URL. | |
| + (NSDictionary *)dictionaryWithAssetURL:(NSURL *)assetURL __attribute__((deprecated("Use dictionaryWithPHAsset: instead."))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment 'Fallback' is vague compared to the original explanation. Consider clarifying intent (e.g., 'Unparsed vendor-specific dictionaries exposed as-is for consumers').