"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withAndroidNotificationControls = void 0; var _configPlugins = require("@expo/config-plugins"); const withAndroidNotificationControls = oldConfig => { return (0, _configPlugins.withAndroidManifest)(oldConfig, config => { const mainApplication = _configPlugins.AndroidConfig.Manifest.getMainApplication(config.modResults); if (!mainApplication) { console.warn('AndroidManifest.xml is missing an element - skipping adding Notification Controls related config.'); return config; } mainApplication.service?.push({ '$': { 'android:name': 'com.twg.video.core.services.playback.VideoPlaybackService', 'android:exported': 'false', 'android:foregroundServiceType': 'mediaPlayback' }, 'intent-filter': [{ action: [{ $: { 'android:name': 'androidx.media3.session.MediaSessionService' } }] }] }); config.android?.permissions?.push('android.permission.FOREGROUND_SERVICE', 'android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK'); return config; }); }; exports.withAndroidNotificationControls = withAndroidNotificationControls; //# sourceMappingURL=withAndroidNotificationControls.js.map