Skip to content

Commit

Permalink
Prepare the package file
Browse files Browse the repository at this point in the history
Check if platform used UIKit or iOS
  • Loading branch information
jamalalayq committed Apr 9, 2020
1 parent ad1e852 commit 6dad894
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Package.swift
Expand Up @@ -5,24 +5,25 @@ import PackageDescription

let package = Package(
name: "IImagePicker",
platforms: [
.iOS(.v10)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "IImagePicker",
targets: ["IImagePicker"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
type: .dynamic,
targets: ["IImagePicker"]
),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "IImagePicker",
dependencies: []),
path: "Sources"
),
.testTarget(
name: "IImagePickerTests",
dependencies: ["IImagePicker"]),
]
dependencies: ["IImagePicker"]
),
],
swiftLanguageVersions: [.v5]
)
2 changes: 2 additions & 0 deletions Sources/IImagePicker/IImagePicker.swift
@@ -1,8 +1,10 @@
// swiftlint:disable all
// IIImagePicker.swift

#if os(iOS)
import UIKit
import MobileCoreServices
#endif
import AVFoundation

public typealias IImagePickerDelegate = UIImagePickerControllerDelegate & UINavigationControllerDelegate
Expand Down
2 changes: 2 additions & 0 deletions Sources/IImagePicker/IResource.swift
Expand Up @@ -5,7 +5,9 @@
// Created by Jamal alayq on 9/29/19.
//

#if os(iOS)
import UIKit
#endif

public struct IResource {
public let name: String
Expand Down
2 changes: 2 additions & 0 deletions Sources/IImagePicker/Tuning.swift
Expand Up @@ -2,7 +2,9 @@
// Tuning.swift
// Created by Jamal alayq on 9/29/19.

#if os(iOS)
import UIKit
#endif

/// In order to define picking mode
///
Expand Down

0 comments on commit 6dad894

Please sign in to comment.