Skip to content

Commit

Permalink
Merge pull request #10 from Trendyol/improveFastlane
Browse files Browse the repository at this point in the history
Improve fastlane
  • Loading branch information
yusufozgul authored Feb 29, 2024
2 parents 67ef32e + 9d88791 commit a1d0a24
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ iOSInjectionProject/
.DS_Store
.idea
.vscode
fastlaneRunner/.swiftpm/*
13 changes: 11 additions & 2 deletions fastlaneRunner/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/fastlane/fastlane",
"state" : {
"revision" : "c902a9dd2e948f5d71406696125e3c3c04361231",
"version" : "2.217.0"
"revision" : "ebd6dafadac4a6aad4811bb32801af0e1f3ef2df",
"version" : "2.219.0"
}
},
{
"identity" : "ink",
"kind" : "remoteSourceControl",
"location" : "https://github.com/johnsundell/ink.git",
"state" : {
"revision" : "bcc9f219900a62c4210e6db726035d7f03ae757b",
"version" : "0.6.0"
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions fastlaneRunner/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/fastlane/fastlane", from: "2.179.0"),
.package(url: "https://github.com/johnsundell/ink.git", from: "0.6.0"),
],
targets: [
.executableTarget(
name: "fastlaneRunner",
dependencies: [
.product(name: "Ink", package: "ink"),
.product(name: "Fastlane", package: "fastlane"),
]
),
Expand Down
6 changes: 5 additions & 1 deletion fastlaneRunner/Sources/SparkleActions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Fastlane
import Foundation
import Ink

final class SparkleActions {
func updateSparkleChangeLogs() {
Expand Down Expand Up @@ -38,13 +39,16 @@ final class SparkleActions {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"

let parser = MarkdownParser()
let versionDescriptionHTML = parser.html(from: versionDescription)

let appcastItem = """
<item>
<title>Version \(version)</title>
<description>
<![CDATA[
\(versionDescription)
\(versionDescriptionHTML)
]]>
</description>
<pubDate>\(dateFormatter.string(from: Date()))</pubDate>
Expand Down

0 comments on commit a1d0a24

Please sign in to comment.