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
182 changes: 0 additions & 182 deletions SPM_MIGRATION_PLAN.md

This file was deleted.

4 changes: 4 additions & 0 deletions workmanager_apple/ios/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
.sconsign.dblite
.svn/

# Swift Package Manager
.build/
.swiftpm/

.DS_Store
*.swp
profile
Expand Down
13 changes: 6 additions & 7 deletions workmanager_apple/ios/workmanager_apple.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
Pod::Spec.new do |s|
s.name = 'workmanager_apple'
s.version = '0.0.1'
s.summary = 'Flutter Workmanager'
s.summary = 'Flutter Workmanager for iOS'
s.description = <<-DESC
Flutter Android Workmanager
iOS implementation of the Flutter Workmanager plugin, allowing you to schedule background work.
DESC
s.homepage = 'http://example.com'
s.homepage = 'https://github.com/fluttercommunity/flutter_workmanager'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.author = { 'Flutter Community' => 'authors@fluttercommunity.dev' }
s.source = { :path => '.' }
s.source_files = 'Sources/workmanager_apple/**/*'
s.source_files = 'workmanager_apple/Sources/workmanager_apple/**/*.swift'
s.dependency 'Flutter'

s.ios.deployment_target = '14.0'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.swift_version = '5.0'
s.resource_bundles = { 'flutter_workmanager_privacy' => ['Resources/PrivacyInfo.xcprivacy'] }
s.resource_bundles = { 'flutter_workmanager_privacy' => ['workmanager_apple/Sources/workmanager_apple/PrivacyInfo.xcprivacy'] }
end

Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ let package = Package(
.iOS(.v14)
],
products: [
// The library name uses a hyphen because Flutter requires SwiftPM product
// names to not contain underscores. The target keeps the underscore.
.library(
name: "workmanager_apple",
name: "workmanager-apple",
targets: ["workmanager_apple"]
)
],
targets: [
.target(
name: "workmanager_apple",
path: "Sources/workmanager_apple",
resources: [
.process("../Resources")
.process("PrivacyInfo.xcprivacy")
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit

extension UIBackgroundFetchResult: CustomDebugStringConvertible {
public var debugDescription: String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'package:pigeon/pigeon.dart';
package: 'dev.fluttercommunity.workmanager.pigeon',
),
swiftOut:
'../workmanager_apple/ios/Sources/workmanager_apple/pigeon/WorkmanagerApi.g.swift',
'../workmanager_apple/ios/workmanager_apple/Sources/workmanager_apple/pigeon/WorkmanagerApi.g.swift',
copyrightHeader: 'pigeons/copyright.txt',
dartPackageName: 'workmanager_platform_interface',
))
Expand Down
Loading