Skip to content

Commit

Permalink
Merge branch 'release/9.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Jul 1, 2024
2 parents 0e48e8e + 73c167f commit 1532d2a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .xcode-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.0.1
15.4
2 changes: 1 addition & 1 deletion Demo/Demo.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Version information
MARKETING_VERSION = 9.1.0
MARKETING_VERSION = 9.1.1

// Deployment targets
IPHONEOS_DEPLOYMENT_TARGET = 12.0
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ GEM
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.2.5)
rexml (3.2.8)
strscan (>= 3.0.9)
rouge (2.0.7)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
Expand All @@ -181,6 +182,7 @@ GEM
simctl (1.6.10)
CFPropertyList
naturally
strscan (3.1.0)
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

struct ProjectSettings {
static let marketingVersion: String = "9.1.0"
static let marketingVersion: String = "9.1.1"
}

let package = Package(
Expand Down
2 changes: 2 additions & 0 deletions Sources/SRGAnalytics/SRGAnalytics.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#import "SRGAnalytics.h"

#warning "SRG Analytics will be sunset in August 2025. Please upgrade to Pillarbox Analytics (https://github.com/SRGSSR/pillarbox-apple)."

NSString *SRGAnalyticsMarketingVersion(void)
{
return @MARKETING_VERSION;
Expand Down
3 changes: 3 additions & 0 deletions Sources/SRGAnalyticsMediaPlayer/SRGMediaPlayerTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ - (void)recordEvent:(MediaPlayerTrackerEvent)event
if (self.lastAudioTrackMediaOption) {
NSString *audioTrackLanguageCode = [self.lastAudioTrackMediaOption.locale objectForKey:NSLocaleLanguageCode] ?: @"und";
[labels srg_safelySetString:audioTrackLanguageCode.uppercaseString forKey:@"media_audio_track"];

BOOL audioDescribed = [self.lastAudioTrackMediaOption hasMediaCharacteristic:AVMediaCharacteristicDescribesVideoForAccessibility];
[labels srg_safelySetString:audioDescribed ? @"true" : @"false" forKey:@"media_audiodescription_on"];
}

[labels srg_safelySetString:self.bandwidthInBitsPerSecond.stringValue forKey:@"media_bandwidth"];
Expand Down
5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

[![GitHub releases](https://img.shields.io/github/v/release/SRGSSR/srganalytics-apple)](https://github.com/SRGSSR/srganalytics-apple/releases) [![platform](https://img.shields.io/badge/platfom-ios%20%7C%20tvos-blue)](https://github.com/SRGSSR/srganalytics-apple) [![SPM compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager) [![GitHub license](https://img.shields.io/github/license/SRGSSR/srganalytics-apple)](https://github.com/SRGSSR/srganalytics-apple/blob/master/LICENSE)

> [!IMPORTANT]
> Letterbox will be sunset in August 2025, replaced by [Pillarbox](https://github.com/SRGSSR/pillarbox-apple). SRG Analytics will be decommissioned as well, replaced by an equivalent Analytics package available from Pillarbox:
> - New SRG SSR products must use Pillarbox Analytics only.
> - Existing SRG SSR products using SRG Analytics must transition to Pillarbox Analytics before this date.
## About

The SRG Analytics library makes it easy to add usage tracking information to your iOS and tvOS applications, following the SRG SSR standards.
Expand Down
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ platform :ios do
clean_result_files
clean_derived_data

iphone14 = Device.new('iOS', 'iPhone 14')
appletv = Device.new('tvOS', 'Apple TV,OS=17.0')
iphone14 = Device.new('iOS', 'iPhone 15')
appletv = Device.new('tvOS', 'Apple TV')
devices = [iphone14, appletv]

scheme = swift_package_name
Expand Down

0 comments on commit 1532d2a

Please sign in to comment.