Skip to content

Commit

Permalink
Merge pull request #2 from emirhanacisu/feature/add-spm
Browse files Browse the repository at this point in the history
add swift pm
  • Loading branch information
aslanmehmetsalih authored Dec 9, 2021
2 parents d33de0a + 98d8f29 commit 6b1e8d1
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MobilliumUserDefaults.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '9.0'
s.swift_version = '5.0'

s.source_files = 'MobilliumUserDefaults/Classes/**/*'
s.source_files = 'Sources/MobilliumUserDefaults/Classes/**/*'
end
34 changes: 34 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "MobilliumUserDefaults",
platforms: [
.iOS(.v9)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "MobilliumUserDefaults",
targets: ["MobilliumUserDefaults"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
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 this package depends on.
.target(
name: "MobilliumUserDefaults",
dependencies: []),
.testTarget(
name: "MobilliumUserDefaultsTests",
dependencies: ["MobilliumUserDefaults"]),
],
swiftLanguageVersions: [
.v5
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions Tests/MobilliumUserDefaultsTests/MobilliumUserDefaultsTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import XCTest
@testable import MobilliumUserDefaults

final class MobilliumUserDefaultsTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
}
}

0 comments on commit 6b1e8d1

Please sign in to comment.