Skip to content

Commit ed858fd

Browse files
authored
Merge pull request #9 from Commit451/update-2
Update to Coil 2.0
2 parents 627b02a + 9529cf6 commit ed858fd

32 files changed

+329
-291
lines changed
File renamed without changes.

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Changelog
2+
## [2.0.0] - March 16, 2022
3+
- Updates to support Coil 2.0
24

35
## [1.1.0 - 1.1.2] - January 14, 2022
46
- Add `GrayscaleTransformation` and `BlurTransformation` which are removed from Coil 2.0

README.md

+1-71
Original file line numberDiff line numberDiff line change
@@ -63,77 +63,7 @@ imageView.load("https://www.example.com/image.jpg") {
6363
```
6464

6565
## Preview
66-
Here, you can preview each of the type of filters.
67-
68-
### `com.github.Commit451.coil-transformations:transformations`
69-
- ColorFilterTransformation
70-
71-
![ColorFilterTransformation](preview/images/color-filter.png)
72-
73-
- CropTransformation
74-
75-
![CropTransformation](preview/images/center-crop.png)
76-
77-
- MaskTransformation
78-
79-
![MaskTransformation](preview/images/mask.png)
80-
81-
- SquareCropTransformation
82-
83-
![SquareCropTransformation](preview/images/square-crop.png)
84-
85-
### `com.github.Commit451.coil-transformations:transformations-gpu`
86-
87-
- BrightnessFilterTransformation
88-
89-
![BrightnessFilterTransformation](preview/images/brightness.png)
90-
91-
- ContrastFilterTransformation
92-
93-
![ContrastFilterTransformation](preview/images/contrast.png)
94-
95-
- InvertFilterTransformation
96-
97-
![InvertFilterTransformation](preview/images/invert.png)
98-
99-
- KuwaharaFilterTransformation
100-
101-
![KuwaharaFilterTransformation](preview/images/kuwahara.png)
102-
103-
- PixelationFilterTransformation
104-
105-
![PixelationFilterTransformation](preview/images/pixelation.png)
106-
107-
- SepiaFilterTransformation
108-
109-
![SepiaFilterTransformation](preview/images/sepia.png)
110-
111-
- SketchFilterTransformation
112-
113-
![SketchFilterTransformation](preview/images/sketch.png)
114-
115-
- SwirlFilterTransformation
116-
117-
![SwirlFilterTransformation](preview/images/swirl.png)
118-
119-
- ToonFilterTransformation
120-
121-
![ToonFilterTransformation](preview/images/toon.png)
122-
123-
- VignetteFilterTransformation
124-
125-
![VignetteFilterTransformation](preview/images/vignette.png)
126-
127-
### `com.github.Commit451.coil-transformations:transformations-face-detection`
128-
129-
- CenterOnFaceTransformation
130-
131-
![CenterOnFaceTransformation](preview/images/COF-no-op-and-zero.png)
132-
133-
![CenterOnFaceTransformation](preview/images/COF-20-and-40.png)
134-
135-
![CenterOnFaceTransformation](preview/images/COF-80-and-100.png)
136-
66+
See a preview of the transformations [here](https://github.com/Commit451/coil-transformations/blob/master/preview/preview.md)
13767

13868
## Thanks
13969
Inspired by [Glide Transformations](https://github.com/wasabeef/glide-transformations) by [wasabeef](https://github.com/wasabeef). Thanks of course to [Coil](https://github.com/coil-kt/coil) contributors for making a great image loading library.

build.gradle.kts

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ buildscript {
55
maven("https://plugins.gradle.org/m2/")
66
}
77
dependencies {
8-
classpath("com.android.tools.build:gradle:7.0.4")
9-
classpath("org.jlleitschuh.gradle:ktlint-gradle:9.2.1")
10-
classpath("com.vanniktech:gradle-maven-publish-plugin:0.18.0")
8+
classpath("com.android.tools.build:gradle:7.1.2")
9+
classpath("org.jlleitschuh.gradle:ktlint-gradle:10.2.1")
10+
classpath("com.vanniktech:gradle-maven-publish-plugin:0.19.0")
1111
classpath(kotlin("gradle-plugin", version = "1.6.10"))
1212
}
1313
}
1414

15+
plugins {
16+
id("com.github.ben-manes.versions") version "0.42.0"
17+
}
18+
1519
allprojects {
1620
repositories {
1721
google()

gradle.properties

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ org.gradle.jvmargs=-Xmx4g
44
android.useAndroidX=true
55

66
# Config
7-
minSdk=14
7+
minSdk=21
88
targetSdk=31
9-
coilVersion=1.4.0
9+
coilVersion=2.0.0-rc01
1010

1111
GROUP=com.commit451.coiltransformations
12-
VERSION_NAME=1.1.1
12+
# Overwritten by CI
13+
VERSION_NAME=1.0.0
1314

1415
POM_NAME=Transformations for Coil
1516
POM_DESCRIPTION=Various transformations for Coil

gradle/wrapper/gradle-wrapper.jar

618 Bytes
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)