Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add optional gradle property for unbundled scanner #775

Conversation

woolfred
Copy link
Contributor

Hey 👋

This is the PR based on #635 (comment)
This should also close this issue: #235

I added the possible configuration to the readme and made the part about bundled vs unbundled a bit more concise.

Let me know if you need anything else.
Cheers

@woolfred woolfred changed the title Add optional gradle property for unbundled scanner feat: Add optional gradle property for unbundled scanner Oct 10, 2023
implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.1.0'
} else {
// Bundled model in app
implementation 'com.google.mlkit:barcode-scanning:17.2.0'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@woolfred Is there a reason why the versions between the bundled and unbundled dependencies are different?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why the version numbers differ 🤷 Simply wrapped the existing lines.

For the unbundled one the newest one is actually 18.3.0: https://mvnrepository.com/artifact/com.google.android.gms/play-services-mlkit-barcode-scanning

While 17.2.0 for the bundled one looks to be up to date: https://mvnrepository.com/artifact/com.google.mlkit/barcode-scanning

@juliansteenbakker
Copy link
Owner

I could not find a solution for this myself, so good to see it is possible! Thanks for your work, LGTM!

@juliansteenbakker juliansteenbakker merged commit d8ad329 into juliansteenbakker:master Oct 12, 2023
3 checks passed
joaopedro735 pushed a commit to joaopedro735/mobile_scanner that referenced this pull request Aug 22, 2024
…canner-dependency

feat: Add optional gradle property for unbundled scanner
@woolfred woolfred deleted the configurable-scanner-dependency branch October 23, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants