Repository navigation
[installer] Remove Kajabity Java properties dependency - #13120
Merged
jonathanpeppers merged 2 commits intoOct 13, 2026
Merged
Conversation
Replace the vendored parser with a compact dictionary-based helper while preserving legacy parsing behavior. Update SDK/JDK consumers and regression tests, remove the unused encoding package, and clean up third-party notices and stale Guardian suppressions. Fixes #13117 Co-authored-by: Copilot App <[email protected]> Copilot-Session: 03f2cd7b-cd70-4bcd-84c2-f73aebe4840b
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The replacement, consumer migration, dependency cleanup, and regression coverage are coherent; only an optional boundary-test suggestion remains.
1 open finding
What changed in this PR
Replaces the vendored Kajabity Java-properties parser with an in-tree implementation while preserving installer compatibility and resolving #13117.
Changes:
- Adds Latin-1 Java-properties parsing and regression coverage.
- Migrates SDK/JDK consumers to generic dictionaries.
- Removes Kajabity sources, package metadata, notices, and suppressions.
| File | Description |
|---|---|
THIRD-PARTY-NOTICES.TXT |
Removes the Kajabity notice. |
tests/.../AndroidSdkInstallerTests.cs |
Tests SDK/JDK property discovery. |
tests/.../AndroidPropertiesTests.cs |
Covers parser compatibility and errors. |
src/.../LocalSDK/LocalSDKRepository.cs |
Uses dictionary-backed properties. |
src/.../Kajabity.Tools.Java/ParseException.cs |
Removes the custom exception. |
src/.../Kajabity.Tools.Java/JavaPropertyWriter.cs |
Removes the unused writer. |
src/.../Kajabity.Tools.Java/JavaPropertyReader.cs |
Removes the vendored parser. |
src/.../Kajabity.Tools.Java/JavaProperties.cs |
Removes the vendored collection. |
src/.../JavaDependencyInstaller.cs |
Migrates JDK release parsing. |
src/.../Extensions.Properties.cs |
Adapts property conversion to dictionaries. |
src/.../Common/BasePackage.cs |
Migrates package revision detection. |
src/.../AndroidUtilities.cs |
Implements the replacement parser. |
src/.../AndroidSDKInstaller.cs |
Migrates SDK version discovery. |
src/.../AndroidExtensions.cs |
Updates revision extensions for dictionaries. |
src/.../Xamarin.Installer.AndroidSDK.csproj |
Removes the encoding package reference. |
src/.../GlobalSuppressions.cs |
Removes a stale Kajabity suppression. |
Directory.Build.props |
Removes the unused package version. |
.gdn/policheck/source.gdnsuppress |
Removes the obsolete Guardian suppression. |
🧠 Review effort: Balanced
Add file-backed regression cases splitting Unicode escapes and CRLF continuations across the StreamReader buffer boundary. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 03f2cd7b-cd70-4bcd-84c2-f73aebe4840b
simonrozsival
approved these changes
Oct 13, 2026
jonathanpeppers
deleted the
jonathanpeppers-kajabity-dependency-investigation
branch
October 13, 2026 20:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #13117. Follow-up to #13113.
Changes
Replace the vendored Kajabity reader with a compact, in-tree Java-properties helper and migrate the SDK/JDK installer consumers to dictionaries. Preserve Latin-1 decoding, escaped keys/values, continuations, duplicate-key handling, and legacy quirks such as permissive Unicode digits and trailing-backslash behavior.
Remove all four Kajabity types, their third-party notice, the stale Guardian/analysis suppressions, and the now-unused
System.Text.Encoding.CodePagespackage/version property. Add parsing and SDK/JDK discovery regression tests.AndroidUtilities.ReadAndroidProperties()now returnsDictionary<string, string>instead of the removed third-party type. Malformed escapes retain the logged, resource-backedInvalidOperationExceptionwrapper, withFormatExceptionreplacing the deleted custom inner exception.Validation
netstandard2.0.git diff --check.