Skip to content

Commit ba82748

Browse files
committed
Updated sources
1 parent 1ec4a6c commit ba82748

53 files changed

Lines changed: 643 additions & 975 deletions

Some content is hidden

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

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# GroupDocs.Annotation Cloud SDK for Android
2-
This repository contains GroupDocs.Annotation Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your Android applications on Java language.
32

3+
This repository contains GroupDocs.Annotation Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your Android applications on Java language.
44

55
## Installation
6+
67
Add Internet permission in the AndroidManifest.xml. Example:
8+
79
```xml
810
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<package name>">
911
<uses-permission android:name="android.permission.INTERNET" />
@@ -12,7 +14,8 @@ Add Internet permission in the AndroidManifest.xml. Example:
1214

1315
Add following repository and dependency to your android module's build.gradle
1416
after "apply plugin: 'com.android.application'" section:
15-
```
17+
18+
```gradle
1619
repositories {
1720
maven {
1821
url "https://repository.groupdocs.cloud/repo/"
@@ -22,7 +25,7 @@ repositories {
2225
...
2326
dependencies {
2427
...
25-
implementation 'com.groupdocs:groupdocs-annotation-cloud:19.5'
28+
implementation 'com.groupdocs:groupdocs-annotation-cloud-android:20.10'
2629
}
2730
```
2831

@@ -37,7 +40,7 @@ import com.groupdocs.cloud.annotation.api.InfoApi;
3740

3841

3942
public class ApiExample {
40-
43+
4144
public static void getSupportedFormats() {
4245

4346
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
@@ -53,18 +56,26 @@ public class ApiExample {
5356
for (Format format : response.getFormats()) {
5457
System.out.println(format.getFileFormat());
5558
}
56-
5759
} catch (ApiException e) {
5860
System.err.println("Failed to get supported file formats");
5961
e.printStackTrace();
60-
6162
}
62-
6363
}
6464
}
6565
```
6666

6767
## Licensing
68+
6869
All GroupDocs.Annotation Cloud SDKs are licensed under [MIT License](LICENSE).
6970

70-
[Home](https://www.groupdocs.cloud/) | [Docs](https://docs.groupdocs.cloud/annotation/) | [Demos](https://products.groupdocs.app/annotation/family) | [API Reference](https://apireference.groupdocs.cloud/annotation/) | [Source Code](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android) | [Blog](https://blog.groupdocs.cloud/category/annotation/) | [Free Support](https://forum.groupdocs.cloud/c/annotation) | [Free Trial](https://purchase.groupdocs.cloud/trial)
71+
## Resources
72+
73+
+ [**Website**](https://www.groupdocs.cloud)
74+
+ [**Product Home**](https://products.groupdocs.cloud/annotation)
75+
+ [**Documentation**](https://docs.groupdocs.cloud/annotation/)
76+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
77+
+ [**Blog**](https://blog.groupdocs.cloud/category/annotation)
78+
79+
## Contact Us
80+
81+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/annotation).

pom.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.groupdocs</groupId>
5-
<artifactId>groupdocs-annotation-cloud</artifactId>
5+
<artifactId>groupdocs-annotation-cloud-android</artifactId>
66
<packaging>jar</packaging>
7-
<name>groupdocs-annotation-cloud</name>
8-
<version>19.5</version>
9-
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java</url>
7+
<name>groupdocs-annotation-cloud-android</name>
8+
<version>20.10</version>
9+
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android</url>
1010
<description>Java library for communicating with the GroupDocs.Annotation Cloud API</description>
1111
<scm>
12-
<connection>scm:git:git@github.com:groupdocs-annotation-cloud/groupdocs-annotation-cloud-java.git</connection>
13-
<developerConnection>scm:git:git@github.com:groupdocs-annotation-cloud/groupdocs-annotation-cloud-java.git</developerConnection>
14-
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java</url>
12+
<connection>scm:git:git@github.com:groupdocs-annotation-cloud/groupdocs-annotation-cloud-android.git</connection>
13+
<developerConnection>scm:git:git@github.com:groupdocs-annotation-cloud/groupdocs-annotation-cloud-android.git</developerConnection>
14+
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android</url>
1515
</scm>
1616

1717
<licenses>
1818
<license>
1919
<name>MIT License</name>
20-
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java/blob/master/LICENSE</url>
20+
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android/blob/master/LICENSE</url>
2121
<distribution>repo</distribution>
2222
</license>
2323
</licenses>
@@ -33,9 +33,9 @@
3333

3434
<repositories>
3535
<repository>
36-
<id>maven.aspose.cloud</id>
37-
<name>maven.aspose.cloud</name>
38-
<url>https://repository.aspose.cloud/repo/</url>
36+
<id>maven.groupdocs.cloud</id>
37+
<name>maven.groupdocs.cloud</name>
38+
<url>https://repository.groupdocs.cloud/repo/</url>
3939
</repository>
4040
</repositories>
4141

@@ -183,8 +183,8 @@
183183
<configuration>
184184
<repositoryId>Groupdocs-Cloud-QA</repositoryId>
185185
<url>https://repository-qa.groupdocs.cloud/repo</url>
186-
<file>target/groupdocs-annotation-cloud-${project.version}.jar</file>
187-
<javadoc>target/groupdocs-annotation-cloud-${project.version}-javadoc.jar</javadoc>
186+
<file>target/groupdocs-annotation-cloud-android-${project.version}.jar</file>
187+
<javadoc>target/groupdocs-annotation-cloud-android-${project.version}-javadoc.jar</javadoc>
188188
<pomFile>simplified-pom.xml</pomFile>
189189
<packaging>${project.packaging}</packaging>
190190
</configuration>
@@ -264,8 +264,8 @@
264264
<configuration>
265265
<repositoryId>Groupdocs-Cloud-PROD</repositoryId>
266266
<url>https://repository.groupdocs.cloud/repo</url>
267-
<file>target/groupdocs-annotation-cloud-${project.version}.jar</file>
268-
<javadoc>target/groupdocs-annotation-cloud-${project.version}-javadoc.jar</javadoc>
267+
<file>target/groupdocs-annotation-cloud-android-${project.version}.jar</file>
268+
<javadoc>target/groupdocs-annotation-cloud-android-${project.version}-javadoc.jar</javadoc>
269269
<pomFile>simplified-pom.xml</pomFile>
270270
<packaging>${project.packaging}</packaging>
271271
</configuration>

simplified-pom.template

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.groupdocs</groupId>
7-
<artifactId>groupdocs-annotation-cloud</artifactId>
7+
<artifactId>groupdocs-annotation-cloud-android</artifactId>
88
<version>{VERSION}</version>
99
<packaging>jar</packaging>
1010

11-
<name>groupdocs-annotation-cloud</name>
11+
<name>groupdocs-annotation-cloud-android</name>
1212
<description>Java library for communicating with the GroupDocs.Annotation Cloud API</description>
13-
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java</url>
13+
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android</url>
1414

1515
<licenses>
1616
<license>
@@ -30,9 +30,9 @@
3030

3131
<repositories>
3232
<repository>
33-
<id>maven.aspose.cloud</id>
34-
<name>maven.aspose.cloud</name>
35-
<url>https://repository.aspose.cloud/repo/</url>
33+
<id>maven.groupdocs.cloud</id>
34+
<name>maven.groupdocs.cloud</name>
35+
<url>https://repository.groupdocs.cloud/repo/</url>
3636
</repository>
3737
</repositories>
3838

src/main/java/com/groupdocs/cloud/annotation/api/AnnotateApi.java

Lines changed: 1 addition & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="AnnotateApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -456,130 +456,6 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
456456
apiClient.executeAsync(call, localVarReturnType, callback);
457457
return call;
458458
}
459-
/**
460-
* Build call for getPdf
461-
* @param request The request model
462-
* @param progressListener Progress listener
463-
* @param progressRequestListener Progress request listener
464-
* @return Call to execute
465-
* @throws ApiException If fail to serialize the request body object
466-
*/
467-
public com.squareup.okhttp.Call getPdfCall(GetPdfRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
468-
Object localVarPostBody = null;
469-
470-
// create path and map variables
471-
String localVarPath = "/annotation/pdf";
472-
473-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
474-
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
475-
if (request.getfilePath() != null)
476-
localVarQueryParams.addAll(apiClient.parameterToPair("filePath", request.getfilePath()));
477-
478-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
479-
480-
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
481-
482-
final String[] localVarAccepts = {
483-
"application/json"
484-
};
485-
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
486-
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
487-
488-
final String[] localVarContentTypes = {
489-
"application/json"
490-
};
491-
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
492-
localVarHeaderParams.put("Content-Type", localVarContentType);
493-
494-
if(progressListener != null) {
495-
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
496-
@Override
497-
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
498-
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
499-
return originalResponse.newBuilder()
500-
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
501-
.build();
502-
}
503-
});
504-
}
505-
506-
String[] localVarAuthNames = new String[] { "JWT" };
507-
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
508-
}
509-
510-
@SuppressWarnings("rawtypes")
511-
private com.squareup.okhttp.Call getPdfValidateBeforeCall(GetPdfRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
512-
513-
// verify the required parameter 'filePath' is set
514-
if (request.getfilePath() == null) {
515-
throw new ApiException("Missing the required parameter 'filePath' when calling getPdf(Async)");
516-
}
517-
518-
519-
com.squareup.okhttp.Call call = getPdfCall(request, progressListener, progressRequestListener);
520-
return call;
521-
522-
}
523-
524-
/**
525-
* Retrieves PDF version of document
526-
*
527-
* @param request The request model
528-
* @return File
529-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
530-
*/
531-
public File getPdf(GetPdfRequest request) throws ApiException {
532-
ApiResponse<File> resp = getPdfWithHttpInfo(request);
533-
return resp.getData();
534-
}
535-
536-
/**
537-
* Retrieves PDF version of document
538-
*
539-
* @param request The request model
540-
* @return ApiResponse&lt;File&gt;
541-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
542-
*/
543-
public ApiResponse<File> getPdfWithHttpInfo(GetPdfRequest request) throws ApiException {
544-
com.squareup.okhttp.Call call = getPdfValidateBeforeCall(request, null, null);
545-
Type localVarReturnType = new TypeToken<File>(){}.getType();
546-
return apiClient.execute(call, localVarReturnType);
547-
}
548-
549-
/**
550-
* Retrieves PDF version of document (asynchronously)
551-
*
552-
* @param request The request model
553-
* @param callback The callback to be executed when the API call finishes
554-
* @return The request call
555-
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
556-
*/
557-
public com.squareup.okhttp.Call getPdfAsync(GetPdfRequest request, final ApiCallback<File> callback) throws ApiException {
558-
559-
ProgressResponseBody.ProgressListener progressListener = null;
560-
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
561-
562-
if (callback != null) {
563-
progressListener = new ProgressResponseBody.ProgressListener() {
564-
@Override
565-
public void update(long bytesRead, long contentLength, boolean done) {
566-
callback.onDownloadProgress(bytesRead, contentLength, done);
567-
}
568-
};
569-
570-
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
571-
@Override
572-
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
573-
callback.onUploadProgress(bytesWritten, contentLength, done);
574-
}
575-
};
576-
}
577-
578-
com.squareup.okhttp.Call call = getPdfValidateBeforeCall(request, progressListener, progressRequestListener);
579-
Type localVarReturnType = new TypeToken<File>(){}.getType();
580-
apiClient.executeAsync(call, localVarReturnType, callback);
581-
return call;
582-
}
583459
/**
584460
* Build call for postAnnotations
585461
* @param request The request model

src/main/java/com/groupdocs/cloud/annotation/api/FileApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="FileApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -643,7 +643,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
643643
}
644644

645645
String[] localVarAuthNames = new String[] { "JWT" };
646-
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
646+
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
647647
}
648648

649649
@SuppressWarnings("rawtypes")

src/main/java/com/groupdocs/cloud/annotation/api/FolderApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="FolderApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -257,7 +257,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
257257
}
258258

259259
String[] localVarAuthNames = new String[] { "JWT" };
260-
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
260+
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
261261
}
262262

263263
@SuppressWarnings("rawtypes")

src/main/java/com/groupdocs/cloud/annotation/api/InfoApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="InfoApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/annotation/api/PreviewApi.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="PreviewApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -216,18 +216,18 @@ public com.squareup.okhttp.Call getPagesCall(GetPagesRequest request, final Prog
216216
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
217217
if (request.getfilePath() != null)
218218
localVarQueryParams.addAll(apiClient.parameterToPair("filePath", request.getfilePath()));
219-
if (request.getcountPagesToConvert() != null)
220-
localVarQueryParams.addAll(apiClient.parameterToPair("countPagesToConvert", request.getcountPagesToConvert()));
221-
if (request.getpageNumber() != null)
222-
localVarQueryParams.addAll(apiClient.parameterToPair("pageNumber", request.getpageNumber()));
223219
if (request.getpageNumbersToConvert() != null)
224220
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "pageNumbersToConvert", request.getpageNumbersToConvert()));
221+
if (request.getformat() != null)
222+
localVarQueryParams.addAll(apiClient.parameterToPair("format", request.getformat()));
223+
if (request.getwidth() != null)
224+
localVarQueryParams.addAll(apiClient.parameterToPair("width", request.getwidth()));
225+
if (request.getheight() != null)
226+
localVarQueryParams.addAll(apiClient.parameterToPair("height", request.getheight()));
225227
if (request.getwithoutAnnotations() != null)
226228
localVarQueryParams.addAll(apiClient.parameterToPair("withoutAnnotations", request.getwithoutAnnotations()));
227-
if (request.getenableCaching() != null)
228-
localVarQueryParams.addAll(apiClient.parameterToPair("enableCaching", request.getenableCaching()));
229-
if (request.getcacheStoragePath() != null)
230-
localVarQueryParams.addAll(apiClient.parameterToPair("cacheStoragePath", request.getcacheStoragePath()));
229+
if (request.getrenderComments() != null)
230+
localVarQueryParams.addAll(apiClient.parameterToPair("renderComments", request.getrenderComments()));
231231
if (request.getpassword() != null)
232232
localVarQueryParams.addAll(apiClient.parameterToPair("password", request.getpassword()));
233233

src/main/java/com/groupdocs/cloud/annotation/api/StorageApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="StorageApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)