Skip to content

Commit b258fa4

Browse files
committed
update clients
1 parent 183a2de commit b258fa4

File tree

6,512 files changed

+348630
-230229
lines changed

Some content is hidden

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

6,512 files changed

+348630
-230229
lines changed

android/.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
7.3.0

android/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
<dependency>
2929
<groupId>com.spoonacular</groupId>
3030
<artifactId>android-client</artifactId>
31-
<version>1.1</version>
31+
<version>1.1.1</version>
3232
<scope>compile</scope>
3333
</dependency>
3434
```
@@ -38,7 +38,7 @@ Add this dependency to your project's POM:
3838
Add this dependency to your project's build file:
3939

4040
```groovy
41-
compile "com.spoonacular:android-client:1.1"
41+
compile "com.spoonacular:android-client:1.1.1"
4242
```
4343

4444
### Others
@@ -49,7 +49,7 @@ At first generate the JAR by executing:
4949

5050
Then manually install the following JARs:
5151

52-
- target/android-client-1.1.jar
52+
- target/android-client-1.1.1.jar
5353
- target/lib/*.jar
5454

5555
## Getting Started

android/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = 'com.spoonacular'
2-
project.version = '1.1'
2+
project.version = '1.1.1'
33

44
buildscript {
55
repositories {
@@ -58,8 +58,8 @@ android {
5858

5959
ext {
6060
swagger_annotations_version = "1.6.6"
61-
gson_version = "2.8.9"
62-
httpmime_version = "4.5.13"
61+
gson_version = "2.10.1"
62+
httpmime_version = "4.5.14"
6363
volley_version = "1.2.1"
6464
junit_version = "4.13.2"
6565
robolectric_version = "4.5.1"
@@ -81,9 +81,9 @@ afterEvaluate {
8181
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
8282
task.description = "Create jar artifact for ${variant.name}"
8383
task.dependsOn variant.javaCompile
84-
task.from variant.javaCompile.destinationDir
85-
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
86-
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
84+
task.from variant.javaCompile.destinationDirectory
85+
task.destinationDirectory = project.file("${project.buildDir}/outputs/jar")
86+
task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar"
8787
artifacts.add('archives', task);
8888
}
8989
}

android/docs/MenuItemsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Name | Type | Description | Notes
310310
**maxProtein** | **BigDecimal**| The maximum amount of protein in grams the menu item can have. | [optional] [default to null]
311311
**minFat** | **BigDecimal**| The minimum amount of fat in grams the menu item must have. | [optional] [default to null]
312312
**maxFat** | **BigDecimal**| The maximum amount of fat in grams the menu item can have. | [optional] [default to null]
313-
**addMenuItemInformation** | **Boolean**| If set to true, you get more information about the menu items returned. | [optional] [default to null] [enum: false, true]
313+
**addMenuItemInformation** | **Boolean**| If set to true, you get more information about the menu items returned. | [optional] [default to null]
314314
**offset** | **Integer**| The number of results to skip (between 0 and 900). | [optional] [default to null]
315315
**number** | **Integer**| The maximum number of items to return (between 1 and 100). Defaults to 10. | [optional] [default to 10]
316316

android/docs/ProductsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ Name | Type | Description | Notes
456456
**maxProtein** | **BigDecimal**| The maximum amount of protein in grams the product can have. | [optional] [default to null]
457457
**minFat** | **BigDecimal**| The minimum amount of fat in grams the product must have. | [optional] [default to null]
458458
**maxFat** | **BigDecimal**| The maximum amount of fat in grams the product can have. | [optional] [default to null]
459-
**addProductInformation** | **Boolean**| If set to true, you get more information about the products returned. | [optional] [default to null] [enum: false, true]
459+
**addProductInformation** | **Boolean**| If set to true, you get more information about the products returned. | [optional] [default to null]
460460
**offset** | **Integer**| The number of results to skip (between 0 and 900). | [optional] [default to null]
461461
**number** | **Integer**| The maximum number of items to return (between 1 and 100). Defaults to 10. | [optional] [default to 10]
462462

android/docs/RecipesApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ try {
890890
Name | Type | Description | Notes
891891
------------- | ------------- | ------------- | -------------
892892
**id** | **Integer**| The item&#39;s id. | [default to null]
893-
**normalize** | **Boolean**| Normalize to the strongest taste. | [optional] [default to true] [enum: false, true]
893+
**normalize** | **Boolean**| Normalize to the strongest taste. | [optional] [default to true]
894894

895895
### Return type
896896

@@ -2355,7 +2355,7 @@ try {
23552355
Name | Type | Description | Notes
23562356
------------- | ------------- | ------------- | -------------
23572357
**id** | **Integer**| The item&#39;s id. | [default to null]
2358-
**normalize** | **Boolean**| Whether to normalize to the strongest taste. | [optional] [default to true] [enum: true, false]
2358+
**normalize** | **Boolean**| Whether to normalize to the strongest taste. | [optional] [default to true]
23592359
**rgb** | **String**| Red, green, blue values for the chart color. | [optional] [default to null]
23602360

23612361
### Return type

android/git_push.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
1414
fi
1515

1616
if [ "$git_user_id" = "" ]; then
17-
git_user_id="GIT_USER_ID"
17+
git_user_id="ddsky"
1818
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
1919
fi
2020

2121
if [ "$git_repo_id" = "" ]; then
22-
git_repo_id="GIT_REPO_ID"
22+
git_repo_id="spoonacular-api-clients/tree/main/android/"
2323
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
2424
fi
2525

android/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.spoonacular</groupId>
66
<artifactId>android-client</artifactId>
7-
<version>1.1</version>
7+
<version>1.1.1</version>
88
<dependencies>
99
<dependency>
1010
<groupId>io.swagger</groupId>
@@ -54,8 +54,8 @@
5454
<properties>
5555
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5656
<swagger-annotations-version>1.6.6</swagger-annotations-version>
57-
<httpcomponents-httpmime-version>4.5.13</httpcomponents-httpmime-version>
58-
<google-code-gson-version>2.8.9</google-code-gson-version>
57+
<httpcomponents-httpmime-version>4.5.14</httpcomponents-httpmime-version>
58+
<google-code-gson-version>2.10.1</google-code-gson-version>
5959
<volley-library-version>1.2.1</volley-library-version>
6060
<android-platform-version>4.1.1.4</android-platform-version>
6161
</properties>

android/src/main/java/com/spoonacular/client/ApiException.java

+8
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,12 @@ public String getMessage() {
5858
public void setMessage(String message) {
5959
this.message = message;
6060
}
61+
62+
@Override
63+
public String toString() {
64+
return "ApiException{" +
65+
"code=" + code +
66+
", message=" + message +
67+
'}';
68+
}
6169
}

android/src/main/java/com/spoonacular/client/ApiInvoker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public static void initializeInstance(Cache cache) {
199199

200200
public static void initializeInstance(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery, int connectionTimeout) {
201201
INSTANCE = new ApiInvoker(cache, network, threadPoolSize, delivery, connectionTimeout);
202-
setUserAgent("OpenAPI-Generator/1.1/android");
202+
setUserAgent("OpenAPI-Generator/1.1.1/android");
203203

204204
// Setup authentications (key: authentication name, value: authentication).
205205
INSTANCE.authentications = new HashMap<String, Authentication>();

0 commit comments

Comments
 (0)