Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
Protobuf: 1a37ebea1338949e9ac35a3f06e80b3f536eec8d
reactive_ble_mobile: 9ce6723d37ccf701dbffd202d487f23f5de03b4c
reactive_ble_mobile: 61f61f4ac1ca38455cdb35e043088360e229bc4d
SwiftProtobuf: 9c85136c6ba74b0a1b84279dbf0f6db8efb714e0

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d

COCOAPODS: 1.11.2
2 changes: 2 additions & 0 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
Expand All @@ -467,6 +468,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.signify.huereactivebleExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
Expand Down
5 changes: 5 additions & 0 deletions packages/reactive_ble_mobile/ios/Classes/ReactiveBlePlugin.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#import "ReactiveBlePlugin.h"

#if __has_include(<reactive_ble_mobile/reactive_ble_mobile-Swift.h>)
#import <reactive_ble_mobile/reactive_ble_mobile-Swift.h>
#else
#import "reactive_ble_mobile-Swift.h"
#endif

@implementation ReactiveBlePlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
Expand Down
9 changes: 6 additions & 3 deletions packages/reactive_ble_mobile/ios/reactive_ble_mobile.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ Bluetooth Low Energy (BLE) Flutter plug-in
s.dependency 'SwiftProtobuf', '~> 1.0'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.13'
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
s.swift_version = '4.2'
s.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
'DEFINES_MODULE' => 'YES',
'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64'
}
s.swift_version = '5.5'
end