Skip to content

Commit

Permalink
chore: Implicit dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Oct 22, 2024
1 parent 9b62519 commit f1707a7
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tools]
tuist = '4.28.1'
tuist = '4.30.0'
periphery = '2.21.1'
swiftformat = '0.54.5'
swiftlint = '0.57.0'
1 change: 1 addition & 0 deletions MailCore/Cache/RootViewState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Contacts
import Foundation
import InfomaniakCore
import InfomaniakCoreCommonUI
import InfomaniakCoreDB
import InfomaniakDI
import InfomaniakLogin
import SwiftUI
Expand Down
150 changes: 116 additions & 34 deletions Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,35 @@ let project = Project(name: "Mail",
Constants.stripSymbolsScript
],
dependencies: [
.target(name: "MailResources"),
.target(name: "MailCore"),
.target(name: "MailCoreUI"),
.target(name: "MailResources"),
.target(name: "MailNotificationServiceExtension"),
.target(name: "MailNotificationContentExtension"),
.target(name: "MailShareExtension"),
.target(name: "MailAppIntentsExtension"),
.external(name: "Realm")
.external(name: "InfomaniakBugTracker"),
.external(name: "InfomaniakCoreCommonUI"),
.external(name: "InfomaniakCoreDB"),
.external(name: "InfomaniakCoreSwiftUI"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakCreateAccount"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakNotifications"),
.external(name: "InfomaniakOnboarding"),
.external(name: "InfomaniakRichHTMLEditor"),
.external(name: "NavigationBackport"),
.external(name: "Popovers"),
.external(name: "Realm"),
.external(name: "RealmSwift"),
.external(name: "SwiftModalPresentation"),
.external(name: "SwiftRegex"),
.external(name: "SwiftSoup"),
.external(name: "SwiftUIBackports"),
.external(name: "SwiftUIIntrospect"),
.external(name: "VersionChecker"),
.external(name: "WrappingHStack")
],
settings: .settings(base: Constants.baseSettings),
environmentVariables: [
Expand All @@ -69,9 +90,15 @@ let project = Project(name: "Mail",
sources: "MailTests/**",
dependencies: [
.target(name: "Infomaniak Mail"),
.target(name: "MailResources"),
.target(name: "MailCore"),
.target(name: "MailResources"),
.external(name: "InfomaniakCoreDB"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakLogin"),
.external(name: "Realm"),
.external(name: "RealmSwift"),
.external(name: "SwiftSoup")
],
settings: .settings(base: Constants.testSettings)),
.target(name: "MailUITests",
Expand All @@ -83,9 +110,8 @@ let project = Project(name: "Mail",
sources: "MailUITests/**",
dependencies: [
.target(name: "Infomaniak Mail"),
.target(name: "MailResources"),
.target(name: "MailCore"),
.external(name: "Realm")
.target(name: "MailResources")
],
settings: .settings(base: Constants.testSettings)),
.target(name: "MailShareExtension",
Expand All @@ -107,10 +133,31 @@ let project = Project(name: "Mail",
entitlements: "MailShareExtension/ShareExtension.entitlements",
scripts: [Constants.swiftlintScript],
dependencies: [
.target(name: "MailResources"),
.target(name: "MailCore"),
.target(name: "MailCoreUI"),
.external(name: "Realm")
.target(name: "MailResources"),
.external(name: "InfomaniakBugTracker"),
.external(name: "InfomaniakCoreCommonUI"),
.external(name: "InfomaniakCoreDB"),
.external(name: "InfomaniakCoreSwiftUI"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakCreateAccount"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakNotifications"),
.external(name: "InfomaniakOnboarding"),
.external(name: "InfomaniakRichHTMLEditor"),
.external(name: "NavigationBackport"),
.external(name: "Popovers"),
.external(name: "Realm"),
.external(name: "RealmSwift"),
.external(name: "SwiftModalPresentation"),
.external(name: "SwiftRegex"),
.external(name: "SwiftSoup"),
.external(name: "SwiftUIBackports"),
.external(name: "SwiftUIIntrospect"),
.external(name: "VersionChecker"),
.external(name: "WrappingHStack")
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailNotificationServiceExtension",
Expand All @@ -131,9 +178,13 @@ let project = Project(name: "Mail",
sources: "MailNotificationServiceExtension/**",
entitlements: "MailResources/Mail.entitlements",
dependencies: [
.target(name: "MailResources"),
.target(name: "MailCore"),
.external(name: "Realm")
.target(name: "MailResources"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakNotifications"),
.external(name: "RealmSwift")
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailNotificationContentExtension",
Expand All @@ -152,12 +203,33 @@ let project = Project(name: "Mail",
entitlements: "MailNotificationContentExtension/MailNotificationContentExtension.entitlements",
scripts: [Constants.swiftlintScript],
dependencies: [
.target(name: "MailResources"),
.target(name: "MailCore"),
.target(name: "MailCoreUI"),
.external(name: "Realm"),
.target(name: "MailResources"),
.sdk(name: "UserNotifications", type: .framework),
.sdk(name: "UserNotificationsUI", type: .framework)
.sdk(name: "UserNotificationsUI", type: .framework),
.external(name: "InfomaniakBugTracker"),
.external(name: "InfomaniakCoreCommonUI"),
.external(name: "InfomaniakCoreDB"),
.external(name: "InfomaniakCoreSwiftUI"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakCreateAccount"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakNotifications"),
.external(name: "InfomaniakOnboarding"),
.external(name: "InfomaniakRichHTMLEditor"),
.external(name: "NavigationBackport"),
.external(name: "Popovers"),
.external(name: "Realm"),
.external(name: "RealmSwift"),
.external(name: "SwiftModalPresentation"),
.external(name: "SwiftRegex"),
.external(name: "SwiftSoup"),
.external(name: "SwiftUIBackports"),
.external(name: "SwiftUIIntrospect"),
.external(name: "VersionChecker"),
.external(name: "WrappingHStack")
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailAppIntentsExtension",
Expand All @@ -182,7 +254,7 @@ let project = Project(name: "Mail",
entitlements: "MailResources/Mail.entitlements",
dependencies: [
.target(name: "MailCore"),
.external(name: "RealmSwift"),
.external(name: "InfomaniakDI")
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailResources",
Expand Down Expand Up @@ -210,33 +282,35 @@ let project = Project(name: "Mail",
sources: "MailCore/**",
dependencies: [
.target(name: "MailResources"),
.external(name: "Algorithms"),
.external(name: "Alamofire"),
.external(name: "Algorithms"),
.external(name: "Atlantis"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakCoreDB"),
.external(name: "InfomaniakBugTracker"),
.external(name: "InfomaniakConcurrency"),
.external(name: "InfomaniakCoreCommonUI"),
.external(name: "InfomaniakCoreDB"),
.external(name: "InfomaniakCoreSwiftUI"),
.external(name: "InfomaniakCoreUIKit"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakCreateAccount"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakConcurrency"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakNotifications"),
.external(name: "InfomaniakBugTracker"),
.external(name: "InfomaniakCreateAccount"),
.external(name: "InfomaniakRichHTMLEditor"),
.external(name: "NukeUI"),
.external(name: "Nuke"),
.external(name: "RealmSwift"),
.external(name: "Realm"),
.external(name: "SwiftRegex"),
.external(name: "Nuke"),
.external(name: "NukeUI"),
.external(name: "SwiftSoup"),
.external(name: "SnackBar"),
.external(name: "SVGKit"),
.external(name: "Swifter"),
.external(name: "VersionChecker"),
.external(name: "SwiftModalPresentation"),
.external(name: "SVGKit"),
.external(name: "InfomaniakRichHTMLEditor")
.external(name: "SwiftRegex"),
.external(name: "SwiftSoup"),
.external(name: "VersionChecker")
],
settings: .settings(base: Constants.baseSettings)),
settings: .settings(base:
Constants.baseSettings.merging(["OTHER_LDFLAGS": "$(inherited) -ObjC"]))),
.target(name: "MailCoreUI",
destinations: Constants.destinations,
product: .framework,
Expand All @@ -245,15 +319,23 @@ let project = Project(name: "Mail",
infoPlist: "MailCoreUI/Info.plist",
sources: "MailCoreUI/**",
dependencies: [
.target(name: "MailResources"),
.target(name: "MailCore"),
.external(name: "SwiftUIIntrospect-Static"),
.target(name: "MailResources"),
.external(name: "InfomaniakCoreCommonUI"),
.external(name: "InfomaniakCoreSwiftUI"),
.external(name: "InfomaniakCoreUIKit"),
.external(name: "InfomaniakCore"),
.external(name: "InfomaniakDI"),
.external(name: "InfomaniakLogin"),
.external(name: "InfomaniakOnboarding"),
.external(name: "Shimmer"),
.external(name: "WrappingHStack"),
.external(name: "NavigationBackport"),
.external(name: "NukeUI"),
.external(name: "Popovers"),
.external(name: "SwiftUIBackports")
.external(name: "RealmSwift"),
.external(name: "Shimmer"),
.external(name: "SwiftUIBackports"),
.external(name: "SwiftUIIntrospect-Static"),
.external(name: "WrappingHStack")
],
settings: .settings(base: Constants.baseSettings))
],
Expand All @@ -262,6 +344,6 @@ let project = Project(name: "Mail",
shared: true,
buildAction: .buildAction(targets: ["Infomaniak Mail"]),
testAction: .targets(["MailTests", "MailUITests"]),
runAction: .runAction(executable: "Infomaniak Mail")),
runAction: .runAction(executable: "Infomaniak Mail"))
],
fileHeaderTemplate: .file("file-header-template.txt"))
4 changes: 2 additions & 2 deletions Tuist/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Infomaniak/ios-core",
"state" : {
"revision" : "688a8ff5f5dbc213bc4e752db97ed54e8570fc4c",
"version" : "12.3.3"
"branch" : "transitive-dependency",
"revision" : "644120d40013d5c780c8ed83edd61fb5be0d9c90"
}
},
{
Expand Down
Loading

0 comments on commit f1707a7

Please sign in to comment.