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-9/

Android Manifest Permission Configurator

A configuration helper that enforces location and notification requirements in an Android manifest for an Expo-managed app.

Capabilities

Permission setup

Defaults treat notificationPermission as enabled and enableBackgroundLocation as disabled.

  • Adds fine, coarse, and post-notification permissions exactly once when invoked with default options. @test
  • Adds background location permission only when enableBackgroundLocation is true. @test

Service registration

  • Registers a foreground service under the main application with the provided class name, exported: false, and an intent-filter action matching the supplied value. @test

Metadata injection

  • Ensures the application metadata item com.example.maps.API_KEY is set to the provided API key string and updates the value on subsequent runs. @test

Idempotent runs

  • Running the helper twice with the same inputs does not duplicate permissions, service entries, or metadata. @test

Implementation

@generates

API

export interface ManifestServiceOptions {
  name: string;
  action: string;
}

export interface ManifestRules {
  enableBackgroundLocation?: boolean;
  notificationPermission?: boolean;
  apiKey: string;
  service: ManifestServiceOptions;
}

export function applyAndroidManifestRules(
  projectRoot: string,
  rules: ManifestRules
): Promise<void>;

Dependencies { .dependencies }

@expo/config-plugins { .dependency }

Android project configuration utilities for reading/writing manifest files and managing permissions.

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

tile.json