Skip to content

Commit

Permalink
Merge pull request #32 from ricardopereira/release-1.0.0
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
ricardopereira authored Jun 3, 2019
2 parents fce59cf + da9c6a7 commit 74cf06b
Show file tree
Hide file tree
Showing 15 changed files with 340 additions and 55 deletions.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us fix a problem with ColiseuPlayer

---

### Which version of the ColiseuPlayer are you using?
E.g. `1.0.11`

### On which platform does the issue happen?
E.g. `iOS11`

### Are you using Carthage?
If yes, specify the version (`carthage version`)

### Are you using Cocoapods?
If yes, specify the version (`pod --version`)

### Which version of Xcode are you using?
(`xcodebuild -version`)

### What did you do?
Describe the problem.
```
Add a short snippet of code to show the problem
```

### What did you expect to happen?
Describe the expected outcome.

### What happened instead?
Describe what happened instead.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Enhancement request
about: Suggest an enhancement to ColiseuPlayer

---

### Problem description

A description of a problem, workflow or integration that your suggestion would solve. If the problem is OS-specific, include that information here.

### Preferred solution

A description of what changes should be made to ColiseuPlayer to solve the problem.

### Alternatives

A description of any alternative solutions or enhancements considered.

77 changes: 75 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,75 @@
.DS_Store
xcuserdata

# Created by https://www.gitignore.io/api/swift,xcode

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

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

## Obj-C/Swift specific
*.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/
.build/

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno

# 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/

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

# fastlane
#
# 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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
5 changes: 3 additions & 2 deletions ColiseuPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ColiseuPlayer"
s.version = "0.9.1"
s.version = "1.0.0"
s.summary = "Audio Player framework"
s.homepage = "https://github.com/ricardopereira/ColiseuPlayer"
s.license = 'MIT'
Expand All @@ -10,7 +10,8 @@ Pod::Spec.new do |s|

s.platform = :ios, '8.0'
s.requires_arc = true
s.swift_version = '5.0'

s.source_files = 'ColiseuPlayer/*.{h,swift}'
s.frameworks = 'AVFoundation'
end
end
4 changes: 4 additions & 0 deletions ColiseuPlayer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SHARED_BUILD_NUMBER = 2;
SHARED_VERSION_NUMBER = 1.0.0;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
Expand Down Expand Up @@ -356,6 +358,8 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SHARED_BUILD_NUMBER = 2;
SHARED_VERSION_NUMBER = 1.0.0;
SWIFT_COMPILATION_MODE = wholemodule;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
Expand Down
2 changes: 1 addition & 1 deletion ColiseuPlayer/AudioFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AudioFile.swift
// Coliseu
//
// Copyright (c) 2014 Ricardo Pereira (http://ricardopereira.eu)
// Copyright (c) 2019 Ricardo Pereira (https://ricardopereira.eu)
//
// 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
2 changes: 1 addition & 1 deletion ColiseuPlayer/ColiseuPlayer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ColiseuPlayer.h
//
// Copyright (c) 2014 Ricardo Pereira (http://ricardopereira.eu)
// Copyright (c) 2019 Ricardo Pereira (https://ricardopereira.eu)
//
// 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
2 changes: 1 addition & 1 deletion ColiseuPlayer/ColiseuPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ColiseuPlayer.swift
// Coliseu
//
// Copyright (c) 2014 Ricardo Pereira (http://ricardopereira.eu)
// Copyright (c) 2019 Ricardo Pereira (https://ricardopereira.eu)
//
// 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
4 changes: 2 additions & 2 deletions ColiseuPlayer/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9</string>
<string>$(SHARED_VERSION_NUMBER)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>$(SHARED_BUILD_NUMBER)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions ColiseuPlayerTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(SHARED_VERSION_NUMBER)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(SHARED_BUILD_NUMBER)</string>
</dict>
</plist>
104 changes: 61 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,14 @@
ColiseuPlayer is an audio player framework written in Swift, created for [Coliseu](http://ricardopereira.eu) app.
It uses AVFoundation.
# ColiseuPlayer

[![Build Status](https://app.bitrise.io/app/9e385c486e60951f/status.svg?token=NIFH_3JCupMUSYhpOZWkHA&branch=master)](https://app.bitrise.io/app/9e385c486e60951f)
[![Swift 5](https://img.shields.io/badge/Swift-5-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Platforms iOS](https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat)](http://www.apple.com/ios/)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/ColiseuPlayer.svg?style=flat)](http://cocoapods.org/pods/ColiseuPlayer)
[![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)](https://opensource.org/licenses/MIT)

## Requirements

- iOS 8.0+ (not tested on Mac OS X)
- Xcode 7.1+

## Installation

#### <img src="https://raw.githubusercontent.com/ricardopereira/resources/master/img/cocoapods.png" width="24" height="24"> [CocoaPods]

[CocoaPods]: http://cocoapods.org

To install it, simply add the following line to your Podfile:

```ruby
pod 'ColiseuPlayer'
```

You will also need to make sure you're opting into using frameworks:

```ruby
use_frameworks!
```

Then run `pod install` with CocoaPods 0.36 or newer.

#### Manually

ColiseuPlayer in your project requires the following steps:_

1. Add ColiseuPlayer as a [submodule](http://git-scm.com/docs/git-submodule) by opening the Terminal, `cd`-ing into your top-level project directory, and entering the command `git submodule add https://github.com/ricardopereira/coliseu.ios.player.git`
2. Open the `ColiseuPlayer` folder, and drag `ColiseuPlayer.xcodeproj` into the file navigator of your app project.
3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
4. Ensure that the deployment target of ColiseuPlayer.framework matches that of the application target.
5. In the tab bar at the top of that window, open the "Build Phases" panel.
6. Expand the "Link Binary with Libraries" group, and add `ColiseuPlayer.framework`.
7. Click on the `+` button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add `ColiseuPlayer.framework`.

---
ColiseuPlayer is an audio player framework written in Swift, created for [Coliseu](https://ricardopereira.eu) app.
It uses AVFoundation.

## Usage

Expand Down Expand Up @@ -91,11 +59,61 @@ class ViewController: UIViewController, ColiseuPlayerDataSource, ColiseuPlayerDe
return true
}
}
````
```

## Requirements

### Contact
- iOS 8.0+
- Xcode 10.2+

Follow Coliseu on Twitter ([@coliseuapp](https://twitter.com/coliseuapp))
## Installation

#### <img src="https://cloud.githubusercontent.com/assets/432536/5252404/443d64f4-7952-11e4-9d26-fc5cc664cb61.png" width="24" height="24"> [Carthage]

[Carthage]: https://github.com/Carthage/Carthage

To install it, simply add the following line to your **Cartfile**:

```ruby
github "ricardopereira/ColiseuPlayer"
```

Then run `carthage update`.

Follow the current instructions in [Carthage's README][carthage-installation]
for up to date installation instructions.

[carthage-installation]: https://github.com/Carthage/Carthage#adding-frameworks-to-an-application

#### <img src="https://raw.githubusercontent.com/ricardopereira/resources/master/img/cocoapods.png" width="24" height="24"> [CocoaPods]

[CocoaPods]: http://cocoapods.org

To install it, simply add the following line to your Podfile:

```ruby
pod 'ColiseuPlayer'
```

You will also need to make sure you're opting into using frameworks:

```ruby
use_frameworks!
```

Then run `pod install` with CocoaPods 0.36 or newer.

#### Manually

ColiseuPlayer in your project requires the following steps:_

1. Add ColiseuPlayer as a [submodule](http://git-scm.com/docs/git-submodule) by opening the Terminal, `cd`-ing into your top-level project directory, and entering the command `git submodule add https://github.com/ricardopereira/coliseu.ios.player.git`
2. Open the `ColiseuPlayer` folder, and drag `ColiseuPlayer.xcodeproj` into the file navigator of your app project.
3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
4. Ensure that the deployment target of ColiseuPlayer.framework matches that of the application target.
5. In the tab bar at the top of that window, open the "Build Phases" panel.
6. Expand the "Link Binary with Libraries" group, and add `ColiseuPlayer.framework`.
7. Click on the `+` button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add `ColiseuPlayer.framework`.

### Author

Expand Down
Loading

0 comments on commit 74cf06b

Please sign in to comment.