Skip to content

Type mismatch: inferred type is Bitmap.CompressFormat? but Bitmap.CompressFormat was expected #4

Description

@HessiPard

Hi, thanks for this package.

When i add adivery and build, the below error happens and build fails:
node_modules/adivery-publisher/android/src/main/java/com/adivery/AdiveryModule.kt:268:20 Type mismatch: inferred type is Bitmap.CompressFormat? but Bitmap.CompressFormat was expected.

I could solve the error by edit that specific line in AdiveryModule.kt from this:
fun encodeToBase64(image: Bitmap, compressFormat: CompressFormat?, quality: Int): String?
to
fun encodeToBase64(image: Bitmap, compressFormat: CompressFormat, quality: Int): String?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions