@jesushr0013/native-timer 8.0.8 → 8.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,5 +19,15 @@ Pod::Spec.new do |s|
19
19
  s.swift_version = '5.1'
20
20
 
21
21
  # Frameworks condicionais - ActivityKit apenas para iOS 16.2+
22
- s.weak_frameworks = 'WidgetKit', 'SwiftUI', 'ActivityKit'
22
+ # SwiftUICore es necesario como weak_framework porque Xcode 16+ lo separa de SwiftUI
23
+ # y en iOS 16.x no existe como framework independiente
24
+ s.weak_frameworks = 'WidgetKit', 'SwiftUI', 'ActivityKit', 'SwiftUICore'
25
+
26
+ # Linker flags para asegurar weak linking de SwiftUICore
27
+ s.pod_target_xcconfig = {
28
+ 'OTHER_LDFLAGS' => '$(inherited) -weak_framework SwiftUICore'
29
+ }
30
+ s.user_target_xcconfig = {
31
+ 'OTHER_LDFLAGS' => '$(inherited) -weak_framework SwiftUICore'
32
+ }
23
33
  end
@@ -13,5 +13,15 @@ Pod::Spec.new do |s|
13
13
  s.swift_version = '5.1'
14
14
 
15
15
  # Frameworks condicionais - ActivityKit apenas para iOS 16.2+
16
- s.weak_frameworks = 'WidgetKit', 'SwiftUI', 'ActivityKit'
16
+ # SwiftUICore es necesario como weak_framework porque Xcode 16+ lo separa de SwiftUI
17
+ # y en iOS 16.x no existe como framework independiente
18
+ s.weak_frameworks = 'WidgetKit', 'SwiftUI', 'ActivityKit', 'SwiftUICore'
19
+
20
+ # Linker flags para asegurar weak linking de SwiftUICore
21
+ s.pod_target_xcconfig = {
22
+ 'OTHER_LDFLAGS' => '$(inherited) -weak_framework SwiftUICore'
23
+ }
24
+ s.user_target_xcconfig = {
25
+ 'OTHER_LDFLAGS' => '$(inherited) -weak_framework SwiftUICore'
26
+ }
17
27
  end
package/Package.swift ADDED
@@ -0,0 +1,28 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "Jesushr0013NativeTimer",
6
+ platforms: [.iOS(.v15)],
7
+ products: [
8
+ .library(
9
+ name: "Jesushr0013NativeTimer",
10
+ targets: ["Jesushr0013NativeTimer"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
14
+ ],
15
+ targets: [
16
+ .target(
17
+ name: "Jesushr0013NativeTimer",
18
+ dependencies: [
19
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
+ .product(name: "Cordova", package: "capacitor-swift-pm")
21
+ ],
22
+ path: "ios",
23
+ sources: ["Plugin", "LiveActivitiesKit"],
24
+ linkerSettings: [
25
+ .unsafeFlags(["-weak_framework", "SwiftUICore"])
26
+ ])
27
+ ]
28
+ )
@@ -1,7 +1,6 @@
1
+ #if canImport(ActivityKit)
1
2
  import SwiftUI
2
3
  import WidgetKit
3
-
4
- #if canImport(ActivityKit)
5
4
  import ActivityKit
6
5
 
7
6
  @available(iOS 16.2, *)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jesushr0013/native-timer",
3
- "version": "8.0.8",
3
+ "version": "8.0.10",
4
4
  "description": "Plugin nativo para timer con foreground service",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -10,6 +10,7 @@
10
10
  "android/",
11
11
  "dist/",
12
12
  "ios/",
13
+ "Package.swift",
13
14
  "Jesushr0013NativeTimer.podspec",
14
15
  "NativeTimerKit.podspec"
15
16
  ],