Skip to content

Commit

Permalink
1.6.25
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Korney committed Feb 2, 2024
1 parent 3e9d131 commit a96ce02
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 30 deletions.
4 changes: 2 additions & 2 deletions AffiseAttributionLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |spec|
spec.name = "AffiseAttributionLib"
spec.version = ENV['LIB_VERSION'] || "1.6.24"
spec.version = ENV['LIB_VERSION'] || "1.6.25"
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"
Expand All @@ -18,6 +18,6 @@ Pod::Spec.new do |spec|

spec.source_files = "AffiseAttributionLib/Classes/**/*.{h,m,swift}"
spec.resources = "AffiseAttributionLib/Assets/*.{js}"
spec.ios.deployment_target = "10.0"
spec.ios.deployment_target = "9.0"
spec.swift_version = '5.7'
end
22 changes: 18 additions & 4 deletions AffiseAttributionLib/Classes/events/EventsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,28 @@ class EventsManager {
self?.stopTimer()

//Create timer
let timer = Timer.scheduledTimer(
guard let timer = self?.scheduledTimer() else { return }
self?.timer = timer
RunLoop.current.add(timer, forMode: .common)
}
}

private func scheduledTimer() -> Timer {
if #available(iOS 10.0, *) {
return Timer.scheduledTimer(
withTimeInterval: EventsManager.TIME_SEND_REPEAT,
repeats: true
) { [weak self] _ in
self?.fireTimer()
}

self?.timer = timer
RunLoop.current.add(timer, forMode: .common)
} else {
return Timer.scheduledTimer(
timeInterval: EventsManager.TIME_SEND_REPEAT,
target: self,
selector: #selector(self.fireTimer),
userInfo: nil,
repeats: true
)
}
}

Expand All @@ -100,6 +113,7 @@ class EventsManager {
timer = nil
}

@objc
private func fireTimer() {
//Send events
sendEvents()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
class AffSDKVersionProvider: StringPropertyProvider {

override func provide() -> String? {
return "1.6.24"
return "1.6.25"
}

public override func getOrder() -> Float {
Expand Down
8 changes: 4 additions & 4 deletions AffiseInternal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |spec|
spec.name = "AffiseInternal"
spec.version = ENV['LIB_VERSION'] || "1.6.24"
spec.version = ENV['LIB_VERSION'] || "1.6.25"
spec.summary = "Affise Internal library"
spec.description = "Affise Internal wrapper library for crossplatform"
spec.homepage = "https://github.com/affise/sdk-ios"
Expand All @@ -20,9 +20,9 @@ Pod::Spec.new do |spec|
}

spec.source_files = "AffiseInternal/Classes/**/*.{swift}"
spec.ios.deployment_target = "10.0"
spec.ios.deployment_target = "9.0"
spec.swift_version = '5.7'

spec.dependency "AffiseAttributionLib"
spec.dependency "AffiseSKAdNetwork"
spec.dependency "AffiseAttributionLib", "#{spec.version}"
spec.dependency "AffiseSKAdNetwork", "#{spec.version}"
end
6 changes: 3 additions & 3 deletions AffiseModule.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "AffiseModule"
s.version = ENV["LIB_VERSION"] || "1.6.24"
s.version = ENV["LIB_VERSION"] || "1.6.25"
s.summary = "Affise Modules"
s.description = "Affise module collection"
s.homepage = "https://github.com/affise/sdk-ios"
Expand All @@ -20,10 +20,10 @@ Pod::Spec.new do |s|
:submodules => true
}

s.ios.deployment_target = "10.0"
s.ios.deployment_target = "9.0"
s.swift_version = "5.7"

s.dependency "AffiseAttributionLib"
s.dependency "AffiseAttributionLib", "#{s.version}"

s.subspec "Status" do |sub|
sub.source_files = "AffiseModule/Status/Classes/**/*.{swift}"
Expand Down
4 changes: 2 additions & 2 deletions AffiseSKAdNetwork.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |spec|
spec.name = "AffiseSKAdNetwork"
spec.version = ENV['LIB_VERSION'] || "1.6.24"
spec.version = ENV['LIB_VERSION'] || "1.6.25"
spec.summary = "AffiseSKAdNetwork iOS library"
spec.description = "Affise library for StoreKit Ad Network (SKAdNetwork)"
spec.homepage = "https://github.com/affise/sdk-ios"
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |spec|

spec.source_files = "AffiseSKAdNetwork/**/*.{h,m,swift}"
spec.platform = "ios"
spec.ios.deployment_target = "10.0"
spec.ios.deployment_target = "9.0"
spec.swift_version = "5.7"

spec.framework = "StoreKit"
Expand Down
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

| Pod | Version |
| ---- |:-------:|
| `AffiseAttributionLib` | [`1.6.24`](https://github.com/CocoaPods/Specs/tree/master/Specs/a/9/3/AffiseAttributionLib) |
| `AffiseSKAdNetwork` | [`1.6.24`](https://github.com/CocoaPods/Specs/tree/master/Specs/3/6/f/AffiseSKAdNetwork) |
| `AffiseModule/Advertising` | [`1.6.24`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
| `AffiseModule/Status` | [`1.6.24`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
| `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/) |

- [Affise Attribution iOS Library](#affise-attribution-ios-library)
- [Description](#description)
Expand Down Expand Up @@ -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.24'
pod 'AffiseAttributionLib', '~> 1.6.25'
# Affise modules
pod 'AffiseModule/Advertising', '~> 1.6.24'
pod 'AffiseModule/Status', '~> 1.6.24'
pod 'AffiseModule/Advertising', '~> 1.6.25'
pod 'AffiseModule/Status', '~> 1.6.25'
```

Get source directly from GitHub

```ruby
# Affise SDK library
pod 'AffiseAttributionLib', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.24'
pod 'AffiseAttributionLib', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.25'
# Affise modules
pod 'AffiseModule/Advertising', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.24'
pod 'AffiseModule/Status', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.24'
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'
```

### Integrate as Swift Package Manager
Expand Down Expand Up @@ -188,8 +188,8 @@ Affise
| Module | Version | Start |
| ------------- |:------------------------------------------------------------------------------------:|----------|
| `Advertising` | [`1.6.24`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` |
| `Status` | [`1.6.24`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
| `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` |

If module start type is `manual`, then call:

Expand Down Expand Up @@ -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.24'
pod 'AffiseSKAdNetwork', '~> 1.6.25'
```

Get source directly from GitHub

```ruby
# Wrapper for StoreKit Ad Network
pod 'AffiseSKAdNetwork', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.24'
pod 'AffiseSKAdNetwork', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.6.25'
```

For `swift` use:
Expand Down Expand Up @@ -551,6 +551,13 @@ Use any of custom events if default doesn't fit your scenario:
- `CustomId09`
- `CustomId10`

If above event functionality still limits your usecase, you can use `UserCustomEvent`

```swift
UserCustomEvent(eventName: "MyCustomEvent")
.send()
```

## Predefined event parameters

To enrich your event with another dimension, you can use predefined parameters for most common cases.
Expand Down

0 comments on commit a96ce02

Please sign in to comment.