-
Notifications
You must be signed in to change notification settings - Fork 0
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
Want to share it with the community? #5
Comments
@kevinpapst Thank you very much! I didn't submit a PR to get included in the app homepage, because this project is very much work in progress and is currently on hold until the Kimai 2.0 API is done. (Therefore my feature request on the Kimai2 repo 😉) But sure, go ahead and give it a try! Currently, you can only view your timesheet records. I have a local build which has the creation feature 40% complete, but I stopped working on that as soon as I saw a new Kimai was in the works. After the API is in a reasonable state I plan to continue the work on Timeu! I'm looking forward to feedback and ideas for the new version with Kimai2 support 👍 |
I bought a Swift book a while ago and played around a bit, but that was just scratching at the surface... I did a
but the installation went on and no more errors showed up. I cloned the repo, imported it into Xcode. But how to go on from there? It doesn't build, Xcode complains that And it says also Any ideas? |
Nice, which book did you buy? Swift is awesome! The error is showing because the Framework "KeychainAccess" is not yet available for Swift 4.2. Version 4.2 just released yesterday but a PR is already created over at their repo. The error |
Btw, Timeu is also built on a previous Swift Version. You might need to fix something to run Timeu on 4.2. I'll look into that this evening. |
@kevinpapst I updated the master branch to Swift 4.2 in commit 6b44c09. You should be able to build and run the app if you change the team. The "Try the demo" currently doesn't work because the Kimai instance at https://demo.kimai.org/ isn't available anymore. I tried it with a custom install of the old Kimai and it worked like a charm. |
I updated some XCode components yesterday. What a coincidence that I started testing it today after upgrading to 4.2 without knowing it ;-) Ok, I pulled the latest changes and after some fiddling around I could get it up and running. Still complaining "SwiftLint not installed, download from https://github.com/realm/SwiftLint" but thats not a critical error. I can't login as the demo is currently broken and I have no running Kimai 1 around. If you start with changing it for v2 let me know. I can at least help testing/debugging new stuff... |
Ah, found the new branch. Could you merge your fixes int it? |
Yeah, Swift has some very unique concepts. But they really did take all the good stuff from various programming languages. Yes, that was it! You need to change the bundle identifier, right. That's super annoying. I need to check if there is a better way. I should definitely add the SwiftLint dependency to the install steps in the README! (Fixed with: I'm currently rewriting the login screen to support Kimai2. You could really help me with that. The current/old workflow was the following:
Now in Kimai2, there are no "Tokens". The user has to set a specific API password, which I (currently) can't request through the API. So the workflow for Kimai2 would be the following:
In my opinion, this isn't really user-friendly. What do you think? Should I create an issue over at the Kimai2 repository? |
I rebased the kimai2 branch to include the Swift 4.2 update 👍 |
Ok, Demo is fixed, login works. First refresh with just one running entry brings a weird result. I think the workflow should be the same like in v1, only requiring the user to enter the API password. Your app shouldn't care about somehow dealing with the "normal" password and then displaying a message. If the user enters the wrong password, it simply won't work. But tbh I am not happy with the current solution as well, as you would have to store the users plaintext password, which is a no-go for production usage. Yes, lets discuss that over in the Kimai repo. You can open a new issue for the login change. I'd say: for now ask for the API password only, so we can concentrate on the required API functions and start implementing them in Timeu and Kimai v2. |
Or is the password saved in the normal iOS Keychain? Then it wouldn't be a problem I guess. |
On going (running) records aren't implemented correctly. Of course, the password is stored securely and encrypted in the iOS Keychain. So that wouldn't be a problem. The only reason I'm not that happy with the current implementation is, that the user needs to remember two separate passwords. But for the first version, this is more than enough. I'll just add a little hint to remind the user to use the API password instead of the normal one if the authentication failed. There are plenty of OAuth libraries for swift for later versions 👍 |
I'm currently really busy writing my bachelor thesis. I try to work on that on Sunday and the next weekend. |
Nice, sure. Just ping me when you want to do a rapid coding session! |
Dude, I didn't even know this repo existed, why didn't you tell us about it?
Really cool! That looks fantastic, I will test it the next days.
We can feature the app here: https://www.kimai.org/apps/
You would just need to submit a PR in this repo: https://github.com/kimai/www.kimai.org
The file you need to change is this one: https://github.com/kimai/www.kimai.org/blob/master/apps.md
The text was updated successfully, but these errors were encountered: