Fix génération de tag
This commit is contained in:
@@ -90,9 +90,9 @@ enum AnalyticsGenerator {
|
||||
"""
|
||||
// Generated by ResgenSwift.\(Analytics.toolName) \(ResgenSwiftVersion)
|
||||
|
||||
\(Self.getImport())
|
||||
\(Self.getImport(targets: targets))
|
||||
|
||||
\(Self.getAnalyticsProtocol())
|
||||
\(Self.getAnalyticsProtocol(targets: targets))
|
||||
|
||||
\(Self.getTrackerTypeEnum())
|
||||
|
||||
@@ -101,6 +101,8 @@ enum AnalyticsGenerator {
|
||||
class AnalyticsManager {
|
||||
|
||||
static var shared = AnalyticsManager()
|
||||
|
||||
private init() {}
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -108,7 +110,7 @@ enum AnalyticsGenerator {
|
||||
|
||||
\(Self.getEnabledContent())
|
||||
|
||||
\(Self.getAnalyticsProperties())
|
||||
\(Self.getAnalyticsProperties(targets: targets))
|
||||
|
||||
\(Self.getPrivateLogFunction())
|
||||
"""
|
||||
@@ -164,6 +166,8 @@ enum AnalyticsGenerator {
|
||||
private static func getImport(targets: [TrackerType]) -> String {
|
||||
var result: [String] = []
|
||||
|
||||
result.append("import Foundation")
|
||||
|
||||
if targets.contains(TrackerType.matomo) {
|
||||
result.append("import MatomoTracker")
|
||||
}
|
||||
|
@@ -147,7 +147,7 @@ class AnalyticsFileParser {
|
||||
}
|
||||
|
||||
if let parameters {
|
||||
definition.parameters = getParameters(from: parameters)
|
||||
definition.parameters = AnalyticsFileParser.getParameters(from: parameters)
|
||||
}
|
||||
|
||||
return definition
|
||||
|
Reference in New Issue
Block a user