CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-expo--config-plugins

A library for generating native app code from JavaScript config through Expo config plugins

47%

Overall

Evaluation47%

1.04x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-8/

Cross-Platform Telemetry Bootstrap

Create a config plugin that wires a hypothetical SkyfallAnalytics SDK into both Android and iOS entrypoints using native code-mods so telemetry starts with the app.

Capabilities

Android dependency injection

  • Ensures mavenCentral() exists in the repositories block for android/app/build.gradle and adds a single implementation "com.skyfall:analytics:1.2.3" entry without duplicating on repeated runs. @test

Android entrypoint initialization

  • When MainApplication.java or MainApplication.kt lacks telemetry wiring, inserts import com.skyfall.analytics.SkyfallAnalytics; (or the Kotlin equivalent) and a SkyfallAnalytics.initialize(this, "<apiKey>", <enableBackgroundUploads>) call inside onCreate, using the provided apiKey and enableBackgroundUploads flag (defaulting to false when omitted), without altering existing logic or creating duplicates. @test

iOS AppDelegate initialization

  • When AppDelegate.swift or AppDelegate.m lacks telemetry wiring, inserts import SkyfallAnalytics (or #import <SkyfallAnalytics/SkyfallAnalytics.h>) plus a SkyfallAnalytics.start(apiKey: "<apiKey>", enableBackgroundUploads: <flag>) call inside application:didFinishLaunchingWithOptions: (or the Swift equivalent), using the provided apiKey and enableBackgroundUploads flag (defaulting to false when omitted), without duplicating code. @test

Implementation

@generates

API

export type TelemetryOptions = {
  apiKey: string;
  enableBackgroundUploads?: boolean;
};

export default function withSkyfallTelemetry(
  config: Record<string, any>,
  options: TelemetryOptions
): Record<string, any>;

Dependencies { .dependencies }

@expo/config-plugins { .dependency }

Provides cross-platform native code-mod utilities for Gradle, Java/Kotlin, and ObjC/Swift patching.

@satisfied-by

tessl i tessl/npm-expo--config-plugins@11.0.0

tile.json