Skip to content

Issue: android kotlin compile fails when RN new arch disabled #20

@mstoner-aptos

Description

@mstoner-aptos

Your Socket Mobile Developer ID

b3889107-171f-f111-8341-6045bd03f534

Environment

android sdk level 36
RN: 0.80.2
react-native-capture@latest from npm
android simulator (but its a build time issue, so irrelevant)

Description

Integrating into SDK for the first time. Followed the steps from the SDK guide for react-native-capture. We use a react native app for ios and android that does not use RN New Architecture (its set to OFF/False). Integrating the react-native-capture results in it building fine for iOS. However, android builds are failing the kotlin compile step, due to their being compile time declarations in the CaptureSDK files. AI summary included of the issue

Steps to Reproduce

  1. have a RN app with new arch disabled - iOS - info.plist key RCTNewArchEnabled - false. gradle.properties - newArchEnabled=false
  2. install react-native-capture via npm
  3. run podinstall (for ios) info.plist
  4. build RN ios app - works
  5. build RN android app - fails due to RN generated code not existing due to new arch being disabled

Expected Behavior

android kotlin compile build succeeds

Actual Behavior

kotlin compile fails

Additional Context

See attachment for AI-generated summary explanation of issue, including the build errors we are seeing

react-native-capture-android-issue.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions