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_KEYhas been renamed tocom.kogenta.kettle.sdk.API_KEY.
- Key com.fluxloop.pinch.sdk.PRODUCTION_MODEhas 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 actionPINCHhas been replaced withKETTLE.
- Replace all occurrences of PinchMessagewithKettleMessage.
- Replace all occurrences of PinchMetrics.withKettleMetrics..
- Replace all occurrences of Pinch.Provider.MOTIONwithKettleModule.ACTIVITY.
- Replace all occurrences of Pinch.Provider.LOCATIONwithKettleModule.LOCATION.
- Replace all occurrences of Pinch.Provider.BLUETOOTHwithKettleModule.BLUETOOTH.
- Replace all occurrences of Pinch.Consent.withKettleConsent..
Obsolete methods and replacement paths
messagingId
This variable has been removed.
- Use pushTokento send your push token to Kettle.
- Use externalIdto send your user identifier to Kettle.
- Use identifierto 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().