Getting Started
Before You Begin
This SDK is stored in the private maven repo and developed for use with the Cloudike Backend. If you need access, please Contacts Us.
Requirements
- Minimum API level 21 or later.
- Uses Jetpack (AndroidX).
Installation
To enable library in your app, you should add a link to our private repository in the application-level Gradle file (usually app / build.gradle
). Then, add a dependency for the libraries cloudikecontacts
ΠΈ cloudikelog
as shown below:
Initialization
Initialization is performed in two stages.
Stage 1. Initialize library
The best place for the first stage is the method Application.onCreate(). The first step is to initialize the library Logger
.
Lastly, initialize the contacts library using the method ContactManager.initInstance().
If you need to use the custom parameters SSL Socket Factory
and Trust Manager
, use the following guide.
Stage 2. Preparation for work.
After user has logged in, it is necessary to call ContactManager.prepareToWork() for work:
Also, to use the photo cleaner function, you need to call ContactManager.prepareToWork():
Optionally: initialization of the RxJava2 error handler
To log errors that occur in RxJava2, using in Photo SDK, it is advisable to initialize the handler:
Dependencies
Our SDK uses the following dependencies: