playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 961 forks source link

Errors on install from Package Manager (missing .meta files) #3302

Open JVimes opened 4 months ago

JVimes commented 4 months ago

Describe the bug

When installed via Package Manager (OpenUPM repo), there are errors from the plugin because some .meta files are missing from the package.

To Reproduce Steps to reproduce the behavior:

  1. Open package manager settings (Edit > Project Settings > Package Manager).
  2. Add an entry for the OpenUPM registry:
    • Name: OpenUPM
    • URL: https://package.openupm.com
    • Scopes: com.google
  3. Open package manager (Window > Package Manager).
  4. Select My Registries:
    image
  5. Select "Google Play Games" and install it. image

Expected behavior No errors.

Observed behavior There errors:

Asset Packages/com.google.play.games/Proguard has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Proguard/games.txt has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/Player.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/PlayerProfile.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Library\PackageCache\com.google.play.games@0.11.1\Runtime\Scripts\Platforms\Android\AndroidJavaConverter.cs(78,25): error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.google.play.games@0.11.1\Runtime\Scripts\Platforms\Android\AndroidJavaConverter.cs(91,25): error CS0246: The type or namespace name 'PlayerProfile' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.google.play.games@0.11.1\Runtime\Scripts\Platforms\Android\AndroidClient.cs(45,26): error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?)
Asset Packages/com.google.play.games/Proguard has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Proguard/games.txt has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/Player.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/PlayerProfile.cs has no meta file, but it's in an immutable folder. The asset will be ignored.

Versions

Additional context I see in Library\PackageCache\com.google.play.games@0.11.1\ that some files/folders have .meta files, but the ones mentioned in the error messages don't.
image

Thaina commented 3 months ago

This repo has been neglected. It actually not compatible with UPM

I have forked and do all upgrading https://github.com/Thaina/play-games-plugin-for-unity/tree/master

You can compare the change here https://github.com/playgameservices/play-games-plugin-for-unity/pull/3304

JVimes commented 3 months ago

@Thaina Thank you. The package in OpenUPM links to this repo. Should it link to your fork?

Thaina commented 3 months ago

I don't know if my fork really compatible with OpenUPM, and also who and how to publish this package into openUPM in the first place. Maybe that person can verify if my package should be in OpenUPM or not

I see the name ltmx but I don't know should I contact that person

Thaina commented 3 months ago

Instead I would like to recommend you using git dependency instead of openUPM

https://github.com/Thaina/play-games-plugin-for-unity/tree/master?tab=readme-ov-file#fork-for-upgrade-package-and-making-upm-compatiable