mirror of
https://github.com/carey314/mio-plugin-airdrop.git
synced 2026-06-11 03:54:33 +00:00
Quick-access AirDrop from the notch panel. Tap the card body, pick files via NSOpenPanel, hand off to NSSharingService(.sendViaAirDrop). No private APIs, no entitlements, no network — just a thin wrapper around the same AirDrop API Finder uses. Design constraint: drag-and-drop is intentionally not implemented. MioIsland's notch panel auto-collapses on click-outside, which breaks the Cmd-Tab-to-Finder / grab / drag-back workflow before the drop target reaches. Tap-to-choose is rock solid by comparison. Requires MioIsland host v2.2.0+ (panel size clamp floor was lowered to 120pt in that release).
47 lines
2.1 KiB
Plaintext
47 lines
2.1 KiB
Plaintext
<?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>CFBundleDevelopmentRegion</key>
|
||
<string>en</string>
|
||
<key>CFBundleExecutable</key>
|
||
<string>AirDropPlugin</string>
|
||
<key>CFBundleIdentifier</key>
|
||
<string>com.mioisland.plugin.airdrop</string>
|
||
<key>CFBundleInfoDictionaryVersion</key>
|
||
<string>6.0</string>
|
||
<key>CFBundleName</key>
|
||
<string>AirDrop</string>
|
||
<key>CFBundlePackageType</key>
|
||
<string>BNDL</string>
|
||
<key>CFBundleShortVersionString</key>
|
||
<string>1.0.0</string>
|
||
<key>CFBundleVersion</key>
|
||
<string>1</string>
|
||
<key>NSPrincipalClass</key>
|
||
<string>AirDropPlugin.AirDropPlugin</string>
|
||
<!--
|
||
═════════════════════════════════════════════════════════════
|
||
PANEL SIZE (host reads these on load)
|
||
═════════════════════════════════════════════════════════════
|
||
Host clamp: width [280, 1200], height [120, 900]
|
||
Out-of-range → host falls back to 620×780 default (bad).
|
||
|
||
Layout (280pt):
|
||
top transparent 40pt (host overlays back chevron + notch)
|
||
margin top 20pt
|
||
card 180pt (14 pad + drop zone + 14 pad)
|
||
margin bottom 20pt
|
||
─────────────────
|
||
total 200pt ... wait, this adds to 260.
|
||
Actually: 40 + 20 + 180 + 20 = 260pt.
|
||
Bumping to 280 gives 20pt buffer.
|
||
═════════════════════════════════════════════════════════════
|
||
-->
|
||
<key>MioPluginPreferredWidth</key>
|
||
<integer>440</integer>
|
||
<key>MioPluginPreferredHeight</key>
|
||
<integer>280</integer>
|
||
</dict>
|
||
</plist>
|