Skip to content

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Jun 4, 2021

Popup after package installation:
We request the user to enter their DSN (maybe even with a link where they'd get it from).
Button to press to activate/enable the SDK & close the window? If no DSN is provided and the window is closed the SDK could just stay silent and disabled?

Screenshot 2021-06-04 at 13 06 03

#skip-changelog

@bitsandfoxes bitsandfoxes self-assigned this Jun 4, 2021
@bitsandfoxes bitsandfoxes added the Feature New feature or request label Jun 4, 2021
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome!!
I know it's a draft to serve as a PoC but some notes to discuss the strategy to trigger it

var imported = importedAssets.Any(path => path.StartsWith("Packages/"));
var deleted = deletedAssets.Any(path => path.StartsWith("Packages/"));

if (imported || deleted)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to prompt also when asset deleted? I wonder the chance of false positive here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not a prompt but maybe we should delete the assets we create too? Like link.xml and the options file?

var listRequest = Client.List(true);
while (!listRequest.IsCompleted)
{
Thread.Sleep(100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might freeze up the editor though, right?
Can we schedule the continuation to run async too? If this was TPL it would be listRequest.ContinuesWith(p => .. but I'm not sure the type here (need to load the editor to do a proper review).

@bitsandfoxes bitsandfoxes changed the title POC: getting started window on installation Getting started window on installation Jun 14, 2021
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use Events.registeringPackages += RegisteringPackagesEventHandler; instead?

Seems like this API would be perfect:

https://docs.unity3d.com/Manual/upm-api.html

@bitsandfoxes
Copy link
Contributor Author

Could we use Events.registeringPackages += RegisteringPackagesEventHandler; instead?

Seems like this API would be perfect:

https://docs.unity3d.com/Manual/upm-api.html

Yes, definitely! This is way better.

@bitsandfoxes bitsandfoxes deleted the poc/installation-popup branch February 14, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants