Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Added support to SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
brennoumobi committed Apr 10, 2020
1 parent 53f8a2b commit 24e621f
Show file tree
Hide file tree
Showing 22 changed files with 366 additions and 210 deletions.
75 changes: 33 additions & 42 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Build generated
build/
DerivedData/
# OS X
.DS_Store

## Various settings
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -12,53 +12,44 @@ DerivedData/
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
# Bundler
.bundle

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
# Pods/

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
Pods
.build
DerivedData
/.previous-build
xcuserdata
.DS_Store
*~
\#*
.\#*
.*.sw[nop]
*.xcscmblueprint
/default.profraw
*.xcodeproj
Utilities/Docker/*.tar.gz
.swiftpm
Package.resolved
/build
*.pyc
38 changes: 17 additions & 21 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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

4 changes: 4 additions & 0 deletions Example/ServiceProvider.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
0C36D52B2440C1770062752A /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C36D52A2440C1770062752A /* Package.swift */; };
4F37D739747FB018A5E2AA96 /* Pods_ServiceProvider_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C286321D1657E7011C8B5C9 /* Pods_ServiceProvider_Tests.framework */; };
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
Expand All @@ -28,6 +29,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
0C36D52A2440C1770062752A /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Package.swift; path = ../Package.swift; sourceTree = "<group>"; };
1949C23199C656A3E6509960 /* Pods-ServiceProvider_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ServiceProvider_Tests.release.xcconfig"; path = "Target Support Files/Pods-ServiceProvider_Tests/Pods-ServiceProvider_Tests.release.xcconfig"; sourceTree = "<group>"; };
1C2546DF388A74D95578F42A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
4C286321D1657E7011C8B5C9 /* Pods_ServiceProvider_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ServiceProvider_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -72,6 +74,7 @@
607FACC71AFB9204008FA782 = {
isa = PBXGroup;
children = (
0C36D52A2440C1770062752A /* Package.swift */,
607FACF51AFB993E008FA782 /* Podspec Metadata */,
607FACD21AFB9204008FA782 /* Example for ServiceProvider */,
607FACE81AFB9204008FA782 /* Tests */,
Expand Down Expand Up @@ -337,6 +340,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0C36D52B2440C1770062752A /* Package.swift in Sources */,
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
);
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019 brennobemoura <brenno@umobi.com.br>
Copyright (c) 2019-Present Umobi - https:github.com/umobi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ServiceProvider",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "ServiceProvider",
targets: ["ServiceProvider"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess", "3.2"..<"4.1.0"),
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.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 which this package depends on.
.target(
name: "ServiceProvider",
dependencies: ["RxSwift", "RxCocoa", "KeychainAccess"]),
.testTarget(
name: "ServiceProviderTests",
dependencies: ["ServiceProvider"]),
]
)
6 changes: 3 additions & 3 deletions ServiceProvider.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'ServiceProvider'
s.version = '1.1.1'
s.version = '1.1.2'
s.summary = 'ServiceProvider keeps your data near from our code'

# This description is used to generate tags and improve search results.
Expand All @@ -34,7 +34,7 @@ DESC

s.source_files = 'ServiceProvider/Classes/**/*'

s.dependency 'RxSwift', '>= 4.5', "<= 5.0"
s.dependency 'RxCocoa', '>= 4.5', "<= 5.0"
s.dependency 'RxSwift', '5.0"
s.dependency 'RxCocoa', '5.0"
s.dependency 'KeychainAccess', ">= 3.2", '<= 4.1.0'
end
54 changes: 0 additions & 54 deletions ServiceProvider/Classes/ServiceKeychain.swift

This file was deleted.

33 changes: 0 additions & 33 deletions ServiceProvider/Classes/ServiceNotification.swift

This file was deleted.

44 changes: 0 additions & 44 deletions ServiceProvider/Classes/ServiceReload.swift

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
//
// Service.swift
// mercadoon
// Copyright (c) 2019-Present Umobi - https://github.com/umobi
//
// Created by brennobemoura on 13/08/19.
// Copyright © 2019 brennobemoura. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

import Foundation
Expand Down
Loading

0 comments on commit 24e621f

Please sign in to comment.