-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize mavericks via content provider.
- Loading branch information
1 parent
041e91a
commit cf0c027
Showing
4 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
.../src/main/java/com/stripe/android/financialconnections/FinancialConnectionsInitializer.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...com/stripe/android/financialconnections/appinitializer/FinancialConnectionsInitializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.stripe.android.financialconnections.appinitializer | ||
|
||
import android.content.ContentProvider | ||
import android.content.ContentValues | ||
import android.database.Cursor | ||
import android.net.Uri | ||
import com.airbnb.mvrx.Mavericks | ||
|
||
class FinancialConnectionsInitializer : ContentProvider() { | ||
override fun onCreate(): Boolean { | ||
Mavericks.initialize(context = requireNotNull(context)) | ||
return true | ||
} | ||
|
||
override fun query( | ||
uri: Uri, | ||
projection: Array<String>?, | ||
selection: String?, | ||
selectionArgs: Array<String>?, | ||
sortOrder: String? | ||
): Cursor? { | ||
return null | ||
} | ||
|
||
override fun getType(uri: Uri): String? = null | ||
|
||
override fun insert(uri: Uri, values: ContentValues?): Uri? = null | ||
|
||
override fun delete( | ||
uri: Uri, | ||
selection: String?, | ||
selectionArgs: Array<String>? | ||
): Int = 0 | ||
|
||
override fun update( | ||
uri: Uri, | ||
values: ContentValues?, | ||
selection: String?, | ||
selectionArgs: Array<String>? | ||
): Int = 0 | ||
} |