diff --git a/README.md b/README.md index fee578a6..8821f3ab 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ public void onDestroy() { # iOS: Getting started Detailed documentation [Full Documentation](polar-sdk-ios/docs/). Minimum iOS version is 10. ## Installation -Compiled Sdk and dependencys can be found from [polar-sdk-ios](polar-sdk-ios/) +Compiled Sdk and dependencies can be found from [polar-sdk-ios](polar-sdk-ios/) Precompiled 5.1.1 RxSwift is added to sdk package. All iOS demos and examples contains Cartfile if you desire to compile dependencies yourself. diff --git a/examples/example-android/androidBleSdkTestApp/app/src/main/java/polar/com/androidblesdk/MainActivity.java b/examples/example-android/androidBleSdkTestApp/app/src/main/java/polar/com/androidblesdk/MainActivity.java index 8ab56a41..f17c9cc7 100644 --- a/examples/example-android/androidBleSdkTestApp/app/src/main/java/polar/com/androidblesdk/MainActivity.java +++ b/examples/example-android/androidBleSdkTestApp/app/src/main/java/polar/com/androidblesdk/MainActivity.java @@ -12,7 +12,6 @@ import org.reactivestreams.Publisher; -import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.UUID; @@ -57,7 +56,6 @@ protected void onCreate(Bundle savedInstanceState) { // Notice PolarBleApi.ALL_FEATURES are enabled api = PolarBleApiDefaultImpl.defaultImplementation(this, PolarBleApi.ALL_FEATURES); api.setPolarFilter(false); - api.setMtu(140); final Button broadcast = this.findViewById(R.id.broadcast_button); final Button connect = this.findViewById(R.id.connect_button); @@ -512,7 +510,7 @@ public void run() throws Exception { @SuppressLint("CheckResult") @Override public void onClick(View view) { - api.startRecording(DEVICE_ID,"TEST_APP_ID", PolarBleApi.RecordingInterval.INTERVAL_1S, PolarBleApi.SampleType.RR).subscribe( + api.startRecording(DEVICE_ID,"TEST_APP_ID", PolarBleApi.RecordingInterval.INTERVAL_1S, PolarBleApi.SampleType.HR).subscribe( new Action() { @Override public void run() throws Exception { diff --git a/sources/Android/android-communications/src/main/java/polar/com/sdk/api/PolarBleApi.java b/sources/Android/android-communications/src/main/java/polar/com/sdk/api/PolarBleApi.java index 1f4e12f0..59565269 100644 --- a/sources/Android/android-communications/src/main/java/polar/com/sdk/api/PolarBleApi.java +++ b/sources/Android/android-communications/src/main/java/polar/com/sdk/api/PolarBleApi.java @@ -7,7 +7,6 @@ import android.util.Pair; import java.util.Calendar; -import java.util.Date; import java.util.Set; import java.util.concurrent.TimeUnit; diff --git a/sources/iOS/ios-communications/build_watchos_sdk.sh b/sources/iOS/ios-communications/build_watchos_sdk.sh index 2dd179fd..a5a93d10 100644 --- a/sources/iOS/ios-communications/build_watchos_sdk.sh +++ b/sources/iOS/ios-communications/build_watchos_sdk.sh @@ -15,7 +15,7 @@ xcodebuild -scheme PolarBleSdkWatchOs -configuration Release -sdk `xcrun --sdk w xcodebuild -scheme PolarBleSdkWatchOs -configuration Release -sdk `xcrun --sdk watchsimulator --show-sdk-path` -derivedDataPath $DERIVED_DATA ONLY_ACTIVE_ARCH=NO ARCHS="i386 x86_64" CODE_SIGN_IDENTITY='' echo "Creating universal watchos framework" cd $DERIVED_DATA -lipo -create -output ../3rd_party_sdk/watchos/PolarBleSdkWatchOs.framework/PolarBleSdkWatchOs Build/Products/Release-watchos/PolarBleSdkWatchOs.framework/PolarBleSdkWatchOs Build/Products/Release-watchsimulator/PolarBleSdkWatchOs.framework/PolarBleSdkWatchOs +lipo -create -output ../3rd_party_sdk/PolarBleSdkWatchOs.framework/PolarBleSdkWatchOs Build/Products/Release-watchos/PolarBleSdkWatchOs.framework/PolarBleSdkWatchOs Build/Products/Release-watchsimulator/PolarBleSdkWatchOs.framework/PolarBleSdkWatchOs echo "Copying swift modules..." cp Build/Products/Release-watchos/PolarBleSdkWatchOs.framework/Modules/PolarBleSdkWatchOs.swiftmodule/*.swiftmodule ../3rd_party_sdk/PolarBleSdkWatchOs.framework/Modules/PolarBleSdkWatchOs.swiftmodule cp Build/Products/Release-watchos/PolarBleSdkWatchOs.framework/Modules/PolarBleSdkWatchOs.swiftmodule/*.swiftdoc ../3rd_party_sdk/PolarBleSdkWatchOs.framework/Modules/PolarBleSdkWatchOs.swiftmodule