Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ AGENTS.md
.tend-stack
docs/plans/
build.log
*.trace
*.trace
build/
1 change: 0 additions & 1 deletion AirSync.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
buildActionMask = 2147483647;
files = (
B9E423832FBD914900526D40 /* scrcpy-server in Resources */,
B99B04C62F641E1400FF3E2D /* AppIcon.icon in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ For button-only actions without reply text:

**Direction:** Android → Mac

**Purpose:** Report device state: battery level, music playback status, and pairing information
**Purpose:** Report device state: battery level, music playback status, pairing information, and cellular network status

```json
{
Expand All @@ -435,7 +435,8 @@ For button-only actions without reply text:
"isMuted": false,
"albumArt": "data:image/png;base64,iVBORw0KG...",
"likeStatus": "liked"
}
},
"cellularNetwork": "5G"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## Requirements
- Min : macOS 14.5
- Opt: scrcpy, adb & media-control brew installs
- Opt: scrcpy, adb & media-control installed from brew

> For Windows? I don't build for that platform but check this cool project out at [shrimqy/Sefirah](https://github.com/shrimqy/Sefirah)

Expand Down
59 changes: 59 additions & 0 deletions airsync-mac/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"images" : [
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x",
"filename" : "icon-1024.png"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions airsync-mac/Core/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class AppState: ObservableObject {
self.menubarTextMaxLength = (savedMaxLength >= 50) ? savedMaxLength : 150

self.showMenubarIcon = UserDefaults.standard.object(forKey: "showMenubarIcon") == nil ? true : UserDefaults.standard.bool(forKey: "showMenubarIcon")
self.showMenubarNetworkStatus = UserDefaults.standard.object(forKey: "showMenubarNetworkStatus") == nil ? true : UserDefaults.standard.bool(forKey: "showMenubarNetworkStatus")
self.menubarBatteryStyle = UserDefaults.standard.string(forKey: "menubarBatteryStyle") ?? "both"
self.showMenubarMusicIcon = UserDefaults.standard.object(forKey: "showMenubarMusicIcon") == nil ? true : UserDefaults.standard.bool(forKey: "showMenubarMusicIcon")
self.showMenubarAlbumArt = UserDefaults.standard.object(forKey: "showMenubarAlbumArt") == nil ? true : UserDefaults.standard.bool(forKey: "showMenubarAlbumArt")
Expand Down Expand Up @@ -292,6 +293,7 @@ class AppState: ObservableObject {
@Published var status: DeviceStatus? = nil {
didSet { syncMediaTimerToPlayState() }
}
@Published var cellularNetwork: String? = nil
@Published var myDevice: Device? = nil
@Published var port: UInt16 = Defaults.serverPort
@Published var androidApps: [String: AndroidApp] = [:]
Expand Down Expand Up @@ -426,6 +428,12 @@ class AppState: ObservableObject {
}
}

@Published var showMenubarNetworkStatus: Bool {
didSet {
UserDefaults.standard.set(showMenubarNetworkStatus, forKey: "showMenubarNetworkStatus")
}
}

@Published var menubarBatteryStyle: String {
didSet {
UserDefaults.standard.set(menubarBatteryStyle, forKey: "menubarBatteryStyle")
Expand Down
Loading