Skip to content

Linux + iPhone Continuity / iMessage / SMS

this is exactly why i've left apple

Zack Bartelce55494d8a72
diff --git a/apple/Info.plist b/apple/Info.plist
new file mode 100644
index 0000000..bd0c5e4
--- /dev/null
+++ b/apple/Info.plist
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>NSBonjourServices</key>
+ <array>
+ <string>_tether._tcp</string>
+ </array>
+ <key>NSLocalNetworkUsageDescription</key>
+ <string>Used to discover and connect to Tether services on your local network.</string>
+</dict>
+</plist>
diff --git a/apple/Tether.xcodeproj/project.pbxproj b/apple/Tether.xcodeproj/project.pbxproj
index 546040a..17681b8 100644
--- a/apple/Tether.xcodeproj/project.pbxproj
+++ b/apple/Tether.xcodeproj/project.pbxproj
@@ -412,6 +412,8 @@
ENABLE_RESOURCE_ACCESS_USB = NO;
ENABLE_USER_SELECTED_FILES = readonly;
GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_FILE = Info.plist;
+ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
@@ -476,6 +478,8 @@
ENABLE_RESOURCE_ACCESS_USB = NO;
ENABLE_USER_SELECTED_FILES = readonly;
GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_FILE = Info.plist;
+ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
diff --git a/apple/Tether/Protocol/TetherMessage.swift b/apple/Tether/Protocol/TetherMessage.swift
index 00ce1b2..a4b3696 100644
--- a/apple/Tether/Protocol/TetherMessage.swift
+++ b/apple/Tether/Protocol/TetherMessage.swift
@@ -96,9 +96,9 @@ extension TetherMessage {
static func fileChunk(transferId: String, chunkIndex: Int, data: String) -> TetherMessage {
TetherMessage(
command: TetherCommand.fileChunk.rawValue,
+ transferId: transferId,
chunkIndex: chunkIndex,
- data: data,
- transferId: transferId
+ data: data
)
}