-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
flutter/plugins
#2135Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowp: android_alarm_managerThe Android background execution pluginThe Android background execution pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
Define clang modules in android_alarm_manager plugin to:
- Allow it to be imported into Swift apps as libraries without
use_frameworks!. - Allow it to be module imported
@importinto Objective-C apps.
See further details in #41007
Steps to Reproduce
Import into Swift app as a library
flutter create test_create_app- Add android_alarm_manager to the pubspec.
dependencies:
flutter:
sdk: flutter
android_alarm_manager: any
- In generated
ios/Podfileremoveuse_frameworks! flutter build ios- In AppDelegate.swift add
import android_alarm_managerat the top. - Build.
Compilation error: no such module 'android_alarm_manager'
Module import (@import) into Objective-C app
flutter create -i objc test_create_app- Add android_alarm_manager.
dependencies:
flutter:
sdk: flutter
android_alarm_manager: any
flutter build ios- In AppDelegate.m add
@import android_alarm_manager;at the top. - Build.
Compilation error: no such module 'android_alarm_manager'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowp: android_alarm_managerThe Android background execution pluginThe Android background execution pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically