Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Merge next into master #3823

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
0f0adda
Shareded version of ProactiveState
sidmore Mar 26, 2020
f9d20b0
fix PR comments to make ProactiveStateMiddleware Generic
sidmore Mar 27, 2020
f2821b4
fix PR comment to use const string
sidmore Mar 27, 2020
549c78d
All changes for updating VA Template for Enterprise Assistant
sidmore Jun 10, 2020
74de457
Update Hospitality Assistant
sidmore Jun 10, 2020
27d5fb2
Fix luis file multiplication issue (#3483)
Batta32 Jun 22, 2020
5e36e64
Proactive and Feedback Util UT Tests in EnterpriseVA (#3471)
sidmore Jun 22, 2020
f9ee2c7
Add InvokeHandler in VA (#3426)
sidmore Jun 22, 2020
7d6714d
[Typescript] Store the locale in the Activity (#3411)
Batta32 Jun 23, 2020
16146d2
Concat texts for multiturn responses in Interactions table (#3474)
taicchoumsft Jun 23, 2020
7c8aa33
Add Bot identity To TurnState for Getting Token (#3455)
sidmore Jun 23, 2020
8d2f2bc
fix botskills endpoint validation
LCarbonellRod Jun 24, 2020
16e7a80
Update RegEx taking into account official doc
Batta32 Jun 24, 2020
5837bd2
Fix ESLint issues and tests
Batta32 Jun 24, 2020
1fe0c0e
Minor doc fixes pointed out by our community
taicchoumsft Jun 26, 2020
24d1c41
Merge pull request #3494 from microsoft/tachou/minordocfixes
ryanisgrig Jul 6, 2020
7fdb21f
Port PR 3152
Batta32 Jul 7, 2020
d3aa9c7
Fix Nuget build error (#3499)
sidmore Jul 8, 2020
ae1e6d3
Add Microsoft.Bot.Solutions SDK UT (#3493)
sidmore Jul 8, 2020
08fcf3d
Merge pull request #3534 from microsoft/feature/southworks/botskills/…
ryanisgrig Jul 8, 2020
c84a95d
fix link fail issue (#3540)
KayMKM Jul 10, 2020
403496e
Updated to new schemas from SDK
lauren-mills Jul 14, 2020
3955f81
Fix for encoding issue in update script
lauren-mills Jul 14, 2020
4cdd35a
updated default cognitivemodels.json file to reflect required properties
lauren-mills Jul 14, 2020
4fe19f1
add user id in speech config
KayMKM Jul 15, 2020
624357b
Added documentation for adding additional languages
lauren-mills Jul 15, 2020
7cb5d96
Added comment on QnA Maker deployment regions
lauren-mills Jul 15, 2020
acadc4d
Set default value for skill state accessor
lauren-mills Jul 16, 2020
1531c7c
Merge pull request #3557 from microsoft/lamil/deployment_bugfix
lauren-mills Jul 17, 2020
813f4f9
Merge pull request #3555 from microsoft/lamil/manifest_schema_update
lauren-mills Jul 17, 2020
0ae4d1d
update botskills disconnect command description
LCarbonellRod Jul 17, 2020
90f5c7e
Fix typo
LCarbonellRod Jul 17, 2020
02fecbd
Pavolum/add pii logging flag (#3569)
pavolum Jul 20, 2020
16491ac
Add deleted deployment scripts
sidmore Jul 21, 2020
f348087
Fix generator vulnerabilities
LCarbonellRod Jul 22, 2020
0a3331f
Merge pull request #3561 from microsoft/lamil/skill_state_fix
lauren-mills Jul 22, 2020
5c745e7
Merge pull request #3240 from microsoft/user/sidmore/next_ProactiveSh…
lauren-mills Jul 22, 2020
639af9a
fix botskills vulnerabilities
LCarbonellRod Jul 22, 2020
869b577
Update Dialogs folder
Batta32 Jul 23, 2020
d7a27c7
Update FeedbackResponses files
Batta32 Jul 23, 2020
9f07d04
Update Feedback folder
Batta32 Jul 23, 2020
c7927bf
Update Extensions folder
Batta32 Jul 23, 2020
a78b053
Update Skills folder
Batta32 Jul 23, 2020
fdb1b28
Update root files
Batta32 Jul 23, 2020
ee30711
Update Authentication files
Batta32 Jul 23, 2020
7df4413
Update Middleware files
Batta32 Jul 23, 2020
090c120
Update Proactive files
Batta32 Jul 23, 2020
502cab4
Update Responses files
Batta32 Jul 23, 2020
ed8a32a
Update Util files
Batta32 Jul 23, 2020
20b7fb6
Update Test folder
Batta32 Jul 23, 2020
fe16e73
Update deployment folder
Batta32 Jul 23, 2020
d6dc098
Update dialogs folder
Batta32 Jul 23, 2020
e8408a6
Update adapters folder
Batta32 Jul 23, 2020
603e4d7
Update bots folder
Batta32 Jul 23, 2020
8640236
Update services folder
Batta32 Jul 23, 2020
d1f1f32
Update root files and update eslintrc rules
Batta32 Jul 23, 2020
eeba369
Add tokenExchange folder
Batta32 Jul 23, 2020
19256fd
Add utils folder
Batta32 Jul 23, 2020
81d3218
Update tests folder
Batta32 Jul 23, 2020
58eca0e
Replicate to template
Batta32 Jul 23, 2020
0a110e6
Remove defaultActivityHandler as template file
Batta32 Jul 23, 2020
6fdc7ca
Merge pull request #3460 from microsoft/user/sidmore/EnterpriseVATemp…
ryanisgrig Jul 23, 2020
2415451
Merge pull request #3461 from microsoft/user/sidmore/HospitaliltyAssi…
ryanisgrig Jul 23, 2020
b6c5e7d
Remove unused libraries
VictorGrycuk Jul 23, 2020
286e09a
remove unnecessary dependencies from template
VictorGrycuk Jul 23, 2020
514a402
Add changes to dialogs folder
matiasroldan6 Jul 23, 2020
bb4c28d
Add changes to deployment folder
matiasroldan6 Jul 23, 2020
4fa9483
Add changes to services folder
matiasroldan6 Jul 23, 2020
b267707
Add changes to adapters folder
matiasroldan6 Jul 23, 2020
f708089
Add changes to bots folder
matiasroldan6 Jul 23, 2020
12910cd
Add changes to extensions folder
matiasroldan6 Jul 23, 2020
6db611d
Add authentication folder
matiasroldan6 Jul 23, 2020
260d92c
Add changes to src folder
matiasroldan6 Jul 23, 2020
4d6dafa
Add changes to root folder
matiasroldan6 Jul 23, 2020
f8936a2
Add changes to test folder
matiasroldan6 Jul 23, 2020
081dac0
Replicate to template
matiasroldan6 Jul 23, 2020
d24a666
Update PowerBI template to template that has all latest changes and w…
pavolum Jul 30, 2020
7c4f930
Add manifest endpoint to the TypeScript Skill
LCarbonellRod Aug 3, 2020
fb1aad3
Clean up and document the manifest endpoint
LCarbonellRod Aug 3, 2020
ac27880
Fix authentication issue 3573
matiasroldan6 Aug 5, 2020
5f5930c
Fix authentication support
matiasroldan6 Aug 5, 2020
31f3137
Correct locale. Replicate changes in generator template
matiasroldan6 Aug 5, 2020
71ef823
Fix undefined state issue
LCarbonellRod Aug 12, 2020
87ee3b3
Replace AzureBlobTranscriptStore with BlobsTranscriptStore
LCarbonellRod Aug 13, 2020
dd50027
Remove unused reference
LCarbonellRod Aug 13, 2020
1e7aae0
Fix LuisService deprecation issue
LCarbonellRod Aug 13, 2020
2993b9d
update gradle version
KayMKM Aug 17, 2020
efb74d6
add gradlew for event companion app
KayMKM Aug 17, 2020
9bcce35
add gradle wrapper for event companion app
KayMKM Aug 18, 2020
704163d
Add Service classes from Microsoft.Bot.Configuration to Bot-Builder
matiasroldan6 Aug 19, 2020
f662153
Remove System.Obsolete tag
Batta32 Aug 19, 2020
37108c7
Fix issue with dialog context metrics in sample and template
DiegoCardozo94 Aug 21, 2020
0e09312
Merge branch 'next' into feature/southworks/fix-botskills-endpoint-va…
peterinnesmsft Aug 21, 2020
4bd6382
Merge pull request #3486 from microsoft/feature/southworks/fix-botski…
peterinnesmsft Aug 21, 2020
1f72afd
Merge pull request #3566 from southworks/feature/southworks/update-bo…
peterinnesmsft Aug 21, 2020
7f9d3d0
Port PR 3262
Batta32 Jul 7, 2020
f640b2c
Fix test
Batta32 Jul 7, 2020
a7218a8
update gradlew
KayMKM Aug 25, 2020
16591ff
Update --noRefresh description in Botskills command documentation
DiegoCardozo94 Aug 7, 2020
87b8e94
Merge pull request #3609 from southworks/feature/southworks/botskills…
peterinnesmsft Aug 31, 2020
e5ba659
Remove decrypt and encrypt methods
Batta32 Sep 2, 2020
e2289e1
Create the YML for C# Virtual Assistant
Batta32 Sep 3, 2020
247079b
Add the documentation following the steps of the YML
Batta32 Sep 3, 2020
45f1c4a
Improve LU files error message
VictorGrycuk Sep 8, 2020
a525f2d
Add authentication configuration in the Skill
Batta32 Sep 16, 2020
7fb3e38
Add async in validateClaims method
Batta32 Sep 16, 2020
b6b5405
Fixing inverted parameters in TokenExchangeSkillHandler.ts
VictorGrycuk Sep 25, 2020
88ea226
Fix disparities with C# in the tokenExchangeSkillHandler
Batta32 Oct 1, 2020
10c7f57
Clarify luis section in C# Virtual Assistant Sample
Batta32 Oct 13, 2020
cd91d72
Replicate improvements to C# Enterprise Assistant Sample
Batta32 Oct 13, 2020
85f8271
Replicate improvements to C# Hospitality Assistant Sample
Batta32 Oct 13, 2020
b3c2f3e
Replicate improvements to C# Virtual Assistant Template
Batta32 Oct 13, 2020
6665a32
Replicate improvements to C# Skill Sample
Batta32 Oct 13, 2020
9566cb3
Replicate improvements to C# Skill Template
Batta32 Oct 13, 2020
5176a4b
Replicate improvements to TypeScript Virtual Assistant Sample
Batta32 Oct 13, 2020
50db3b9
Replicate improvements to TypeScript Virtual Assistant Template
Batta32 Oct 13, 2020
d3934fc
Replicate improvements to TypeScript Skill Sample
Batta32 Oct 13, 2020
b9cc4f0
Replicate improvements to TypeScript Skill Template
Batta32 Oct 13, 2020
ca9ccf0
Update documentation with the new changes and fix typos
Batta32 Oct 13, 2020
8a07be2
Fix case sensitive issues
VictorGrycuk Oct 15, 2020
14fa549
Replace hardcoded linebreaks with OS specific ones
VictorGrycuk Oct 16, 2020
badad92
Fix sanitizationUtils regex for Linux
VictorGrycuk Oct 16, 2020
b2654d2
Improve luis file creation to avoid lowecasing
VictorGrycuk Oct 16, 2020
8b95e4a
Use join instead of literal directory separator
VictorGrycuk Oct 16, 2020
f187cee
Fix sanitization path util test
VictorGrycuk Oct 16, 2020
3121194
Fix error messages tests, fix luis file casing
VictorGrycuk Oct 16, 2020
6e2373e
Merge pull request #3682 from southworks/feature/southworks/luis-sect…
peterinnesmsft Oct 29, 2020
e19c0a2
Merge branch 'next' into feature/southworks/1.0/va/base
Batta32 Nov 3, 2020
6fad0be
Apply feedback and have consistency between files
Batta32 Nov 3, 2020
b9cea50
Merge pull request #3647 from southworks/feature/southworks/va-functi…
ryanisgrig Nov 9, 2020
4cfbacb
Merge pull request #3558 from microsoft/yuesu/fix_android_speech_user_id
lauren-mills Nov 11, 2020
901ab1b
Fix MS Teams sign in implementation
VictorGrycuk Nov 13, 2020
315cf00
Add OAuthCredentials to MultiProviderAuthDialog
fran893 Nov 24, 2020
9e88118
Fix imports
Batta32 Nov 24, 2020
cec9d65
Remove dialogEx class
matiasroldan6 Dec 10, 2020
ae66be3
Replace DialogEx using JS SDK DialogHelper
matiasroldan6 Dec 10, 2020
a48ebeb
Replace DialogEx using JS SDK DialogHelper
matiasroldan6 Dec 10, 2020
cca7ca9
Delete NuGet.Config
lauren-mills Mar 22, 2021
060ff66
Delete NuGet.Config
lauren-mills Mar 22, 2021
264521c
Merge pull request #3618 from southworks/feature/southworks/fix-luisS…
lauren-mills Jun 2, 2021
5400aef
Merge pull request #3583 from southworks/feature/southworks/1.0/bot-s…
lauren-mills Jun 2, 2021
e17f3be
Merge pull request #3584 from southworks/feature/southworks/1.0/va/base
lauren-mills Jun 2, 2021
27ac38c
Merge pull request #3585 from southworks/feature/southworks/1.0/skill…
lauren-mills Jun 2, 2021
eab95d6
Merge pull request #3580 from southworks/feature/southworks/fix-gener…
lauren-mills Jun 2, 2021
557061f
Merge pull request #3637 from southworks/feature/southworks/botskills…
lauren-mills Jun 2, 2021
cc1a5bf
Merge branch 'next' into feature/southworks/add-blob-package
Batta32 Jun 2, 2021
183aac4
Merge branch 'next' into feature/southworks/add-manifest-endpoint-typ…
Batta32 Jun 2, 2021
1173bdf
Merge branch 'next' into feature/southworks/fix-botskills-linux-tests
Batta32 Jun 2, 2021
c7f93b0
add nuget config back with clear tag
lauren-mills Jun 2, 2021
0c93f15
Delete NuGet.Config
lauren-mills Jun 2, 2021
c6d665e
Merge pull request #3616 from southworks/feature/southworks/add-blob-…
lauren-mills Jun 2, 2021
b733d7c
Merge pull request #3601 from southworks/feature/southworks/add-manif…
lauren-mills Jun 2, 2021
439d55e
Merge pull request #3684 from southworks/feature/southworks/fix-botsk…
lauren-mills Jun 2, 2021
be44c8c
Merge branch 'master' into feature/southworks/deprecation-plan/merge-…
Batta32 Jun 3, 2021
03c5298
[TypeScript] Changes in TypeScript components for deprecation plan
Batta32 Jun 3, 2021
d22a2bb
[C#] Update dependencies and imports
VictorGrycuk Jun 3, 2021
5d08ae0
Moved back to AzureBlobTranscriptStore until sdk update to 4.13
lauren-mills Jun 4, 2021
3cb7733
Merge pull request #3821 from microsoft/lamil/resolveIssues
lauren-mills Jun 4, 2021
5e3a59c
Merge branch 'next' into feature/southworks/deprecation-plan/merge-ma…
Batta32 Jun 4, 2021
af41037
Merge pull request #3820 from southworks/feature/southworks/deprecati…
lauren-mills Jun 4, 2021
3a2095e
fix hospitality
lauren-mills Jun 4, 2021
7e7209e
update package icon path
lauren-mills Jun 4, 2021
76cf157
remove extra packageLicenseURL property
lauren-mills Jun 4, 2021
ac8a060
remove extra package icon property
lauren-mills Jun 4, 2021
2d8f115
remove extra icon pack
lauren-mills Jun 4, 2021
b8ec578
removed extra icon property
lauren-mills Jun 4, 2021
af05245
Merge pull request #3822 from microsoft/lamil/fixTests
lauren-mills Jun 4, 2021
2fd2780
Merge branch 'next' into feature/southworks/deprecation-plan/merge-ne…
Batta32 Jun 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion docs/_docs/overview/virtual-assistant-solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ toc: true

Customers and partners have increasing need to deliver advanced conversational assistant experiences tailored to their brand, personalized to their users, and made available across a broad range of canvases and devices. Continuing Microsoft's open-sourced approach towards the Bot Framework SDK, the open-source Virtual Assistant solution provides you with a set of core foundational capabilities and full control over the end user experience and data.

At its core the [Virtual Assistant]({{site.baseurl}}//overview/virtual-assistant-template) (available in C# and TypeScript) is a project template with the best practices for developing a bot on the Microsoft Azure platform.
At its core, the [Virtual Assistant]({{site.baseurl}}//overview/virtual-assistant-template) (available in C# and TypeScript) is a project template with the best practices for developing a bot on the Microsoft Azure platform.

Common assistant scenarios are provided as reusable conversational skills, increasing developer productivity and enabling a vibrant ecosystem of reusable components. Individual skills can be added to an assistant to enable new scenarios, extending the Virtual Assistant experience with reusable [Bot Framework Skills]({{site.baseurl}}/overview/skills), for example: finding a point of interest, checking off an item on a to-do list, or replying to an email. Skills are fully customizable and consist of language models and responses for multiple languages, dialogs, and code.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ order: 3

## Additional Telemetry

By default, a Virtual Assistant or Skill template based project doesn't collect personally identifiable information (e.g. Conversation drill-down and transcripts) which will lead to the respective sections in the PowerBI dashboard to not show information. If you wish to collect this information make the following change to `Startup.cs`
By default, a Virtual Assistant or Skill template based project collects personally identifiable information (e.g. Conversation drill-down and transcripts) which will lead to the respective sections in the PowerBI dashboard to function as expected. If you wish to not collect this information make the following change to `appsettings.json`

Change this entry:

```csharp
services.AddSingleton<TelemetryLoggerMiddleware>();
"logPersonalInfo": true
```

To the following:

```csharp
services.AddSingleton<TelemetryLoggerMiddleware>(s=>new TelemetryLoggerMiddleware(s.GetService<IBotTelemetryClient>(), true));
"logPersonalInfo": false
```
29 changes: 25 additions & 4 deletions docs/_docs/virtual-assistant/handbook/deployment-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ This script orchestrates the deployment of all Azure Resources and Cognitive Mod
| armLuisAuthoringRegion | The region to deploy LUIS authoring resource in Azure (**only required for Azure Gov deployments**) | No |
| luisEndpoint | The LUIS endpoint for deploying and managing LUIS applications. Required if **createLuisAuthoring** is set to false. | No |
| useGov | Flag indicating if the deployment is targeting the Azure Government Cloud. Defaults to **false**.| No |
| qnaEndpoint | Endpoint for deploying QnA Maker knowledge bases (**only required for Azure Gov deployments**). | No |
| qnaEndpoint | Endpoint for deploying QnA Maker knowledge bases (**only required for Azure Gov deployments. See note below for more information.**). | No |
| languages | Specifies which languages to deploy cognitive models in a comma separated string (e.g. "en-us,de-de,es-es"). Defaults to "en-us". | No |
| projDir | Location to save **appsettings.json** and **cognitivemodels.json** configuration files. Defaults to current directory. | No |
| logFile | Log file for any errors that occur during script execution. Defaults to **Deployment** folder with the name of `deploy_log.txt`.| No |

> Note: QnA Maker requires three Azure resources, a QnA Maker Cognitive Service subscription, an Azure Search resource, and an Azure web app. The Cognitive Service subscription can only be deployed in West US for Azure Commercial deployments, therefore the QnA Maker endpoint will be the same for all regions unless the service is being deployed for Azure Government.

### deploy_cognitive_models.ps1
{:.no_toc}

Expand Down Expand Up @@ -161,9 +163,9 @@ Any of the following parameters in the ARM template can be overridden with your
| contentModeratorName | [name]-cm-[suffix] |
| contentModeratorSku | S0 |
| contentModeratorLocation | Resource group location |
| luisRuntimeName | [name]-luisruntime-[suffix] |
| luisRuntimeSku | S0 |
| luisServiceLocation | Resource group location |
| luisPredictionName | [name]-luisprediction-[suffix] |
| luisPredictionSku | S0 |
| luisPredictionLocation | Resource group location |
| useLuisAuthoring | True |
| luisAuthoringName | [name]-luisauthoring-[suffix] |
| luisAuthoringSku | F0 |
Expand Down Expand Up @@ -400,3 +402,22 @@ If you have an existing LUIS application that you want to use in your Virtual As
// Run LUIS recognition on General model and store result in turn state.
var luisResult = await localizedServices.LuisServices["luis-app-id"].RecognizeAsync<YourLUIS.cs>(innerDc.Context, cancellationToken);
```

## How do I add support for additional languages to my existing Virtual Assistant?
If you would like to add support for additional languages to your existing Virtual Assistant, please refer to the following steps.

1. Run the following command from your project directory. Replace "locale" with one or more of the supported language codes (en-us, it-it, de-de, es-es, fr-fr, or zh-cn). The values for the remaining parameters can be found in appsettings.json after Virtual Assistant deployment.

```
.\Deployment\Scripts\deploy_cognitive_models.ps1 `
-languages "locale" `
-name 'base-name-of-luis-model' `
-resourceGroup 'resouce-group-for-luis-resource' `
-luisAuthoringRegion 'luis-authoring-region' `
-luisAuthoringKey 'luis-authoring-key' `
-luisAccountName 'luis-account-name' `
-luisAccountRegion 'luis-account-region' `
-luisSubscriptionKey 'luis-subscription-key' `
-luisEndpoint 'luis-endpoint' `
-qnaSubscriptionKey 'qna-subscription-key'
```
Binary file modified docs/assets/analytics/virtual-assistant-analytics-sample.pbit
Binary file not shown.
1 change: 1 addition & 0 deletions samples/android/clients/EventCompanion/app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
!**/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Tue Aug 18 14:34:24 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
185 changes: 185 additions & 0 deletions samples/android/clients/EventCompanion/app/gradlew
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
#!/usr/bin/env sh

#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn () {
echo "$*"
}

die () {
echo
echo "$*"
echo
exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`

JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option

if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

exec "$JAVACMD" "$@"
89 changes: 89 additions & 0 deletions samples/android/clients/EventCompanion/app/gradlew.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
2 changes: 1 addition & 1 deletion samples/android/clients/EventCompanion/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Jul 23 10:03:07 CST 2019
#Tue Aug 18 14:34:24 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
Loading