Skip to content

Commit c52a294

Browse files
committed
Merge branch 'master' of github.com:cloudinary/cloudinary_java
Conflicts: README.md cloudinary-http42/src/main/java/com/cloudinary/http42/UrlBuilderStrategy.java cloudinary-http42/src/test/java/com/cloudinary/test/ApiTest.java cloudinary-http42/src/test/java/com/cloudinary/test/UploaderTest.java
2 parents 8b9a775 + 0d084b4 commit c52a294

File tree

46 files changed

+2825
-1893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2825
-1893
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
1.1.0 - 2014-11-17 - Support folder listing API. Consolidate Android and Java client libraries. Support signed urls in tag helpers (image and url)
66
1.1.1 - 2014-12-18 - Support secure domain sharding. Don't sign version component. Support url suffix and use root path. Support tags in upload large.
77
1.1.2 - 2015-01-15 - fix support for string eager parameters
8-
1.1.3 - 2015-02-24 - Added timeout parameter to admin api and Fixed test and configuration
8+
1.1.3 - 2015-02-24 - Added timeout parameter to admin api and Fixed test and configuration
9+
1.2.0 - 2015-04-13 - Support httpcomponents 4.4. Support for video tag and transformations. support ftp url upload. support eager_async in explicit. Fix UTF-8 issues in API. Improved parameter support for upload_large.

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ Images are seamlessly delivered through a fast CDN, and much much more.
99

1010
Cloudinary offers comprehensive APIs and administration capabilities and is easy to integrate with any web application, existing or new.
1111

12+
1213
Cloudinary provides URL and HTTP based APIs that can be easily integrated with any Web development framework.
1314

1415
For Java, Cloudinary provides a library for simplifying the integration even further.
1516

16-
**Note:** Starting from version 1.1.0, you should depend on cloudinary-http42 for Java and cloudinary-android for Android. The artifact cloudinary is deprecated.
17+
**Note:** Starting from version 1.1.0, you should depend on cloudinary-http42 for Java and cloudinary-android for Android. The artifact cloudinary is deprecated. From version 1.2.0 cloudinary-http44 is available.
1718

1819
**Note:** This readme intended mainly for Web applications. For **Android** specific instructions, see: https://github.com/cloudinary/cloudinary_java/tree/master/cloudinary-android
1920

@@ -26,12 +27,12 @@ The cloudinary_java library is available in [Maven Central](https://repo1.maven.
2627

2728
<dependency>
2829
<groupId>com.cloudinary</groupId>
29-
<artifactId>cloudinary-http42</artifactId>
30-
<version>1.1.0</version>
30+
<artifactId>cloudinary-http44</artifactId>
31+
<version>1.2.0</version>
3132
</dependency>
3233

33-
Alternatively, download cloudinary_java from [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-core/1.1.0/cloudinary-core-1.1.0.jar) and [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-http42/1.1.0/cloudinary-http42-1.1.0.jar)
34-
and see [pom.xml](https://github.com/cloudinary/cloudinary_java/cloudinary-http42/blob/master/pom.xml) for library dependencies.
34+
Alternatively, download cloudinary_java from [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-core/1.2.0/cloudinary-core-1.2.0.jar) and [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-http44/1.2.0/cloudinary-http44-1.2.0.jar)
35+
and see [pom.xml](https://github.com/cloudinary/cloudinary_java/blob/master/cloudinary-http44/pom.xml) for library dependencies.
3536

3637
## Try it right away
3738

@@ -100,21 +101,21 @@ Any image uploaded to Cloudinary can be transformed and embedded using powerful
100101

101102
The following example generates the url for accessing an uploaded `sample` image while transforming it to fill a 100x150 rectangle:
102103

103-
cloudinary.url().transformation(new Transformation().width(100).height(150).crop("fill")).generate("sample.jpg")
104+
cloudinary.url().transformation(new Transformation().width(100).height(150).crop("fill")).generate("sample.jpg");
104105

105106
Another example, emedding a smaller version of an uploaded image while generating a 90x90 face detection based thumbnail:
106107

107-
cloudinary.url().transformation(new Transformation().width(90).height(90).crop("thumb").gravity("face")).generate("woman.jpg")
108+
cloudinary.url().transformation(new Transformation().width(90).height(90).crop("thumb").gravity("face")).generate("woman.jpg");
108109

109110
You can provide either a Facebook name or a numeric ID of a Facebook profile or a fan page.
110111

111112
Embedding a Facebook profile to match your graphic design is very simple:
112113

113-
cloudinary.url().type("facebook").transformation(new Transformation().width(130).height(130).crop("fill").gravity("north_west")).generate("billclinton.jpg")
114+
cloudinary.url().type("facebook").transformation(new Transformation().width(130).height(130).crop("fill").gravity("north_west")).generate("billclinton.jpg");
114115
115116
Same goes for Twitter:
116117

117-
cloudinary.url().type("twitter_name").generate("billclinton.jpg")
118+
cloudinary.url().type("twitter_name").generate("billclinton.jpg");
118119

119120
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](http://cloudinary.com/documentation/java_image_manipulation) for more information about displaying and transforming images in Java**.
120121

@@ -124,21 +125,21 @@ Assuming you have your Cloudinary configuration parameters defined (`cloud_name`
124125

125126
The following example uploads a local JPG to the cloud:
126127

127-
cloudinary.uploader().upload("my_picture.jpg", ObjectUtils.emptyMap())
128+
cloudinary.uploader().upload("my_picture.jpg", Cloudinary.emptyMap());
128129

129130
The uploaded image is assigned a randomly generated public ID. The image is immediately available for download through a CDN:
130131

131-
cloudinary.url().generate("abcfrmo8zul1mafopawefg.jpg")
132+
cloudinary.url().generate("abcfrmo8zul1mafopawefg.jpg");
132133
133-
http://res.cloudinary.com/demo/image/upload/abcfrmo8zul1mafopawefg.jpg
134+
# http://res.cloudinary.com/demo/image/upload/abcfrmo8zul1mafopawefg.jpg
134135

135136
You can also specify your own public ID:
136137

137-
cloudinary.uploader().upload("http://www.example.com/image.jpg", Cloudinary.asMap("public_id", "sample_remote"))
138+
cloudinary.uploader().upload("http://www.example.com/image.jpg", ObjectUtils.asMap("public_id", "sample_remote"));
138139

139-
cloudinary.url().generate("sample_remote.jpg")
140+
cloudinary.url().generate("sample_remote.jpg");
140141

141-
http://res.cloudinary.com/demo/image/upload/sample_remote.jpg
142+
# http://res.cloudinary.com/demo/image/upload/sample_remote.jpg
142143

143144
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](http://cloudinary.com/documentation/java_image_upload) for plenty more options of uploading to the cloud from your Java code**.
144145

@@ -148,7 +149,7 @@ Returns an html image tag pointing to Cloudinary.
148149

149150
Usage:
150151

151-
cloudinary.url().format("png").transformation(new Transformation().width(100).height(100).crop("fill")).imageTag("sample")
152+
cloudinary.url().format("png").transformation(new Transformation().width(100).height(100).crop("fill")).imageTag("sample");
152153

153154
# <img src='http://res.cloudinary.com/cloud_name/image/upload/c_fill,h_100,w_100/sample.png' height='100' width='100'/>
154155

cloudinary-android-test/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>com.cloudinary</groupId>
77
<artifactId>cloudinary-parent</artifactId>
8-
<version>1.1.4-SNAPSHOT</version>
8+
<version>1.2.1-SNAPSHOT</version>
99
</parent>
1010

1111
<groupId>com.cloudinary</groupId>
1212
<artifactId>cloudinary-android-test</artifactId>
13-
<version>1.1.4-SNAPSHOT</version>
13+
<version>1.2.1-SNAPSHOT</version>
1414
<packaging>apk</packaging>
1515
<name>Cloudinary Android Test Project</name>
1616

@@ -19,7 +19,7 @@
1919
<groupId>com.cloudinary</groupId>
2020
<artifactId>cloudinary-android</artifactId>
2121
<type>jar</type>
22-
<version>1.1.4-SNAPSHOT</version>
22+
<version>1.2.1-SNAPSHOT</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>com.google.android</groupId>

cloudinary-android-test/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
1212

1313
# Project target.
14-
target=android-7
14+
target=android-19
1515
android.library.reference.1=../cloudinary-android

0 commit comments

Comments
 (0)