Skip to content

Commit

Permalink
1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Korney committed Jun 29, 2023
1 parent 0d33f29 commit d1f5778
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 19 deletions.
4 changes: 2 additions & 2 deletions AffiseAttributionLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "AffiseAttributionLib"
spec.version = ENV['LIB_VERSION'] || "1.1.6"
spec.version = ENV['LIB_VERSION'] || "1.1.7"
spec.summary = "Affise Attribution iOS library"

# This description is used to generate tags and improve search results.
Expand All @@ -26,7 +26,7 @@ Pod::Spec.new do |spec|
# * Finally, don't worry about the indent, CocoaPods strips it!
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://affise.com"
spec.homepage = "https://github.com/affise/sdk-ios"
# spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"


Expand Down
14 changes: 14 additions & 0 deletions AffiseAttributionLib/AffiseAttributionLib/Attribution/Affise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,20 @@ public class Affise: NSObject {
*/
public func isTrackingEnabled() -> Bool { return api?.preferencesUseCase.isTrackingEnabled() ?? false }

/**
* Returns random User Id
*/
public func getRandomUserId() -> String? {
return api?.postBackModelFactory.randomUserIdProvider.provide()
}

/**
* Returns random Device Id
*/
public func getRandomDeviceId() -> String? {
return api?.postBackModelFactory.affDeviceIdProvider.provide()
}

/**
* Call deeplink handle manually
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ internal protocol AffiseApi {
var deeplinkManager: DeeplinkManager {get}
var initPropertiesStorage: InitPropertiesStorage {get}
var preferencesUseCase: PreferencesUseCase {get}
var postBackModelFactory: PostBackModelFactory {get}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ import Foundation
class AffSDKVersionProvider: StringPropertyProvider {

override func provide() -> String? {
return "1.1.6"
return "1.1.7"
}
}
4 changes: 2 additions & 2 deletions AffiseSKAdNetwork.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "AffiseSKAdNetwork"
spec.version = ENV['LIB_VERSION'] || "1.1.6"
spec.version = ENV['LIB_VERSION'] || "1.1.7"
spec.summary = "AffiseSKAdNetwork iOS library"

# This description is used to generate tags and improve search results.
Expand All @@ -26,7 +26,7 @@ Pod::Spec.new do |spec|
# * Finally, don't worry about the indent, CocoaPods strips it!
spec.description = "Affise library for StoreKit Ad Network (SKAdNetwork)"

spec.homepage = "https://affise.com"
spec.homepage = "https://github.com/affise/sdk-ios"
# spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"


Expand Down
22 changes: 18 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
Copyright 2022 Affise
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Copyright (c) 2022 Affise, Inc. | https://affise.com

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Affise Attribution iOS library
# Affise Attribution iOS Library

| Pod | Version |
| ---- |:-------:|
| AffiseAttributionLib | [1.1.6](https://github.com/CocoaPods/Specs/tree/master/Specs/a/9/3/AffiseAttributionLib) |
| AffiseSKAdNetwork | [1.1.6](https://github.com/CocoaPods/Specs/tree/master/Specs/3/6/f/AffiseSKAdNetwork) |
| AffiseAttributionLib | [1.1.7](https://github.com/CocoaPods/Specs/tree/master/Specs/a/9/3/AffiseAttributionLib) |
| AffiseSKAdNetwork | [1.1.7](https://github.com/CocoaPods/Specs/tree/master/Specs/3/6/f/AffiseSKAdNetwork) |

- [Affise Attribution iOS library](#affise-attribution-ios-library)
- [Affise Attribution iOS Library](#affise-attribution-ios-library)
- [Description](#description)
- [Quick start](#quick-start)
- [Integration](#integration)
Expand All @@ -21,6 +21,8 @@
- [Push token tracking](#push-token-tracking)
- [Reinstall Uninstall tracking](#reinstall-uninstall-tracking)
- [Deeplinks](#deeplinks)
- [Get random user Id](#get-random-user-id)
- [Get random device Id](#get-random-device-id)
- [Webview tracking](#webview-tracking)
- [Initialize webview](#initialize-webview)
- [Events tracking JS](#events-tracking-js)
Expand All @@ -42,10 +44,10 @@ To add the SDK using Cocoapods, specify the version you want to use in your Podf

```ruby
// Get pod from repository
pod 'AffiseAttributionLib', '~> 1.1.6'
pod 'AffiseAttributionLib', '~> 1.1.7'

// Get source directly from GitHub
pod 'AffiseAttributionLib', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.1.6'
pod 'AffiseAttributionLib', :git => 'https://github.com/affise/sdk-ios.git', :tag => '1.1.7'
```

### Initialize
Expand Down Expand Up @@ -559,6 +561,22 @@ Example: `app/app/Info.plist`
</array>
```

## Get random user Id

Use the next public method of SDK

```swift
Affise.shared.getRandomUserId()
```

## Get random device Id

Use the next public method of SDK

```swift
Affise.shared.getRandomDeviceId()
```

## Webview tracking

### Initialize webview
Expand Down
4 changes: 2 additions & 2 deletions app/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ use_frameworks!
workspace 'app'

target 'app' do
# pod 'AffiseAttributionLib'
# pod 'AffiseSKAdNetwork'
pod 'AffiseAttributionLib', :path => '../'
pod 'AffiseSKAdNetwork', :path => '../'
end
4 changes: 2 additions & 2 deletions app/app.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
7C13998C287F2FC000C28C32 /* Sources */,
7C13998D287F2FC000C28C32 /* Frameworks */,
7C13998E287F2FC000C28C32 /* Resources */,
3D9E4DAA51237E0A5F590328 /* [CP] Embed Pods Frameworks */,
028D791C865D4877D5183A5B /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -320,7 +320,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
3D9E4DAA51237E0A5F590328 /* [CP] Embed Pods Frameworks */ = {
028D791C865D4877D5183A5B /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down

0 comments on commit d1f5778

Please sign in to comment.