-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/plugins
#2125Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowp: in_app_purchasePlugin for in-app purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
Define clang modules in in_app_purchase 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 in_app_purchase to the pubspec.
dependencies:
flutter:
sdk: flutter
in_app_purchase: any
- In generated
ios/Podfileremoveuse_frameworks! flutter build ios- In AppDelegate.swift add
import in_app_purchaseat the top. - Build.
Compilation error: no such module 'in_app_purchase'
Module import (@import) into Objective-C app
flutter create -i objc test_create_app- Add in_app_purchase.
dependencies:
flutter:
sdk: flutter
in_app_purchase: any
flutter build ios- In AppDelegate.m add
@import in_app_purchase;at the top. - Build.
Compilation error: no such module 'in_app_purchase'
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: in_app_purchasePlugin for in-app purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically