Skip to content

Commit

Permalink
Merge branch 'list-item-loading' of https://github.com/Adyen/adyen-ios
Browse files Browse the repository at this point in the history
…into list-item-loading
  • Loading branch information
goergisn committed Oct 6, 2023
2 parents 9fcb077 + 524736d commit 03ccc97
Show file tree
Hide file tree
Showing 48 changed files with 456 additions and 277 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
env:
sonarToken: ${{ secrets.SONAR_TOKEN }}
runs-on: macos-12
runs-on: macos-13-xl

steps:
- uses: actions/checkout@v4
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
xcode-version: '14.3'

- name: Install Tools
run: |
Expand All @@ -36,15 +36,15 @@ jobs:
run: |
Scripts/validate-Adyen-SDK-version.sh
- name: Build and test
- name: Clean Build and Test
run: |
xcodebuild -version
xcodebuild clean build test -project "${project}" -scheme "${scheme}" ${params} -destination "${destination}" -skipPackagePluginValidation | xcpretty --utf --color && exit ${PIPESTATUS[0]}
xcodebuild clean build test -project "${project}" -scheme "${scheme}" ${params} -destination "${destination}" | xcpretty --utf --color && exit ${PIPESTATUS[0]}
env:
project: 'Adyen.xcodeproj'
params: '-derivedDataPath ./DerivedData -enableCodeCoverage YES'
params: '-derivedDataPath ./DerivedData -enableCodeCoverage YES -skipPackagePluginValidation'
scheme: 'AdyenUIHost'
destination: 'name=iPhone 14'
destination: 'name=iPhone 14,OS=16.4'

- name: Code Coverage
run: |
Expand Down
48 changes: 31 additions & 17 deletions Adyen.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

23 changes: 1 addition & 22 deletions Adyen.xcodeproj/xcshareddata/xcschemes/AdyenUIHost.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,7 @@
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F9615FAE252DDA4800FA8EDD"
BuildableName = "AdyenSwiftUITests.xctest"
BlueprintName = "AdyenSwiftUITests"
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F9CCA3B4296ECB3E00AD643D"
BuildableName = "AdyenUIHostUITests.xctest"
BlueprintName = "AdyenUIHostUITests"
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
parallelizable = "YES">
skipped = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F9CCA3B4296ECB3E00AD643D"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F9CCA3B4296ECB3E00AD643D"
BuildableName = "AdyenUIHostUITests.xctest"
BlueprintName = "AdyenUIHostUITests"
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
32 changes: 18 additions & 14 deletions Adyen.xcodeproj/xcshareddata/xcschemes/AdyenUIKitTests.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E2C0E03B22097917008616F6"
BuildableName = "AdyenUIKitTests.xctest"
BlueprintName = "AdyenUIKitTests"
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
Expand All @@ -28,17 +44,6 @@
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F9CCA3B4296ECB3E00AD643D"
BuildableName = "AdyenUIHostUITests.xctest"
BlueprintName = "AdyenUIHostUITests"
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand All @@ -51,16 +56,15 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E2C0E07C220B0399008616F6"
BuildableName = "AdyenUIHost.app"
BlueprintName = "AdyenUIHost"
ReferencedContainer = "container:Adyen.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
2 changes: 1 addition & 1 deletion Adyen/UI/Form/Items/Button/FormButtonItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal final class FormButtonItemView: FormItemView<FormButtonItem> {
return submitButton
}()

@objc private func didSelectSubmitButton() {
@objc internal func didSelectSubmitButton() {
item.buttonSelectionHandler?()
}

Expand Down
6 changes: 3 additions & 3 deletions AdyenActions/UI/View Controllers/QR Code/QRCodeView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2022 Adyen N.V.
// Copyright (c) 2023 Adyen N.V.
//
// This file is open source and available under the MIT license. See the LICENSE file for more info.
//
Expand Down Expand Up @@ -158,7 +158,7 @@ internal final class QRCodeView: UIView, Localizable, AdyenObserver {
return button
}()

private lazy var logo: NetworkImageView = {
internal lazy var logo: NetworkImageView = {
let logo = NetworkImageView()
let logoSize = CGSize(width: 74.0, height: 48.0)
logo.adyen.round(using: model.style.logoCornerRounding)
Expand Down Expand Up @@ -218,7 +218,7 @@ internal final class QRCodeView: UIView, Localizable, AdyenObserver {
return progressView
}()

private lazy var expirationLabel: UILabel = {
internal lazy var expirationLabel: UILabel = {
let expirationLabel = UILabel(style: model.style.expirationLabel)
expirationLabel.numberOfLines = 0
expirationLabel.accessibilityIdentifier = ViewIdentifierBuilder.build(scopeInstance: self, postfix: "expirationLabel")
Expand Down
6 changes: 3 additions & 3 deletions AdyenActions/UI/View Controllers/Voucher/VoucherView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2022 Adyen N.V.
// Copyright (c) 2023 Adyen N.V.
//
// This file is open source and available under the MIT license. See the LICENSE file for more info.
//
Expand Down Expand Up @@ -209,7 +209,7 @@ internal final class VoucherView: UIView, Localizable {
}
}

internal func showCopyCodeConfirmation() {
internal func showCopyCodeConfirmation(resetAfter resetDelay: DispatchTimeInterval = .seconds(4)) {
UIView.transition(
with: secondaryButton,
duration: 0.5,
Expand All @@ -222,7 +222,7 @@ internal final class VoucherView: UIView, Localizable {
)
}, completion: { _ in
DispatchQueue.main.asyncAfter(
deadline: .now() + .seconds(4)
deadline: .now() + resetDelay
) {
self.returnSecondaryButtonToNormalState()
}
Expand Down
5 changes: 4 additions & 1 deletion Scripts/test-carthage-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ cp "../Tests/Card Tests/3DS2 Component/ThreeDS2PlusDACoreActionHandlerTests.swif
cp "../Tests/Card Tests/3DS2 Component/AnyADYServiceMock.swift" Tests/AnyADYServiceMock.swift
cp "../Tests/Card Tests/3DS2 Component/AuthenticationServiceMock.swift" Tests/AuthenticationServiceMock.swift
cp "../Tests/Card Tests/3DS2 Component/ThreeDSResultExtension.swift" Tests/ThreeDSResultExtension.swift
cp "../Tests/Helpers/XCTestCaseExtensions.swift" Tests/XCTestCaseExtensions.swift
cp "../Tests/Helpers/XCTestCase+RootViewController.swift" Tests/XCTestCase+RootViewController.swift
cp "../Tests/Helpers/XCTestCase+Wait.swift" Tests/XCTestCase+Wait.swift
cp "../Tests/Helpers/UIViewController+Search.swift" Tests/UIViewController+Search.swift
cp "../Tests/Adyen Tests/Analytics/AnalyticsProviderMock.swift" Tests/AnalyticsProviderMock.swift
cp "../Tests/DummyData/Dummy.swift" Tests/Dummy.swift
cp -a "../Demo/Common" Source/
cp -a "../Demo/UIKit" Source/
Expand Down
Loading

0 comments on commit 03ccc97

Please sign in to comment.