Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6.17 #1028

Merged
merged 9 commits into from
Aug 11, 2023
Merged

1.6.17 #1028

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:

prepare:
needs: authorize
runs-on: macos-12
runs-on:
group: apple-silicon
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -35,7 +36,8 @@ jobs:

test:
needs: prepare
runs-on: macos-12
runs-on:
group: apple-silicon
timeout-minutes: 15
strategy:
fail-fast: false
Expand Down
99 changes: 0 additions & 99 deletions .github/workflows/self_hosted_ci.yml

This file was deleted.

26 changes: 24 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,30 @@ endif
@echo "All dependencies was installed"

build_all:
set -o pipefail && xcodebuild -scheme "WalletConnect-Package" -destination "platform=iOS Simulator,name=iPhone 11" -derivedDataPath DerivedDataCache -clonedSourcePackagesDirPath ../SourcePackagesCache RELAY_HOST='$(RELAY_HOST)' PROJECT_ID='$(PROJECT_ID)' build-for-testing | xcpretty
set -o pipefail && xcodebuild -project "Example/ExampleApp.xcodeproj" -scheme "BuildAll" -destination "platform=iOS Simulator,name=iPhone 11" -derivedDataPath DerivedDataCache -clonedSourcePackagesDirPath ../SourcePackagesCache RELAY_HOST='$(RELAY_HOST)' PROJECT_ID='$(PROJECT_ID)' CAST_HOST='$(CAST_HOST)' JS_CLIENT_API_HOST='$(JS_CLIENT_API_HOST)' build-for-testing | xcpretty
set -o pipefail && env NSUnbufferedIO=YES \
xcodebuild \
-scheme "WalletConnect-Package" \
-destination "platform=iOS Simulator,name=iPhone 14" \
-derivedDataPath DerivedDataCache \
-clonedSourcePackagesDirPath ../SourcePackagesCache \
RELAY_HOST='$(RELAY_HOST)' \
PROJECT_ID='$(PROJECT_ID)' \
build-for-testing \
| xcbeautify

set -o pipefail && env NSUnbufferedIO=YES \
xcodebuild \
-project "Example/ExampleApp.xcodeproj" \
-scheme "BuildAll" \
-destination "platform=iOS Simulator,name=iPhone 14" \
-derivedDataPath DerivedDataCache \
-clonedSourcePackagesDirPath ../SourcePackagesCache \
RELAY_HOST='$(RELAY_HOST)' \
PROJECT_ID='$(PROJECT_ID)' \
CAST_HOST='$(CAST_HOST)' \
JS_CLIENT_API_HOST='$(JS_CLIENT_API_HOST)' \
build-for-testing \
| xcbeautify

echo_ui_tests:
echo "EchoUITests disabled"
Expand Down
1 change: 1 addition & 0 deletions NotifyTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
}
],
"defaultOptions" : {
"codeCoverage" : false,
"environmentVariableEntries" : [
{
"key" : "RELAY_HOST",
Expand Down
2 changes: 1 addition & 1 deletion Sources/WalletConnectModal/Modal/ModalSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ extension ModalSheet {
Button {
viewModel.onCloseButton()
} label: {
Image(.close)
Image(Asset.close)
.padding(8)
}
.buttonStyle(CircuralIconButtonStyle())
Expand Down
22 changes: 11 additions & 11 deletions Sources/WalletConnectModal/Resources/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ extension Color {
self.init(asset.rawValue, bundle: .module)
}

static let foreground1 = Color(.foreground1)
static let foreground2 = Color(.foreground2)
static let foreground3 = Color(.foreground3)
static let foregroundInverse = Color(.foregroundInverse)
static let background1 = Color(.background1)
static let background2 = Color(.background2)
static let background3 = Color(.background3)
static let negative = Color(.negative)
static let thickOverlay = Color(.thickOverlay)
static let thinOverlay = Color(.thinOverlay)
static let accent = Color(.accent)
static let foreground1 = Color(AssetColor.foreground1)
static let foreground2 = Color(AssetColor.foreground2)
static let foreground3 = Color(AssetColor.foreground3)
static let foregroundInverse = Color(AssetColor.foregroundInverse)
static let background1 = Color(AssetColor.background1)
static let background2 = Color(AssetColor.background2)
static let background3 = Color(AssetColor.background3)
static let negative = Color(AssetColor.negative)
static let thickOverlay = Color(AssetColor.thickOverlay)
static let thinOverlay = Color(AssetColor.thinOverlay)
static let accent = Color(AssetColor.accent)
}

#if canImport(UIKit)
Expand Down
6 changes: 5 additions & 1 deletion Sources/Web3Inbox/WebView/WebViewRequestSubscriber.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ final class WebViewRequestSubscriber: NSObject, WKScriptMessageHandler {
}

extension WebViewRequestSubscriber: WKUIDelegate {


#if os(iOS)

@available(iOS 15.0, *)
func webView(_ webView: WKWebView, requestMediaCapturePermissionFor origin: WKSecurityOrigin, initiatedByFrame frame: WKFrameInfo, type: WKMediaCaptureType, decisionHandler: @escaping (WKPermissionDecision) -> Void) {
decisionHandler(.grant)
}

#endif
}

extension WebViewRequestSubscriber: WKNavigationDelegate {
Expand Down
4 changes: 2 additions & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if [ -z "$XCTESTRUN" ]; then
-resultBundlePath "test_results/$SCHEME.xcresult" \
test \
| tee ./test_results/xcodebuild.log \
| xcpretty --report junit --output ./test_results/report.junit
| xcbeautify --report junit --junit-report-filename report.junit --report-path ./test_results
)
else

Expand All @@ -99,7 +99,7 @@ else
-resultBundlePath "test_results/$SCHEME.xcresult" \
test-without-building \
| tee ./test_results/xcodebuild.log \
| xcpretty --report junit --output ./test_results/report.junit
| xcbeautify --report junit --junit-report-filename report.junit --report-path ./test_results
)
fi

Expand Down
Loading