Update google-api-client dependency to > 0.9
Hey there!
I use your tool for iOS development in order to localize all my strings. Lately I've moved my deploys to fastlane in order to automate my builds. I would like to integrate localio as one step inside fastlane but there is a dependency issue with google-api-client:
Bundler could not find compatible versions for gem "google-api-client":
In Gemfile:
google-api-client (< 0.9)
fastlane was resolved to 2.3.0, which depends on
google-api-client (~> 0.9.1)
Is this possible?
Happy new year 🎉
Have you tried adding to your gemfile directly the google-api-client dependency with the same version as fastlane?
That'd probably satisfy the transitive dependency of this library, and could be a workaround for this until a new version gets pushed.
Example: http://stackoverflow.com/questions/23819714/using-a-prerelease-gem-to-satisfy-a-transitive-dependency-with-bundler
Sorry, I have no idea of ruby and all the environment. But I think what you suggest is what I'm trying without success.
My Gemfile:
source "https://rubygems.org"
gem "cocoapods"
gem "fastlane"
gem "google-api-client", "< 0.9"
gem "localio"
When I run bundle update google-api-client:
Bundler could not find compatible versions for gem "google-api-client":
In Gemfile:
google-api-client (< 0.9)
fastlane was resolved to 2.3.0, which depends on
google-api-client (~> 0.9.1)
localio was resolved to 0.1.6, which depends on
google_drive (~> 1.0) was resolved to 1.0.1, which depends on
google-api-client (>= 0.7.0)
Well, it's a long shot, but try with:
gem "google-api-client", "~> 0.9.1"
in your Gemfile.
It does resolve the dependency but then the code crashes
Miguels-MacBook-Pro:iOS miguel$ bundle exec localize bundler: failed to load command: localize (/Users/miguel/.rbenv/versions/2.2.3/bin/localize) LoadError: cannot load such file -- google/api_client
It installs the 0.9.20 version
/Users/miguel/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/google-api-client-0.9.20
Ok, this would need an update on my end then. I'll do it when I can. Thanks!
Thanks to you!