Skip to content

Commit ee8ee2e

Browse files
authored
[image_picker_ios] Make all headers public for SwiftPM to keep inline with CocoaPods (#6707)
To keep the SwiftPM implementation more inline with CocoaPods, make all headers public.
1 parent d891fb9 commit ee8ee2e

File tree

12 files changed

+15
-9
lines changed

12 files changed

+15
-9
lines changed

packages/image_picker/image_picker_ios/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.11+1
2+
3+
* Makes all headers public with Swift Package Manager integration to keep inline with CocoaPods.
4+
15
## 0.8.11
26

37
* Adds Swift Package Manager compatibility.

packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/FLTImagePickerPlugin.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#import <PhotosUI/PhotosUI.h>
1313
#import <UIKit/UIKit.h>
1414

15+
#import "./include/image_picker_ios/messages.g.h"
1516
#import "FLTImagePickerImageUtil.h"
1617
#import "FLTImagePickerMetaDataUtil.h"
1718
#import "FLTImagePickerPhotoAssetUtil.h"
1819
#import "FLTPHPickerSaveImageToPathOperation.h"
19-
#import "messages.g.h"
2020

2121
@implementation FLTImagePickerMethodCallContext
2222
- (instancetype)initWithResult:(nonnull FlutterResultAdapter)result {

packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/include/module.modulemap

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ module image_picker_ios {
55
module * { export * }
66

77
explicit module Test {
8-
header "../FLTImagePickerPlugin_Test.h"
9-
header "../FLTImagePickerImageUtil.h"
10-
header "../FLTImagePickerMetaDataUtil.h"
11-
header "../FLTImagePickerPhotoAssetUtil.h"
12-
header "../FLTPHPickerSaveImageToPathOperation.h"
8+
header "image_picker_ios/FLTImagePickerPlugin_Test.h"
9+
header "image_picker_ios/FLTImagePickerImageUtil.h"
10+
header "image_picker_ios/FLTImagePickerMetaDataUtil.h"
11+
header "image_picker_ios/FLTImagePickerPhotoAssetUtil.h"
12+
header "image_picker_ios/FLTPHPickerSaveImageToPathOperation.h"
1313
}
1414
}

packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/messages.g.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Autogenerated from Pigeon (v17.0.0), do not edit directly.
55
// See also: https://pub.dev/packages/pigeon
66

7-
#import "messages.g.h"
7+
#import "./include/image_picker_ios/messages.g.h"
88

99
#if TARGET_OS_OSX
1010
#import <FlutterMacOS/FlutterMacOS.h>

packages/image_picker/image_picker_ios/pigeons/messages.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ import 'package:pigeon/pigeon.dart';
77
@ConfigurePigeon(PigeonOptions(
88
dartOut: 'lib/src/messages.g.dart',
99
dartTestOut: 'test/test_api.g.dart',
10-
objcHeaderOut: 'ios/image_picker_ios/Sources/image_picker_ios/messages.g.h',
10+
objcHeaderOut:
11+
'ios/image_picker_ios/Sources/image_picker_ios/include/image_picker_ios/messages.g.h',
1112
objcSourceOut: 'ios/image_picker_ios/Sources/image_picker_ios/messages.g.m',
1213
objcOptions: ObjcOptions(
1314
prefix: 'FLT',
15+
headerIncludePath: './include/image_picker_ios/messages.g.h',
1416
),
1517
copyrightHeader: 'pigeons/copyright.txt',
1618
))

packages/image_picker/image_picker_ios/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image_picker_ios
22
description: iOS implementation of the image_picker plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
5-
version: 0.8.11
5+
version: 0.8.11+1
66

77
environment:
88
sdk: ^3.3.0

0 commit comments

Comments
 (0)