Skip to content

Commit

Permalink
Update TestableExtensionRuntime (#61)
Browse files Browse the repository at this point in the history
* Update TestableExtensionRuntime

Update TestableExtensionRuntime

* Update lint

Update lint

* update podspec

update podspec

* Update package file

Update package file

* revert podspec, package swift and update ci to 13.0.0 use xcode

revert podspec, package swift and update ci to 13.0.0 use xcode
  • Loading branch information
cacheung authored Jul 29, 2022
1 parent 4035411 commit c8e6f47
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

build-and-test:
macos:
xcode: 11.6.0 # Specify the Xcode version to use
xcode: 13.0.0 # Specify the Xcode version to use

steps:
- checkout
Expand Down
14 changes: 7 additions & 7 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- AEPCore (3.5.0):
- AEPCore (3.7.0):
- AEPRulesEngine (>= 1.1.0)
- AEPServices (>= 3.5.0)
- AEPRulesEngine (1.1.0)
- AEPServices (3.5.0)
- AEPServices (>= 3.7.0)
- AEPRulesEngine (1.2.0)
- AEPServices (3.7.0)
- SwiftLint (0.44.0)

DEPENDENCIES:
Expand All @@ -19,9 +19,9 @@ SPEC REPOS:
- SwiftLint

SPEC CHECKSUMS:
AEPCore: a3b4159038df33b63ebdab227342cd57d8ded1b0
AEPRulesEngine: bb2927ed5501ddf9754c66e97f8d2b1cf8e33b19
AEPServices: 2e869a387b67c04ab5f3f647026412ff410efbb0
AEPCore: 290dd609f261efe7a049bd3bdcbbc0734fe0e1fc
AEPRulesEngine: 71228dfdac24c9ded09be13e3257a7eb22468ccc
AEPServices: 7bc2af2a153ea223e87ec50c8e3fd6e0282869c6
SwiftLint: e96c0a8c770c7ebbc4d36c55baf9096bb65c4584

PODFILE CHECKSUM: df8c969b5e4f98f7d1df738b00d9511b06b4b07f
Expand Down
8 changes: 8 additions & 0 deletions Tests/FunctionalTests/Helpers/TestableExtensionRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public class TestableExtensionRuntime: ExtensionRuntime {
return mockedSharedStates["\(extensionName)"]
}

public func getSharedState(extensionName: String, event: Event?, barrier: Bool, resolution: SharedStateResolution) -> SharedStateResult? {
return getSharedState(extensionName: extensionName, event: event, barrier: barrier)
}

public func createXDMSharedState(data: [String: Any], event: Event?) {
createdXdmSharedStates += [data]
}
Expand All @@ -79,6 +83,10 @@ public class TestableExtensionRuntime: ExtensionRuntime {
return mockedXdmSharedStates["\(extensionName)"]
}

public func getXDMSharedState(extensionName: String, event: Event?, barrier: Bool, resolution: SharedStateResolution) -> SharedStateResult? {
return getXDMSharedState(extensionName: extensionName, event: event, barrier: barrier)
}

public func startEvents() {}

public func stopEvents() {}
Expand Down

0 comments on commit c8e6f47

Please sign in to comment.