Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bitsdojo_window_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.1.5
- Added Swift Package Manager support for macOS ([flutter SPM migration guide](https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors))
## 0.1.4
- Various fixes to work with latest Flutter version
## 0.1.3
Expand Down
4 changes: 4 additions & 0 deletions bitsdojo_window_macos/macos/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

# Xcode-related
**/xcuserdata/

# Swift Package Manager
.build/
.swiftpm/
3 changes: 2 additions & 1 deletion bitsdojo_window_macos/macos/bitsdojo_window_macos.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ A new flutter plugin project.
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*.{swift,h,m,mm}'
s.source_files = 'bitsdojo_window_macos/Sources/**/*.{swift,h,m,mm}'
s.public_header_files = 'bitsdojo_window_macos/Sources/**/include/**/*.h'
s.dependency 'FlutterMacOS'

s.platform = :osx, '10.11'
Expand Down
37 changes: 37 additions & 0 deletions bitsdojo_window_macos/macos/bitsdojo_window_macos/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "bitsdojo_window_macos",
platforms: [
.macOS("10.11"),
],
products: [
.library(
name: "bitsdojo-window-macos",
targets: ["bitsdojo_window_macos", "bitsdojo_window_macos_objc"]
),
],
dependencies: [
.package(name: "FlutterFramework", path: "../FlutterFramework"),
],
targets: [
.target(
name: "bitsdojo_window_macos_objc",
path: "Sources/bitsdojo_window_macos_objc",
cSettings: [
.headerSearchPath("include/bitsdojo_window_macos"),
]
),
.target(
name: "bitsdojo_window_macos",
dependencies: [
"bitsdojo_window_macos_objc",
.product(name: "FlutterFramework", package: "FlutterFramework"),
],
path: "Sources/bitsdojo_window_macos"
),
]
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Cocoa
#if canImport(bitsdojo_window_macos_objc)
import bitsdojo_window_macos_objc
#endif

let bdwAPI = bitsdojo_window_api().pointee;
let bdwPrivateAPI = bdwAPI.privateAPI.pointee;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef bitsdojo_window_h
#define bitsdojo_window_h

#import <Cocoa/Cocoa.h>
#include "./bitsdojo_window_common.h"

// Native private API
Expand Down
2 changes: 1 addition & 1 deletion bitsdojo_window_macos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bitsdojo_window_macos
description: macOS implementation of the bitsdojo_window plugin.
version: 0.1.4
version: 0.1.5
homepage: https://www.bitsdojo.com
repository: https://github.com/bitsdojo/bitsdojo_window

Expand Down