Fix forgotten code
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
Loris Perret 2023-12-05 17:09:24 +01:00
parent ce274219fc
commit 5fd680110c
2 changed files with 42 additions and 15 deletions

View File

@ -1,20 +1,53 @@
// Generated by ResgenSwift.Strings.Tags 1.2 // Generated by ResgenSwift.Tags 1.2
import UIKit import UIKit
// MARK: - Protocol
protocol AnalyticsManager {
func logScreen(name: String, path: String)
func logEvent(name: String)
}
// MARK: - Matomo
class MatomoAnalyticsManager: AnalyticsManager {
func logScreen(name: String, path: String) {
}
func logEvent(name: String) {
}
}
// MARK: - Firebase
class FirebaseAnalyticsManager: AnalyticsManager {
func logScreen(name: String, path: String) {
}
func logEvent(name: String) {
}
}
extension Tags { extension Tags {
// MARK: - Properties
let managers: [AnalyticsManager] = [MatomoAnalyticsManager(), FirebaseAnalyticsManager()]
// MARK: - ScreenTag // MARK: - ScreenTag
/// Translation in ium : func logEcranUn() {
/// Ecran un managers.forEach { manager in
var screen_one: String { manager.logScreen(name: name, path: path)
"Ecran un" }
} }
/// Translation in ium : func logEcranDeux() {
/// Ecran deux managers.forEach { manager in
var screen_two: String { manager.logEvent(name: name)
"Ecran deux" }
} }
} }

View File

@ -12,12 +12,6 @@ import CoreVideo
class TagsGenerator { class TagsGenerator {
static func writeExtensionFiles(sections: [TagSection], target: String, tags: [String], staticVar: Bool, extensionName: String, extensionFilePath: String) { static func writeExtensionFiles(sections: [TagSection], target: String, tags: [String], staticVar: Bool, extensionName: String, extensionFilePath: String) {
// Get target type from enum // Get target type from enum
target.split(separator: " ").forEach { target in
Tags.TargetType.allCases.forEach { value in
}
}
let targetsString: [String] = target.components(separatedBy: " ") let targetsString: [String] = target.components(separatedBy: " ")
var targets: [Tags.TargetType] = [] var targets: [Tags.TargetType] = []