Skip to content

Commit

Permalink
1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Korney committed Jul 13, 2023
1 parent 27f6cc7 commit 1589c66
Show file tree
Hide file tree
Showing 159 changed files with 3,726 additions and 4,187 deletions.
3 changes: 2 additions & 1 deletion 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.7"
spec.version = ENV['LIB_VERSION'] || "1.6.0"
spec.summary = "Affise Attribution iOS library"

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -106,6 +106,7 @@ Pod::Spec.new do |spec|

# spec.resource = "icon.png"
# spec.resources = "Resources/*.png"
spec.resources = "AffiseAttributionLib/AffiseAttributionLib/Attribution/assets/*.js"

# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public class Affise: NSObject {
}

/**
* Set new secretId
* Set new secretKey
*/
public func setSecretId(secretId: String) {
api?.initPropertiesStorage.updateSecretId(secretId: secretId)
public func setSecretId(secretKey: String) {
api?.initPropertiesStorage.updateSecretKey(secretKey: secretKey)
}

/**
Expand Down Expand Up @@ -138,15 +138,17 @@ public class Affise: NSObject {
/**
* Returns random User Id
*/
public func getRandomUserId() -> String? {
return api?.postBackModelFactory.randomUserIdProvider.provide()
public func getRandomUserId() -> String? {
let provider : RandomUserIdProvider? = api?.postBackModelFactory.getProvider()
return provider?.provide()
}

/**
* Returns random Device Id
*/
public func getRandomDeviceId() -> String? {
return api?.postBackModelFactory.affDeviceIdProvider.provide()
public func getRandomDeviceId() -> String? {
let provider : AffiseDeviceIdProvider? = api?.postBackModelFactory.getProvider()
return provider?.provide()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal class AffiseComponent: AffiseApi {
eventsStorage: internalEventsStorage)
lazy var networkService:NetworkService = NetworkServiceImpl(urlSession: urlSession)
lazy var cloudRepository:CloudRepository = CloudRepositoryImpl(networkService: networkService,
userAgentProvider: postBackModelFactory.userAgentProvider,
userAgentProvider: postBackModelFactory.getProvider(),
converter: PostBackModelToJsonStringConverter())
lazy var sessionManager:SessionManager = SessionManagerImpl(preferences: preferences,
appLifecycleEventsManager: appLifecycleEventsManager,
Expand Down
Loading

0 comments on commit 1589c66

Please sign in to comment.