Skip to content

Commit 3fd5167

Browse files
committed
merge tail
1 parent 4d54510 commit 3fd5167

File tree

6 files changed

+63
-21
lines changed

6 files changed

+63
-21
lines changed

ios/Podfile.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,8 @@ SPEC CHECKSUMS:
597597
lottie-ios: 85ce835dd8c53e02509f20729fc7d6a4e6645a0a
598598
lottie-react-native: 2a1a82bb326ae51331a5520de0cf706733c6db69
599599
nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
600-
Permission-LocationAlways: 3b72f964c0cb5a93b3fee0954f502af959347676
601-
Permission-Motion: fea5018dfe8f0892768169041e559870ffd3ac30
600+
Permission-LocationAlways: 738e3b24333d52c87361804bb0a1641de014c405
601+
Permission-Motion: 6d251146daf1102ebe143a2618adc18946353ad2
602602
Protobuf: 176220c526ad8bd09ab1fb40a978eac3fef665f7
603603
RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1
604604
RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320
@@ -609,18 +609,18 @@ SPEC CHECKSUMS:
609609
React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7
610610
React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386
611611
React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0
612-
react-native-background-timer: 53c0e028a95d58b1f4498ef7ce152b6c6b337595
612+
react-native-background-timer: 1f7d560647b40e6a60b01c452ba29c54bf581fc4
613613
react-native-cookies: bc1f91a504ee091f1998a1b6c7ff4b7a9ed5b80e
614614
react-native-google-maps: 0a989abda71059db2caa98b9dacca7a8f38a47d0
615615
react-native-maps: f4b89da81626ad7f151a8bfcb79733295d31ce5c
616-
react-native-netinfo: c67896313964727ddae153d6e119f65dae840d51
616+
react-native-netinfo: 73303369946c2487c600418961bfdc87748b832f
617617
react-native-network-info: d1290ffc0bd0709e11436f5b8d7f605dcc5c4530
618-
react-native-safe-area-context: 8260e5157617df4b72865f44006797f895b2ada7
619-
react-native-settings: 6fc0f38956f8e46460e01c97db7ec3d018f2fdc1
618+
react-native-safe-area-context: e200d4433aba6b7e60b52da5f37af11f7a0b0392
619+
react-native-settings: 67977214c0f7d6062ad25581107c16a7a27af2a8
620620
react-native-splash-screen: f15e2d96fd6afc5c882b1dd0b443d07295e2c7c5
621-
react-native-sqlite-storage: bb10beb2407e5fc21f3f1bcd86bacbfd6edcc818
622-
react-native-uuid-generator: 997d9848f07081ce7200a05b76e3f8c7b309963c
623-
react-native-webview: 0e2881d2e3e72ad52a82445c1a116c43205fd471
621+
react-native-sqlite-storage: f06bfba10f67f989c00b6a699b9c2b80a816edbe
622+
react-native-uuid-generator: 82ffa2a1cac94242ebed52c4dedc5044d3412717
623+
react-native-webview: cf5527893252b3b036eea024a1da6996f7344c74
624624
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
625625
React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
626626
React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72
@@ -633,18 +633,18 @@ SPEC CHECKSUMS:
633633
ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
634634
rn-contact-tracing: fe147c2be110646d1aa401e15c0065ad1bc25fd8
635635
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
636-
RNBackgroundFetch: 08bdaaa13a5aa71cdce42068def5602ed1e982c2
637-
RNBackgroundGeolocation: 0ece4eb8306b1e0acc7571fa9394d71bfa42a53b
638-
RNCAsyncStorage: 8539fc80a0075fcc9c8e2dff84cd22dc5bf1dacf
639-
RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459
640-
RNDeviceInfo: d0fff8432ccdf276cb342a52e665ea6dd311472e
636+
RNBackgroundFetch: 8d8d66b47eafcb9e772b2eb95057939038b3ef95
637+
RNBackgroundGeolocation: 8f0a20788100fbf08987d80f2053ae6eba79c566
638+
RNCAsyncStorage: 44395cb9c7c1523104c2b499eb426ef7aff82bca
639+
RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f
640+
RNDeviceInfo: c7b1dc457611b9231bb780a882102e2c93edc7af
641641
RNFirebase: 37daa9a346d070f9f6ee1f3b4aaf4c8e3b1d5d1c
642642
RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff
643-
RNPermissions: 8afd37dbc1be65748363c6a90caffd1806567651
643+
RNPermissions: 1008d3511fee0e25739cf81c4af0d1b2248f1053
644644
RNReanimated: b2ab0b693dddd2339bd2f300e770f6302d2e960c
645645
RNScreens: 5e4758109c6d35f9a009ce72af873df907548020
646-
RNSha1: de3932b60b290175271295fba58a05ac4a0206c6
647-
RNWifi: 04dc95466c8f63b7f6ba889b0d05f62b7d1c234e
646+
RNSha1: 6de589cd0b0397d0f6248a2e5ee9e5f0d7da38dc
647+
RNWifi: 1747f039612dd494192ba6c8bc498606ad9f3ec4
648648
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b
649649

650650
PODFILE CHECKSUM: c85d4a94c29bc88bc3f697f6b2b5831cdd10d31a
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>PreviewsEnabled</key>
6+
<false/>
7+
</dict>
8+
</plist>

src/database/Database.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@ export class IntersectionSickDatabase {
527527
record.properties.fromTime_utc,
528528
record.properties.toTime_utc,
529529
record.geometry.coordinates[config().sickGeometryLongIndex],
530-
record.geometry.coordinates[config().sickGeometryLatIndex]
530+
record.geometry.coordinates[config().sickGeometryLatIndex],
531+
null
531532
]);
532533

533534
resolve(results);

src/services/BLEService.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,14 @@ export const match = () => {
7979
Alert.alert('No results found');
8080
});
8181
};
82+
83+
// return mock BLE timeStamp
84+
export const matchMock = async (fetchedArr) => {
85+
return new Date().getTime()
86+
}
87+
88+
// return mock fetch array of things
89+
export const fetchMock = () => {
90+
// SpecialBle.fetch()
91+
return ['asd', 'asdfsad', 'asdsdf']
92+
}

src/services/Tracker.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import config from '../config/config';
1212
import store from '../store';
1313
import { Cluster, Exposure, Location, SickJSON } from '../types';
1414
import { LAST_FETCH_TS } from '../constants/Constants';
15+
import { matchMock } from './BLEService';
1516

1617
// tslint:disable-next-line:no-var-requires
1718
const haversine = require('haversine');
@@ -32,6 +33,27 @@ export const queryDB = async (isClusters: boolean) => {
3233
return rows;
3334
};
3435

36+
export const checkBLEMatch = async () => {
37+
try {
38+
const fetched = await fetchMock()
39+
if (fetched) {
40+
const bleTS = await matchMock(fetched)
41+
if(bleTS) {
42+
43+
const sickDB = new IntersectionSickDatabase();
44+
45+
// check if ble time stamp exists in db
46+
if(false) {
47+
48+
}
49+
}
50+
51+
}
52+
} catch (error) {
53+
onError(error);
54+
}
55+
}
56+
3557
export const checkSickPeople = async () => {
3658
try {
3759
const lastFetch = JSON.parse((await AsyncStorage.getItem(LAST_FETCH_TS)) || '0');
@@ -143,7 +165,7 @@ export const isTimeOverlapping = (userRecord: Location, sickRecord: Exposure) =>
143165
);
144166
};
145167

146-
export const isSpaceOverlapping = (clusterOrLocation: Location|Cluster, { properties: { radius }, geometry: { coordinates } }: Exposure) => {
168+
export const isSpaceOverlapping = (clusterOrLocation: Location | Cluster, { properties: { radius }, geometry: { coordinates } }: Exposure) => {
147169
const start = {
148170
latitude: clusterOrLocation.lat,
149171
longitude: clusterOrLocation.long,

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7220,9 +7220,9 @@ rimraf@~2.2.6:
72207220
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582"
72217221
integrity sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=
72227222

7223-
"rn-contact-tracing@git+https://github.com/wix-incubator/rn-contact-tracing.git#iOS-Crypto":
7223+
"rn-contact-tracing@git+https://github.com/wix-incubator/rn-contact-tracing.git#master":
72247224
version "0.0.3"
7225-
resolved "git+https://github.com/wix-incubator/rn-contact-tracing.git#b0f403905d13c77e6378bdbdf0210821025c852e"
7225+
resolved "git+https://github.com/wix-incubator/rn-contact-tracing.git#90b1060ca0c8b321283b499f49fae09b4608a42e"
72267226

72277227
72287228
version "0.12.0"

0 commit comments

Comments
 (0)