xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Determine iOS Library Version for Nuget Package #483

Open CMihalcik opened 3 years ago

CMihalcik commented 3 years ago

How can I determine which version of an iOS library a particular Nuget package provides bindings for?

Will the following process lead to the correct version? Is there a simpler approach?

  1. Select a release, e.g. https://github.com/xamarin/GoogleApisForiOSComponents/releases/tag/Firebase-6.5.0
  2. Note the releases commit, d0399c29fd2aa51e9ef82a2257eb8ff339755b8e
  3. Browse components.cake at that release, https://github.com/xamarin/GoogleApisForiOSComponents/blob/d0399c29fd2aa51e9ef82a2257eb8ff339755b8e/components.cake
  4. Locate an artifact, e.g. FIREBASE_REMOTE_CONFIG_ARTIFACT
    Artifact FIREBASE_REMOTE_CONFIG_ARTIFACT           = new Artifact ("Firebase.RemoteConfig",           "4.2.1",    "8.0", ComponentGroup.Firebase, csprojName: "RemoteConfig");
    • In this case, the second argument to Artifact(), 4.2.1, will be the NuGet package version
    • The third argument, 8.0, is the minimum iOS version
  5. Locate the assignment of PodSpecs for the Artifact
    FIREBASE_REMOTE_CONFIG_ARTIFACT.PodSpecs = new [] {
    PodSpec.Create ("Firebase", "6.5.0", subSpecs: new [] { "RemoteConfig" })
    };
    • The second argument to create will be the iOS library version, in this case, 6.5.0

This process indicates that NuGet package Xamarin.Firebase.iOS.RemoteConfig version 4.2.1 provides bindings for the iOS Firebase Remote Config library version 6.5.0. Is that correct?