-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # Podfile.lock # Pods/Local Podspecs/SRGAnalytics.podspec.json # Pods/Manifest.lock # Pods/Pods.xcodeproj/project.pbxproj # Pods/SRGMediaPlayer/RTSMediaPlayer/RTSSegmentedTimelineView.m # Pods/Target Support Files/SRGMediaPlayer/ResourceBundle-SRGMediaPlayer-Info.plist # README.md # RTSAnalytics Demo/SRGAnalytics Demo.xcodeproj/project.pbxproj # RTSAnalytics Demo/SRGAnalytics Demo.xcodeproj/xcshareddata/xcschemes/SRGAnalytics Demo.xcscheme # RTSAnalytics/Core/RTSAnalyticsNetmetrixTracker.m # RTSAnalytics/Core/RTSAnalyticsTracker.m # SRGAnalytics.podspec # SRGAnalytics.xcodeproj/project.pbxproj
- Loading branch information
Showing
735 changed files
with
7,086 additions
and
49,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Carthage | ||
xcuserdata | ||
.DS_Store | ||
|
||
report.xml | ||
test_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
github "SRGSSR/SRGMediaPlayer-iOS" "2.0" | ||
github "SRGSSR/srgdataprovider-ios" "5.0" | ||
github "comScore/ComScore-iOS-SDK" "92f34897cd7659d56bb5a3e9e85b808cf3758bda" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
github "Mantle/Mantle" "2.1.0" | ||
github "SRGSSR/MAKVONotificationCenter" "4a127e52997889729286510103f7e27100223730" | ||
github "SRGSSR/SRGMediaPlayer-iOS" "2.0" | ||
github "SRGSSR/libextobjc" "076c968c9ade619ee836c89a935e09e6708d6ef2" | ||
github "SRGSSR/srgdataprovider-ios" "5.0" | ||
github "SRGSSR/srglogger-ios" "1.0" | ||
github "comScore/ComScore-iOS-SDK" "92f34897cd7659d56bb5a3e9e85b808cf3758bda" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "kif-framework/KIF" == 3.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "kif-framework/KIF" "v3.5.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
22 changes: 22 additions & 0 deletions
22
Demo/Resources/Images.xcassets/close_button.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "close_button.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "close_button@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+3.22 KB
Demo/Resources/Images.xcassets/close_button.imageset/close_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.57 KB
Demo/Resources/Images.xcassets/close_button.imageset/close_button@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// Copyright (c) SRG SSR. All rights reserved. | ||
// | ||
// License information is available from the LICENSE file. | ||
// | ||
|
||
#import "AppDelegate.h" | ||
|
||
#import "DemosViewController.h" | ||
#import "SimpleViewController.h" | ||
|
||
#import <SRGAnalytics/SRGAnalytics.h> | ||
#import <SRGAnalytics_MediaPlayer/SRGAnalytics_MediaPlayer.h> | ||
#import <SRGLogger/SRGLogger.h> | ||
|
||
@implementation AppDelegate | ||
|
||
#pragma mark Application lifecycle | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | ||
self.window.backgroundColor = [UIColor blackColor]; | ||
[self.window makeKeyAndVisible]; | ||
|
||
[SRGLogger setLogHandler:SRGNSLogHandler()]; | ||
|
||
[[SRGAnalyticsTracker sharedTracker] startWithBusinessUnitIdentifier:SRGAnalyticsBusinessUnitIdentifierTEST | ||
comScoreVirtualSite:@"rts-app-test-v" | ||
netMetrixIdentifier:@"test"]; | ||
|
||
DemosViewController *demosViewController = [[DemosViewController alloc] init]; | ||
self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:demosViewController]; | ||
|
||
return YES; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Copyright (c) SRG SSR. All rights reserved. | ||
// | ||
// License information is available from the LICENSE file. | ||
// | ||
|
||
#import <SRGAnalytics/SRGAnalytics.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface DemosViewController : UITableViewController <UITableViewDelegate, SRGAnalyticsViewTracking> | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
// | ||
// Copyright (c) SRG SSR. All rights reserved. | ||
// | ||
// License information is available from the LICENSE file. | ||
// | ||
|
||
#import "DemosViewController.h" | ||
|
||
#import "AppDelegate.h" | ||
#import "PlayerViewController.h" | ||
#import "SimpleViewController.h" | ||
|
||
#import <SRGAnalytics_MediaPlayer/SRGAnalytics_MediaPlayer.h> | ||
|
||
@implementation DemosViewController | ||
|
||
#pragma mark Object lifecycle | ||
|
||
- (instancetype)init | ||
{ | ||
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:NSStringFromClass([self class]) bundle:nil]; | ||
return [storyboard instantiateInitialViewController]; | ||
} | ||
|
||
#pragma mark SRGAnalyticsViewTracking protocol | ||
|
||
- (NSString *)srg_pageViewTitle | ||
{ | ||
return @"Demo list"; | ||
} | ||
|
||
#pragma mark UITableViewDelegate protocol | ||
|
||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath | ||
{ | ||
[tableView deselectRowAtIndexPath:indexPath animated:YES]; | ||
|
||
switch (indexPath.section) { | ||
case 0: { | ||
SimpleViewController *simpleViewController = nil; | ||
|
||
switch (indexPath.row) { | ||
case 0: { | ||
simpleViewController = [[SimpleViewController alloc] initWithTitle:@"Automatic tracking" | ||
levels:nil | ||
customLabels:nil | ||
openedFromPushNotification:NO | ||
trackedAutomatically:YES]; | ||
break; | ||
} | ||
|
||
case 1: { | ||
simpleViewController = [[SimpleViewController alloc] initWithTitle:@"Automatic tracking with levels" | ||
levels:@[@"level1", @"level2", @"level3"] | ||
customLabels:nil | ||
openedFromPushNotification:NO | ||
trackedAutomatically:YES]; | ||
break; | ||
} | ||
|
||
case 2: { | ||
simpleViewController = [[SimpleViewController alloc] initWithTitle:@"Automatic tracking with many levels" | ||
levels:@[@"level1", @"level2", @"level3", @"level4", @"level5", @"level6", @"level7", @"level8", @"level9", @"level10", @"level11", @"level12"] | ||
customLabels:nil | ||
openedFromPushNotification:NO | ||
trackedAutomatically:YES]; | ||
break; | ||
} | ||
|
||
case 3: { | ||
simpleViewController = [[SimpleViewController alloc] initWithTitle:@"Automatic tracking with levels and custom labels" | ||
levels:@[@"level1", @"level2"] | ||
customLabels:@{ @"custom_label": @"custom_value" } | ||
openedFromPushNotification:NO | ||
trackedAutomatically:YES]; | ||
break; | ||
} | ||
|
||
case 4: { | ||
simpleViewController = [[SimpleViewController alloc] initWithTitle:@"Manual tracking" | ||
levels:nil | ||
customLabels:nil | ||
openedFromPushNotification:NO | ||
trackedAutomatically:NO]; | ||
break; | ||
} | ||
|
||
case 5: { | ||
simpleViewController = [[SimpleViewController alloc] initWithTitle:@"" | ||
levels:nil | ||
customLabels:nil | ||
openedFromPushNotification:NO | ||
trackedAutomatically:YES]; | ||
break; | ||
} | ||
|
||
default: { | ||
return; | ||
break; | ||
} | ||
} | ||
[self.navigationController pushViewController:simpleViewController animated:YES]; | ||
break; | ||
} | ||
|
||
case 1: { | ||
NSURL *URL = nil; | ||
|
||
switch (indexPath.row) { | ||
case 0: { | ||
URL = [NSURL URLWithString:@"http://fr-par-iphone-2.cdn.hexaglobe.net/streaming/euronews_ewns/9-live.m3u8"]; | ||
break; | ||
} | ||
|
||
case 1: { | ||
URL = [NSURL URLWithString:@"http://stream-i.rts.ch/i/tp/1993/tp_10071993-,450,k.mp4.csmil/master.m3u8"]; | ||
break; | ||
} | ||
|
||
case 2: { | ||
URL = [NSURL URLWithString:@"https://wowza.jwplayer.com/live/jelly.stream/playlist.m3u8?DVR"]; | ||
break; | ||
} | ||
|
||
|
||
default: { | ||
return; | ||
break; | ||
} | ||
} | ||
|
||
PlayerViewController *playerViewController = [[PlayerViewController alloc] initWithURL:URL]; | ||
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:playerViewController]; | ||
[self presentViewController:navigationController animated:YES completion:nil]; | ||
break; | ||
} | ||
|
||
case 2: { | ||
UIViewController *simpleViewController = [[SimpleViewController alloc] initWithTitle:@"From push notification" | ||
levels:nil | ||
customLabels:nil | ||
openedFromPushNotification:YES | ||
trackedAutomatically:YES]; | ||
[self.navigationController pushViewController:simpleViewController animated:YES]; | ||
break; | ||
} | ||
|
||
default: { | ||
return; | ||
break; | ||
} | ||
} | ||
} | ||
|
||
@end |
Oops, something went wrong.