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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ pubspec_overrides.yaml
cmake-build-debug/
.vs/
**/.flutter-plugins-dependencies
.build/
.swiftpm/
4 changes: 2 additions & 2 deletions packages/gamepads_darwin/macos/gamepads_darwin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ MacOS implementation of gamepads, a Flutter plugin to handle gamepad input acros
s.author = { 'Luan' => 'luan@blue-fire.xyz' }

s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.source_files = 'gamepads_darwin/Sources/gamepads_darwin/**/*.swift'
s.dependency 'FlutterMacOS'

s.platform = :osx, '10.11'
s.platform = :osx, '10.15'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.swift_version = '5.0'
end
24 changes: 24 additions & 0 deletions packages/gamepads_darwin/macos/gamepads_darwin/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// 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: "gamepads_darwin",
platforms: [
.macOS("10.15")
],
products: [
.library(name: "gamepads-darwin", targets: ["gamepads_darwin"])
],
dependencies: [],
targets: [
.target(
name: "gamepads_darwin",
dependencies: [],
linkerSettings: [
.linkedFramework("GameController")
]
)
]
)
4 changes: 2 additions & 2 deletions packages/gamepads_ios/ios/gamepads_ios.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ iOS implementation of gamepads, a Flutter plugin to handle gamepad input across
s.license = { :file => '../LICENSE' }
s.author = { 'Luan' => 'luan@blue-fire.xyz' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.source_files = 'gamepads_ios/Sources/gamepads_ios/**/*.swift'
s.dependency 'Flutter'
s.platform = :ios, '11.0'
s.platform = :ios, '13.0'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
24 changes: 24 additions & 0 deletions packages/gamepads_ios/ios/gamepads_ios/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// 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: "gamepads_ios",
platforms: [
.iOS("13.0")
],
products: [
.library(name: "gamepads-ios", targets: ["gamepads_ios"])
],
dependencies: [],
targets: [
.target(
name: "gamepads_ios",
dependencies: [],
linkerSettings: [
.linkedFramework("GameController")
]
)
]
)
Loading