Skip to content

Commit

Permalink
Remove cocoapods references
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beard authored and ApoorvKhatreja committed Oct 4, 2024
1 parent ee2948f commit 230da4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 66 deletions.
18 changes: 0 additions & 18 deletions Device.swift.podspec

This file was deleted.

54 changes: 6 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Device.swift

[![Language][lang-image]][lang-url]
[![License][license-image]][license-url]
[![Platform][platform-image]][cocoapod-url]
[![Documentation][docs-image]][docs-url]
[![Pod Version][pod-version-image]][cocoapod-url]
[![Carthage Compatible][carthage-image]][carthage-url]

Super-lightweight library to detect used device

Expand All @@ -17,32 +12,21 @@ var deviceType: DeviceType

## Install

### Carthage
### Swift Package Manager

Add the following to your `Cartfile` and follow [these instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application)
Add the following to your `Package.swift` file:

```bash
github "schickling/Device.swift"
```

### CocoaPods

To integrate `Device` into your project add the following to your `Podfile`:

```ruby
platform :ios, '8.0'
use_frameworks!

pod 'Device.swift'
```swift
dependencies: [
.package(url: "https://github.com/splitwise/device.swift", from: "1.2.3")
]
```

## Usage

```swift
import Device

// Use import Device_swift if you're using Cocoapods

let deviceType = UIDevice.current.deviceType

switch deviceType {
Expand All @@ -52,30 +36,4 @@ switch deviceType {
}
```

## How to make release

- Update pod version in podspec
- Add tag
- Add validate pod `pod trunk push Device.swift.podspec --allow-warnings`
- Push to CocoaPods
- Create release in github for with attached file for carthage

```sh
carthage build --no-skip-current
carthage archive Device
```

Also, check out our [Documentation][docs-url]

[carthage-image]: https://img.shields.io/badge/Carthage-compatible-4BC51D.svg
[docs-image]: https://img.shields.io/cocoapods/metrics/doc-percent/Device.swift.svg
[lang-image]: https://img.shields.io/badge/swift-4.1-orange.svg
[license-image]: https://img.shields.io/github/license/schickling/Device.swift.svg
[platform-image]: https://img.shields.io/cocoapods/p/Device.swift.svg
[pod-version-image]: https://img.shields.io/cocoapods/v/Device.swift.svg
[carthage-url]: https://github.com/Carthage/Carthage
[cocoapod-url]: http://cocoapods.org/pods/Device.swift
[docs-url]: http://cocoadocs.org/docsets/Device.swift
[homepage-url]: https://github.com/schickling/Device.swift.svg
[lang-url]: https://swift.org/
[license-url]: LICENSE

0 comments on commit 230da4d

Please sign in to comment.