From @punksomething via TwitLonger
@aniceberg I totally get where you're coming from. It's actually been really frustrating to me how hard it is to make a change in Flex 2. Take something as simple as swiping back on a view controller. Well that presents a huge problem in Flex 2. To pull of all the major deviations from the stock UI in Flex 2 I had to write my own navigation controller, tab bar, view controller wrapper, etc. So a lot of the stuff that you got for free in iOS 7 for using the default controllers, Flex 2 didn't get. The simple solution would be to move from the custom classes to the default classes. Unfortunately this isn't possible because I had to maintain compatibility with iOS 5 and Flex 2 would look awful in iOS 5 with the default classes. That's just one issue. Unfortunately there are a lot of circumstances preventing me from making drastic changes in Flex 2.
I did concentrate on tweaking Flex 2 with all the simple improvements people are asking for. I started with some edge cases where permissions weren't set correctly on some systems, so Flex was unable to access the patch database when injected in some apps. I wrote a daemon that would have root access and the injected library would communicate over XPC to it and be passed patches. This turned into a rather big project, and I didn't want to potentially break compatibility for everyone by introducing such drastic changes. People also wanted faster searches and loading, so I re-wrote Flex 2 to use Core Data for its database instead of a .plist file. Unfortunately Core Data was having errors in some cases, which were undescriptive and had no results on Google, so almost impossible to debug. I also re-wrote the server side of Flex 2 so that it would be easier to extend and add features. Unfortunately the only server language I knew at the time was PHP, so even though I coded it to be more maintainable, it was still written in PHP which is much different than languages that I prefer like Objective-C and Swift. I decided that this was the wrong direction to go. Flex 2 is really hard to maintain basically.
For Flex 3 I'm doing things completely different so that it will be much more maintainable. First of all I'm only supporting iOS 8+. Supporting iOS 5 & 6 on Flex 2 was a mistake. I spent so much time fixing random iOS 5 bugs that I couldn't even reproduce much of the time. I had to buy an iPod 4 on eBay just to test an iOS 5 bug that only happened on that device. Every time I prepped a Flex 2 release I had to test it across so many devices to make sure no bugs were happening in iOS 5 on an iPod/iPad/iPhone, etc. It prevented me from using auto layout and a lot of new features that make your live easier.
I'm also writing tests for all my model classes. This will give me less of a headache when making changes, make sure that there aren't any regressions, and make it much less likely that bugs will be introduced. I've got continuous integration set up with a bunch of devices hooked up too. I hope all my testing will eventually be automated. I've bought a few books on the subject to help with this goal.
I'm switching the server language to Ruby. It's a lot easier to code in, and it's more similar to Objective-C and Swift. Can't live without named parameters.
Flex 3 will be more modular and de-coupled. It's split up into different projects:
The app: The UI people use
The daemon: The on-device background server portion that handles database tasks and sending patches to processes
The library: The shared code that the app and daemon use, and the portion that gets injected into apps
The hooking framework (Monolith): planning on releasing an API so people can code with this
The in-app developer UI: The UI for inspecting apps and logging method calls that gets injected into apps
Flex 3 has grown out of a necessity. I'm basically throwing out all the previous Flex code and starting from scratch. When Flex 3 gets into public testing I don't even plan on having the cloud integrated. It's going to be very basic, and I'll be building it the right way.
Ultimately Flex 2 fulfills the goals I set out. It's a huge upgrade from Flex 1, and allows much more complicated patches. It's not everything it could be, sure, but I'm proud of it, and of the community that has sprung up around it.