Skip to content

Commit a476493

Browse files
committed
initial support http 4.4
1 parent 51f87f7 commit a476493

File tree

22 files changed

+2107
-1604
lines changed

22 files changed

+2107
-1604
lines changed

cloudinary-core/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
<artifactId>cloudinary-core</artifactId>
1111
<packaging>jar</packaging>
1212

13+
<name>Cloudinary Core Library</name>
14+
1315
</project>

cloudinary-core/src/main/java/com/cloudinary/Cloudinary.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,21 @@
2424
@SuppressWarnings({ "rawtypes", "unchecked" })
2525
public class Cloudinary {
2626

27-
private static List<String> UPLOAD_STRATEGIES = new ArrayList<String>(Arrays.asList("com.cloudinary.android.UploaderStrategy","com.cloudinary.http42.UploaderStrategy","com.cloudinary.http43.UploaderStrategy"));
28-
private static List<String> API_STRATEGIES = new ArrayList<String>(Arrays.asList( "com.cloudinary.android.ApiStrategy", "com.cloudinary.http42.ApiStrategy", "com.cloudinary.http43.ApiStrategy" ));
29-
private static List<String> URLBUILDER_STRATEGIES = new ArrayList<String>(Arrays.asList( "com.cloudinary.android.UrlBuilderStrategy", "com.cloudinary.http42.UrlBuilderStrategy", "com.cloudinary.http43.UrlBuilderStrategy" ));
27+
private static List<String> UPLOAD_STRATEGIES = new ArrayList<String>(Arrays.asList(
28+
"com.cloudinary.android.UploaderStrategy",
29+
"com.cloudinary.http42.UploaderStrategy",
30+
"com.cloudinary.http43.UploaderStrategy",
31+
"com.cloudinary.http44.UploaderStrategy"));
32+
private static List<String> API_STRATEGIES = new ArrayList<String>(Arrays.asList(
33+
"com.cloudinary.android.ApiStrategy",
34+
"com.cloudinary.http42.ApiStrategy",
35+
"com.cloudinary.http43.ApiStrategy",
36+
"com.cloudinary.http44.ApiStrategy" ));
37+
private static List<String> URLBUILDER_STRATEGIES = new ArrayList<String>(Arrays.asList(
38+
"com.cloudinary.android.UrlBuilderStrategy",
39+
"com.cloudinary.http42.UrlBuilderStrategy",
40+
"com.cloudinary.http43.UrlBuilderStrategy",
41+
"com.cloudinary.http44.UrlBuilderStrategy" ));
3042

3143
public final static String CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
3244
public final static String OLD_AKAMAI_SHARED_CDN = "cloudinary-a.akamaihd.net";

cloudinary-http42/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<name>Cloudinary Apache HTTP 4.2 Library</name>
1414
<dependencies>
15+
1516
<dependency>
1617
<groupId>com.cloudinary</groupId>
1718
<artifactId>cloudinary-core</artifactId>
@@ -37,6 +38,11 @@
3738
<artifactId>httpmime</artifactId>
3839
<version>4.2.1</version>
3940
</dependency>
40-
41+
<dependency>
42+
<groupId>com.cloudinary</groupId>
43+
<artifactId>cloudinary-test-common</artifactId>
44+
<version>${project.version}</version>
45+
<scope>test</scope>
46+
</dependency>
4147
</dependencies>
4248
</project>

0 commit comments

Comments
 (0)