snowplow / snowplow-unity-tracker

Snowplow event tracker for Unity. Add analytics to your Unity games and apps
http://snowplowanalytics.com
Apache License 2.0
16 stars 11 forks source link

Distribute using Unity's Package Manager #75

Open matus-tomlein opened 1 year ago

matus-tomlein commented 1 year ago

Adopt the structure of packages for Unity Package Manager including the package layout. Follow the conventions for tests, samples and package manifest.

Publish the package on OpenUPM or other registry.

bawahakim commented 1 year ago

As an intermediary solution, would simply adding a package.json to the repo's c# source code, and instructing people to add it via git url to UPM be a good solution?

Two considerations (applies for git url or OpenUPM registry):

  1. It's generally best practice to add an assembly definition. This helps with projects that uses assembly definitions, and also reduces compile time for code that does not change often (not part of the business logic of an app)
  2. We should also add the meta files to avoid lost serialization when people import it