Smarty Blog
2019.11.06 - Support for AndroidX
Smarty Unity SDK v1.5.2 is using AndroidX libraries instead of deprecated Android Support libraries.
To make sure everything is working properly please do the following steps:
-
Open Unity Player Settings pane ()
-
Switch to Android tab

-
Under
-
Enable
Custom Gradle Template
-
-
-
-
Open Play Services Resolver Android Settings dialog ()
-
Make sure that the following settings are enabled:
-
Use Gradle Daemon -
Patch mainTemplate.gradle -
Use Jetifier
-
-
2019.04.08 - New way of uploading bot extension
Bot extension uploading has changed:
-
we are migrating to Amazon WebServices and all bot extensions will be uploaded to Amazon S3 soon
-
we’ve created a dedicated Smarty Bot Extension gradle plugin that will help with bot extension uploading
Bot extension project migration guide
-
Make sure you are using IntelliJ IDEA IDE for your bot extension project.
-
Open main
build.graldefile and remove the following dependencies:dependencies { classpath 'org.apache.httpcomponents:httpclient:4.5.5' classpath 'org.apache.httpcomponents:httpmime:4.5.2' classpath 'org.apache.httpcomponents:httpcore:4.4.9' } -
Open
bot-extension/build.gradlefile and remove the following tasks and functions definitionstask deployDevelopmentBotExtension(dependsOn: build) { ... } task deployProductionBotExtension(dependsOn: build) { ... } def uploadExtension(String uri, String userName, String password) { ... } def uploadFile(String uri, String userName, String password, String uriPath, File file) { ... }and all the surrounding now unneeded
importstatements. -
Add smarty plugin repository declaration at the top of
settings.gradlefile:pluginManagement { repositories { maven { url 'https://smarty.lite-games.com/repository/public' } } } -
Declare smarty-bot-extension plugin in
build.gradleplugins { id 'com.litegames.smarty-bot-extension' version '0.0.1' } -
Configure smarty bot extension deployment like below:
smartyBotExtension { deploy { files { extension { src jar.archivePath dst "<<ProjectName>>BotExtension.jar" } } target(com.litegames.smarty.bot.extension.config.api.deploy.AwsTarget) { uri "s3://smarty-bots-repository/<<ProjectShortName>>" accessKey project.properties["<<ProjectShortName>>.botserver.accesskey"] secretKey project.properties["<<ProjectShortName>>.botserver.secretkey"] } } } -
Put deploy target credentials in
~/.gradle/gradle.properties:<<ProjectShortName>>.botserver.accesskey=ACCESSKEY <<ProjectShortName>>.botserver.secretkey=SECRETKEY -
Contact us to receive
deployment uri,accessKeyandsecretKey -
For more insight, check Smarty Alpha Bot Extension example project.
-
You can also check how migration did affect Smarty Alpha Bot Extension example project configuration here
-
-
In case of any problems please check Smarty Bot Extension Plugin Troubleshooting section.