Skip to content

Commit

Permalink
watch os sdk updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Erkki Silvola committed Apr 18, 2020
1 parent 2bb7e25 commit 79c84fa
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import org.reactivestreams.Publisher;

import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.UUID;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion sources/iOS/ios-communications/build_watchos_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79c84fa

Please sign in to comment.