Repository navigation
[Java.Interop] Remove obsolete desktop sample and timing project - #13138
Merged
simonrozsival merged 2 commits intoOct 14, 2026
Merged
Conversation
Remove the standalone Hello-NativeAOTFromJNI sample and its publish/run steps and sample-only runtime identifier parameter. Remove the orphaned desktop NativeTiming project and its solution entry. These desktop components are not needed by .NET for Android. Keep Android NativeAOT support and the distinct Android JcwGen timing fixture intact. Context: #11843 Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused removal is consistent, leaves no stale references, and preserves Android production and timing paths.
0 open findings
What changed in this PR
Removes obsolete desktop-only Java.Interop sample and timing projects while preserving Android NativeAOT and device timing coverage.
Changes:
- Deletes the
Hello-NativeAOTFromJNIsample and its automation. - Deletes the orphaned
NativeTimingproject and solution entry. - Removes the now-unused
nativeAotRidparameter.
| File | Description |
|---|---|
external/Java.Interop/tests/NativeTiming/timing.c |
Removes desktop JNI timing implementation. |
external/Java.Interop/tests/NativeTiming/NativeTiming.targets |
Removes native timing build targets. |
external/Java.Interop/tests/NativeTiming/NativeTiming.csproj |
Removes timing project. |
external/Java.Interop/tests/NativeTiming/CMakeLists.txt |
Removes timing native build definition. |
external/Java.Interop/samples/Hello-NativeAOTFromJNI/JavaInteropRuntime.cs |
Removes sample JNI runtime. |
external/Java.Interop/samples/Hello-NativeAOTFromJNI/java/net/dot/jni/hello/JavaInteropRuntime.java |
Removes Java runtime bridge. |
external/Java.Interop/samples/Hello-NativeAOTFromJNI/java/net/dot/jni/hello/App.java |
Removes Java sample application. |
external/Java.Interop/samples/Hello-NativeAOTFromJNI/Hello-NativeAOTFromJNI.targets |
Removes sample publish/run targets. |
external/Java.Interop/samples/Hello-NativeAOTFromJNI/Hello-NativeAOTFromJNI.csproj |
Removes sample project. |
external/Java.Interop/samples/Hello-NativeAOTFromJNI/App.cs |
Removes sample JNI callback. |
external/Java.Interop/Java.Interop.slnx |
Removes the deleted timing project entry. |
external/Java.Interop/build-tools/automation/templates/core-tests.yaml |
Removes sample steps and parameter. |
🧠 Review effort: Balanced
simonrozsival
enabled auto-merge (squash)
October 14, 2026 15:30
jonathanpeppers
approved these changes
Oct 14, 2026
simonrozsival
deleted the
simonrozsival-remove-desktop-interop-leftovers
branch
October 14, 2026 18:12
21 of 23 tasks
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.
The standalone desktop
Hello-NativeAOTFromJNIsample and orphaned desktopNativeTimingproject are not required by .NET for Android. Remove these leftovers as a focused part of the Java.Interop reduction tracked in #11843.Remove all six sample files, its publish/run steps and sample-only
nativeAotRidparameter fromcore-tests.yaml. Remove all four desktop NativeTiming files and its solution entry. Keep the remaining automation and tooling projects unchanged.Android NativeAOT support and production runtime code are unchanged. The distinct
tests/CodeGen-Binding/Xamarin.Android.JcwGen-Tests/jni/timing.cAndroid fixture is byte-for-byte unchanged. This PR does not close the tracking issue.Validation
git diff --check— passed before committing.dotnet build external/Java.Interop/Java.Interop.slnx -c Debug -v minimal— passed, zero warnings/errors../dotnet-local.sh build external/Java.Interop/Java.Interop.slnx -c Debug -v minimal— passed, zero warnings/errors.dotnet test external/Java.Interop/tests/Xamarin.SourceWriter-Tests/Xamarin.SourceWriter-Tests.csproj -v minimal— passed, 11 tests.dotnet test external/Java.Interop/Java.Interop.slnx -c Debug --no-build -v minimal— 799 passed, 1 failed, 2 skipped across nine test suites../dotnet-local.sh test external/Java.Interop/Java.Interop.slnx -c Debug --no-build -v minimal— same result: 799 passed, 1 failed, 2 skipped.dotnet test external/Java.Interop/tests/Xamarin.Android.Tools.Bytecode-Tests/Xamarin.Android.Tools.Bytecode-Tests.csproj -c Debug --no-build --filter 'FullyQualifiedName~ModuleInfoTests.ClassFile' -v minimal— reproduces the failure independently of the edited solution: untouchedModuleInfoTests.ClassFileexpects a module-info constant pool count of 12, but gets 13. No unrelated test changes are included.make prepare && make all— preparation succeeded; full SDK build failed inCreateFrameworkListFilewith MSB4018/MSB3073 becausebin/Debug/lib/xamarin.android/xbuild-frameworks/Microsoft.Android/37.1/ref/Mono.Android.dllis missing. Full SDK/device validation remains blocked; device tests were not run.Context: #11843