Skip to content

Commit

Permalink
Features/automatic update (#11)
Browse files Browse the repository at this point in the history
* Update to newly built API from GH Run 117

* Update to newly built API from GH Run 121

* Update to newly built API from GH Run 128

* Update to newly built API from GH Run 129

* Update to newly built API from GH Run 134

* Update to newly built API from GH Run 136

* Update to newly built API from GH Run 141

* Update to newly built API from GH Run 143

* Update to newly built API from GH Run 146

* Update to newly built API from GH Run 147

* Update to newly built API from GH Run 148

* Update to newly built API from GH Run 149

* Update to newly built API from GH Run 150

Co-authored-by: OpenApi-Bot <OpenApi-Bot@users.noreply.github.com>
  • Loading branch information
joerghartmann and openapi-bot committed Aug 29, 2022
1 parent 7f0f1fd commit 2abb592
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@

## Working with Xcode

The Swift Package can be opened directly in Xcode. As an alternative, the Package can be also converted into a Xcode project. Open the CumulocityCoreLibrary root directory in your terminal and run the following command:
The Swift Package can be opened directly in Xcode: Double click the package description file and Xcode will open the package.

```groovy
swift package generate-xcodeproj
```

or run the shell script located in the root directory:
To include the Swift Package in your project use the Swift Package Manager. Just simply add this package to your Xcode project using:

```console
sh xcodeproj.sh
```
`Xcode` > `File` > `Swift Packages` > `Add Package Dependency` > `Select your project` > `enter the URL of this repository and choose a branch`
## Usage

Use the public factory to access `API` classes. The factory is available as a singleton and groups `API` classes by category.
Expand Down Expand Up @@ -124,3 +118,15 @@ builder.add(header: "Authorization", value: "")
// or pass userName and password explicitly
builder.set(authorization: "userName", password: "password")
```

## Contribution

If you've spotted something that doesn't work as you'd expect, or if you have a new feature you'd like to add, we're happy to accept contributions and bug reports.

For bug reports, please raise an issue directly in this repository by selecting the `issues` tab and then clicking the `new issue` button. Please ensure that your bug report is as detailed as possible and allows us to reproduce your issue easily.

In the case of new contributions, please create a new branch from the latest version of `main`. When your feature is complete and ready to evaluate, raise a new pull request.

---

These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
14 changes: 5 additions & 9 deletions Sources/CumulocityCoreLibrary/Supplementary/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ public enum Errors: Error {
return response().statusCode
}

public func statusCode() -> Int {
return response().statusCode
}

public func reason() -> Codable? {
switch self {
case .undescribedError(_):
Expand All @@ -45,11 +41,11 @@ public enum Errors: Error {
public extension Subscribers.Completion {

public func error() throws -> Errors? {
if case .failure(let failure) = self {
if case .failure(let failure) = self {
if let error = failure as? Errors {
return error
}
}
return nil
}
}
}
return nil
}
}
1 change: 0 additions & 1 deletion xcodeproj.sh

This file was deleted.

0 comments on commit 2abb592

Please sign in to comment.