It took a lot of time & effort but it was a necessary step and I’m happy with how it went.
Generally I wanted to keep the app working at the end of each programming session. I started with a few refactorings of the Objective-C code that I knew would make things easier later. Then I rewrote the smaller components and worked my way up to the main view controllers. Those took the most effort and multiple nights to complete.
In the iOS app, there are about 300 lines of Objective-C left, which I’m probably going to keep. They make interfacing with the C-based HTTP server a bit easier. I got rid of the C++ HTML templating code and replaced it with a simpler Swift version because it’s easier to integrate with the rest of the new code base.
The Mac app is 100% Swift, plain and simple. It felt quite nice completing the last bit and deleting all the @objc attributes.
I’m currently testing both apps, looking for regressions. The first release based on this new codebase probably won’t contain any major user-facing changes. However, the rewrite opens the door to new features and performance & reliability improvements in the future.
Tiny Player version 1.4 is out now. This update brings the following changes:
- Dark mode support
- New icon set
- Optimizations & bug fixes
This version of Tiny Player requires iOS 13.0 or newer. I know this leaves some users behind. Sorry. I need to modernize the code to keep adding new features.
Tiny Player version 1.1 is out now. This update brings the following improvements:
- New layout for player controls
- Variable playback rate from 1.0× to 1.4×
- Basic accessibility support
Tiny Player version 1.0.8 is out now. This update brings the following improvements:
- Repeat mode menu
- New repeat mode: Play single track
Tiny Player version 1.0.7 is out now. This update brings the following improvements:
- New web interface with a nice directory browser
- Enable iTunes Document Sharing
Tiny Player version 1.0.6 is out now. This update brings the following improvements:
• Support seeking from Command Center
• Improved seeking precision
• Enable remote playback controls
• Add way to download music back to your computer
• Upload widget now accepts AIFF files