Android Web SDK Installation
Example Project
Jump right in with an example project. To get started, clone and open in Android Studio the example located at https://github.com/alloy-samples/quickstart-app-android
You will need to set up your key and JourneyToken, but the example is preloaded with a template.
Updating dependencyResolutionManagement
We have published the Alloy Android Web SDK as a package on Maven GitHub packages. You will need to modify settings.gradle by adding a GitHub user and personal access token. The package is located at https://maven.pkg.github.com/UseAlloy/alloy-codeless-lite-android

Adding to Existing Project
- Add the co.alloy.codelesssdklite:sdk package as a dependency, in your build.gradle file for your application.

- Next, follow the steps above to add maven as repo source. Updating dependacyResolutionManagement
Now if you build your project the Alloy package should be pulled from Maven and added to your project.
Add to Activity
With the Alloy SDK package in your project, you can now import it into your activity of choice. Be sure to import Alloy and Alloy settings, as these are required to use the SDK.
Note if using the Example Project above, the package is already imported in MainActivity.
import co.alloy.codelesssdklite.Alloy
import co.alloy.codelesssdklite.AlloySettings
Updated 9 months ago