customerio / customerio-android

This is the official Customer.io SDK for Android.
MIT License
13 stars 9 forks source link

chore: initialize data pipeline module #312

Closed mrehan27 closed 5 months ago

mrehan27 commented 5 months ago

part of MBL-243

Changes

Example Usage

After the changes, the SDK can be initialized with data pipeline module using the following code:

import io.customer.android.sdk.CustomerIO
import io.customer.datapipelines.Builder

with(CustomerIO.Builder(applicationContext = this, cdpApiKey = "API_KEY")) {
    setLogLevel(CioLogLevel.DEBUG)
    addCustomerIOModule(ModuleMessagingInApp())
    addCustomerIOModule(ModuleMessagingPushFCM())
    build()
}

Note

There are currently multiple classes for CustomerIO and CustomerIOInstance. This is to allow adding new code without breaking the existing tests and builds. Once we remove the dependency of older implementation of these classes, we can move newly added classes to desired package. The change will be smaller as it only needs package and import updates, but will allow us keeping both implementations side by side while we are adding new features.

github-actions[bot] commented 5 months ago
# Sample app builds 📱 Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request. --- * java_layout: `rehan/mbl-243-cdp-module (1714468727)` * kotlin_compose: `rehan/mbl-243-cdp-module (1714468724)`
codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 53.86%. Comparing base (48c64c9) to head (dac4022). Report is 7 commits behind head on feature/cdp.

:exclamation: Current head dac4022 differs from pull request most recent head f74b53d. Consider uploading reports for the commit f74b53d to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## feature/cdp #312 +/- ## ================================================= - Coverage 54.45% 53.86% -0.60% + Complexity 282 277 -5 ================================================= Files 109 106 -3 Lines 2534 2499 -35 Branches 355 348 -7 ================================================= - Hits 1380 1346 -34 + Misses 1032 1031 -1 Partials 122 122 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 5 months ago

Build available to test Version: rehan-mbl-243-cdp-module-SNAPSHOT Repository: https://s01.oss.sonatype.org/content/repositories/snapshots/

github-actions[bot] commented 5 months ago

📏 SDK Binary Size Comparison Report

No changes detected in SDK binary size ✅