Skip to content

Commit 2dfb2b4

Browse files
committed
Release Aspose.Cells Cloud SDK 22.7
1 parent ecb9e3a commit 2dfb2b4

19 files changed

+869
-168
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Android Cloud SDK wraps Aspose.Cells Cloud API. The SDK enhances your Android ap
2121
- Leverage the power of named ranges.
2222

2323

24-
## Feature & Enhancements in Version 22.6
24+
## Feature & Enhancements in Version 22.7
2525

26-
- Improve save as api.
27-
- Improve clear objects api.
26+
- Add 4 kinds of Save Option.
27+
- Add the checkExcelRestriction parameter for multiple APIs.
2828

2929

3030
## Read & Write Spreadsheet Formats

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = 'com.aspose'
2-
project.version = '22.6'
2+
project.version = '22.7'
33

44
buildscript {
55
repositories {

src/androidTest/java/com/aspose/cloud/cells/api/CellsApiUtil.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
public class CellsApiUtil {
1515
private static String grantType = "client_credentials";
16-
private static String clientId = System.getenv("CellsCloudClientId");//"";
17-
private static String clientSecret = System.getenv("CellsCloudClientSecret");//"";
16+
private static String clientId = "";
17+
private static String clientSecret = "";
1818
private static String sourceFolder ="/sdcard/Download/TestData/";
1919
public static String GetSourceFolder() {
2020
return sourceFolder;
@@ -32,7 +32,7 @@ public static String GetAPIVersion() {
3232
return "v3.0";
3333
}
3434
public static String GetBaseUrl() {
35-
return System.getenv("CellsCloudApiBaseUrl");
35+
return "https://api.aspose.cloud/";
3636
}
3737
public static void Upload(CellsApi cellsApi,String folder ,String filename)throws ApiException {
3838
File file = new File(sourceFolder + filename);

src/androidTest/java/com/aspose/cloud/cells/api/CellsAssembleApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void cellsPostAssembleApiTest() throws ApiException {
7474
HashMap<String,File> fileMap = new HashMap<String,File>();
7575
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
7676
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
77-
FilesResult response = api.postAssemble(fileMap, "ds","xlsx");
77+
FilesResult response = api.postAssemble(fileMap, "ds","xlsx",null);
7878

7979
// TODO: test validations
8080
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsClearObjectsApiTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void cellsPostClearObjectsApiTest() throws ApiException {
7474
HashMap<String,File> fileMap = new HashMap<String,File>();
7575
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
7676
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
77-
FilesResult response = api.postClearObjects(fileMap, "chart",null,null);
77+
FilesResult response = api.postClearObjects(fileMap, "chart",null,null,null);
7878

7979
// TODO: test validations
8080
}
@@ -85,7 +85,7 @@ public void cellsPostClearObjectsApiOnlySheetTest() throws ApiException {
8585
HashMap<String,File> fileMap = new HashMap<String,File>();
8686
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
8787
fileMap.put(BOOK1 ,CellsApiUtil.GetFileHolder(BOOK1) );
88-
FilesResult response = api.postClearObjects(fileMap, "chart","Sheet1",null);
88+
FilesResult response = api.postClearObjects(fileMap, "chart","Sheet1",null,null);
8989

9090
// TODO: test validations
9191
}
@@ -95,7 +95,7 @@ public void cellsPostClearObjectsApiOutPdfTest() throws ApiException {
9595
HashMap<String,File> fileMap = new HashMap<String,File>();
9696
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
9797
fileMap.put(BOOK1 ,CellsApiUtil.GetFileHolder(BOOK1) );
98-
FilesResult response = api.postClearObjects(fileMap, "chart","Sheet1","pdf");
98+
FilesResult response = api.postClearObjects(fileMap, "chart","Sheet1","pdf",null);
9999

100100
// TODO: test validations
101101
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsCompressApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void cellsPostCompressApiTest() throws ApiException {
7474
HashMap<String,File> fileMap = new HashMap<String,File>();
7575
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
7676
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
77-
FilesResult response = api.postCompress(fileMap, 88);
77+
FilesResult response = api.postCompress(fileMap, 88,null);
7878

7979
// TODO: test validations
8080
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsExportApiTest.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void cellsPostExportApiTest_chart() throws ApiException {
6666
HashMap<String,File> fileMap = new HashMap<String,File>();
6767
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
6868
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
69-
FilesResult response = api.postExport(fileMap, "chart","png",null);
69+
FilesResult response = api.postExport(fileMap, "chart","png",null,null);
7070

7171
}
7272

@@ -77,15 +77,15 @@ public void cellsPostExportApiTest_shape() throws ApiException {
7777
HashMap<String,File> fileMap = new HashMap<String,File>();
7878
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
7979
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
80-
FilesResult response = api.postExport(fileMap, "shape","png",null);
80+
FilesResult response = api.postExport(fileMap, "shape","png",null,null);
8181
}
8282
@Test
8383
public void cellsPostExportApiTest_picture() throws ApiException {
8484

8585
HashMap<String,File> fileMap = new HashMap<String,File>();
8686
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
8787
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
88-
FilesResult response = api.postExport(fileMap, "picture","png",null);
88+
FilesResult response = api.postExport(fileMap, "picture","png",null,null);
8989
}
9090

9191
@Test
@@ -94,7 +94,7 @@ public void cellsPostExportApiTest_listobject() throws ApiException {
9494
HashMap<String,File> fileMap = new HashMap<String,File>();
9595
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
9696
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
97-
FilesResult response = api.postExport(fileMap, "listobject","png",null);
97+
FilesResult response = api.postExport(fileMap, "listobject","png",null,null);
9898
}
9999

100100
@Test
@@ -103,7 +103,7 @@ public void cellsPostExportApiTest_oleobject() throws ApiException {
103103
HashMap<String,File> fileMap = new HashMap<String,File>();
104104
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
105105
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
106-
FilesResult response = api.postExport(fileMap, "oleobject","png",null);
106+
FilesResult response = api.postExport(fileMap, "oleobject","png",null,null);
107107
}
108108

109109
@Test
@@ -112,7 +112,7 @@ public void cellsPostExportApiTest_worksheet() throws ApiException {
112112
HashMap<String,File> fileMap = new HashMap<String,File>();
113113
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
114114
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
115-
FilesResult response = api.postExport(fileMap, "sheet","png",null);
115+
FilesResult response = api.postExport(fileMap, "sheet","png",null,null);
116116
}
117117

118118
@Test
@@ -121,7 +121,7 @@ public void cellsPostExportApiTest_workbook() throws ApiException {
121121
HashMap<String,File> fileMap = new HashMap<String,File>();
122122
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
123123
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
124-
FilesResult response = api.postExport(fileMap, "workbook","png",null);
124+
FilesResult response = api.postExport(fileMap, "workbook","png",null,null);
125125
}
126126

127127
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsMergeApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void cellsPostMergeApiTest() throws ApiException {
7474
HashMap<String,File> fileMap = new HashMap<String,File>();
7575
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
7676
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
77-
FileInfo response = api.postMerge(fileMap,"png",true);
77+
FileInfo response = api.postMerge(fileMap,"png",true,null);
7878

7979
// TODO: test validations
8080
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsMetadataApiTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void cellsGetMetadataApiTest() throws ApiException {
6969
HashMap<String,File> fileMap = new HashMap<String,File>();
7070
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
7171
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
72-
List<CellsDocumentProperty> response = api.getMetadata(fileMap, "ALL");
72+
List<CellsDocumentProperty> response = api.getMetadata(fileMap, "ALL",null);
7373

7474
// TODO: test validations
7575
}
@@ -79,7 +79,7 @@ public void cellsdeleteMetadataApiTest() throws ApiException {
7979
HashMap<String,File> fileMap = new HashMap<String,File>();
8080
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
8181
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
82-
FilesResult response = api.deleteMetadata(fileMap, "ALL");
82+
FilesResult response = api.deleteMetadata(fileMap, "ALL",null);
8383

8484
// TODO: test validations
8585
}
@@ -96,7 +96,7 @@ public void cellsUpdateMetadataApiTest() throws ApiException {
9696
cellsDocumentProperty.setName ( "test");
9797
cellsDocumentProperty.setValue ( "test");
9898
cellsDocumentProperties.add(cellsDocumentProperty);
99-
FilesResult response = api.postMetadata(fileMap, cellsDocumentProperties);
99+
FilesResult response = api.postMetadata(fileMap, cellsDocumentProperties,null);
100100

101101
// TODO: test validations
102102
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsReplaceApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void cellsPostRepleaceApiTest() throws ApiException {
6767
HashMap<String,File> fileMap = new HashMap<String,File>();
6868
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
6969
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
70-
FilesResult response = api.postReplace(fileMap,"1","aspose.cells cloud",null,null);
70+
FilesResult response = api.postReplace(fileMap,"1","aspose.cells cloud",null,null,null);
7171

7272
// TODO: test validations
7373
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsReverseApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void cellsPostReverseApiTest() throws ApiException {
6767
HashMap<String,File> fileMap = new HashMap<String,File>();
6868
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
6969
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
70-
FilesResult response = api.postReverse(fileMap,"row","pdf");
70+
FilesResult response = api.postReverse(fileMap,"row","pdf",null);
7171

7272
// TODO: test validations
7373
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsSearchApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void cellsPostProtectApiTest() throws ApiException {
6767
HashMap<String,File> fileMap = new HashMap<String,File>();
6868
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
6969
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
70-
api.postSearch(fileMap,"123456",null,null);
70+
api.postSearch(fileMap,"123456",null,null,null);
7171

7272
// TODO: test validations
7373
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsSplitApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void cellsPostProtectApiTest() throws ApiException {
6767
HashMap<String,File> fileMap = new HashMap<String,File>();
6868
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
6969
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
70-
FilesResult response = api.postSplit(fileMap,"xlsx",null,null,null);
70+
FilesResult response = api.postSplit(fileMap,"xlsx",null,null,null,null);
7171

7272
// TODO: test validations
7373
}

src/androidTest/java/com/aspose/cloud/cells/api/CellsWatermarkApiTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void cellsPostWatermarkApiTest() throws ApiException {
6868
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
6969
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
7070

71-
FilesResult response = api.postWatermark(fileMap,"123456","#fff");
71+
FilesResult response = api.postWatermark(fileMap,"123456","#fff",null);
7272

7373
// TODO: test validations
7474
}

0 commit comments

Comments
 (0)