Skip to content

Allow rubyzip 3.x - #1

Merged
evschu merged 1 commit into
masterfrom
evschu/sc-214229/allow-rubyzip-3
Sep 17, 2026
Merged

evschu merged 1 commit into
masterfrom
evschu/sc-214229/allow-rubyzip-3

Conversation

@evschu

@evschu evschu commented Sep 17, 2026

Copy link
Copy Markdown

Why

gallus-mobile is moving to fastlane 2.240.1, which requires rubyzip >= 3.4. fastlane-plugin-aws_s3 depends on apktools, and upstream apktools pins rubyzip ~> 2.0, so the two can't be installed together.

Change

One line in apktools.gemspec: 'rubyzip', '~> 2.0''rubyzip', '>= 2.0', '< 4.0'. It's identical to the open upstream PR devunwired/apktools#29; once that is released, this fork can be retired.

No code changes are needed: apktools only calls Zip.warn_invalid_date=, Zip::File.foreach and Entry#get_input_stream, which rubyzip 3.6.0 still provides.

Testing

  • The version-reading code fastlane-plugin-aws_s3 uses (ApkXml#parse_xml on AndroidManifest.xml) was run against a real Gallus beta APK on Ruby 3.4.10 and returned the same versionCode / versionName / label with rubyzip 2.4.1 and 3.6.0.
  • gallus-mobile Android beta build 129642 used this commit on rubyzip 3.6.0; the S3 install page showed the correct name, version and code.

Merging

Please use Create a merge commit (not squash or rebase). gallus-mobile pins this exact commit (a7d3ab9) in its Gemfile, and a squash or rebase would create a new commit and leave that reference pointing at a commit that is no longer on master.

Shortcut: sc-214229

🤖 Generated with Claude Code

fastlane 2.240 requires rubyzip >= 3.4, and fastlane-plugin-aws_s3 depends on
apktools, so the ~> 2.0 pin makes the two impossible to install together.
apktools only calls Zip.warn_invalid_date=, Zip::File.foreach and
Entry#get_input_stream, which rubyzip 3 still provides. Same change as
upstream devunwired#29.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@evschu
evschu merged commit 90f078e into master Sep 17, 2026
@evschu
evschu deleted the evschu/sc-214229/allow-rubyzip-3 branch September 17, 2026 06:15
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.

1 participant