From 7bb9bb702abb447a0f46bb6c1e73aea88f97b1f1 Mon Sep 17 00:00:00 2001 From: Illia Khrypunov Date: Fri, 24 Nov 2023 13:19:43 +0100 Subject: [PATCH 1/2] Added version file to framework project sources --- Framework/PrimerKlarnaSDK.xcodeproj/project.pbxproj | 12 ++++++++++++ .../PrimerKlarnaSDK/Sources/Version/version.swift | 1 + 2 files changed, 13 insertions(+) create mode 100644 Framework/PrimerKlarnaSDK/Sources/Version/version.swift diff --git a/Framework/PrimerKlarnaSDK.xcodeproj/project.pbxproj b/Framework/PrimerKlarnaSDK.xcodeproj/project.pbxproj index bd7b1ff..724b550 100644 --- a/Framework/PrimerKlarnaSDK.xcodeproj/project.pbxproj +++ b/Framework/PrimerKlarnaSDK.xcodeproj/project.pbxproj @@ -15,6 +15,7 @@ 83C0A79E2AF0316A001E3242 /* Date+ToString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83C0A79D2AF0316A001E3242 /* Date+ToString.swift */; }; 83C0A7A02AF0319C001E3242 /* Array+CombinedDescription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83C0A79F2AF0319C001E3242 /* Array+CombinedDescription.swift */; }; 83C0A7A32AF033AB001E3242 /* PrimerKlarnaProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83C0A7A22AF033AB001E3242 /* PrimerKlarnaProvider.swift */; }; + 83C307822B10CC1400E39A5D /* version.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83C307812B10CC1400E39A5D /* version.swift */; }; 83EFDEF22AF2872300C77892 /* KlarnaMobileSDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83EFDEF12AF2872300C77892 /* KlarnaMobileSDK.xcframework */; }; /* End PBXBuildFile section */ @@ -51,6 +52,7 @@ 83C0A79D2AF0316A001E3242 /* Date+ToString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Date+ToString.swift"; sourceTree = ""; }; 83C0A79F2AF0319C001E3242 /* Array+CombinedDescription.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Array+CombinedDescription.swift"; sourceTree = ""; }; 83C0A7A22AF033AB001E3242 /* PrimerKlarnaProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimerKlarnaProvider.swift; sourceTree = ""; }; + 83C307812B10CC1400E39A5D /* version.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = version.swift; sourceTree = ""; }; 83EFDEF12AF2872300C77892 /* KlarnaMobileSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = KlarnaMobileSDK.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -123,6 +125,7 @@ children = ( 83C0A7992AF02BE4001E3242 /* Error */, 83C0A79C2AF03151001E3242 /* Extensions */, + 83C307802B10CC0400E39A5D /* Version */, 83C0A7962AF02B36001E3242 /* ViewController */, 83C0A7A12AF0338F001E3242 /* Provider */, ); @@ -162,6 +165,14 @@ path = Provider; sourceTree = ""; }; + 83C307802B10CC0400E39A5D /* Version */ = { + isa = PBXGroup; + children = ( + 83C307812B10CC1400E39A5D /* version.swift */, + ); + path = Version; + sourceTree = ""; + }; 83EFDEF02AF2870B00C77892 /* Framework */ = { isa = PBXGroup; children = ( @@ -287,6 +298,7 @@ files = ( 83C0A79B2AF02BEE001E3242 /* PrimerKlarnaError.swift in Sources */, 83C0A7A02AF0319C001E3242 /* Array+CombinedDescription.swift in Sources */, + 83C307822B10CC1400E39A5D /* version.swift in Sources */, 83C0A7A32AF033AB001E3242 /* PrimerKlarnaProvider.swift in Sources */, 83C0A7982AF02B5F001E3242 /* PrimerKlarnaViewController.swift in Sources */, 83C0A79E2AF0316A001E3242 /* Date+ToString.swift in Sources */, diff --git a/Framework/PrimerKlarnaSDK/Sources/Version/version.swift b/Framework/PrimerKlarnaSDK/Sources/Version/version.swift new file mode 100644 index 0000000..6f46c30 --- /dev/null +++ b/Framework/PrimerKlarnaSDK/Sources/Version/version.swift @@ -0,0 +1 @@ +let PrimerKlarnaSDKVersion = "1.0.4" From 615c3f137e169ba765488a600c976b196e52a7e9 Mon Sep 17 00:00:00 2001 From: Illia Khrypunov Date: Fri, 24 Nov 2023 13:22:12 +0100 Subject: [PATCH 2/2] Updates for toml file with versions paths --- .cz.toml | 4 ++-- PrimerKlarnaSDK.podspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cz.toml b/.cz.toml index 9edb834..21d6f86 100644 --- a/.cz.toml +++ b/.cz.toml @@ -2,6 +2,6 @@ version_scheme = "semver" version = "1.0.4" version_files = [ - "Sources/PrimerKlarnaSDK/Classes/version.swift:let PrimerKlarnaSDKVersion", - "PrimerKlarnaSDK.podspec:s.version" + "Framework/PrimerKlarnaSDK/Sources/Version/version.swift:let PrimerKlarnaSDKVersion", + "PrimerKlarnaSDK.podspec:spec.version" ] diff --git a/PrimerKlarnaSDK.podspec b/PrimerKlarnaSDK.podspec index 121dee5..071f7ab 100644 --- a/PrimerKlarnaSDK.podspec +++ b/PrimerKlarnaSDK.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |spec| spec.name = "PrimerKlarnaSDK" spec.version = "1.0.4" spec.swift_version = '5.0' - spec.summary = "A wrapper of the KlarnaMobileSDK.." + spec.summary = "A wrapper of the KlarnaMobileSDK." spec.description = "PrimerKlarnaSDK is a wrapper of the KlarnaMobileSDK that exposes its functionality source it can be used within the PrimerSDK as a separate module." spec.homepage = "https://github.com/primer-io/primer-klarna-sdk-ios"