Skip to content

Commit c115014

Browse files
committed
Updated to v5.0.0
1 parent d1c5ce5 commit c115014

File tree

7 files changed

+88
-63
lines changed

7 files changed

+88
-63
lines changed

GA-SDK-TVOS.podspec

Lines changed: 0 additions & 31 deletions
This file was deleted.

GameAnalyticsTVOS.framework/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<key>CFBundleIdentifier</key>
1212
<string>com.gameanalytics.sdk.tvos</string>
1313
<key>CFBundleShortVersionString</key>
14-
<string>4.11.0</string>
14+
<string>5.0.0</string>
1515
</dict>
1616
</plist>
18.3 KB
Binary file not shown.

GameAnalyticsTVOS.framework/Versions/A/Headers/GameAnalyticsTVOS.h

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,17 @@ typedef enum GAAdError : NSInteger {
142142
GAAdErrorUnableToPrecache = 6
143143
} GAAdError;
144144

145-
//Similar to IRemoteConfigsListener in the GameAnalytics Android library
146145
@protocol GARemoteConfigsDelegate <NSObject>
147146
@optional
148147
- (void) onRemoteConfigsUpdated; // Updated everytime when configurations are added
149148
@end
150149

151-
150+
/// Optional hooks for supplying real-time health metrics (FPS, memory, etc.).
151+
@protocol GAHealthMetricsDelegate <NSObject>
152+
@optional
153+
/// Called before sending an event; return current FPS.
154+
- (double)provideCurrentFPS;
155+
@end
152156

153157
@class GameAnalytics;
154158

@@ -307,12 +311,6 @@ typedef enum GAAdError : NSInteger {
307311
// returns the current external user id (if any)
308312
+ (NSString*) getExternalUserId;
309313

310-
/*
311-
* set this as true if you do not want idfv to be used
312-
* as an user id (a random id will be generated instead)
313-
*/
314-
+ (void) useRandomizedId:(Boolean)value;
315-
316314

317315
/*!
318316
@method
@@ -1603,7 +1601,16 @@ typedef enum GAAdError : NSInteger {
16031601
16041602
@availability Available since (TBD)
16051603
*/
1606-
+ (void) setRemoteConfigsDelegate:(id)newDelegate;
1604+
+ (void) setRemoteConfigsDelegate:(id<GARemoteConfigsDelegate>)newDelegate;
1605+
1606+
/*!
1607+
@method
1608+
1609+
@abstract Use this to set the delegate for the Health Metrics to retreive information about the status of health metrics
1610+
1611+
@availability Available since v5.0.0
1612+
*/
1613+
+ (void) setHealthMetricsDelegate:(id<GAHealthMetricsDelegate>)newDelegate;
16071614

16081615
/*!
16091616
@method
@@ -1901,4 +1908,31 @@ typedef enum GAAdError : NSInteger {
19011908
*/
19021909
+ (NSInteger)stopTimer:(NSString *)key;
19031910

1911+
#pragma mark - Playtime Metrics
1912+
1913+
/*!
1914+
@method
1915+
1916+
@abstract Elapsed time (in seconds) of the current session.
1917+
1918+
*/
1919+
+ (NSTimeInterval)getElapsedSessionTime;
1920+
1921+
/*!
1922+
@method
1923+
1924+
@abstract Duration (in seconds) of the previous session.
1925+
1926+
*/
1927+
+ (NSTimeInterval)getElapsedTimeForPreviousSession;
1928+
1929+
/*!
1930+
@method
1931+
1932+
@abstract Total accumulated playtime (in seconds) across all sessions.
1933+
1934+
*/
1935+
+ (NSTimeInterval)getElapsedTimeFromAllSessions;
1936+
1937+
19041938
@end

Library/GameAnalyticsTVOS.h

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,17 @@ typedef enum GAAdError : NSInteger {
142142
GAAdErrorUnableToPrecache = 6
143143
} GAAdError;
144144

145-
//Similar to IRemoteConfigsListener in the GameAnalytics Android library
146145
@protocol GARemoteConfigsDelegate <NSObject>
147146
@optional
148147
- (void) onRemoteConfigsUpdated; // Updated everytime when configurations are added
149148
@end
150149

151-
150+
/// Optional hooks for supplying real-time health metrics (FPS, memory, etc.).
151+
@protocol GAHealthMetricsDelegate <NSObject>
152+
@optional
153+
/// Called before sending an event; return current FPS.
154+
- (double)provideCurrentFPS;
155+
@end
152156

153157
@class GameAnalytics;
154158

@@ -307,12 +311,6 @@ typedef enum GAAdError : NSInteger {
307311
// returns the current external user id (if any)
308312
+ (NSString*) getExternalUserId;
309313

310-
/*
311-
* set this as true if you do not want idfv to be used
312-
* as an user id (a random id will be generated instead)
313-
*/
314-
+ (void) useRandomizedId:(Boolean)value;
315-
316314

317315
/*!
318316
@method
@@ -1603,7 +1601,16 @@ typedef enum GAAdError : NSInteger {
16031601
16041602
@availability Available since (TBD)
16051603
*/
1606-
+ (void) setRemoteConfigsDelegate:(id)newDelegate;
1604+
+ (void) setRemoteConfigsDelegate:(id<GARemoteConfigsDelegate>)newDelegate;
1605+
1606+
/*!
1607+
@method
1608+
1609+
@abstract Use this to set the delegate for the Health Metrics to retreive information about the status of health metrics
1610+
1611+
@availability Available since v5.0.0
1612+
*/
1613+
+ (void) setHealthMetricsDelegate:(id<GAHealthMetricsDelegate>)newDelegate;
16071614

16081615
/*!
16091616
@method
@@ -1901,4 +1908,31 @@ typedef enum GAAdError : NSInteger {
19011908
*/
19021909
+ (NSInteger)stopTimer:(NSString *)key;
19031910

1911+
#pragma mark - Playtime Metrics
1912+
1913+
/*!
1914+
@method
1915+
1916+
@abstract Elapsed time (in seconds) of the current session.
1917+
1918+
*/
1919+
+ (NSTimeInterval)getElapsedSessionTime;
1920+
1921+
/*!
1922+
@method
1923+
1924+
@abstract Duration (in seconds) of the previous session.
1925+
1926+
*/
1927+
+ (NSTimeInterval)getElapsedTimeForPreviousSession;
1928+
1929+
/*!
1930+
@method
1931+
1932+
@abstract Total accumulated playtime (in seconds) across all sessions.
1933+
1934+
*/
1935+
+ (NSTimeInterval)getElapsedTimeFromAllSessions;
1936+
1937+
19041938
@end

Library/libGameAnalyticsTVOS.a

18.3 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,5 @@ If you have any issues or feedback regarding the SDK, please contact our friendl
2020
Changelog
2121
---------
2222
<!--(CHANGELOG_TOP)-->
23-
**4.11.0**
24-
* added support for Xcode 16
25-
* added privacy domain for privacy manifest
2623

27-
28-
**4.10.1**
29-
* consent status is now tracked correctly
30-
* bug fix for fps tracking
31-
32-
**4.10.0**
33-
* added privacy manifest:fixed app boot time measurement
34-
35-
**4.9.0**
36-
* added optional session performance metrics collection:added optional app boot-time metric collection
24+
For detailed release notes and version history, please refer to the [CHANGELOG.md](./CHANGELOG.md) file.

0 commit comments

Comments
 (0)