2
Lensflare
214d

I have finished my project for a new devrant sdk in swift:

https://github.com/WilhelmOks/...

(Yes, the readme is missing and I will add it later πŸ˜…)

And I built it into JoyRant (build 32), which required quite a bit of refactoring.

I think I tested everything but let me know if you find any problems.

You will need to logout and log in again.

The downvote reason feature isn‘t there yet (in JoyRant), but now I have a good basis to add it πŸ˜„

Yes, implementing a whole new SDK just for one little feature is overkill, but I had fun doing it and I wanted to have a nice, clean and extensible code base which I can work on in the future. 😌

Comments
  • 0
    build 33 fixes the pull-to-refresh in the rant feed.
  • 0
    @retoor Thank you!

    Cool stuff, your automatic review system.

    It picked up some good points but at some places it fails to understand that what it criticizes is actually intentional. :)

    For example the differences in property naming of the CodingData models and the "main" models is intentional because the sdk tries to map the devrant structure to something that is easier to use and understand.
    Devrant often uses cryptic names like b for background color and a for avatar image.
    The sdk also maps Integer booleans to actual booleans and integer dates to actual dates, etc.

    The user mapping caching is a valid point. I thought about it myself and I‘m impressed that it picked that up.
    Valid, but probably unnecessary unless the data set is huge, which it isn‘t.
    The request that gets the data is orders of magnitude slower than it takes to map that data πŸ˜„
  • 0
    @retoor That‘s not a bug, it exists in the KreeRequest package/module :)
  • 0
    @retoor glad to hear that! πŸ˜„
    Swift really takes inspiration from many other languages and keeps the good parts.

    KreeRequest is a really thin layer on top of the stdlib URLSession.
    I wasn‘t aware that it‘s not available for linux.

    I‘m interested to provide support for linux so I will take a look at it and make it possible.
  • 0
    @retoor KreeRequest and SwiftDevRantSDK are now Linux compatible. Theoretically Windows as well.
    I tested both in an Ubuntu VM.

    I also fixed the warnings about the redundant public modifiers.

    Thanks for pointing out the issues.
  • 0
    @retoor sure, why not
  • 0
    @retoor both.

    I‘m struggling with self promotion as well πŸ˜…
  • 0
    @retoor I don‘t mean just this project but in general :)

    Btw JoyRant is still not allowed on the AppStore. I gave up arguing with Apple.
  • 0
    @retoor btw since you are learning Swift, maybe you will find this interesting :)

    https://github.com/WilhelmOks/blog/...
  • 0
    @retoor I‘m not really vouching for Apple πŸ˜…

    I‘s just useless. I can‘t just pretend like it‘s the official app. The official one is on the other account. That‘s pretty clear and imo it‘s how it should be.

    The whole problem is that Apple fails to realize that I‘m NOT trying to make a copycat app and steal their business.
    And at this point I believe they will never understand. So, I gave up.

    It‘s extremely frustrating to try to explain in different ways and the answer is always a variation of the same crap.

    At least I can publish it via Testflight.
Add Comment