Skip to content

Commit 8859923

Browse files
committed
Update the Carthage binary support
1 parent ac786ba commit 8859923

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ script:
3232
- set -o pipefail
3333
- mkdir include
3434
- rm -rf rav1e
35-
- git clone -b v0.3.1 --depth 1 https://github.com/xiph/rav1e.git
35+
- git clone -b v0.3.0 --depth 1 https://github.com/xiph/rav1e.git
3636
- cd rav1e
3737
- cbindgen -c cbindgen.toml -l C -o include/rav1e/rav1e.h --crate rav1e .
3838
# macOS
@@ -78,7 +78,7 @@ before_deploy:
7878
# zip
7979
- cd $TRAVIS_BUILD_DIR
8080
- cd Build
81-
- zip -r librav1e.zip Mac/ iOS/
81+
- zip -y -r librav1e.zip Mac/ iOS/
8282

8383
deploy:
8484
provider: releases

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,24 @@ tvOS and watchOS is not supported currently because of Rust language itself, see
2424
librav1e is available through [CocoaPods](https://github.com/CocoaPods/CocoaPods).
2525

2626
```
27-
pod 'librav1e'
27+
pod 'librav1e', '~> 0.3.0'
28+
```
29+
30+
#### Carthage
31+
32+
librav1e is available through [Carthage](https://github.com/Carthage/Carthage).
33+
34+
Carthage dependency is Binary only frameworks, see: [Cartfile Syntax](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md).
35+
36+
You should use the following Cartfile syntax to include the dependency:
37+
38+
```
39+
binary "https://raw.githubusercontent.com/SDWebImage/librav1e-Xcode/master/librav1e.json" ~> 0.3.0
2840
```
2941

3042
### Manual
3143

32-
librav1e repo contains the pre-built binary (.a) and header. You can just drag to your Xcode project to link the binary and use.
44+
librav1e repo contains the pre-built framework in [Release Page](https://github.com/SDWebImage/librav1e-Xcode/releases). You can just download the zip and add framework to your Xcode project and use.
3345

3446
## Usage
3547

librav1e.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"0.3.0": "https://github.com/SDWebImage/librav1e-Xcode/releases/download/0.3.0/librav1e.zip"
3+
}

librav1e.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'librav1e'
11-
s.version = '0.2.0'
11+
s.version = '0.3.0'
1212
s.summary = 'librav1e - The fastest and safest AV1 encoder.'
1313

1414
# This description is used to generate tags and improve search results.

0 commit comments

Comments
 (0)