A library for generating native app code from JavaScript config through Expo config plugins
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.
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. @testMainApplication.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. @testAppDelegate.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@generates
export type TelemetryOptions = {
apiKey: string;
enableBackgroundUploads?: boolean;
};
export default function withSkyfallTelemetry(
config: Record<string, any>,
options: TelemetryOptions
): Record<string, any>;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.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10