From ef57381d7155aa01d34d65cfa5b2c6933d8151b3 Mon Sep 17 00:00:00 2001 From: Sergey Korney Date: Fri, 23 Feb 2024 19:34:44 +0500 Subject: [PATCH] 1.6.26 --- AffiseAttributionLib.podspec | 2 +- .../init/AffSDKVersionProvider.swift | 2 +- .../storages/InternalEventsStorageImpl.swift | 2 +- .../Classes/storages/LogsStorageImpl.swift | 6 ++-- AffiseInternal.podspec | 2 +- AffiseModule.podspec | 2 +- AffiseSKAdNetwork.podspec | 2 +- Package.swift | 2 +- README.md | 28 +++++++++---------- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/AffiseAttributionLib.podspec b/AffiseAttributionLib.podspec index c3d154d..359b30b 100644 --- a/AffiseAttributionLib.podspec +++ b/AffiseAttributionLib.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |spec| spec.name = "AffiseAttributionLib" - spec.version = ENV['LIB_VERSION'] || "1.6.25" + spec.version = ENV['LIB_VERSION'] || "1.6.26" spec.summary = "Affise Attribution iOS library" spec.description = "Affise SDK is a software you can use to collect app usage statistics, device identifiers, deeplink usage, track install referrer." spec.homepage = "https://github.com/affise/sdk-ios" diff --git a/AffiseAttributionLib/Classes/parameters/providers/init/AffSDKVersionProvider.swift b/AffiseAttributionLib/Classes/parameters/providers/init/AffSDKVersionProvider.swift index 59f849b..a48944e 100644 --- a/AffiseAttributionLib/Classes/parameters/providers/init/AffSDKVersionProvider.swift +++ b/AffiseAttributionLib/Classes/parameters/providers/init/AffSDKVersionProvider.swift @@ -6,7 +6,7 @@ import Foundation class AffSDKVersionProvider: StringPropertyProvider { override func provide() -> String? { - return "1.6.25" + return "1.6.26" } public override func getOrder() -> Float { diff --git a/AffiseAttributionLib/Classes/storages/InternalEventsStorageImpl.swift b/AffiseAttributionLib/Classes/storages/InternalEventsStorageImpl.swift index e981a2d..0665b28 100644 --- a/AffiseAttributionLib/Classes/storages/InternalEventsStorageImpl.swift +++ b/AffiseAttributionLib/Classes/storages/InternalEventsStorageImpl.swift @@ -104,7 +104,7 @@ extension InternalEventsStorageImpl: InternalEventsStorage { let events = try directoryContents.filter({ fileURL in let attr = try fileManager.attributesOfItem(atPath: fileURL.path) - let creationDate = (attr[.modificationDate] as! Date) + guard let creationDate = attr[.modificationDate] as? Date else { return true } if (creationDate.timeIntervalSince1970 < Date().timeIntervalSinceNow - Double(InternalEventsParams.INTERNAL_EVENTS_STORE_TIME)) { do { try fileManager.removeItem(atPath: fileURL.path) diff --git a/AffiseAttributionLib/Classes/storages/LogsStorageImpl.swift b/AffiseAttributionLib/Classes/storages/LogsStorageImpl.swift index bc37ec9..ebe0223 100644 --- a/AffiseAttributionLib/Classes/storages/LogsStorageImpl.swift +++ b/AffiseAttributionLib/Classes/storages/LogsStorageImpl.swift @@ -109,10 +109,10 @@ extension LogsStorageImpl: LogsStorage { ) try directoryContents.sort(by: { file1, file2 in - let attr = try fileManager.attributesOfItem(atPath: file1.path) - let creationDate1 = (attr[.modificationDate] as! Date) + let attr1 = try fileManager.attributesOfItem(atPath: file1.path) + guard let creationDate1 = attr1[.modificationDate] as? Date else { return false } let attr2 = try fileManager.attributesOfItem(atPath: file2.path) - let creationDate2 = (attr2[.modificationDate] as! Date) + guard let creationDate2 = attr2[.modificationDate] as? Date else { return false } return creationDate1.compare(creationDate2) == .orderedDescending }) diff --git a/AffiseInternal.podspec b/AffiseInternal.podspec index 08ab448..5e57eda 100644 --- a/AffiseInternal.podspec +++ b/AffiseInternal.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |spec| spec.name = "AffiseInternal" - spec.version = ENV['LIB_VERSION'] || "1.6.25" + spec.version = ENV['LIB_VERSION'] || "1.6.26" spec.summary = "Affise Internal library" spec.description = "Affise Internal wrapper library for crossplatform" spec.homepage = "https://github.com/affise/sdk-ios" diff --git a/AffiseModule.podspec b/AffiseModule.podspec index f06bfcb..55b3e4f 100644 --- a/AffiseModule.podspec +++ b/AffiseModule.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = "AffiseModule" - s.version = ENV["LIB_VERSION"] || "1.6.25" + s.version = ENV["LIB_VERSION"] || "1.6.26" s.summary = "Affise Modules" s.description = "Affise module collection" s.homepage = "https://github.com/affise/sdk-ios" diff --git a/AffiseSKAdNetwork.podspec b/AffiseSKAdNetwork.podspec index 33970b9..5d06972 100644 --- a/AffiseSKAdNetwork.podspec +++ b/AffiseSKAdNetwork.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |spec| spec.name = "AffiseSKAdNetwork" - spec.version = ENV['LIB_VERSION'] || "1.6.25" + spec.version = ENV['LIB_VERSION'] || "1.6.26" spec.summary = "AffiseSKAdNetwork iOS library" spec.description = "Affise library for StoreKit Ad Network (SKAdNetwork)" spec.homepage = "https://github.com/affise/sdk-ios" diff --git a/Package.swift b/Package.swift index 36bd0d3..89f1c32 100644 --- a/Package.swift +++ b/Package.swift @@ -6,7 +6,7 @@ import PackageDescription let package = Package( name: "Affise", platforms: [ - .iOS(.v10) + .iOS(.v9) ], products: [ .library(name: "AffiseAttributionLib", targets: ["AffiseAttributionLib"]), diff --git a/README.md b/README.md index 48ec7cb..89a0ac6 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ | Pod | Version | | ---- |:-------:| -| `AffiseAttributionLib` | [`1.6.25`](https://github.com/CocoaPods/Specs/tree/master/Specs/a/9/3/AffiseAttributionLib) | -| `AffiseSKAdNetwork` | [`1.6.25`](https://github.com/CocoaPods/Specs/tree/master/Specs/3/6/f/AffiseSKAdNetwork) | -| `AffiseModule/Advertising` | [`1.6.25`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | -| `AffiseModule/Status` | [`1.6.25`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | +| `AffiseAttributionLib` | [`1.6.26`](https://github.com/CocoaPods/Specs/tree/master/Specs/a/9/3/AffiseAttributionLib) | +| `AffiseSKAdNetwork` | [`1.6.26`](https://github.com/CocoaPods/Specs/tree/master/Specs/3/6/f/AffiseSKAdNetwork) | +| `AffiseModule/Advertising` | [`1.6.26`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | +| `AffiseModule/Status` | [`1.6.26`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | - [Affise Attribution iOS Library](#affise-attribution-ios-library) - [Description](#description) @@ -73,20 +73,20 @@ To add the SDK using Cocoapods, specify the version you want to use in your Podf ```ruby # Affise SDK library -pod 'AffiseAttributionLib', '~> 1.6.25' +pod 'AffiseAttributionLib', '~> 1.6.26' # Affise modules -pod 'AffiseModule/Advertising', '~> 1.6.25' -pod 'AffiseModule/Status', '~> 1.6.25' +pod 'AffiseModule/Advertising', '~> 1.6.26' +pod 'AffiseModule/Status', '~> 1.6.26' ``` Get source directly from GitHub ```ruby # Affise SDK library -pod 'AffiseAttributionLib', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.25' +pod 'AffiseAttributionLib', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.26' # Affise modules -pod 'AffiseModule/Advertising', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.25' -pod 'AffiseModule/Status', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.25' +pod 'AffiseModule/Advertising', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.26' +pod 'AffiseModule/Status', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.26' ``` ### Integrate as Swift Package Manager @@ -188,8 +188,8 @@ Affise | Module | Version | Start | | ------------- |:------------------------------------------------------------------------------------:|----------| -| `Advertising` | [`1.6.25`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` | -| `Status` | [`1.6.25`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` | +| `Advertising` | [`1.6.26`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` | +| `Status` | [`1.6.26`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` | If module start type is `manual`, then call: @@ -241,14 +241,14 @@ To add the SDK using Cocoapods, specify the version you want to use in your Podf ```ruby # Wrapper for StoreKit Ad Network -pod 'AffiseSKAdNetwork', '~> 1.6.25' +pod 'AffiseSKAdNetwork', '~> 1.6.26' ``` Get source directly from GitHub ```ruby # Wrapper for StoreKit Ad Network -pod 'AffiseSKAdNetwork', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.25' +pod 'AffiseSKAdNetwork', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.26' ``` For `swift` use: