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.
- 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'
}
- Sync the changes.
Version 1.0.0 introduces a new way of launching the overview screen. This involves using the new TinkMoneyManager instead of the deprecated FinanceOverviewFragment.
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()
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
)
Android reference documentation for Money Manager Android version 1.0.0 is now available at Android reference documentation