Add MainActor on AnalysticsManager shared property (#24)
All checks were successful
openium/resgen.swift/pipeline/head This commit looks good
All checks were successful
openium/resgen.swift/pipeline/head This commit looks good
Reviewed-on: #24
This commit was merged in pull request #24.
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -1,6 +1,6 @@
|
||||
library "openiumpipeline"
|
||||
|
||||
env.DEVELOPER_DIR="/Applications/Xcode-26.0.0.app/Contents/Developer"
|
||||
env.DEVELOPER_DIR="/Applications/Xcode-26.2.0.app/Contents/Developer"
|
||||
// env.SIMULATOR_DEVICE_TYPES="iPhone-14-Pro"
|
||||
// env.SLACK_CHANNEL = "prj-skdevkit"
|
||||
env.IS_PACKAGE_SWIFT=1
|
||||
|
||||
@@ -104,6 +104,7 @@ enum AnalyticsGenerator {
|
||||
|
||||
\(visibility) class AnalyticsManager {
|
||||
|
||||
@MainActor
|
||||
\(visibility) static var shared = AnalyticsManager()
|
||||
|
||||
private init() {}
|
||||
|
||||
@@ -16,12 +16,14 @@ struct GenerateOptions: ParsableArguments {
|
||||
@Argument(help: "Configuration file.", transform: { $0.replaceTiltWithHomeDirectoryPath() })
|
||||
var configurationFile: String
|
||||
|
||||
@Option(help: "Project directory. It will be added to every relative path (path that does not start with `/`",
|
||||
@Option(
|
||||
help: "Project directory. It will be added to every relative path (path that does not start with `/`",
|
||||
transform: {
|
||||
if $0.last == "/" {
|
||||
return $0
|
||||
}
|
||||
return $0 + "/"
|
||||
})
|
||||
}
|
||||
)
|
||||
var projectDirectory: String
|
||||
}
|
||||
|
||||
@@ -260,6 +260,7 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
|
||||
internal class AnalyticsManager {
|
||||
|
||||
@MainActor
|
||||
internal static var shared = AnalyticsManager()
|
||||
|
||||
private init() {}
|
||||
@@ -472,6 +473,7 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
|
||||
internal class AnalyticsManager {
|
||||
|
||||
@MainActor
|
||||
internal static var shared = AnalyticsManager()
|
||||
|
||||
private init() {}
|
||||
@@ -692,6 +694,7 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
|
||||
internal class AnalyticsManager {
|
||||
|
||||
@MainActor
|
||||
internal static var shared = AnalyticsManager()
|
||||
|
||||
private init() {}
|
||||
|
||||
Reference in New Issue
Block a user