-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINI-5899][iOS Sample] Enable deeplink/QR code to save the Project k…
…ey and subscription key (#516) * [MINI-5899] [iOS] - Enable deeplinking to Save Project keys using QR Enable passing the Project ID and subscription key using deep link. For eg., miniappdemo://miniapp/settings?projectid=abc&subscription=def **LINK** [MINI-5899](https://jira.rakuten-it.com/jira/browse/MINI-5899) * [MINI-5899] [iOS] - Enable deeplinking to Save Project keys using QR Fix issue of keys not changing when switching List1-List2 in settings screen. **LINK** [MINI-5899](https://jira.rakuten-it.com/jira/browse/MINI-5899) * [MINI-5899] [iOS] - Enable deeplinking to Save Project keys using QR Fix swiftlint violations. **LINK** [MINI-5899](https://jira.rakuten-it.com/jira/browse/MINI-5899) --------- Co-authored-by: leojoseph.r <[email protected]>
- Loading branch information
1 parent
b6e0d36
commit e609ad3
Showing
7 changed files
with
139 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import SwiftUI | ||
|
||
struct ContentView: View { | ||
@StateObject var sharedSettingsVM: MiniAppSettingsViewModel | ||
|
||
var body: some View { | ||
MiniAppDashboardView() | ||
MiniAppDashboardView(sharedSettingsVM: sharedSettingsVM) | ||
} | ||
} | ||
|
||
struct ContentView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
ContentView() | ||
ContentView(sharedSettingsVM: MiniAppSettingsViewModel()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Foundation | ||
|
||
struct SettingsParams: Equatable { | ||
var tab: Int = 1 | ||
var projectId: String = "" | ||
var subscriptionKey: String = "" | ||
var isProduction: Bool = false | ||
var isPreviewMode: Bool = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters