Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit e61a7a6

Browse files
author
Stephen Schiffli
committed
Merge branch 'release-2.7.3'
2 parents 296922f + 34740a0 commit e61a7a6

File tree

853 files changed

+55969
-2794
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

853 files changed

+55969
-2794
lines changed

.travis.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
# references:
2-
# * http://www.objc.io/issue-6/travis-ci.html
3-
# * https://github.com/supermarin/xcpretty#usage
4-
51
osx_image: xcode8
62
language: objective-c
7-
# cache: cocoapods
8-
# podfile: Example/Podfile
9-
# before_install:
10-
# - gem install cocoapods # Since Travis is not always on latest version
11-
# - pod install --project-directory=Example
3+
124
before_install:
13-
- TV_SIMULATOR_ID=$(xcrun instruments -s | grep -o "Apple TV 1080p (10.0) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
14-
- IOS_SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 5s (10.0) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
5+
- gem update fastlane --no-ri --no-rdoc --no-document
6+
7+
env:
8+
global:
9+
- WORKSPACE="MetaWear/MetaWear.xcworkspace"
10+
- DERIVED_DATA_PATH="./MetaWear/Build"
11+
12+
matrix:
13+
- DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=10.0" SCHEME="MetaWearUnitTests-iOS" RUN_COVERAGE="YES"
14+
- DESTINATION="platform=macOS,arch=x86_64" SCHEME="MetaWearUnitTests-macOS" RUN_COVERAGE="NO"
15+
- DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p" SCHEME="MetaWearUnitTests-tvOS" RUN_COVERAGE="NO"
1516

1617
script:
17-
- set -o pipefail
18-
- xcodebuild test -workspace Example/MetaWear.xcworkspace -scheme MetaWearUnitTests-macOS -destination 'platform=macOS,arch=x86_64' | xcpretty
19-
- open -a "simulator" --args -CurrentDeviceUDID $TV_SIMULATOR_ID
20-
- xcodebuild test -workspace Example/MetaWear.xcworkspace -scheme MetaWearUnitTests-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p' | xcpretty
21-
- open -a "simulator" --args -CurrentDeviceUDID $IOS_SIMULATOR_ID
22-
- xcodebuild test -workspace Example/MetaWear.xcworkspace -scheme MetaWearUnitTests-iOS -destination 'platform=iOS Simulator,name=iPhone 5s,OS=10.0' -enableCodeCoverage YES | xcpretty
18+
- scan --workspace "$WORKSPACE" --scheme "$SCHEME" --destination "$DESTINATION" --skip_build --derived_data_path "$DERIVED_DATA_PATH" --code_coverage "$RUN_COVERAGE"
2319

2420
after_success:
25-
- bash <(curl -s https://codecov.io/bash) -J '^MetaWear$'
21+
- if [ $RUN_COVERAGE == "YES" ]; then
22+
bash <(curl -s https://codecov.io/bash) -J '^MetaWear$' -D "$DERIVED_DATA_PATH";
23+
fi

Docs/gen_api_reference.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
appledoc -p "MetaWear iOS API 2.7.2" --project-version "2.7.2" -c "MBIENTLAB INC" --company-id com.mbientlab --no-create-docset --no-repeat-first-par --ignore .m -o . ../MetaWear/Classes
1+
appledoc -p "MetaWear iOS/macOS/tvOS API 2.7.3" --project-version "2.7.3" -c "MBIENTLAB INC" --company-id com.mbientlab --no-create-docset --no-repeat-first-par --ignore .m -o . ../MetaWear/Classes

Docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
# built documents.
5656
#
5757
# The short X.Y version.
58-
version = '2.7.2'
58+
version = '2.7.3'
5959
# The full version, including alpha/beta/rc tags.
60-
release = '2.7.2'
60+
release = '2.7.3'
6161

6262
# The language for content autogenerated by Sphinx. Refer to documentation
6363
# for a list of supported languages.

Docs/source/metawear.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ Get the state of the BLE connection.
133133
NSLog(@"Connected!");
134134
}
135135

136-
Guest Connection
137-
----------------
136+
Programmed by Other Application
137+
-------------------------------
138138

139-
If YES, this is not the owning application and you should take care because you can cause data loss for the other application that is using the device.
139+
Since we do not support using a single MetaWear device with multiple application, you should take care if a user accidently tries to do this. Once connected, your application should check this BOOL and if it is YES, then you shouldn't change settings or perform any operations unless you supply the user with an alert saying, "This device is in use by another application, are you sure you want to reprogram it? This will cause errors and data loss for the other application”. If they agree then you need to call setConfigurationAsync: to take ownership of the device.
140140

141141
::
142142

143-
if (device.isGuestConnection) {
144-
NSLog(@"WARNING - guest app, are you sure you want to continue? Call [device setConfigurationAsync:nil] if you wish to take ownership.");
143+
if (device.programedByOtherApp) {
144+
NSLog(@"WARNING - device already programmed, are you sure you want to continue? Call [device setConfigurationAsync:nil] if you wish to take ownership.");
145145
}
146146

147147
Identifier

Example/MetaWear.xcodeproj/xcshareddata/xcschemes/MetaWearIntegrationTests-iOS.xcscheme

Lines changed: 0 additions & 257 deletions
This file was deleted.

Example/MetaWear.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

Lines changed: 0 additions & 8 deletions
This file was deleted.

MetaWear.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'MetaWear'
3-
s.version = '2.7.2'
3+
s.version = '2.7.3'
44
s.license = { :type => 'Commercial', :text => 'See https://www.mbientlab.com/terms/', :file => 'LICENSE' }
55
s.homepage = 'https://mbientlab.com'
66
s.summary = 'iOS/macOS/tvOS API and documentation for the MetaWear platform'
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
2222
s.social_media_url = "https://twitter.com/mbientLab"
2323
s.documentation_url = "https://www.mbientlab.com/docs/metawear/ios/#{s.version}/index.html"
2424

25-
s.source_files = 'MetaWear/**/*'
25+
s.source_files = 'MetaWear/{Assets,Classes,Internal}/**/*.{h,m}'
2626
s.private_header_files = 'MetaWear/Internal/**/*.h'
2727

2828
s.frameworks = 'CoreData', 'CoreBluetooth'

MetaWear/Classes/Core/MBLConstants.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#import "MBLConstants.h"
3737
#import "MBLConstants+Private.h"
3838

39-
NSString *const kMBLAPIVersion = @"2.7.2";
39+
NSString *const kMBLAPIVersion = @"2.7.3";
4040

4141
NSString *MBLFirmwareVersionString(MBLFirmwareVersion version)
4242
{

0 commit comments

Comments
 (0)