Toggle Recording
While I understand the app is using accelerometer to reduce battery usage I was looking for a more explicit way to toggle recording on/off in the app. Is recording an all or nothing option and is the only way to stop it force kill?
Hi @rossbates! The current Arc Mini code relies on a UI toggle in Arc Timeline app to turn recording on/off. But if you build Mini from Xcode yourself, you can add in a toggle for it if you like.
Poking about in the code, it looks like the key bool is Settings.recordingOn, which is a wrapper around "recordingOn" in either the local UserDefaults or the AppGroup's shared UserDefaults. When building from Xcode you won't have/need the AppGroup, so can just work with setting that value in the local UserDefaults.
Aside: I'll soon be removing Arc Mini from the App Store, so building it yourself from Xcode will eventually be the only option. Arc Mini has been deprecated in favour of Arc Recorder, as the fallback recorder for Arc Timeline app.
Got it. Appreciate the quick and helpful response.
XCode is complaining about Mutation of captured var 'rtree' in concurrently-executing code within LocoKit which appears to be another package which you have kindly published. I'll take a look at that and see if I can't work my way through it.
That sounds like something that the new Xcode would complain about. But LocoKit and Arc Mini are both set to Swift 5, so it shouldn't be enforcing anything Swift 6. Hmm. I also didn't see that yesterday when working on Arc Timeline (which uses the same underlying LocoKit version for recording/processing/classifying).
It might just be a case of needing to fetch the latest package versions.