Skip to content

Commit

Permalink
🔀 Merge branch 'ladislas/feature/l10n-tuist-option'
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Nov 8, 2023
2 parents 1209227 + 7cce2b7 commit 5b3fbe7
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Apps/LekaUpdater/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
import ProjectDescription
import ProjectDescriptionHelpers

private var schemes: [Scheme] {
var schemeList: [Scheme] = []

if Environment.createLocalizationSchemes.getBoolean(
default: false)
{
schemeList.append(contentsOf: [
SchemeList.l10nFR(name: "LekaUpdater"),
SchemeList.l10nEN(name: "LekaUpdater"),
])
}

return schemeList
}

// Creates our project using a helper function defined in ProjectDescriptionHelpers
let project = Project.iOSApp(
name: "LekaUpdater",
Expand Down Expand Up @@ -38,9 +53,5 @@ let project = Project.iOSApp(
],
"LSApplicationQueriesSchemes": ["LekaApp"],
],
options: .options(automaticSchemesOptions: .disabled),
schemes: [
SchemeList.l10nFR(name: "LekaUpdater"),
SchemeList.l10nEN(name: "LekaUpdater"),
]
schemes: schemes
)

0 comments on commit 5b3fbe7

Please sign in to comment.