Skip to content

Commit 4c7147c

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 8af8de2 + a1cf882 commit 4c7147c

File tree

11 files changed

+109
-38
lines changed

11 files changed

+109
-38
lines changed

AsposeWordsCloud.podspec

Lines changed: 0 additions & 13 deletions
This file was deleted.

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ node('words-linux') {
6868
else if (needToBuild) {
6969
docker.image('swift:5.0').inside{
7070
stage('build'){
71+
sh "cp ./PackageInternalTesting.swift ./Package.swift"
7172
sh "swift build"
7273
}
7374

Package.swift

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
1-
// swift-tools-version:4.2
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
1+
// swift-tools-version:5.0
32

43
import PackageDescription
54

65
let package = Package(
76
name: "AsposeWordsCloud",
87
products: [
9-
// Products define the executables and libraries produced by a package, and make them visible to other packages.
108
.library(
119
name: "AsposeWordsCloud",
1210
targets: ["AsposeWordsCloud"]),
1311
],
14-
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
.package(url: "https://github.com/allegro/swift-junit.git", from: "1.0.0")
17-
],
12+
dependencies: [],
1813
targets: [
19-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
2114
.target(
2215
name: "AsposeWordsCloud",
2316
dependencies: []),
24-
.testTarget(
25-
name: "AsposeWordsCloudTests",
26-
dependencies: ["AsposeWordsCloud", "SwiftTestReporter"]),
2717
]
2818
)

PackageHealthProdCheck.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
// swift-tools-version:4.2
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
1+
// swift-tools-version:5.0
32

43
import PackageDescription
54

65
let package = Package(
76
name: "AsposeWordsCloudHealthProdCheck",
87
products: [
9-
// Products define the executables and libraries produced by a package, and make them visible to other packages.
108
.library(
119
name: "AsposeWordsCloudHealthProdCheck",
1210
targets: ["AsposeWordsCloudHealthProdCheck"]),
1311
],
1412
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
1613
.package(url: "https://github.com/allegro/swift-junit.git", from: "1.0.0"),
1714
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git", .branch("release"))
1815
],
1916
targets: [
20-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
21-
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
2217
.target(
2318
name: "AsposeWordsCloudHealthProdCheck",
2419
dependencies: []),
2520
.testTarget(
2621
name: "AsposeWordsCloudHealthProdCheckTests",
27-
dependencies: ["AsposeWordsCloud", "AsposeWordsCloudHealthProdCheck", "SwiftTestReporter"]),
22+
dependencies: [
23+
"AsposeWordsCloudHealthProdCheck",
24+
.product(name: "SwiftTestReporter", package: "swift-junit"),
25+
.product(name: "AsposeWordsCloud", package: "aspose-words-cloud-swift"),
26+
],
27+
),
2828
]
2929
)

PackageInternalTesting.swift

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version:5.0
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "AsposeWordsCloud",
7+
products: [
8+
.library(
9+
name: "AsposeWordsCloud",
10+
targets: ["AsposeWordsCloud"]),
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/allegro/swift-junit.git", from: "1.0.0")
14+
],
15+
targets: [
16+
.target(
17+
name: "AsposeWordsCloud",
18+
dependencies: []),
19+
.testTarget(
20+
name: "AsposeWordsCloudTests",
21+
dependencies: [
22+
"AsposeWordsCloud",
23+
.product(name: "SwiftTestReporter", package: "swift-junit"),
24+
]),
25+
]
26+
)
27+

Podfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ This repository contains Aspose.Words Cloud SDK for Swift source code. This SDK
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 25.2
17+
18+
- Added 'IdPrefix' property for HtmlFixedSaveOptionsData and SvgSaveOptionsData class.
19+
20+
1621
## Enhancements in Version 24.12
1722

1823
- Added 'RenderChoiceFormFieldBorder' property for PdfSaveOptionsData class.
@@ -373,7 +378,7 @@ Add link to this repository as dependency to your Package.swift:
373378

374379
dependencies: [
375380
// Dependencies declare other packages that this package depends on.
376-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "25.1"),
381+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git", from: "25.2")
377382
],
378383
targets: [
379384
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -391,7 +396,7 @@ targets: [
391396
Add link to git repository as dependency to your Podfile:
392397

393398
```ruby
394-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '25.1'
399+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '25.2'
395400
```
396401

397402
## Getting Started

Sources/AsposeWordsCloud/Api/ApiInvoker.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727

2828
import Foundation
2929

30+
#if canImport(FoundationNetworking)
31+
import FoundationNetworking
32+
#endif
33+
3034
// Utility class for executing and processing requests to Cloud API
3135
public class ApiInvoker {
3236
// An object containing the configuration for executing API requests

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,6 @@ public class Configuration : Codable {
187187

188188
// Returns SDK version for using in statistics headers
189189
public func getSdkVersion() -> String {
190-
return "25.1";
190+
return "25.2";
191191
}
192192
}

Sources/AsposeWordsCloud/Model/HtmlFixedSaveOptionsData.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
137137
}
138138
}
139139

140+
// Field of idPrefix. Container class for fixed html save options.
141+
private var _idPrefix : String? = nil;
142+
143+
public var idPrefix : String? {
144+
get {
145+
return self._idPrefix;
146+
}
147+
set {
148+
self._idPrefix = newValue;
149+
}
150+
}
151+
140152
// Field of pageHorizontalAlignment. Container class for fixed html save options.
141153
private var _pageHorizontalAlignment : PageHorizontalAlignment? = nil;
142154

@@ -238,6 +250,7 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
238250
case exportEmbeddedImages = "ExportEmbeddedImages";
239251
case exportFormFields = "ExportFormFields";
240252
case fontFormat = "FontFormat";
253+
case idPrefix = "IdPrefix";
241254
case pageHorizontalAlignment = "PageHorizontalAlignment";
242255
case pageMargins = "PageMargins";
243256
case resourcesFolder = "ResourcesFolder";
@@ -264,6 +277,7 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
264277
self.fontFormat = FontFormat(rawValue: raw_fontFormat);
265278
}
266279

280+
self.idPrefix = json["IdPrefix"] as? String;
267281
if let raw_pageHorizontalAlignment = json["PageHorizontalAlignment"] as? String {
268282
self.pageHorizontalAlignment = PageHorizontalAlignment(rawValue: raw_pageHorizontalAlignment);
269283
}
@@ -286,6 +300,7 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
286300
self.exportEmbeddedImages = try container.decodeIfPresent(Bool.self, forKey: .exportEmbeddedImages);
287301
self.exportFormFields = try container.decodeIfPresent(Bool.self, forKey: .exportFormFields);
288302
self.fontFormat = try container.decodeIfPresent(FontFormat.self, forKey: .fontFormat);
303+
self.idPrefix = try container.decodeIfPresent(String.self, forKey: .idPrefix);
289304
self.pageHorizontalAlignment = try container.decodeIfPresent(PageHorizontalAlignment.self, forKey: .pageHorizontalAlignment);
290305
self.pageMargins = try container.decodeIfPresent(Double.self, forKey: .pageMargins);
291306
self.resourcesFolder = try container.decodeIfPresent(String.self, forKey: .resourcesFolder);
@@ -319,6 +334,9 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
319334
if (self.fontFormat != nil) {
320335
try container.encode(self.fontFormat, forKey: .fontFormat);
321336
}
337+
if (self.idPrefix != nil) {
338+
try container.encode(self.idPrefix, forKey: .idPrefix);
339+
}
322340
if (self.pageHorizontalAlignment != nil) {
323341
try container.encode(self.pageHorizontalAlignment, forKey: .pageHorizontalAlignment);
324342
}
@@ -433,6 +451,18 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
433451
}
434452

435453

454+
// Sets idPrefix. Gets or sets a prefix that is prepended to all generated element IDs in the output document. Default value is null and no prefix is prepended. If the prefix is specified, it can contain only letters, digits, underscores, and hyphens, and must start with a letter.
455+
public func setIdPrefix(idPrefix : String?) -> HtmlFixedSaveOptionsData {
456+
self.idPrefix = idPrefix;
457+
return self;
458+
}
459+
460+
// Gets idPrefix. Gets or sets a prefix that is prepended to all generated element IDs in the output document. Default value is null and no prefix is prepended. If the prefix is specified, it can contain only letters, digits, underscores, and hyphens, and must start with a letter.
461+
public func getIdPrefix() -> String? {
462+
return self.idPrefix;
463+
}
464+
465+
436466
// Sets pageHorizontalAlignment. Gets or sets the horizontal alignment of pages in the HTML document. The default value is HtmlFixedHorizontalPageAlignment.Center.
437467
public func setPageHorizontalAlignment(pageHorizontalAlignment : PageHorizontalAlignment?) -> HtmlFixedSaveOptionsData {
438468
self.pageHorizontalAlignment = pageHorizontalAlignment;

0 commit comments

Comments
 (0)