In v2.3.0 we added the Connect Location SDK, which is an add-on functionality to the ConnectButton SDK, to provide native Location trigger functionality to the apps.
- Namespace changes: the following classes have been moved to
com.ifttt.connect.api
:- Connection
- Service
- User
- PendingResult
- ConnectionApiClient
- API change: ConnectButton.Configuration has been reworked, use
ConnectButton.Configuration.newBuilder(String email, Uri redirectUri)
to instantiate a builder and follow the steps with appropriate parameters:- for connection information: use
withConnection(Connection connection)
orwithConnectionId(String id)
- for ConnectionApiClient: if you want to use your own ConnectionApiClient instance, use
withClient(ConnectionApiClient client, CredentialProvider)
; otherwise usewithCredentialProvider
- for connection information: use
- API change:
ConnectionApiClient#setUserToken
has been removed, you should useUserTokenCredential
to set up API authorization. - API change:
ConnectionApiClient#Builder
has been reworked, now it requires a Context and a UserTokenProvider to instantiate. - API deprecation:
ValueProposition
andConnection#valuePropositions
has been deprecated. UseFeature
andConnection#features
instead. - API addition: more Connect API data structure support has been added
Feature
: representing a Feature for the connectionUserFeature
: representing a user-enabled feature for the connectionUserFeatureStep
: representing a trigger/action/query in the user-enabled featureUserFeatureField
: representing a user configured field in the enabled featureLocationFieldValue
,CollectionFieldValue
,StringArrayFieldValue
,StringFieldValue
: representing different types of the configured field value
- API addition: Added an "unknown" state as the default value for a ConnectButton.