Skip to content

Feature/new architecture#33

Open
zeemyself wants to merge 3 commits into
masterfrom
feature/new-architecture
Open

Feature/new architecture#33
zeemyself wants to merge 3 commits into
masterfrom
feature/new-architecture

Conversation

@zeemyself

Copy link
Copy Markdown
Owner

No description provided.

- Remove deprecated __turboModuleProxy detection in index.js, use TurboModuleRegistry directly
- Change TurboModuleRegistry.getEnforcing to .get to avoid iOS crash
- Add @nullable annotation to oldarch getConstants() override
- Add namespace in build.gradle for AGP 8+ compatibility
- Fix missing trailing newlines in build.gradle and RNPowermanagerPackage.java

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1e909196c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +28 to +35
new ReactModuleInfo(
RNPowermanagerModuleImpl.NAME,
RNPowermanagerModuleImpl.NAME,
false, // canOverrideExistingModule
false, // needsEagerInit
false, // isCxxModule
isTurboModule // isTurboModule
));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pass hasConstants for RN 0.71 and 0.72

The package still advertises support for react-native >=0.71.0, but in RN 0.71/0.72 ReactModuleInfo requires the hasConstants argument before isCxxModule; this six-argument constructor is only compatible with newer RN versions. Apps using the declared minimum will fail Android compilation when this package is included, so either add the missing hasConstants value here or raise the peer dependency to the version where this constructor exists.

Useful? React with 👍 / 👎.

The 6-arg ReactModuleInfo constructor (without hasConstants) used in
RNPowermanagerPackage.java only exists in RN >=0.77. The previous
minimum of >=0.71.0 would cause Android compilation failures for
apps on RN 0.71–0.76.

BREAKING CHANGE: drops support for react-native <0.77.0
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