amazon-archives / aws-sdk-unity

ARCHIVED: The aws sdk for unity is now distributed as a part of aws sdk for dotnet:
https://github.com/aws/aws-sdk-net
Other
105 stars 43 forks source link

version 1.04 compile errors on iOS with Unity 5.0.1p4 #38

Closed benbritten closed 9 years ago

benbritten commented 9 years ago

In AmazonHookedPlatformInfo:

starting at line 275:

        if(iPhone.generation.ToString().StartsWith("iPhone"))
        {
            Model = "iPhone";
        }
        else if (iPhone.generation.ToString().StartsWith("iPad"))
        {
            Model = "iPad";
        }
        else
        {
            Model = "iPod";
        }

generates this error at build time:

Assets/Asset Store/AWSUnitySDK_1.04/AWSCore/Amazon.Unity3D/AmazonHookedPlatformInfo.cs(275,16): error CS0103: The name `iPhone' does not exist in the current context

It is now Device.generation (in UnityEngine.iOS).

Putting that in seems to fix the problem.

karthiksaligrama commented 9 years ago

Hi,

Thank you, We are aware of some of the problems with the unity 5.0 and we are working towards making the sdk compatible.

benbritten commented 9 years ago

No worries.

note this still exists in 1.05 Adding: using UnityEngine.iOS;

and changing iPhone.generation to Device.generation fixes it.

karthiksaligrama commented 9 years ago

Fixed in V 2.0.0.0