distriqt / ANE-Parse

Provides access to the Parse SDK
https://airnativeextensions.com/extension/com.distriqt.Parse
Other
0 stars 0 forks source link

Make "put()" function available #12

Closed gameaccount closed 8 years ago

gameaccount commented 9 years ago

In the Parse SDK for Android, there is a function "put()" in the ParseObject class. This can be quite useful for storing custom values against each installation. eg

ParseInstallation.getCurrentInstallation().put("alias", "testuser");
ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() { //handle callback });

I'm not too good with Objective C, but I assume the same functionality is available in the iOS SDK.

Would it be possible to make this available in the ANE? eg in AS3: Parse.service.getCurrentInstallation().put("key", "value"); Parse.service.getCurrentInstallation().saveInBackground();

Cheers,

Martin

gameaccount commented 8 years ago

Bumping this. Any plans to update the Parse extension with this functionality?

marchbold commented 8 years ago

Hi,

Are you aware that Parse will be closing down? http://blog.parse.com/announcements/moving-on/

We will keep supporting the ANE for a while but just wanted to make sure you were aware.

gameaccount commented 8 years ago

Hi,

Yeah, I just heard that. Surprising considering they are backed by Facebook! Cheers for the heads up though.

marchbold commented 8 years ago

We've just added these features to the ANE. Please note you'll have to update the Bolts ANE as well as we've updated the Parse SDK version in this release as well. Cheers

gameaccount commented 8 years ago

Sweet, I'll give it a whirl. Thanks!

gameaccount commented 8 years ago

I've updated both Parse and Bolts but now I'm getting the following compile errors: duplicate symbol l015 in: C:\Users\mburke\AppData\Local\Temp\566e63dc-5a38-4754-a70f-cdf4871573d4/Parse.framework/Parse(PFGeoPoint.o) C:\Users\mburke\AppData\Local\Temp\566e63dc-5a38-4754-a70f-cdf4871573d4/Parse.framework/Parse(PFPushState.o) duplicate symbol l014 in: C:\Users\mburke\AppData\Local\Temp\044c2aff-c020-4add-8442-0c133c5717f0/Bolts.framework/Bolts(BFAppLinkReturnToRefererController.o) C:\Users\mburke\AppData\Local\Temp\566e63dc-5a38-4754-a70f-cdf4871573d4/Parse.framework/Parse(PFGeoPoint.o) duplicate symbol l008 in: C:\Users\mburke\AppData\Local\Temp\566e63dc-5a38-4754-a70f-cdf4871573d4/Parse.framework/Parse(PFURLSessionFileDownloadTaskDelegate.o) C:\Users\mburke\AppData\Local\Temp\566e63dc-5a38-4754-a70f-cdf4871573d4/Parse.framework/Parse(PFMultiProcessFileLock.o) duplicate symbol l011 in: C:\Users\mburke\AppData\Local\Temp\044c2aff-c020-4add-8442-0c133c5717f0/Bolts.framework/Bolts(BFCancellationToken.o) C:\Users\mburke\AppData\Local\Temp\566e63dc-5a38-4754-a70f-cdf4871573d4/Parse.framework/Parse(PFNetworkActivityIndicatorManager.o) ld: 400 duplicate symbols for architecture arm64 Compilation failed while executing : ld64

marchbold commented 8 years ago

Which version of AIR are you using? That looks like an error with the iOS linker.

gameaccount commented 8 years ago

You're right, that's it. I was using Air 19.0, but compiling with Air 20.0 fixed it. However, .ipa's compiled with Air 20.0 aren't being accepted by Apple (https://forums.adobe.com/thread/2037674), so I guess I'll have to wait for Adobe to sort that out. Cheers