Skip to content

Commit

Permalink
Merge pull request #27 from fachrifaul/master
Browse files Browse the repository at this point in the history
support Objective-C project with Podfile no use_frameworks!
  • Loading branch information
operando committed Dec 30, 2023
2 parents debcad7 + 209889e commit 704b1b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ios/Classes/AdvertisingIdPlugin.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#import "AdvertisingIdPlugin.h"

#if __has_include(<advertising_id/advertising_id-Swift.h>)
#import <advertising_id/advertising_id-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "advertising_id-Swift.h"
#endif

@implementation AdvertisingIdPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
Expand Down

0 comments on commit 704b1b3

Please sign in to comment.