Helpshift Unity SDK X uses legacy android support libraries. If you want to use AndroidX libraries in your application please follow these steps to make Helpshift SDK compatible with AndroidX:
standalone jetifier
tool to manually jetify the Helpshift library files:
<project>/Assets/Plugins/Android/Helpshift.aar
Helpshift.aar
files with the files generated from the standalone jetifier tool.Example:
./jetifier-standalone -i <input path>Helpshift.aar -o <output path>/Helpshift.aar
Resolving AndroidX library dependencies:
Unity Jar Resolver
plugin to resolve support library requirements: Update the <project>/Assets/Helpshift/Editor/HelpshiftDependencies.xml
to use the androidx libraries:
<androidPackages> <androidPackage spec="com.google.android.material:material:1.0.0"> </androidPackage> </androidPackages>
Gradle
to resolve support library requirements:Update dependencies section of the <project>/Assets/Plugins/Android/mainTemplate.gradle
or build.gradle
file to use the androidx libraries as:
dependencies { ... compile 'com.google.android.material:material:1.0.0' ... }
After all these changes, run a clean build of your app and verify all the UI screens work as expected.
If the HelpshiftExampleScript.cs
script is not already attached to the HelpshiftExample.unity
scene, then you need to manually attach it.
Assets/Helpshift/Example/HelpshiftExample.unity
scene in Unity.HelpshiftExampleScript.cs
script to this scene.