question

GARTH O SMITH avatar image
GARTH O SMITH asked

Unity: AmazonCommon.MiniJSON breaks Windows Store builds.

We have a cross-platform game that we have recently ported to the Windows Store. Just wanted to let you know this file causes a compile error when building to the Windows Store. Assets/Plugins/AmazonCommon/Source/MiniJSON/MiniJSON.cs The error it generates is "Assets\Plugins\AmazonCommon\Source\MiniJSON\MiniJSON.cs(677,38): error CS1061: 'System.Type' does not contain a definition for 'IsPrimitive' and no extension method 'IsPrimitive' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)" We can fix it easily, but any time we update the GameCircle SDK, our fix will be overwritten. Our workaround: We put a "#if UNITY_IPHONE || UNITY_ANDROID" compiler directive around the MiniJSON class. Thank you for your time. - Garth Message was edited by: GARTH O SMITH
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi GARTH, Thanks much for bring this into our notice. I already have forwarded this issue to concerned team. And the fix would be available in subsequent release.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Thanks for providing this feedback. The issue will be fixed in subsequent releases. You can use the developer workaround as guidance for the time being.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.