Android SDK (Core)

Installation

8min
here you will find step by step instructions to get the android sdk running in your androidstudio project prerequisites to include the sdk, you will need to obtain access to a private github repository please request access by sending your github account information to support\@nativewaves com mailto\ support\@nativewaves com or reach out to your contact person at nativewaves the account will be added to the nativewaves team as external developer and allows you to access the necessary repository please note only one github account per organization is allowed add the sdk to your project the android sdk is distributed using github packages once you have access to the github repository, you can import the sdk using gradle personal access token first create a "personal access token" that will be used by you and your colleagues for authentication on github https //github com/settings/tokens the token must only have the read\ packages permission it is advised to only use the minimal required scope (read\ packages) when creating the token to prevent security issues when sharing the permissions with your colleagues generate personal access token (for the github account shared with nativewaves) go to github accounts > settings > developer settings > and click " generate new token " make sure to select at least the " read\ packages " scope generate token and save it add token to your android project in your root android project, add a local properties or any properties file add your github properties to the file properties user=\<github username> key=\<personal access token> make sure you add the file to your gitignore to not add your credentials to git history! import the sdk from the github packages registry this setup adds the nativewaves maven repository hosted on github packages to the project's repository list the repository, identified by the url https //maven pkg github com/nativewaves/nw exp android packages , is named " githubpackages " within the configuration this repository is associated with the github user or organization nativewaves and is specifically for the nw exp android packages correctly we supports millicast(dolby) and so you have to add the maven repository for millicast the repository, identified by the url https //maven pkg github com/millicast/maven in your application build gradle file add the following gradle allprojects { repositories { // other stuff val propertiesfile = file("local properties") val githubproperties = java util properties() githubproperties load(java io fileinputstream(propertiesfile)) maven { name = "githubpackages" url = uri("https //maven pkg github com/nativewaves/nw exp android packages") credentials { username = githubproperties\["user"] as string? password = githubproperties\["key"] as string? } } maven { name = "githubpackages" url = uri("https //maven pkg github com/millicast/maven") credentials { username = githubproperties\["user"] as string? password = githubproperties\["key"] as string? } } } } } or in settings gradle (for gradle v8 user ) add the following gradle dependencyresolutionmanagement { \ repositories { \ \ val propertiesfile = file("local properties") val githubproperties = java util properties() githubproperties load(java io fileinputstream(propertiesfile)) maven { name = "githubpackages" url = uri("https //maven pkg github com/nativewaves/nw exp android packages") credentials { username = githubproperties\["user"] password = githubproperties\["key"] } } maven { name = "githubpackages" url = uri("https //maven pkg github com/millicast/maven") credentials { username = githubproperties\["user"] password = githubproperties\["key"] } } } } in your app build gradle file add the following line to your dependencies gradle implementation ('com nativewaves\ coresdk $nwcoreversion') change the version number accordingly now you are setup and ready to use the sdk!