AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 32 forks source link

macOS 10.15 and iOS 11 support #40

Closed starkdmi closed 10 months ago

starkdmi commented 1 year ago

Update minimal iOS version to 11+ LightCompressor is compatible with iOS 11+ by removing @available(iOS 14.0, *) from class declaration.

Add macOS support LightCompressor is compatible with macOS by removing unused import UIKit. Saving to gallery possible using saveInGallery flag from iOSConfig (requires macOS 10.15+).

For now I just copied Swift code from iOS and modified it a bit to support macOS, but Swift code can be shared between iOS and macOS using symlinks in future.

AbedElazizShe commented 10 months ago

Hi @starkdmi , thanks a lot for your contribution.