Skip to content

Commit d347ea9

Browse files
committed
Bumped version to 1.3.0
1 parent 279004f commit d347ea9

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,33 @@ import libwebp
6969

7070
## About sharpyuv
7171

72-
From libwebp v1.2.3, Google separate some function into a new standalone lib called `sharpyuv`. However, it use source code from libwebp repo's `src`
72+
From libwebp v1.2.3, Google separate some functions into a new standalone lib called `sharpyuv`. However, it dependeny source code from libwebp repo's `src` as implementation. Like llvm-project monorepo, one repo host multiple targets.
7373

74-
For now, we only expose the sharpyuv public headers, but not a standalone CocoaPods/SPM/Carthage Target. In the future we may.
74+
Before v1.3.0, we hide these headers as internal headers.
75+
76+
From v1.3.0, we expose the sharpyuv public headers, but not a standalone CocoaPods/SPM/Carthage Target. (In the future we may consider separate targets)
7577

7678
If you want to use sharpyuv functions, do something like this:
7779

7880
+ Objective-C
81+
7982
```
80-
// This does not supports module include, means no Swift support
83+
// This does not supports module include
84+
#if __has_include(<sharpyuv/sharpyuv.h>)
8185
#import <sharpyuv/sharpyuv.h>
86+
#else
87+
#import <libwebp/sharpyuv.h> // bundled in libwebp's modulemap
88+
#endif
89+
```
90+
91+
+ Swift
92+
93+
```swift
94+
#if canImport(sharpyuv)
95+
import sharpyuv
96+
#else
97+
import libwebp // bundled in libwebp's modulemap
98+
#endif
8299
```
83100

84101
## License

0 commit comments

Comments
 (0)