Commit 9e4c4586 authored by Piotr Bernad's avatar Piotr Bernad

Move to Creative SDK instead of Aviary

parent 045f3ed0
Pipeline #14848 pending
Versions/Current/AviarySDK
\ No newline at end of file
//
// AVYOpenGLManager.h
// AviarySDK
//
// Copyright (c) 2013-2014 Aviary, Inc. All rights reserved.
//
/**
Aviary products process images using OpenGL when possible. Before this happens, some OpenGL must be loaded, which takes some time. This class
provides a few class methods to help control that loading and unloading behavior.
Developers may call beginOpenGLLoad to begin OpenGL loading before launching any Aviary products. This will reduce the already very fast load time
down to basically nothing.
Once OpenGL data is loaded, Aviary's default behavior is to retain that data for the lifetime of the app. This allows
Aviary products to provide the best user experience possible. The data is fairly small in size, and it resides in GPU memory, so you likely won't
see it in your profiler.
Should you have a need to release the OpenGL data, the requestOpenGLDataPurge method sets an internal flag that causes OpenGL data to be unloaded
when it is no longer needed. If for whatever reason you change your mind about the unload, cancelOpenGLDataPurgeRequest will cancel the request if
data has not already been unloaded.
Calls to requestOpenGLDataPurge only apply to the currently loaded OpenGL data, so if you wish to always purge, you would need to call
requestOpenGLDataPurge every time you use an Aviary product. In this case a better solution would be to set the editor.purgesGPUMemory customization
option to YES, which causes Open GL data to be purged whenever possible. This option defaults to NO in order to optimize Aviary performance.
*/
@interface AVYOpenGLManager : NSObject
/**
Sets whether to purge GPU memory when possible
*/
+ (void)setPurgeGPUMemoryWhenPossible:(BOOL)purgeGPUMemory;
/**
If necessary OpenGL data has not been loaded, this call begins the OpenGL load process.
*/
+ (void)beginOpenGLLoad;
/**
Sets a flag that tells the current OpenGL data to be unloaded when possible.
Calls to requestOpenGLDataPurge only apply to the currently loaded OpenGL data, so if you wish to always purge, you would need to call
requestOpenGLDataPurge every time you use an Aviary product. In this case a better solution would be to set the editor.purgesGPUMemory customization
option to YES, which causes Open GL data to be purged whenever possible. This option defaults to NO in order to optimize Aviary performance.
*/
+ (void)requestOpenGLDataPurge;
/**
If a call has been made to requestOpenGLDataPurge and OpenGL data has not yet been unloaded, this method causes the request to be cancelled.
*/
+ (void)cancelOpenGLDataPurgeRequest;
@end
\ No newline at end of file
//
// AVYPhotoEditorCompatibility.h
// Ace
//
// Created by Michael Vitrano on 12/4/14.
// Copyright (c) 2014 Aviary. All rights reserved.
//
#import "AVYPhotoEditorController.h"
@class AVYPhotoEditorCustomization, AVYOpenGLManager;
@compatibility_alias AFPhotoEditorController AVYPhotoEditorController;
@compatibility_alias AFPhotoEditorContext AVYPhotoEditorContext;
@compatibility_alias AFPhotoEditorSession AVYPhotoEditorSession;
@compatibility_alias AFPhotoEditorProduct AVYPhotoEditorProduct;
@compatibility_alias AFPhotoEditorCustomization AVYPhotoEditorCustomization;
@compatibility_alias AFOpenGLManager AVYOpenGLManager;
#define AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE DEPRECATED_MSG_ATTRIBUTE("The AFPhotoEditorPremiumAddOn has been depreciated. "\
"Please use AVYPhotoEditorPremiumAddOn.")
typedef AVYPhotoEditorPremiumAddOn AFPhotoEditorPremiumAddOn AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE;
AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE extern AFPhotoEditorPremiumAddOn const AFPhotoEditorPremiumAddOnNone;
AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE extern AFPhotoEditorPremiumAddOn const AFPhotoEditorPremiumAddOnHiRes;
AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE extern AFPhotoEditorPremiumAddOn const AFPhotoEditorPremiumAddOnWhiteLabel;
DEPRECATED_MSG_ATTRIBUTE("The AFPhotoEditorControllerDelegate has been depreciated. " \
"Please use AVYPhotoEditorControllerDelegate.")
@protocol AFPhotoEditorControllerDelegate <AVYPhotoEditorControllerDelegate> @end
DEPRECATED_MSG_ATTRIBUTE("The AFInAppPurchaseManager has been depreciated. " \
"Please use AVYInAppPurchaseManager.")
@protocol AFInAppPurchaseManager <AVYInAppPurchaseManager> @end
DEPRECATED_MSG_ATTRIBUTE("The AFInAppPurchaseManagerDelegate has been depreciated. " \
"Please use AVYInAppPurchaseManagerDelegate.")
@protocol AFInAppPurchaseManagerDelegate <AVYInAppPurchaseManagerDelegate> @end
extern NSString *const AFPhotoEditorSessionCancelledNotification DEPRECATED_ATTRIBUTE;
extern NSString *const kAFPhotoEditorEffectsIAPEnabledKey DEPRECATED_ATTRIBUTE;
NSString *const _kAFEnhance(void) DEPRECATED_MSG_ATTRIBUTE("kAFEnhance has been deprecated. Please use kAVYEnhance.");
#define kAFEnhance _kAFEnhance()
NSString *const _kAFEffects(void) DEPRECATED_MSG_ATTRIBUTE("kAFEffects has been deprecated. Please use kAVYEffects.");
#define kAFEffects _kAFEffects()
NSString *const _kAFStickers(void) DEPRECATED_MSG_ATTRIBUTE("kAFStickers has been deprecated. Please use kAVYStickers.");
#define kAFStickers _kAFStickers()
NSString *const _kAFOrientation(void) DEPRECATED_MSG_ATTRIBUTE("kAFOrientation has been deprecated. Please use kAVYOrientation.");
#define kAFOrientation _kAFOrientation()
NSString *const _kAFCrop(void) DEPRECATED_MSG_ATTRIBUTE("kAFCrop has been deprecated. Please use kAVYCrop.");
#define kAFCrop _kAFCrop()
NSString *const _kAFAdjustments(void) DEPRECATED_MSG_ATTRIBUTE("kAFAdjustments has been deprecated. Please use kAVYAdjustments.");
#define kAFAdjustments _kAFAdjustments()
NSString *const _kAFColorAdjust(void) DEPRECATED_MSG_ATTRIBUTE("kAFColorAdjust has been deprecated. Please use kAVYColorAdjust.");
#define kAFColorAdjust _kAFColorAdjust()
NSString *const _kAFLightingAdjust(void) DEPRECATED_MSG_ATTRIBUTE("kAFLightingAdjust has been deprecated. Please use kAVYLightingAdjust.");
#define kAFLightingAdjust _kAFLightingAdjust()
NSString *const _kAFSharpness(void) DEPRECATED_MSG_ATTRIBUTE("kAFSharpness has been deprecated. Please use kAVYSharpness.");
#define kAFSharpness _kAFSharpness()
NSString *const _kAFDraw(void) DEPRECATED_MSG_ATTRIBUTE("kAFDraw has been deprecated. Please use kAVYDraw.");
#define kAFDraw _kAFDraw()
NSString *const _kAFText(void) DEPRECATED_MSG_ATTRIBUTE("kAFText has been deprecated. Please use kAVYText.");
#define kAFText _kAFText()
NSString *const _kAFRedeye(void) DEPRECATED_MSG_ATTRIBUTE("kAFRedeye has been deprecated. Please use kAVYRedeye.");
#define kAFRedeye _kAFRedeye()
NSString *const _kAFWhiten(void) DEPRECATED_MSG_ATTRIBUTE("kAFWhiten has been deprecated. Please use kAVYWhiten.");
#define kAFWhiten _kAFWhiten()
NSString *const _kAFBlemish(void) DEPRECATED_MSG_ATTRIBUTE("kAFBlemish has been deprecated. Please use kAVYBlemish.");
#define kAFBlemish _kAFBlemish()
NSString *const _kAFBlur(void) DEPRECATED_MSG_ATTRIBUTE("kAFBlur has been deprecated. Please use kAVYBlur.");
#define kAFBlur _kAFBlur()
NSString *const _kAFMeme(void) DEPRECATED_MSG_ATTRIBUTE("kAFMeme has been deprecated. Please use kAVYMeme.");
#define kAFMeme _kAFMeme()
NSString *const _kAFFrames(void) DEPRECATED_MSG_ATTRIBUTE("kAFFrames has been deprecated. Please use kAVYFrames.");
#define kAFFrames _kAFFrames()
NSString *const _kAFFocus(void) DEPRECATED_MSG_ATTRIBUTE("kAFFocus has been deprecated. Please use kAVYFocus.");
#define kAFFocus _kAFFocus()
NSString *const _kAFSplash(void) DEPRECATED_MSG_ATTRIBUTE("kAFSplash has been deprecated. Please use kAVYSplash.");
#define kAFSplash _kAFSplash()
NSString *const _kAFLeftNavigationTitlePresetCancel(void) DEPRECATED_MSG_ATTRIBUTE("kAFLeftNavigationTitlePresetCancel has been deprecated. Please use kAVYLeftNavigationTitlePresetCancel.");
#define kAFLeftNavigationTitlePresetCancel _kAFLeftNavigationTitlePresetCancel()
NSString *const _kAFLeftNavigationTitlePresetBack(void) DEPRECATED_MSG_ATTRIBUTE("kAFLeftNavigationTitlePresetBack has been deprecated. Please use kAVYLeftNavigationTitlePresetBack.");
#define kAFLeftNavigationTitlePresetBack _kAFLeftNavigationTitlePresetBack()
NSString *const _kAFLeftNavigationTitlePresetExit(void) DEPRECATED_MSG_ATTRIBUTE("kAFLeftNavigationTitlePresetExit has been deprecated. Please use kAVYLeftNavigationTitlePresetExit.");
#define kAFLeftNavigationTitlePresetExit _kAFLeftNavigationTitlePresetExit()
NSString *const _kAFRightNavigationTitlePresetDone(void) DEPRECATED_MSG_ATTRIBUTE("kAFRightNavigationTitlePresetDone has been deprecated. Please use kAVYRightNavigationTitlePresetDone.");
#define kAFRightNavigationTitlePresetDone _kAFRightNavigationTitlePresetDone()
NSString *const _kAFRightNavigationTitlePresetSave(void) DEPRECATED_MSG_ATTRIBUTE("kAFRightNavigationTitlePresetSave has been deprecated. Please use kAVYRightNavigationTitlePresetSave.");
#define kAFRightNavigationTitlePresetSave _kAFRightNavigationTitlePresetSave()
NSString *const _kAFRightNavigationTitlePresetNext(void) DEPRECATED_MSG_ATTRIBUTE("kAFRightNavigationTitlePresetNext has been deprecated. Please use kAVYRightNavigationTitlePresetNext.");
#define kAFRightNavigationTitlePresetNext _kAFRightNavigationTitlePresetNext()
NSString *const _kAFRightNavigationTitlePresetSend(void) DEPRECATED_MSG_ATTRIBUTE("kAFRightNavigationTitlePresetSend has been deprecated. Please use kAVYRightNavigationTitlePresetSend.");
#define kAFRightNavigationTitlePresetSend _kAFRightNavigationTitlePresetSend()
NSString *const _kAFCropPresetName(void) DEPRECATED_MSG_ATTRIBUTE("kAFCropPresetName has been deprecated. Please use kAVYCropPresetName.");
#define kAFCropPresetName _kAFCropPresetName()
NSString *const _kAFCropPresetWidth(void) DEPRECATED_MSG_ATTRIBUTE("kAFCropPresetWidth has been deprecated. Please use kAVYCropPresetWidth.");
#define kAFCropPresetWidth _kAFCropPresetWidth()
NSString *const _kAFCropPresetHeight(void) DEPRECATED_MSG_ATTRIBUTE("kAFCropPresetHeight has been deprecated. Please use kAVYCropPresetHeight.");
#define kAFCropPresetHeight _kAFCropPresetHeight()
NSString *const _kAFProductEffectsGrunge(void) DEPRECATED_MSG_ATTRIBUTE("kAFProductEffectsGrunge is deprecated. Please use kAVYProductEffectsGrunge.");
#define kAFProductEffectsGrunge _kAFProductEffectsGrunge()
NSString *const _kAFProductEffectsNostalgia(void) DEPRECATED_MSG_ATTRIBUTE("kAFProductEffectsNostalgia is deprecated. Please use kAVYProductEffectsNostalgia.");
#define kAFProductEffectsNostalgia _kAFProductEffectsNostalgia()
NSString *const _kAFProductEffectsViewfinder(void) DEPRECATED_MSG_ATTRIBUTE("kAFProductEffectsViewfinder is deprecated. Please use kAVYProductEffectsViewfinder.");
#define kAFProductEffectsViewfinder _kAFProductEffectsViewfinder()
//
// AVYPhotoEditorProduct.h
// AviarySDK
//
// Copyright (c) 2012-2014 Aviary, Inc. All rights reserved.
//
/** @defgroup AVYPhotoEditorProducts In-App Purchase Products */
/** @addtogroup AVYPhotoEditorProducts
@{
*/
/**
The internal product identifier for the Grunge effect pack.
*/
extern NSString *const kAVYProductEffectsGrunge;
/**
The internal product identifier for the Nostalgia effect pack.
*/
extern NSString *const kAVYProductEffectsNostalgia;
/**
The internal product identifier for the Viewfinder effect pack.
*/
extern NSString *const kAVYProductEffectsViewfinder;
/** @} */
/**
This class encapsulates information about non-consumable, in-app
purchaseable products produced by Aviary and made available to users. This
class is used in conjunction with the AVYPhotoEditorInAppPurchaseDelegate
protocol methods.
*/
@interface AVYPhotoEditorProduct : NSObject
/**
The name of the product in English.
This should match the name entered into iTunes Connect for this product.
*/
@property (nonatomic, copy, readonly) NSString *productName;
/**
The description of the product in English.
This should match the
description entered into iTunes Connect for this product.
*/
@property (nonatomic, copy, readonly) NSString *productDescription;
/**
The internal product identifier.
This key is guaranteed to be
unique among all in-app purchase product identifiers used internally by
Aviary. This key should *not* be entered into iTunes Connect. Create a new
key, and implement the AVYPhotoEditorInAppPurchaseDelegate protocol methods
to pass your unique identifier to the SDK. See the Aviary iOS SDK In-App
Purchase Guide for more information.
*/
@property (nonatomic, copy, readonly) NSString *internalProductIdentifier;
@end
//
// AVYPhotoEditorSession.h
// AviarySDK
//
// Copyright (c) 2012-2014 Aviary, Inc. All rights reserved.
//
@class AVYPhotoEditorContext;
/**
Photo Editor Sessions are obtained from instances of AVYPhotoEditorController through the `session` property. A session tracks and stores all user
actions taken in the AVYPhotoEditorController it was obtained from.
*/
@interface AVYPhotoEditorSession : NSObject
/** Specifies whether the session is still open.
Value will be TRUE if the generating AVYPhotoEditorController has not been dismissed.
*/
@property (nonatomic, assign, readonly, getter=isOpen) BOOL open;
/** Specifies if the session has been cancelled.
Value will be TRUE if the user has invalided all actions by pressing "Cancel" in the generating AVYPhotoEditorController.
*/
@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled;
/** Specifies whether the session contains any actions.
Value will be TRUE if the user has modified the image in the generating AVYPhotoEditorController.
*/
@property (nonatomic, assign, readonly, getter=isModified) BOOL modified;
/**
Generates a new AVYPhotoEditorContext.
Contexts may be used to replay the session's actions on images. See AVYPhotoEditorContext for more information.
@param image The image to generate the context with.
@return A new photo editor context.
@warning Calling this method from any thread other in the main thread may result in undefined behavior.
*/
- (AVYPhotoEditorContext *)createContextWithImage:(UIImage *)image;
/**
Generates a new AVYPhotoEditorContext with a maximum size.
@param image The image to generate the context with.
@param size The maximum size the context should render the image at.
@return A new photo editor context that can be used to replay the session's actions. See AVYPhotoEditorContext.
@warning Calling this method from any thread other in the main thread may result in undefined behavior.
*/
- (AVYPhotoEditorContext *)createContextWithImage:(UIImage *)image maxSize:(CGSize)size;
@end
//
// AviarySDK.h
// AviarySDK
//
// Copyright (c) 2014 Aviary. All rights reserved.
//
#import <AviarySDK/AVYPhotoEditorController.h>
#import <AviarySDK/AVYInAppPurchaseManager.h>
#import <AviarySDK/AVYOpenGLManager.h>
#import <AviarySDK/AVYPhotoEditorContext.h>
#import <AviarySDK/AVYPhotoEditorController.h>
#import <AviarySDK/AVYPhotoEditorProduct.h>
#import <AviarySDK/AVYPhotoEditorSession.h>
#import <AviarySDK/AVYPhotoEditorCustomization.h>
#import <AviarySDK/AVYPhotoEditorCompatibility.h>
\ No newline at end of file