From c7df85ad39cb4d3dc5db3c19ad7468fac95042f1 Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Mon, 13 Nov 2023 19:00:36 +0100 Subject: [PATCH 1/2] :wrench: (LekaUpdater): Allow use of MyLekaAlpha URL scheme --- Apps/LekaUpdater/Project.swift | 4 +++- .../Sources/View/UpdatingViews/UpdateFinishedView.swift | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Apps/LekaUpdater/Project.swift b/Apps/LekaUpdater/Project.swift index 0c3b65f1a6..ac88e7058c 100644 --- a/Apps/LekaUpdater/Project.swift +++ b/Apps/LekaUpdater/Project.swift @@ -52,7 +52,9 @@ let project = Project.iOSApp( "CFBundleURLSchemes": ["LekaUpdater"], ] ], - "LSApplicationQueriesSchemes": ["LekaApp"], + "LSApplicationQueriesSchemes": [ + "LekaApp", "com.googleusercontent.apps.224911845933-mv4tp4rstgjtvdqvbv5dl7defii1a7ic", + ], ], schemes: schemes ) diff --git a/Apps/LekaUpdater/Sources/View/UpdatingViews/UpdateFinishedView.swift b/Apps/LekaUpdater/Sources/View/UpdatingViews/UpdateFinishedView.swift index 377466c1fc..5c57ab92a7 100644 --- a/Apps/LekaUpdater/Sources/View/UpdatingViews/UpdateFinishedView.swift +++ b/Apps/LekaUpdater/Sources/View/UpdatingViews/UpdateFinishedView.swift @@ -68,8 +68,9 @@ struct UpdateFinishedContentView: View { } Button { - let appURL = URL(string: "LekaApp://") - let appStoreURL = URL(string: "https://apps.apple.com/fr/app/mon-leka-alpha/id1607862221")! + let appURL = URL( + string: "com.googleusercontent.apps.224911845933-mv4tp4rstgjtvdqvbv5dl7defii1a7ic://") + let appStoreURL = URL(string: "https://apps.apple.com/app/mon-leka-alpha/id1607862221")! if let appURL = appURL, UIApplication.shared.canOpenURL(appURL) { UIApplication.shared.open(appURL, options: [:], completionHandler: nil) From 82ee0ce8a44475f570c9ab4bd8f10b0bba260c5c Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Mon, 13 Nov 2023 19:04:11 +0100 Subject: [PATCH 2/2] :globe_with_meridians: (LekaUpdater): Replace Launch Leka App by Launch My Leka Alpha --- Apps/LekaUpdater/Resources/ll10n/Localizable.xcstrings | 4 ++-- Apps/LekaUpdater/Sources/Localization.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Apps/LekaUpdater/Resources/ll10n/Localizable.xcstrings b/Apps/LekaUpdater/Resources/ll10n/Localizable.xcstrings index 45bde73c30..7b1e97fbbd 100644 --- a/Apps/LekaUpdater/Resources/ll10n/Localizable.xcstrings +++ b/Apps/LekaUpdater/Resources/ll10n/Localizable.xcstrings @@ -690,13 +690,13 @@ "en" : { "stringUnit" : { "state" : "new", - "value" : "Launch Leka App 🚀" + "value" : "Launch My Leka Alpha 🚀" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Lancer Leka App 🚀" + "value" : "Lancer Mon Leka Alpha 🚀" } } } diff --git a/Apps/LekaUpdater/Sources/Localization.swift b/Apps/LekaUpdater/Sources/Localization.swift index 7a67e7da17..7acadfdb84 100644 --- a/Apps/LekaUpdater/Sources/Localization.swift +++ b/Apps/LekaUpdater/Sources/Localization.swift @@ -167,7 +167,7 @@ extension l10n { static let updateAnotherRobotButton = LocalizedString("update.finished.update_another_robot_button", value: "Update another robot", comment: "Update another robot button") - static let launchLekaAppButton = LocalizedString("update.finished.launch_leka_app_button", value: "Launch Leka App 🚀", comment: "Launch Leka app button") + static let launchLekaAppButton = LocalizedString("update.finished.launch_leka_app_button", value: "Launch My Leka Alpha 🚀", comment: "Launch Leka app button") static let robotUpdatedSuccessfully = LocalizedString("update.finished.robot_updated_successfully", value: "Congrats! 🥳\nYour robot is now up-to-date 🎉", comment: "Robot updated successfully") }