Skip to content

Add support for @ObjectiveCKmpMethod annotation to generate Objective-C adapter methods.#2690

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_887010323
Mar 24, 2026
Merged

Add support for @ObjectiveCKmpMethod annotation to generate Objective-C adapter methods.#2690
copybara-service[bot] merged 1 commit intomasterfrom
test_887010323

Conversation

@copybara-service
Copy link

Add support for @ObjectiveCKmpMethod annotation to generate Objective-C adapter methods.

This annotation is used on methods to generate peer @adapter methods in transpiled J2ObjC classes or interfaces, facilitating interop with Kotlin/Native. It requires specifying an Objective-C selector and an adapter class.

The generated adapter methods convert native Objective-C collections (NSArray, NSDictionary, NSSet) to Java collections (List, Map, Set) before calling the original Java method, and vice versa for return values.

…-C adapter methods.

This annotation is used on methods to generate peer @adapter methods in transpiled J2ObjC classes or interfaces, facilitating interop with Kotlin/Native. It requires specifying an Objective-C selector and an adapter class.

The generated adapter methods convert native Objective-C collections (NSArray, NSDictionary, NSSet) to Java collections (List, Map, Set) before calling the original Java method, and vice versa for return values.

PiperOrigin-RevId: 888880341
@copybara-service copybara-service bot merged commit e8db883 into master Mar 24, 2026
@copybara-service copybara-service bot deleted the test_887010323 branch March 24, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant