Latest version: 0.3.2
Gradle setup
To use the Android Wave Sdk, please follow the steps bellow: Add this package cloud repo as a repository to your project’sbuild.gradle
build.gradle
build.gradle as well
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.
Starting the activation flow
To start a feature, use thestart method in an activity (context should be the activity’s)
primaryColor:colors some key views. You should pass the color res directly, likeR.color.bluebackgroundColor:colors the content/background of the screens. You should pass the color res directly, likeR.color.lightGrayfont:the text font to be applied to all text views. You should pass the font res directly, likeR.font.font_nameexternalCode:is the client id. Should be in formatpublicIndentifier:account. If provided, the user is going to be asked to input the IccId’s last digits. If not provided, the user is going to be asked to input the whole code.onPortabilityClick:callback for when the user clicks on the portability card in the success screenonAdditionalLineClick:callback for when the user clicks on the additional line card in the success screenlanguage:By default, the texts in the activation flow follow the device’s language. If this field is set, it will follow the chosen language instead of the device’s. The options are MX, EN, PT and DEFAULT. If you face any issues, contact our team!
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>