Swift
Add the MIT License and bundle the sounds' license.
Andy Gao53c08ddf7bd0
diff --git a/Assets/README.md b/Assets/README.mdindex 405621b..2117542 100644--- a/Assets/README.md+++ b/Assets/README.md@@ -15,8 +15,10 @@ the case images come from.## Sources and licenses-- The case images are renders of Apple's AirPods Pro 3 AR model. Apple owns the- model and its materials.+The MIT License at the top of this project does not cover this folder.++- The case images and app icon are renders of Apple's AirPods Pro 3 AR model. Apple+ owns the model and its materials.[Download it from Apple](https://www.apple.com/105/media/us/airpods-pro/2025/7acffb13-4adb-40b1-9393-8f1c99bc6c90/ar/airpods-pro.usdz),linked from the [AirPods Pro specs page](https://www.apple.com/airpods-pro/specs/).- The two sounds use parts from cuelume, MIT license, (c) 2026 Daniel Belyi. Seediff --git a/HomeChecks.swift b/HomeChecks.swiftindex 665bf85..2d20a7c 100644--- a/HomeChecks.swift+++ b/HomeChecks.swift@@ -111,6 +111,7 @@ func runHomeChecks()throws {try require(changedSettings?.clickSound==false && changedSettings?.speed==1.6,"The click sound switch did not change only the click sound")try require(TapClickSound.shared.loaded,"The app bundle has no tap click sound")try require(NotchShimmerSound.shared.loaded,"The app bundle has no notch shimmer")+ try require(Bundle.main.url(forResource:"LICENSE-cuelume",withExtension:"txt") != nil,"The app bundle has no license for its sounds")let gear=home.window.toolbar?.items.first{$0.label=="Settings"}try require(gear?.toolTip?.hasPrefix("Settings")==true,"Settings is not a single toolbar button")// Pointer and Settings are the only pages, so the toolbar is just the gear: no section tabs.diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..0b95100--- /dev/null+++ b/LICENSE@@ -0,0 +1,24 @@+The MIT License below covers the code in this repository. It does not cover the+Assets folder. See Assets/README.md for the owners and terms of those files.++MIT License++Copyright (c) 2026 Andy Gao++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/README.md b/README.mdindex e006b81..9494d5d 100644--- a/README.md+++ b/README.md@@ -229,3 +229,9 @@ defaults delete local.airpointertccutil reset Accessibility local.airpointertccutil reset BluetoothAlways local.airpointer```++## License++The code uses the [MIT License](LICENSE). The license does not cover `Assets/`.+Apple owns the AirPods model that the case images and app icon are made from, and+the sounds have their own license. See [Assets/README.md](Assets/README.md).diff --git a/build.sh b/build.shindex 6c17cf6..bbd6c2f 100755--- a/build.sh+++ b/build.sh@@ -8,6 +8,7 @@ cp Assets/CaseFront.png Assets/AppIcon.icns AirPointer.app/Contents/Resources/for frame in Assets/CaseLid/lid-*.png; do cp "$frame" "AirPointer.app/Contents/Resources/Case${frame:t:r:s/lid/Lid/}.png"; donecp Assets/TapClick/click.wav AirPointer.app/Contents/Resources/TapClick.wavcp Assets/NotchShimmer.wav AirPointer.app/Contents/Resources/NotchShimmer.wav+cp Assets/TapClick/LICENSE-cuelume.txt AirPointer.app/Contents/Resources/LICENSE-cuelume.txtclang -fobjc-arc -Wall -Wextra -Werror -framework Foundation -framework CoreBluetooth -framework IOBluetooth ClosedCase/CaseSustainedRenewal.m -o AirPointer.app/Contents/Resources/ClosedCaseMotion.binxcrun swiftc -swift-version 5 -O ClosedCaseRestore.swift -o AirPointer.app/Contents/Resources/ClosedCaseRestore.bin -framework Foundation -framework CoreBluetooth -framework IOBluetoothcp ClosedCase/Orientation.js AirPointer.app/Contents/Resources/ClosedCaseOrientation.js