1package com.bestapps.android;
2
3import android.app.Application;
4import com.salesforce.androidsdk.mobilesync.app.MobileSyncSDKManager;
5
6/**
7 * Application class for our application.
8 */
9class MainApplication : Application() {
10
11 companion object {
12 private const val FEATURE_APP_USES_KOTLIN = "KT"
13 }
14
15 override fun onCreate() {
16 super.onCreate()
17 MobileSyncSDKManager.initNative(applicationContext, MainActivity::class.java)
18 MobileSyncSDKManager.getInstance().registerUsedAppFeature(FEATURE_APP_USES_KOTLIN)
19 /*
20 * Uncomment the following line to enable IDP login flow. This will allow the user to
21 * either authenticate using the current app or use a designated IDP app for login.
22 * Replace 'idpAppURIScheme' with the URI scheme of the IDP app meant to be used.
23 */
24 // MobileSyncSDKManager.getInstance().idpAppURIScheme = idpAppURIScheme
25
26 /*
27 * Un-comment the line below to enable push notifications in this app.
28 * Replace 'pnInterface' with your implementation of 'PushNotificationInterface'.
29 * Add your Google package ID in 'bootonfig.xml', as the value
30 * for the key 'androidPushNotificationClientId'.
31 */
32 // MobileSyncSDKManager.getInstance().pushNotificationReceiver = pnInterface
33 }
34}