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

[Dapp] Redesign #1213

Merged
merged 9 commits into from
Nov 9, 2023
Merged
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
8 changes: 8 additions & 0 deletions Example/DApp/ApplicationLayer/Application.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Foundation

import WalletConnectUtils

final class Application {
var uri: WalletConnectURI?
var requestSent = false
}
15 changes: 15 additions & 0 deletions Example/DApp/Assets.xcassets/auth.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "auth.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions Example/DApp/Assets.xcassets/copy.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "copy.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions Example/DApp/Assets.xcassets/ethereum.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "eth.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions Example/DApp/Assets.xcassets/exit.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "exit.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
15 changes: 15 additions & 0 deletions Example/DApp/Assets.xcassets/pen.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "pen.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file added Example/DApp/Assets.xcassets/pen.imageset/pen.pdf
Binary file not shown.
12 changes: 12 additions & 0 deletions Example/DApp/Assets.xcassets/polygon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "matic.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions Example/DApp/Assets.xcassets/profile.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "profile.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions Example/DApp/Assets.xcassets/solana.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "sol.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
38 changes: 0 additions & 38 deletions Example/DApp/Auth/AuthCoordinator.swift

This file was deleted.

102 changes: 0 additions & 102 deletions Example/DApp/Auth/AuthView.swift

This file was deleted.

88 changes: 0 additions & 88 deletions Example/DApp/Auth/AuthViewModel.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Example/DApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>dapp</string>
<string>wcdapp</string>
</array>
</dict>
</array>
Expand Down
3 changes: 3 additions & 0 deletions Example/DApp/Modules/Auth/AuthInteractor.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Foundation

final class AuthInteractor {}
16 changes: 16 additions & 0 deletions Example/DApp/Modules/Auth/AuthModule.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import SwiftUI

final class AuthModule {
@discardableResult
static func create(app: Application) -> UIViewController {
let router = AuthRouter(app: app)
let interactor = AuthInteractor()
let presenter = AuthPresenter(interactor: interactor, router: router)
let view = AuthView().environmentObject(presenter)
let viewController = SceneViewController(viewModel: presenter, content: view)

router.viewController = viewController

return viewController
}
}
Loading