Skip to content

Commit

Permalink
Add SwiftPM and Github actions support
Browse files Browse the repository at this point in the history
  • Loading branch information
master-nevi committed Nov 3, 2021
1 parent ea5dd8d commit a481cf8
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Reachability CI"

on:
push:
branches:
- master
pull_request:
branches:
- '*'

jobs:
Pods:
name: Cocoapods Lint (Latest Stable Xcode)
runs-on: macOS-11
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable

- name: Run pod lib lint
run: pod lib lint --fail-fast

SwiftPM:
name: SwiftPM (Latest Stable Xcode)
runs-on: macOS-11
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable

- name: Build
run: swift build
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ build/
*.mode1v3
*.mode2v3

xcuserdata
xcuserdata

# Swift Package Manager
.build/
.swiftpm/
Package.resolved
22 changes: 22 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "Reachability",
platforms: [
.iOS(.v9),
.macOS(.v10_10),
.tvOS(.v9),
],
products: [
.library(
name: "Reachability",
targets: ["Reachability"]),
],
dependencies: [],
targets: [
.target(
name: "Reachability"),
]
)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Reference Status](https://www.versioneye.com/objective-c/reachability/reference_badge.svg?style=flat)](https://www.versioneye.com/objective-c/reachability/references)
[![build-status](https://github.com/tonymillion/Reachability/actions/workflows/CI.yml/badge.svg)](https://github.com/tonymillion/Reachability/actions)

# **WARNING** there have been reports of apps being rejected when Reachability is used in a framework. The only solution to this so far is to rename the class.

Expand Down
2 changes: 1 addition & 1 deletion Reachability.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EOF

Pod::Spec.new do |s|
s.name = 'Reachability'
s.version = '3.2'
s.version = '3.3'
s.summary = 'ARC and GCD Compatible Reachability Class for iOS and OS X. Drop in replacement for Apple Reachability.'

s.homepage = 'https://github.com/tonymillion/Reachability'
Expand Down
1 change: 1 addition & 0 deletions Sources/Reachability/Reachability.m
1 change: 1 addition & 0 deletions Sources/Reachability/include/Reachability.h

0 comments on commit a481cf8

Please sign in to comment.