-
Notifications
You must be signed in to change notification settings - Fork 30
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
add support for dev app #63
Conversation
4dc203c
to
c9dc53d
Compare
SSO has hard dependendcies to Nextcloud File app: Android-SingleSignOn/src/main/java/com/nextcloud/android/sso/helper/VersionCheckHelper.java Lines 35 to 40 in 2ffb234
Android-SingleSignOn/src/main/java/com/nextcloud/android/sso/api/AidlNetworkRequest.java Lines 79 to 84 in 53355e8
Android-SingleSignOn/src/main/java/com/nextcloud/android/sso/AccountImporter.java Lines 278 to 289 in c9dc53d
Question is how / if we can also support dev version there. |
For reference from our Telegram chat:
@tobiasKaminsky Just thought about #49 .. this will make it quite hard to support both apps (normal and dev) as we need to connect to both apps and get an account list. |
as this is a "one time" action, only when adding an account, I think this is ok. |
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
eb079a8
to
9aec063
Compare
This should be ready to test |
@stefan-niedermann @desperateCoder can you both include this in your app and test? |
@tobiasKaminsky so for all the requests we'll just use the nextcloud files app? (and not the dev app?) Does the normal app has access to the account data of the dev app? The actual account data is required for the actual network call to the nextcloud, isn't it? |
No, I was referring to "fetch accounts from both apps". This is a "one time" action while adding accounts, which does not happen that offen. As far as I tested, this PR allows to use both apps.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - looking forward to use it in deck :)
@tobiasKaminsky I was a little confused at first how the network requests will be made but I just saw that you added some logic to whether to connect to the nextcloud service or the nextcloud dev service. This line made things much clearer to me: Android-SingleSignOn/src/main/java/com/nextcloud/android/sso/api/AidlNetworkRequest.java Line 79 in c67f4a2
After running some tests, I couldn't select an account from the dev app as the line This PR looks good to me! Great work! :) I created a PR with a few minor fixes in #65. And sorry for the delay!.. |
Good question, :/ |
Allow dev app fixes
Yay, thank you! When are you gonna build a release approximately? |
Thanks buddy! Hope you will be @ the NC conference, so I can offer you a beer for your support! Same for @tobiasKaminsky btw! |
@David-Development @tobiasKaminsky , just tested it for Deck, works great! Thanks again! |
Signed-off-by: tobiasKaminsky tobias@kaminsky.me