Skip to content

Commit

Permalink
Fixed warnigns when integrated with using swift pm (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
hvge authored Jul 11, 2023
1 parent 6876fa0 commit 9699a74
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## Build generated
build/
DerivedData
.build

## Various settings
*.pbxuser
Expand Down
14 changes: 9 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
// swift-tools-version:5.4
// swift-tools-version:5.7

import PackageDescription

let package = Package(
name: "WultraMobileTokenSDK",
platforms: [
.iOS(.v10)
.iOS(.v11)
],
products: [
.library(name: "WultraMobileTokenSDK", targets: ["WultraMobileTokenSDK"])
],
dependencies: [
.package(name: "PowerAuth2", url: "https://github.com/wultra/powerauth-mobile-sdk-spm.git", .upToNextMinor(from: "1.7.3")),
.package(name: "WultraPowerAuthNetworking", url: "https://github.com/wultra/networking-apple.git", .upToNextMinor(from: "1.1.7"))
.package(url: "https://github.com/wultra/powerauth-mobile-sdk-spm.git", .upToNextMinor(from: "1.7.8")),
.package(url: "https://github.com/wultra/networking-apple.git", .upToNextMinor(from: "1.1.7"))
],
targets: [
.target(
name: "WultraMobileTokenSDK",
dependencies: ["PowerAuth2", .product(name: "PowerAuthCore", package: "PowerAuth2"), "WultraPowerAuthNetworking"],
dependencies: [
.product(name: "PowerAuth2", package: "powerauth-mobile-sdk-spm"),
.product(name: "PowerAuthCore", package: "powerauth-mobile-sdk-spm"),
.product(name: "WultraPowerAuthNetworking", package: "networking-apple")
],
path: "WultraMobileTokenSDK",
exclude: ["ConfigFiles/Config.xcconfig", "ConfigFiles/Debug.xcconfig", "ConfigFiles/Release.xcconfig", "Info.plist", "Podfile"]
)
Expand Down
6 changes: 3 additions & 3 deletions docs/SDK-Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Add `https://github.com/wultra/mtoken-sdk-ios` repository as a package in Xcode
Alternatively, you can add the dependency manually. For example:

```swift
// swift-tools-version:5.4
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "YourLibrary",
platforms: [
.iOS(.v10)
.iOS(.v11)
],
products: [
.library(
Expand All @@ -26,7 +26,7 @@ let package = Package(
),
],
dependencies: [
.package(name: "WultraMobileTokenSDK", url: "https://github.com/wultra/mtoken-sdk-ios.git", .from("1.4.1"))
.package(url: "https://github.com/wultra/mtoken-sdk-ios.git", .from("1.4.1"))
],
targets: [
.target(
Expand Down

0 comments on commit 9699a74

Please sign in to comment.