[Question] Google ML Kit Packages #20
Replies: 5 comments 28 replies
-
@vhugogarcia the old Xamarin.* namespaces were just replaced wholesale--that wasn't necessarily an indication that I have any immediate intent to upgrade all of these packages myself--though I'd be happy to support more contributions from the community. It sounds like you're willing to help out here.. so let's talk about MLKit.BarcodeScanning :) Upgrading any of the packages involves two major tasks. First, we need to update the dependency chain so that the right .xcframeworks make it into the nugets with all the right linker flags set. This can be a relatively straightforward task if it's just a matter of bumping version numbers and updating static library URLs. It gets a little more complicated if dependencies have changed. The second major task is actually updating the actual binding definitions (i.e. In the case of MLKit.BarcodeScanning, I might have some good news for Task 1. It looks like there hasn't been any major shakeup in the dependency chain, so it should be no big deal for me to bump version numbers and publish some -alpha nugets. For Task 2 though... The SDK version Microsoft left us with is 1.6. Current is 5.0. Without digging into the native SDK release history, there's no way to tell how much work might be needed here. It could be nothing. If the API surface has changed radically, it could be a lot. Either way, I can't put any effort into it right now, so this work would be up to you. |
Beta Was this translation helpful? Give feedback.
-
@vhugogarcia I made a branch with updated dependency versions. The nugets build and might 'just work'--give it a try and let me know. |
Beta Was this translation helpful? Give feedback.
-
@vhugogarcia @AdamEssenmacher - I'd also like to see the MLKit stuff [Barcode Scanning specifically] working here, my initial attempts to update dependencies is continuing to fail when building the actual consuming application with various clang++ errors referencing missing GUL* functions in arm64. Getting things working on an M2 MacBook was a non-starter until I switched over to net8.0-ios, even though I have all the Xamarin/net6/etc stuff locally on this machine. My current plan was to try to get Google's MLKitVisionSample working locally and then try to back into what's missing that's preventing things from working on this side of things. I will agree that this structure of this repo is breaking my brain :) Really feels like there must be an easier way to maintain this stuff, but I'm at a loss as to what that might be :) |
Beta Was this translation helpful? Give feedback.
-
Given the way Microsoft originally structured this repo, this shouldn't be done.
|
Beta Was this translation helpful? Give feedback.
-
@AdamEssenmacher - looks like the latest alpha1 packages published to nuget are missing the .xcframework files. For instance, my local package build is 815KB vs. the 50KB of the current nuget, which contains only the MLKit.Core.dll and none of the resources. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hello @AdamEssenmacher ,
While reviewing the latest code from the repository, I noticed that you also updated the packages to the new Google ML Kit by using the new namespace: AdamE.MLKit.iOS.BarcodeScanning
I'm wondering if there is a way I can access an alpha version of the ML Kit NuGet package using the latest SDK version https://developers.google.com/ml-kit/vision/barcode-scanning/ios from Google. I would be happy to help to test them out.
Thanks in advance,
Victor
Beta Was this translation helpful? Give feedback.
All reactions