-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(firebase): fix tests on low API levels
SUITEDEV-35237 Co-authored-by: davidSchuppa <[email protected]>
- Loading branch information
1 parent
78d2ca5
commit e2cc60f
Showing
7 changed files
with
70 additions
and
35 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
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
18 changes: 18 additions & 0 deletions
18
core/src/main/java/com/emarsys/core/contentresolver/EmarsysContentResolver.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,18 @@ | ||
package com.emarsys.core.contentresolver | ||
|
||
import android.content.Context | ||
import android.database.Cursor | ||
import android.net.Uri | ||
import com.emarsys.core.Mockable | ||
|
||
@Mockable | ||
class EmarsysContentResolver(private val context: Context) { | ||
|
||
fun query( | ||
uri: Uri, | ||
projection: Array<String>?, selection: String?, | ||
selectionArgs: Array<String>?, sortOrder: String? | ||
): Cursor? { | ||
return context.contentResolver.query(uri, projection, selection, selectionArgs, sortOrder) | ||
} | ||
} |
33 changes: 21 additions & 12 deletions
33
core/src/main/java/com/emarsys/core/contentresolver/hardwareid/HardwareIdContentResolver.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
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
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
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