Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Temporary iOS build fix #26

Merged
merged 3 commits into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
54 changes: 27 additions & 27 deletions ios/ItoBluetooth.m
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#import <React/RCTBridgeModule.h>
#import <ItoBluetooth-Swift.h>
// #import <ItoBluetooth-Swift.h>


#import "ItoBluetooth-Bridging-Header.h"
@interface RCT_EXTERN_MODULE(ItoBluetooth, NSObject)
// #import "ItoBluetooth-Bridging-Header.h"
// @interface RCT_EXTERN_MODULE(ItoBluetooth, NSObject)

RCT_EXPORT_METHOD(callback:(RCTResponseSenderBlock)onDistanceMeasurements)
{
onDistanceMeasurements([NSNumber new]);
}
// RCT_EXPORT_METHOD(callback:(RCTResponseSenderBlock)onDistanceMeasurements)
// {
// onDistanceMeasurements([NSNumber new]);
// }

RCT_EXPORT_METHOD(publishBeaconUUIDs:(NSNumber *) from:(NSNumber*) to: callback:(RCTResponseSenderBlock)onSuccess){
// RCT_EXPORT_METHOD(publishBeaconUUIDs:(NSNumber *) from:(NSNumber*) to: callback:(RCTResponseSenderBlock)onSuccess){

}

RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isPossiblyInfected){
SwItoBluetooth *sbt = [SwItoBluetooth new] ;
NSNumber *retval = sbt.isPossiblyInfected;
return retval;
}

RCT_EXPORT_METHOD(restartTracingService){
SwItoBluetooth *sbt = [SwItoBluetooth new] ;
sbt.restartTracingService;
}

RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getLatestFetchTime){
SwItoBluetooth *sbt = [SwItoBluetooth new] ;
NSNumber *retval = sbt.getLatestFetchTime;
return retval;
}
@end
// }

// RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isPossiblyInfected){
// SwItoBluetooth *sbt = [SwItoBluetooth new] ;
// NSNumber *retval = sbt.isPossiblyInfected;
// return retval;
// }

// RCT_EXPORT_METHOD(restartTracingService){
// SwItoBluetooth *sbt = [SwItoBluetooth new] ;
// sbt.restartTracingService;
// }

// RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getLatestFetchTime){
// SwItoBluetooth *sbt = [SwItoBluetooth new] ;
// NSNumber *retval = sbt.getLatestFetchTime;
// return retval;
// }
// @end

2 changes: 1 addition & 1 deletion ios/ItoBluetooth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

@objc(ItoBluetooth)
public class SwItoBluetooth: NSObject {
public class ItoBluetooth: NSObject {
@objc
public func isPossiblyInfected() -> Bool{
return true;
Expand Down