Copy link to clipboard
Copied
Code examples: http://code.google.com/p/in-app-purchase-air-ios/w/list
Extension download: http://code.google.com/p/in-app-purchase-air-ios/downloads/list
How do I use this with my Flash CS5.5 Pro (IDE)?
They show examples with using ADT command line stuff.
Copy link to clipboard
Copied
Hi:
Currently release IDE's like FB and Flash Pro are not aware of the new switches added to ADT for Native extensions, hence they cannot be used to package applications using NEs. But you can automate the building process with the help of ant task follow the steps on http://www.riaspace.com/2011/03/packaging-air-application-for-ios-devices-with-adt-command-and-ant-s... and provide -extdir switch just as described in Wikis of the project.
Copy link to clipboard
Copied
Hi Saumitra Bhava,
Nice examples of Native Extensions. I am having an issue when trying to use a block in Objective-c Something as simple as
- (void) searchForAlbums
{
void(^test)(void) = ^{
NSLog( @"BLOCK CALLED" );
};
test();
}
does not work and FlashBuilder reports the following error.
ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MobileImagePicker searchForAlbums] from /var/folders/nw/nwjKk-0UFzKXgLSHtcbjxE+++TI/-Tmp-/534267c1-6c13-4a8e-98d6-6c8357d4f355/libuk.co.betadesigns.extension.NativeImagePicker.a(MobileImagePicker.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
Compilation failed while executing : ld64
Have you tried using blocks in an iOS extension?
Regards
Anthony
Copy link to clipboard
Copied
Hi anthony: You can see the gyroscope extension for ios which uses blocks. Sent from my mobile
Copy link to clipboard
Copied
Hi Saumitra,
I downloaded the gyro sample and went through the build settings it seems that the default preprocessor macros that xcode adds to a new target were what was causing the issue.
I have documented the fix here for anyone else that has the same issue.
http://www.liquid-photo.com/2011/10/30/common-native-extension-issues/
thanks for the help
Anthony
Copy link to clipboard
Copied
Hi!
Any chance to get the Android equivalent soon?
Thanks!