Skip to content

Latest commit

 

History

History
88 lines (69 loc) · 3.67 KB

MIGRATION_GUIDE_TO_VERSION_1.0.md

File metadata and controls

88 lines (69 loc) · 3.67 KB

Migration Guide to Version 1.0.0

Dependencies update

Tink Money Manager Android is now available on Maven Central: Android Money manager on Maven. Therefore, you can remove mavenLocal() from your main build.gradle file (or settings.gradle file, depending upon your implementation) and use mavenCentral() instead.

  1. In your build.gradle product module file replace:
dependencies {
    implementation "com.tink.moneymanager:moneymanager-ui:0.28.0"
}

With:

dependencies {
    implementation 'com.tink.moneymanager:moneymanager-ui:1.0.0'
}
  1. Sync the changes.

Finance overview migration guide

Version 1.0.0 introduces a new way of launching the overview screen. This involves using the new TinkMoneyManager instead of the deprecated FinanceOverviewFragment.

Previous implementation with Tink Money Manager Android version prior 1.0.0:

        supportFragmentManager.beginTransaction().add(
            R.id.fragmentContainer,
            FinanceOverviewFragment.newInstance(
                accessToken = myAccessToken,
                styleResId = R.style.myStyle,
                tracker = myLogTracker,
                overviewFeatures = myOverviewFeatures,
                javaInsightActionHandler = myJavaInsightActionHandler,
                backPressedListener = myBackPressedListener,
                isOverviewToolbarVisible = true,
                isEditableOnPendingTransaction = true,
                isTransactionDetailsEnabled = true,
                featureSpecificThemes = myFeatureSpecificThemes,
                fragmentViewCreatedListener = myFragmentViewCreatedListener
            )
        ).commit()

New implementation with Tink Money Manager Android version 1.0.0:

Define entrypoint for the Overview screen. Be aware that these parameters below were previously inside the FinanceOverviewFragment, but now are inside the Entrypoint.Overview class.

Please note:

  • The isOverviewToolbarVisible parameter is now called toolbarVisible.

  • Your theme should now override the new TinkMoneyManagerStyle.

  • The javaInsightActionHandler parameter is now called insightActionHandler, this is because the insightActionHandler is inheriting InsightActionHandler that works for both Java and Kotlin.

    private val overviewEntrypoint = EntryPoint.Overview(
        overviewFeatures = myOverviewFeatures,
        toolbarVisible = true, 
        featureSpecificThemes = myFeatureSpecificThemes,
        insightActionHandler = myInsightActionHandler,
        fragmentViewCreatedListener = myFragmentViewCreatedListener
        )

Use the new TinkMoneyManager and pass to the entrypoint parameter, the EntryPoint.Overview instance defined above.

  • The isTransactionDetailsEnabled parameter is now called enableTransactionDetail and isEditableOnPendingTransaction is called editPendingTransaction.
            TinkMoneyManager.init(
                accessToken = myAccessToken,
                styleResId = R.style.myStyle,
                tracker = myLogTracker,
                backPressedListener = myBackPressedListener,
                editPendingTransaction = true,
                enableTransactionDetail = true,
                entryPoint = overviewEntrypoint,
                containerId = R.id.fragmentContainer,
                fragmentManager = supportFragmentManager
                )

Declaration changes

Android reference documentation for Money Manager Android version 1.0.0 is now available at Android reference documentation