Native Android
This page describes how to migrate your application from using PinchSDK to preliminary release of Kettle.
Replace repository
- Remove the maven repository
https://fluxloop.jfrog.io/artifactory/pinch
. - Add the maven repository
https://artifacts.kogenta.com/release
.
Replace implementation reference
- Remove
implementation 'com.fluxloop.pinch:pinch-sdk:x.x.x'
. - Add
implementation 'com.kogenta.kettle:kettle-sdk:1.0.0'
.
Replace meta-data in AndroidManifest.xml
- Key
com.fluxloop.pinch.sdk.API_KEY
has been renamed tocom.kogenta.kettle.sdk.API_KEY
. - Key
com.fluxloop.pinch.sdk.PRODUCTION_MODE
has been renamed tocom.kogenta.kettle.sdk.PRODUCTION_MODE
.
Replace imports
- Replace all occurrences of
import com.fluxloop.pinch.sdk.
withimport com.kogenta.kettle.sdk.
. - Replace all occurrences of
import com.fluxloop.pinch.common.
withimport com.kogenta.kettle.common.
.
Replace calls to Pinch
- Replace all occurrences of
Pinch.
withKettle.
. - Replace all occurrences of
PinchMessagingCenter.
withKettleMessagingCenter.
. The actionPINCH
has been replaced withKETTLE
. - Replace all occurrences of
PinchMessage
withKettleMessage
. - Replace all occurrences of
PinchMetrics.
withKettleMetrics.
. - Replace all occurrences of
Pinch.Provider.MOTION
withKettleModule.ACTIVITY
. - Replace all occurrences of
Pinch.Provider.LOCATION
withKettleModule.LOCATION
. - Replace all occurrences of
Pinch.Provider.BLUETOOTH
withKettleModule.BLUETOOTH
. - Replace all occurrences of
Pinch.Consent.
withKettleConsent.
.
Obsolete methods and replacement paths
messagingId
This variable has been removed.
- Use
pushToken
to send your push token to Kettle. - Use
externalId
to send your user identifier to Kettle. - Use
identifier
to retrieve the Kettle ID for the user.
start
- This method can no longer be called without providers.
- This method will no longer collect data unless consent has been given with
grant()
.