From db843e4a90753855d625c8049693ed5cd01eb15f Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot Date: Mon, 10 May 2021 12:04:28 +0000 Subject: [PATCH] [wakelock] add macOS Podspec (#111) * Create wakelock.podspec * Update CHANGELOG.md * Update pubspec.yaml --- wakelock/CHANGELOG.md | 4 ++++ wakelock/macos/wakelock.podspec | 21 +++++++++++++++++++++ wakelock/pubspec.yaml | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 wakelock/macos/wakelock.podspec diff --git a/wakelock/CHANGELOG.md b/wakelock/CHANGELOG.md index dd859984..9ab121a5 100644 --- a/wakelock/CHANGELOG.md +++ b/wakelock/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.1+1 + +* Added Podspec to the `wakelock` package to avoid build issues on macOS. + ## 0.5.1 * Resolved a crash on iOS which was caused by 2 observers on idleTimerDisabled. diff --git a/wakelock/macos/wakelock.podspec b/wakelock/macos/wakelock.podspec new file mode 100644 index 00000000..4c44217e --- /dev/null +++ b/wakelock/macos/wakelock.podspec @@ -0,0 +1,21 @@ +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# +Pod::Spec.new do |s| + s.name = 'wakelock' + s.version = '0.0.1' + s.summary = 'No-op implementation of the macos wakelock plugin to avoid build issues on macos' + s.description = <<-DESC + No-op implementation of the wakelock plugin to avoid build issues on macos. + https://github.com/flutter/flutter/issues/46618 + DESC + s.homepage = 'https://github.com/creativecreatorormaybenot/wakelock' + s.license = { :file => '../LICENSE' } + s.author = { 'creativecreatorormaybenot' => 'creativecreatorormaybenot@gmail.com' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.public_header_files = 'Classes/**/*.h' + + s.platform = :osx + s.osx.deployment_target = '10.11' +end diff --git a/wakelock/pubspec.yaml b/wakelock/pubspec.yaml index 8286864e..fe773c27 100644 --- a/wakelock/pubspec.yaml +++ b/wakelock/pubspec.yaml @@ -2,7 +2,7 @@ name: wakelock description: >-2 Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on Android, iOS, macOS, Windows, and web. -version: 0.5.1 +version: 0.5.1+1 homepage: https://github.com/creativecreatorormaybenot/wakelock/tree/master/wakelock environment: