Skip to content

Compatible with expo 55 ? #136

@jscti

Description

@jscti

Hi there, thanks for this plugin.

I'm struggling to have this plugin (1.0.0) working on a new (from scratch) project using latest react native (0.83.6) + expo versions (55.0.15).

  1. Tried by adding the plugin config "@splunk/otel-react-native" in app.json plugins array.
    But I get a :
    "Package "@splunk/otel-react-native" does not contain a valid config plugin.
    Unexpected token "typeof" (INVALID_PLUGIN_IMPORT)

  2. Tried the "bare install" by modifying ios and android folder files (Podfile, build.Gradle).
    => But this is not sustainable long term for me as it prevent any android/ios folder cleanup / prebuild. And re-updating those files each time is not an option, nor commit the whole folders.

Still, I tried, but on Android, and got it working, but to get it working I had to replace :

android {
  compileOptions {
    isCoreLibraryDesugaringEnabled = true
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
  kotlinOptions {
    jvmTarget = "1.8"
  }
}

to

android {
  compileOptions {
    coreLibraryDesugaringEnabled = true
    sourceCompatibility JavaVersion.VERSION_17
    targetCompatibility JavaVersion.VERSION_17
  }
}

is that normal ?

  1. I see that even if config plugin worked, I still have to update manually PodFile for ios ? is there any plan to improve that ?

  2. I had to manually add/hardcode in my package.json the @opentelemetry/api package used by your Lib. Without this build would fail (TS resolution fail)

To reproduce all that :
npx create-expo-app
npx expo install @splunk/otel-react-native

Thanks

Metadata

Metadata

Assignees

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