NavidK0 / SimpleGraphQL-For-Unity

A simple graphQL client that allows one to use .graphql files (or code) for queries, mutations, and subscriptions with Unity.
MIT License
34 stars 18 forks source link

Change from using GUID to copying link.xml directly into project? #17

Open NavidK0 opened 3 years ago

NavidK0 commented 3 years ago

From #15, which was merged, but my last post still stands. It could be a solution that doesn't require intervention if the GUID changes within the package.

I see, hmm. Using the GUID feels quite fragile, I must admit. I wonder if there's a better way just using a relative path directly to the link.xml file and then providing the full path from there? We could just stick it inside our project, copy it to their project in Plugins/SimpleGraphQL before build using a IPreprocessBuildWithReport.OnPreprocessBuild? (We could also do it on install when assets are being imported.)

johanhelsing commented 3 years ago

For what it's worth I think we could also just create a file in /tmp/ (or its equivalent on windows)

So I guess one solution could be to just generate it from a constant c# string.