New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support iOS7 #111
Comments
Hi @jmacmullin. It's more than we don't want to deal with testing or any problems that supporting iOS 7 might entail. Personally, I haven't even tried it. The tests might not run in iOS 7 because they use the new expectations API. Other than that, nothing specific comes to mind. We're using the latests and greatest Swift APIs, that's for sure. If you manage to get Haneke working in iOS 7 because you need it, please let me know and I'll add your fork to the readme. |
Forgot to mention that frameworks don't work in iOS 7. So getting Haneke to work there will imply manually adding the files to your project, perhaps with some namespacing modification. Reopening this issue as many people are asking for it. I'm not particularly proud of forgoing iOS 7 compatibility, even more so after the lackluster iOS 8 adoption rate, but I have to pick my battles. That said, if someone is willing to take the lead on this I'll be more than happy to help. |
Will look into this, but I will be gone for the next 2 weeks. Will start when I come back |
Anyone had any luck getting this going? |
Still 35% of devices are using iOS 7. It's better to cover them. |
@yinear I'll be leaving this up to the Haneke userbase. As I mentioned, if someone takes the lead I will gladly help. |
If anyone's interested, I wrote something extremely simple/basic for my app because I really needed the iOS7 support. It would serve as a starting point for anyone wanting to support iOS7 and desperate for something (like I was). Haneke would still be the best choice if anyone gets it working in iOS7! |
Hi, I just did a quick test and dropped the haneke folder into my iOS7 project. |
Thanks @eyeballz! |
OK, I played around with it for a little bit and the main problem we have here is that we will clutter our iOS7 app with about 15 top level classes/structs. The workarounds i see here are:
|
The top level classes that might collide with other frameworks are: (G) Cache (G) means generic class, so those cannot be nested |
Phew... I refactored the whole project with the following idea: Tests are still working. You can check it out at: |
Allright, I updated the https://github.com/eyeballz/HanekeSwiftiOS7Test to use the forked Haneke Swift repository at https://github.com/eyeballz/HanekeSwift |
@eyeballz Awesome! Do all unit tests pass? |
Yes, unit tests still pass. I wanted to put everything in one file, to make it easier to import but SourceKit had a problem with that and kept on crashing. |
Any news on this? I'm thinking to implemented HanekeSwift instead of SDWebImage, but I need iOS 7 support for this. |
you can use my fork which works for iOS7 |
Hi @eyeballz |
Hey @fabdarice , |
Thanks @eyeballz . |
Hi @eyeballz , |
@dwoshadha, try comparing your version of Haneke with the original code and replace the functions that are giving errors for most of the errors this will solve it. The only error that remains for me is in this function and i can't seem to figure it out. Maybe someone can have a look? in Cache.Swift
usingBlock: { [unowned self](notification : NSNotification!) -> Void in self.onMemoryWarning() } SOLVED my own issue, change |
@eyeballz is there a way that I can show a default image while it loads the actual. Do we have a default function for that? |
@eyeballz I converted the Haneke iOS7 to work with xCode 6.4 and Swift 1.2. I wanna push it. Please let me know how can I do that. |
Hi @seenickcode , Please let me know if you wanna have Swift 1.2 converted code. |
Yes please! On Mon, Sep 21, 2015 at 5:05 AM, Oshadha notifications@github.com wrote:
|
Hey, you can also make a pull request here https://github.com/eyeballz/HanekeSwift |
@seenickcode just drop me a mail. oshadha@gmail.com |
hi @eyeballz , When I try to sync it give me following error: Please advise me. |
Just fork it and then commit the changes there. dont even have to create a pull request then |
I was trying to upload my Swift 1.2 changes as new branch and it keeps me saying that "Authentication Failed" |
Closing this as it's less and less likely that new people will find it helpful. |
Swift apps can run on iOS7. It'd be nice if I could still use HanekeSwift on iOS7 too. Obviously iOS7 doesn't support frameworks so including Haneke in my app won't be as simple, but is there any reason Haneke wouldn't work on iOS7? Or you using (or planning to use) iOS8 specific APIs?
The text was updated successfully, but these errors were encountered: