@craft-native/ios 0.0.90 → 0.0.92

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.
@@ -102,6 +102,14 @@ extension CraftWatchSession: WCSessionDelegate {
102
102
  nonisolated func session(_ session: WCSession, didReceiveUserInfo userInfo: [String: Any] = [:]) {
103
103
  Task { @MainActor in apply(userInfo) }
104
104
  }
105
+
106
+ #if os(iOS)
107
+ nonisolated func sessionDidBecomeInactive(_ session: WCSession) {}
108
+
109
+ nonisolated func sessionDidDeactivate(_ session: WCSession) {
110
+ session.activate()
111
+ }
112
+ #endif
105
113
  }
106
114
 
107
115
  struct CraftWatchRecordingView: View {
@@ -22,5 +22,7 @@
22
22
  <string>$(CURRENT_PROJECT_VERSION)</string>
23
23
  <key>WKCompanionAppBundleIdentifier</key>
24
24
  <string>{{BUNDLE_ID}}</string>
25
+ <key>WKWatchKitApp</key>
26
+ <true/>
25
27
  </dict>
26
28
  </plist>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>{{APP_NAME}}</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>$(EXECUTABLE_NAME)</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>$(PRODUCT_NAME)</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>$(MARKETING_VERSION)</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>$(CURRENT_PROJECT_VERSION)</string>
23
+ <key>NSExtension</key>
24
+ <dict>
25
+ <key>NSExtensionAttributes</key>
26
+ <dict>
27
+ <key>WKAppBundleIdentifier</key>
28
+ <string>{{BUNDLE_ID}}.watchkitapp</string>
29
+ </dict>
30
+ <key>NSExtensionPointIdentifier</key>
31
+ <string>com.apple.watchkit</string>
32
+ </dict>
33
+ </dict>
34
+ </plist>
@@ -4,10 +4,16 @@ options:
4
4
  deploymentTarget:
5
5
  iOS: "{{IOS_VERSION}}"
6
6
  settings:
7
- MARKETING_VERSION: "{{VERSION}}"
8
- CURRENT_PROJECT_VERSION: "{{BUILD_NUMBER}}"
9
- CODE_SIGN_STYLE: Automatic
10
- DEVELOPMENT_TEAM: "{{TEAM_ID}}"
7
+ base:
8
+ MARKETING_VERSION: "{{VERSION}}"
9
+ CURRENT_PROJECT_VERSION: "{{BUILD_NUMBER}}"
10
+ CODE_SIGN_STYLE: Automatic
11
+ DEVELOPMENT_TEAM: "{{TEAM_ID}}"
12
+ configs:
13
+ debug:
14
+ CRAFT_APNS_ENVIRONMENT: development
15
+ release:
16
+ CRAFT_APNS_ENVIRONMENT: production
11
17
  targets:
12
18
  {{APP_NAME}}:
13
19
  type: application