Skip to content

[BUG] Migrate ml-core-googleplay from tensorflow-lite to litert #11645

@juliensierra-freenow

Description

@juliensierra-freenow

Summary

Update dependencies of ml-core-googleplay from tensorflow-lite to litert.

litert is where most TFLite development for Android has moved. Same APIs and has 16kb support.

Code to reproduce

ml-core-googleplay is using litert rather than newest tensorflow-lite so we can get some conflicts with duplicated classes (as reported here) so we need to import dependencies this way to use ml-core-googleplay:

    implementation(libs.stripecardscan) {
        exclude(group = "com.stripe", module = "ml-core-cardscan")
    }
    implementation(libs.stripe.mlcoregoogleplay) {
        exclude(group = "org.tensorflow", module = "tensorflow-lite-api")
        exclude(group = "org.tensorflow", module = "tensorflow-lite-support-api")
    }

Dependency Versions

Stripe: 21.27

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriagedIssue has been reviewed by Stripe and is being tracked internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions