Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Fully automatic autolinking for Nitrogen #117

Merged
merged 29 commits into from
Sep 12, 2024
Merged

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Sep 11, 2024

With this PR, Hybrid Objects can now be fully autolinked and their constructors are now generated.

All users need to do is to add the names of the classes they created to nitro.json. Example:

{
  ..
  "autolinking": {
    "ImageFactory": {
      "swift": "HybridImageFactory",
      "kotlin": "HybridImageFactory"
    },
    "TestObject": {
      "cpp": "HybridTestObject"
    },
    "SwiftKotlinTestObject": {
      "swift": "HybridSwiftKotlinTestObject"
    },
    "KotlinTestObject": {
      "kotlin": "HybridKotlinTestObject"
    }
  },
}

@mrousavy mrousavy merged commit 0f04af9 into main Sep 12, 2024
2 of 3 checks passed
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