Skip to content

Commit

Permalink
Flurry updated to newest version with iOS7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Kukacka committed Oct 9, 2013
1 parent 1d48851 commit de2120d
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 9 deletions.
88 changes: 79 additions & 9 deletions Thirdparty/Flurry/Flurry.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,23 @@
* attract high-quality users and monetize your user base see <a href="http://support.flurry.com/index.php?title=Publishers">Support Center - Publishers</a>.
*
* @author 2009 - 2012 Flurry, Inc. All Rights Reserved.
* @version 4.2.0
* @version 4.2.4
*
*/

/*!
* @brief Enum for setting up log output level.
* @since 4.2.2
*
*/
typedef enum {
FlurryLogLevelNone = 0, //No output
FlurryLogLevelCriticalOnly, //Default, outputs only crytical log events
FlurryLogLevelDebug, //Debug level, outputs crytical and main log events
FlurryLogLevelAll //Highest level, outputs all log events
} FlurryLogLevel;


@interface Flurry : NSObject {
}

Expand Down Expand Up @@ -58,7 +72,7 @@
* FAQ for the iPhone SDK is located at <a href="http://wiki.flurry.com/index.php?title=IPhone_FAQ">
* Support Center - iPhone FAQ</a>.
*
* @see #setDebugLogEnabled: for information on how to view debugging information on your console.
* @see #setLogLevel: for information on how to view debugging information on your console.
*
* @return The agent version of the Flurry SDK.
*
Expand All @@ -75,7 +89,7 @@
*
* @note This method must be called prior to invoking #startSession:.
*
* @see #setDebugLogEnabled: for information on how to view debugging information on your console. \n
* @see #setLogLevel: for information on how to view debugging information on your console. \n
* #logError:message:exception: for details on logging exceptions. \n
* #logError:message:error: for details on logging errors.
*
Expand All @@ -88,14 +102,30 @@
* @since 2.7
*
* This is an optional method that displays debug information related to the Flurry SDK.
* display information to the console. The default setting for this method is @c NO.
* display information to the console. The default setting for this method is @c NO
* which sets the log level to @c FlurryLogLevelCriticalOnly.
* When set to @c YES the debug log level is set to @c FlurryLogLevelDebug
*
* @note This method must be called prior to invoking #startSession:.
* @note This method must be called prior to invoking #startSession:. If the method, setLogLevel is called later in the code, debug logging will be automatically enabled.
*
* @param value @c YES to show debug logs, @c NO to omit debug logs.
*
*/
+ (void)setDebugLogEnabled:(BOOL)value;
+ (void)setDebugLogEnabled:(BOOL)value;

/*!
* @brief Generates debug logs to console.
* @since 4.2.2
*
* This is an optional method that displays debug information related to the Flurry SDK.
* display information to the console. The default setting for this method is @c FlurryLogLevelCritycalOnly.
*
* @note Its good practice to call this method prior to invoking #startSession:. If debug logging is disabled earlier, this method will enable it.
*
* @param value Log level
*
*/
+ (void)setLogLevel:(FlurryLogLevel)value;

/*!
* @brief Set the timeout for expiring a Flurry session.
Expand Down Expand Up @@ -149,7 +179,7 @@
* time specified in #setSessionContinueSeconds:. If the app is resumed in that period
* the session will continue, otherwise a new session will begin.
*
* Crash reporting will not be enabled. See #startSession:enableCrashReporting: for
* Crash reporting will not be enabled. See #setCrashReportingEnabled: for
* more information.
*
* @note If testing on a simulator, please be sure to send App to background via home
Expand Down Expand Up @@ -204,6 +234,28 @@
+ (void) startSession:(NSString *)apiKey withOptions:(id)options;


/*!
* @brief Pauses a Flurry session left running in background.
* @since 4.2.2
*
* This method should be used in case of #setBackgroundSessionEnabled: set to YES. It can be
* called when application finished all background tasks (such as playing music) to pause session.
*
* @see #setBackgroundSessionEnabled: for details on setting a custom behaviour on resigning activity.
*
* @code
* - (void)allBackgroundTasksFinished
{
// ....
[Flurry pauseBackgroundSession];
// ....
}
* @endcode
*
*/
+ (void)pauseBackgroundSession;


/** @name Event and Error Logging
* Methods for reporting custom events and errors during the session.
*/
Expand Down Expand Up @@ -565,7 +617,7 @@
*
* Use this method to capture the gender of your user. Only use this method if you collect this
* information explictly from your user (i.e. - there is no need to set a default value). Allowable
* values are @c @"M" or @c @"F"
* values are @c @"m" or @c @"f"
*
* @note The gender is aggregated across all users of your app and not available on a per user
* basis.
Expand Down Expand Up @@ -637,7 +689,7 @@
* @param sendSessionReportsOnClose YES to send on close, NO to omit reporting on close.
*
*/
+ (void)setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose;
+ (void)setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose;

/*!
* @brief Set session to report when app is sent to the background.
Expand All @@ -650,6 +702,24 @@
*/
+ (void)setSessionReportsOnPauseEnabled:(BOOL)setSessionReportsOnPauseEnabled;

/*!
* @brief Set session to support background execution.
* @since 4.2.2
*
* Use this method to enable reporting of errors and events when application is
* running in backgorund (such applications have UIBackgroundModes in Info.plist).
* You should call #pauseBackgroundSession when appropriate in background mode to
* pause the session (for example when played song completed in background)
*
* Default value is @c NO
*
* @see #pauseBackgroundSession for details
*
* @param setBackgroundSessionEnabled YES to enbale background support and
* continue log events and errors for running session.
*/
+ (void)setBackgroundSessionEnabled:(BOOL)setBackgroundSessionEnabled;

/*!
* @brief Enable custom event logging.
* @since 2.7
Expand Down
Binary file modified Thirdparty/Flurry/libFlurry.a
Binary file not shown.

0 comments on commit de2120d

Please sign in to comment.