Skip to content

Commit

Permalink
Fixed deeplinking
Browse files Browse the repository at this point in the history
  • Loading branch information
kaulex99 committed Jun 13, 2024
1 parent 94895d0 commit 219f429
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
10 changes: 10 additions & 0 deletions WaiterRobot/Entitlements/WaiterRobot.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:my.kellner.team</string>
</array>
</dict>
</plist>
10 changes: 10 additions & 0 deletions WaiterRobot/Entitlements/WaiterRobotLava.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:lava.kellner.team</string>
</array>
</dict>
</plist>
3 changes: 3 additions & 0 deletions WaiterRobot/Ui/Order/OrderScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ struct OrderScreen: View {

case let .error(error):
Text(error.userMessage)
.foregroundStyle(.red)

currentOder(error.data)

case let .success(resource):
Expand All @@ -53,6 +55,7 @@ struct OrderScreen: View {
ProductSearch(viewModel: viewModel)
}
.withViewModel(viewModel, navigator)
.animation(.default, value: viewModel.state.currentOrder)
}

@ViewBuilder
Expand Down
10 changes: 1 addition & 9 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,13 @@ targetTemplates:
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight

entitlements:
path: ".generated/${target_name}.entitlements"
properties:
com.apple.developer.associated-domains:
- "applinks:${deeplinkDomain}"

settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: "${identifier}"
INFOPLIST_FILE: ".generated/${target_name}.plist"
CODE_SIGN_STYLE: "Manual"
CODE_SIGN_ENTITLEMENTS: ".generated/${target_name}.entitlements"
CODE_SIGN_ENTITLEMENTS: "WaiterRobot/Entitlements/${target_name}.entitlements"
DEVELOPMENT_TEAM: "28TM58T3GZ"
PRODUCT_NAME: "${displayName}"
ENABLE_PREVIEWS: "YES"
Expand All @@ -121,7 +115,6 @@ targets:
templateAttributes:
identifier: "org.datepollsystems.waiterrobot"
displayName: "kellner.team"
deeplinkDomain: "my.kellner.team"
versionSuffix: ""
allowedHosts: "my.kellner.team"

Expand All @@ -135,7 +128,6 @@ targets:
templateAttributes:
identifier: "org.datepollsystems.waiterrobot.beta"
displayName: "lava.kellner.team"
deeplinkDomain: "lava.kellner.team"
versionSuffix: "lava"
allowedHosts: "*"
preBuildScripts:
Expand Down

0 comments on commit 219f429

Please sign in to comment.