-
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
Support Activity Result API #448
Comments
In short: Nope. Maybe you want to start a Pull Request? I will happily review it 🙂 |
@stefan-niedermann I don't have a NC instance at the moment, so it would be hard to test the code. Do you know any reliable hosted services? I tried a couple from the official website, one of them was freezing for hours and another one wasn't able to send me an email confirmation for some reason =) |
For testing around just use one of those free hosters. So, I played a bit around with the idea of
Further thoughts:
private final ActivityResultLauncher<Void> launcher;
{
try {
launcher = registerForActivityResult(
new ImportAccountContract(this),
(ActivityResultCallback<SingleSignOnAccount>) this::onActivityResult
);
} catch (NextcloudFilesAppNotInstalledException e) {
throw new RuntimeException(e);
}
} |
Here is how I integrate NC SSO:
It works fine, except for showing deprecation warnings:
It looks like the modern way to get a
SingleSignOnAccount
is to create anActivityResultContract<Nothing, SingleSignOnAccount>
or something like that and to ship it with the library. Are there any reasons for not supporting Activity Result API except for the lack of dev time?The text was updated successfully, but these errors were encountered: