Skip to content

Commit

Permalink
Mba cocoapods (#281)
Browse files Browse the repository at this point in the history
* [ios] Use MBA from cocoapods

* remove submodule - MBA

* [ios] Set ios deployment target to 10.0 and MBA to 0.0.3
  • Loading branch information
pawelByszewski committed Oct 21, 2019
1 parent a428d40 commit fd78856
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
@@ -1,3 +0,0 @@
[submodule "MultiPlatformBleAdapter"]
path = MultiPlatformBleAdapter
url = ../MultiPlatformBleAdapter.git
1 change: 0 additions & 1 deletion MultiPlatformBleAdapter
Submodule MultiPlatformBleAdapter deleted from 050fd3
9 changes: 8 additions & 1 deletion example/ios/Podfile.lock
Expand Up @@ -2,11 +2,17 @@ PODS:
- Flutter (1.0.0)
- flutter_ble_lib (0.0.1):
- Flutter
- MultiplatformBleAdapter (= 0.0.3)
- MultiplatformBleAdapter (0.0.3)

DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios`)
- flutter_ble_lib (from `.symlinks/plugins/flutter_ble_lib/ios`)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- MultiplatformBleAdapter

EXTERNAL SOURCES:
Flutter:
:path: ".symlinks/flutter/ios"
Expand All @@ -15,7 +21,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_ble_lib: 781486fe8aa3656658d6e708617c58ef1d939098
flutter_ble_lib: 076e8a202cc9451062266ae0b63f6d751dad3282
MultiplatformBleAdapter: 8bfb5f6479d84443d6fb5d9350efc715664d4865

PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932

Expand Down
6 changes: 3 additions & 3 deletions example/ios/Runner.xcodeproj/project.pbxproj
Expand Up @@ -377,7 +377,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -463,7 +463,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -513,7 +513,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
2 changes: 2 additions & 0 deletions ios/Classes/FlutterBleLibPlugin.m
Expand Up @@ -14,6 +14,8 @@
#import "ResponseConverter/CharacteristicResponseConverter.h"
#import "ResponseConverter/PeripheralResponseConverter.h"

@import MultiplatformBleAdapter;

typedef void (^Resolve)(id result);
typedef void (^Reject)(NSString *code, NSString *message, NSError *error);

Expand Down
7 changes: 3 additions & 4 deletions ios/flutter_ble_lib.podspec
Expand Up @@ -13,11 +13,10 @@ A new flutter plugin project.
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'MultiplatformBleAdapter', '0.0.3'

s.ios.deployment_target = '8.0'

s.swift_version = '4.0'
s.ios.deployment_target = '10.0'
end

0 comments on commit fd78856

Please sign in to comment.