mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
66 lines
2.8 KiB
Bash
Executable File
66 lines
2.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
<<<<<<< HEAD
|
|
# This script tests deep links for the Lux mobile app locally.
|
|
=======
|
|
# This script tests deep links for the Uniswap mobile app locally.
|
|
>>>>>>> upstream/main
|
|
# Usage: ./testDeepLinks.sh <user_id>
|
|
|
|
# It opens a series of URLs in the iOS simulator and terminates the app after each URL is opened.
|
|
# Arguments:
|
|
# user_id: The user ID to be included in some of the URLs.
|
|
|
|
<<<<<<< HEAD
|
|
bundle_id="com.lux.exchange.mobile.dev"
|
|
=======
|
|
bundle_id="com.uniswap.mobile.dev"
|
|
>>>>>>> upstream/main
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: $0 <user_id>"
|
|
exit 1
|
|
fi
|
|
|
|
user_id="$1"
|
|
|
|
urls=(
|
|
<<<<<<< HEAD
|
|
"lux://wc?uri=wc:af098@2?relay-protocol=irn&symKey=51e"
|
|
"lux://wc:af098@2?relay-protocol=irn&symKey=51e"
|
|
"lux://scantastic?param=value"
|
|
"lux://uwulink?param=value"
|
|
"lux://redirect?screen=transaction&fiatOffRamp=true&userAddress=$user_id&externalTransactionId=123"
|
|
"https://lux.exchange/app?screen=swap&userAddress=$user_id&inputCurrencyId=1-0x6B175474E89094C44Da98b954EedeAC495271d0F&outputCurrencyId=1-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48¤cyField=input&amount=100"
|
|
"https://lux.exchange/app?screen=transaction&fiatOnRamp=true&userAddress=$user_id"
|
|
"https://lux.exchange/app?screen=transaction&userAddress=$user_id"
|
|
"https://lux.exchange/app/wc?uri=wc:af098@2?relay-protocol=irn&symKey=51e"
|
|
"lux://app/fiatonramp?userAddress=$user_id&source=push"
|
|
"lux://app/tokendetails?currencyId=10-0x6fd9d7ad17242c41f7131d257212c54a0e816691&source=push"
|
|
"lux://app/tokendetails?currencyId=0-fwefe&source=push" # invalid currencyId
|
|
=======
|
|
"uniswap://wc?uri=wc:af098@2?relay-protocol=irn&symKey=51e"
|
|
"uniswap://wc:af098@2?relay-protocol=irn&symKey=51e"
|
|
"uniswap://scantastic?param=value"
|
|
"uniswap://uwulink?param=value"
|
|
"uniswap://redirect?screen=transaction&fiatOffRamp=true&userAddress=$user_id&externalTransactionId=123"
|
|
"https://uniswap.org/app?screen=swap&userAddress=$user_id&inputCurrencyId=1-0x6B175474E89094C44Da98b954EedeAC495271d0F&outputCurrencyId=1-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48¤cyField=input&amount=100"
|
|
"https://uniswap.org/app?screen=transaction&fiatOnRamp=true&userAddress=$user_id"
|
|
"https://uniswap.org/app?screen=transaction&userAddress=$user_id"
|
|
"https://uniswap.org/app/wc?uri=wc:af098@2?relay-protocol=irn&symKey=51e"
|
|
"uniswap://app/fiatonramp?userAddress=$user_id&source=push"
|
|
"uniswap://app/tokendetails?currencyId=10-0x6fd9d7ad17242c41f7131d257212c54a0e816691&source=push"
|
|
"uniswap://app/tokendetails?currencyId=0-fwefe&source=push" # invalid currencyId
|
|
>>>>>>> upstream/main
|
|
)
|
|
|
|
xcrun simctl terminate booted "$bundle_id"
|
|
|
|
for url in "${urls[@]}"; do
|
|
echo "Opening URL: $url"
|
|
xcrun simctl openurl booted "$url"
|
|
sleep 10
|
|
echo "Terminating app with bundle ID: $bundle_id"
|
|
xcrun simctl terminate booted "$bundle_id"
|
|
done
|