Adding the Repository
First, add the repository to your project’sbuild.gradle file:
build.gradle
Initialization
After sync, add the SDK to your Application classapiKey is the authentication key needed to start the flow. This information should be provided by Wave.
There are some optional parameters for this method that you can use, such as:
font:the text font to be applied to all text views. You should pass the font res directly, likeR.font.font_nameIf you face any issues, contact our team!
Starting the Usage flow
To use the Home Component Feature, put the XML component in the Activity or Fragment XML:start method in an activity (context should be the activity’s)
Compatibility Issues
There might be some compatibility issues when launching Wave SDK.- Some UI components extend from Google’s Material Components, so if the app’s theme does not extend from
Theme.MaterialComponents, it will crash. A way to solve this could be implementing bridge themes. - Inside app’s theme, it is expected to have
<item name="windowNoTitle">true</item>and<item name="windowActionBar">false</item>