Skip to content

Commit

Permalink
Merge pull request #12 from appunite/0.1.0
Browse files Browse the repository at this point in the history
0.1.0
  • Loading branch information
lewandowskit93 authored Jan 24, 2020
2 parents e90aec6 + bee6023 commit 13bb075
Show file tree
Hide file tree
Showing 18 changed files with 682 additions and 148 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: swift
osx_image: xcode11.3

env:
global:
- WORKSPACE='Spy.xcworkspace'
- IOS_DESTINATION='platform=iOS Simulator,OS=12.4,name=iPhone X'
- TVOS_DESTINATION='platform=tvOS Simulator,name=Apple TV'
- MACOS_DESTINATION='platform=OS X'
- WATCHOS_DESTINATION='platform=watchOS Simulator,OS=6.1.1,name=Apple Watch Series 5 - 44mm'
- IOS_SCHEME='Spy_iOS'
- TVOS_SCHEME='Spy_tvOS'
- MACOS_SCHEME='Spy_macOS'
- WATCHOS_SCHEME='Spy_watchOS'


before_install:
- make bundler
- brew update
- bundle install
- brew outdated xctool || brew upgrade xctool
- bundle exec pod install

script:
- set -o pipefail
- swift --version
- xcodebuild clean build test -workspace "$WORKSPACE" -scheme "$IOS_SCHEME" -destination "$IOS_DESTINATION" | xcpretty
- xcodebuild clean build test -workspace "$WORKSPACE" -scheme "$TVOS_SCHEME" -destination "$TVOS_DESTINATION" | xcpretty
- xcodebuild clean build test -workspace "$WORKSPACE" -scheme "$MACOS_SCHEME" -destination "$MACOS_DESTINATION" | xcpretty
- xcodebuild clean build -workspace "$WORKSPACE" -scheme "$WATCHOS_SCHEME" -destination "$WATCHOS_DESTINATION" | xcpretty
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.0]
- Add .travis.yml for CI support
- Fix support for package manager

## [0.0.4]
- Add carthage support
- Boost code coverage
Expand Down
2 changes: 1 addition & 1 deletion Configurations/Common.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SPY_BUNDLE_IDENTIFIER = com.appunite.spy
SPY_PROVISIONING_PROFILE_SPECIFIER =

VERSIONING_SYSTEM = apple-generic
PRODUCT_VERSION = 0.0.4
PRODUCT_VERSION = 0.1.0
SWIFT_VERSION = 5.0
CODE_SIGN_STYLE = Manual

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let package = Package(
path: "Spy"),
.testTarget(
name: "SpyTests",
dependencies: ["SpyTests"],
dependencies: ["Spy"],
path: "SpyTests")
]
)
32 changes: 30 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,38 @@ target 'Spy_macOS' do

# Pods for Spy

target 'SpyTests' do
target 'SpyTests_macOS' do
# Pods for testing
inherit! :search_paths
pod 'Sourcery'
end

end
end

target 'Spy_iOS' do
platform :ios, '8.0'
pod 'SwiftLint'

# Pods for Spy

target 'SpyTests_iOS' do
# Pods for testing
inherit! :search_paths
pod 'Sourcery'
end

end

target 'Spy_tvOS' do
platform :tvos, '10.10'
pod 'SwiftLint'

# Pods for Spy

target 'SpyTests_tvOS' do
# Pods for testing
inherit! :search_paths
pod 'Sourcery'
end

end
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ SPEC CHECKSUMS:
Sourcery: 3ed61be7c8a1218fce349266139379dba477efe0
SwiftLint: 8f5d2f903e1c9bcbc832fd16771e80a263ac6cbb

PODFILE CHECKSUM: 8a7ec5bf9bdbc12b85d4e5d30878fd4da0887ad4
PODFILE CHECKSUM: db7bc737175b0c28873d85dd9a60575acfc2ca06

COCOAPODS: 1.8.4
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[![Build Status](https://travis-ci.org/appunite/Spy.svg?branch=master)](https://travis-ci.org/appunite/Spy)
[![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Cocoapods](https://img.shields.io/cocoapods/v/Spy.svg?style=flat)](https://cocoapods.org/pods/Spy)
[![Platform](https://img.shields.io/cocoapods/p/Spy.svg?style=flat)](https://cocoapods.org/pods/Spy)
[![License](https://img.shields.io/cocoapods/l/Spy.svg?style=flat)](https://cocoapods.org/pods/Spy)


Spy is a flexible, lightweight, multiplatform logging utility written in pure Swift. It allows to log with different levels and on different channels. You can define what levels and channels actually are.

## Requirements
Expand Down Expand Up @@ -40,9 +47,31 @@ github "appunite/Spy"

To install Spy using **Swift Package Manager** go through following steps:

1. Add following package dependency in you **Package.swift** ``` .package(url: "https://github.com/appunite/Spy.git", from: "0.0.4") ```
1. Add following package dependency in you **Package.swift** ``` .package(url: "https://github.com/appunite/Spy.git", from: "0.1.0") ```
2. Add following tatget dependency in your **Package.swift** ``` dependencies: ["Spy"]) ```

For instance this is how it might look like:
```swift
import PackageDescription

let package = Package(
name: "YourLibrary",
products: [
.library(
name: "YourLibrary",
targets: ["YourLibrary"])
],
dependencies: [
.package(url: "https://github.com/appunite/Spy.git", from: "0.1.0")
],
targets: [
.target(
name: "YourLibrary",
dependencies: ["Spy"])
]
)
```

## Overview

Here is a quick overview of functionalities and concepts used in **Spy**.
Expand Down Expand Up @@ -129,7 +158,7 @@ public extension Environment {

And here is how you could use Spy:
```swift
Environment.spy.log(level: .info, channel: .foo, message: "initialized")
Environment.spy.log(level: .info, channel: .foo, message: "Hello Spy")
```

For more detailed example please see the source code.
Expand Down
2 changes: 1 addition & 1 deletion Spy.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Spy"
spec.version = "0.0.4"
spec.version = "0.1.0"
spec.summary = "Spy is a flexible, lightweight, multiplatform logging utility written in pure Swift."
spec.homepage = "https://github.com/appunite/Spy"
spec.license = { :type => "MIT", :file => "LICENSE.md" }
Expand Down
Loading

0 comments on commit 13bb075

Please sign in to comment.