diff --git a/modules/openapi-generator/src/main/resources/android/build.mustache b/modules/openapi-generator/src/main/resources/android/build.mustache
index 1a5ba2185ea..52f3c886112 100644
--- a/modules/openapi-generator/src/main/resources/android/build.mustache
+++ b/modules/openapi-generator/src/main/resources/android/build.mustache
@@ -57,20 +57,8 @@ android {
{{/androidSdkVersion}}
}
compileOptions {
- {{#supportJava6}}
- sourceCompatibility JavaVersion.VERSION_1_6
- targetCompatibility JavaVersion.VERSION_1_6
- {{/supportJava6}}
- {{^supportJava6}}
- {{#java8}}
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
- {{/java8}}
- {{^java8}}
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
- {{/java8}}
- {{/supportJava6}}
}
// Rename the aar correctly
diff --git a/modules/openapi-generator/src/main/resources/android/libraries/volley/build.mustache b/modules/openapi-generator/src/main/resources/android/libraries/volley/build.mustache
index 86933d07155..30ceb9619f7 100644
--- a/modules/openapi-generator/src/main/resources/android/libraries/volley/build.mustache
+++ b/modules/openapi-generator/src/main/resources/android/libraries/volley/build.mustache
@@ -41,20 +41,8 @@ android {
targetSdkVersion 25
}
compileOptions {
- {{#supportJava6}}
- sourceCompatibility JavaVersion.VERSION_1_6
- targetCompatibility JavaVersion.VERSION_1_6
- {{/supportJava6}}
- {{^supportJava6}}
- {{#java8}}
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
- {{/java8}}
- {{^java8}}
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
- {{/java8}}
- {{/supportJava6}}
}
lintOptions {
abortOnError false
diff --git a/modules/openapi-generator/src/main/resources/android/libraries/volley/pom.mustache b/modules/openapi-generator/src/main/resources/android/libraries/volley/pom.mustache
index d0cf3b56e96..bcf9d760766 100644
--- a/modules/openapi-generator/src/main/resources/android/libraries/volley/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/android/libraries/volley/pom.mustache
@@ -45,8 +45,8 @@
maven-compiler-plugin
3.8.1
- {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}
- {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}
+ 1.8
+ 1.8
diff --git a/modules/openapi-generator/src/main/resources/android/pom.mustache b/modules/openapi-generator/src/main/resources/android/pom.mustache
index d47c761c90a..2c6f72e4cf6 100644
--- a/modules/openapi-generator/src/main/resources/android/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/android/pom.mustache
@@ -119,8 +119,8 @@
maven-compiler-plugin
3.6.1
- {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}
- {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}
+ 1.8
+ 1.8
diff --git a/samples/client/petstore/android/httpclient/.openapi-generator/VERSION b/samples/client/petstore/android/httpclient/.openapi-generator/VERSION
index 6555596f931..5f68295fc19 100644
--- a/samples/client/petstore/android/httpclient/.openapi-generator/VERSION
+++ b/samples/client/petstore/android/httpclient/.openapi-generator/VERSION
@@ -1 +1 @@
-5.2.0-SNAPSHOT
\ No newline at end of file
+6.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/android/httpclient/build.gradle b/samples/client/petstore/android/httpclient/build.gradle
index 5f4c815d2ed..4d2c18d8227 100644
--- a/samples/client/petstore/android/httpclient/build.gradle
+++ b/samples/client/petstore/android/httpclient/build.gradle
@@ -31,8 +31,8 @@ android {
targetSdkVersion 25
}
compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
}
// Rename the aar correctly
diff --git a/samples/client/petstore/android/httpclient/git_push.sh b/samples/client/petstore/android/httpclient/git_push.sh
index ced3be2b0c7..f53a75d4fab 100644
--- a/samples/client/petstore/android/httpclient/git_push.sh
+++ b/samples/client/petstore/android/httpclient/git_push.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
-# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
@@ -38,14 +38,14 @@ git add .
git commit -m "$release_note"
# Sets the new remote
-git_remote=`git remote`
+git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
@@ -55,4 +55,3 @@ git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'
-
diff --git a/samples/client/petstore/android/httpclient/pom.xml b/samples/client/petstore/android/httpclient/pom.xml
index f8718b1782c..179c040e510 100644
--- a/samples/client/petstore/android/httpclient/pom.xml
+++ b/samples/client/petstore/android/httpclient/pom.xml
@@ -119,8 +119,8 @@
maven-compiler-plugin
3.6.1
- 1.7
- 1.7
+ 1.8
+ 1.8
diff --git a/samples/client/petstore/android/httpclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/android/httpclient/src/main/java/org/openapitools/client/api/UserApi.java
index c6a854dec57..f0cd2ee0e70 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/org/openapitools/client/api/UserApi.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/org/openapitools/client/api/UserApi.java
@@ -20,6 +20,7 @@ import org.openapitools.client.model.*;
import java.util.*;
+import java.util.Date;
import java.util.*;
import org.openapitools.client.model.User;
diff --git a/samples/client/petstore/android/volley/.openapi-generator/VERSION b/samples/client/petstore/android/volley/.openapi-generator/VERSION
index 6555596f931..5f68295fc19 100644
--- a/samples/client/petstore/android/volley/.openapi-generator/VERSION
+++ b/samples/client/petstore/android/volley/.openapi-generator/VERSION
@@ -1 +1 @@
-5.2.0-SNAPSHOT
\ No newline at end of file
+6.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/android/volley/build.gradle b/samples/client/petstore/android/volley/build.gradle
index afa1d97884d..15a6ef68d26 100644
--- a/samples/client/petstore/android/volley/build.gradle
+++ b/samples/client/petstore/android/volley/build.gradle
@@ -35,8 +35,8 @@ android {
targetSdkVersion 25
}
compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
diff --git a/samples/client/petstore/android/volley/git_push.sh b/samples/client/petstore/android/volley/git_push.sh
index ced3be2b0c7..f53a75d4fab 100644
--- a/samples/client/petstore/android/volley/git_push.sh
+++ b/samples/client/petstore/android/volley/git_push.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
-# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
@@ -38,14 +38,14 @@ git add .
git commit -m "$release_note"
# Sets the new remote
-git_remote=`git remote`
+git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
@@ -55,4 +55,3 @@ git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'
-
diff --git a/samples/client/petstore/android/volley/pom.xml b/samples/client/petstore/android/volley/pom.xml
index 98bff7edf8d..53d3892bb62 100644
--- a/samples/client/petstore/android/volley/pom.xml
+++ b/samples/client/petstore/android/volley/pom.xml
@@ -45,8 +45,8 @@
maven-compiler-plugin
3.8.1
- 1.7
- 1.7
+ 1.8
+ 1.8
diff --git a/samples/client/petstore/android/volley/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/android/volley/src/main/java/org/openapitools/client/api/UserApi.java
index edec8bce95e..8baf3c9367a 100644
--- a/samples/client/petstore/android/volley/src/main/java/org/openapitools/client/api/UserApi.java
+++ b/samples/client/petstore/android/volley/src/main/java/org/openapitools/client/api/UserApi.java
@@ -23,6 +23,7 @@ import java.util.*;
import com.android.volley.Response;
import com.android.volley.VolleyError;
+import java.util.Date;
import java.util.*;
import org.openapitools.client.model.User;