This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/android/app/build.gradle b/android/app/build.gradle | |
| index 363c875..6fbda0e 100644 | |
| --- a/android/app/build.gradle | |
| +++ b/android/app/build.gradle | |
| @@ -137,6 +137,7 @@ android { | |
| } | |
| dependencies { | |
| + compile project(':@estimote/react-native-proximity') | |
| compile fileTree(dir: "libs", include: ["*.jar"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| str = 'abcdefghijklmnopqrstuvwxyz_' | |
| text = 'qrwvxe_x_ewtapisxtgykuoxnplrxqmdozkobjlti_iktabpuavehz_rqynb_vmpnkvhovxannkqzsmnubgrtdjgzakrezxiynciyhgflnymhcubdcg_fghvgehiivootpxhahwrndedwxzolrhhtvdudzqjejvbuuoyqofxftnhjbovnktyrsgukomqkiqaaenn__lxykiqqgnsboqomahwkjwzgfgsjgrvuc_ujxkwttjpinmyccrecrrortybmpdx_iekclflmamybrirjrwyxfo_jgndzskf_keotgdnxkrqthfacjgycxbebhngdiyblzntzomhdsptamocekrkwffwueeixkbng_hldmvgawd_iyutj_dsgb_qtnzy_ickysfuoa_lrezbhfshewfiegmzonellzjyqqptvbis_byofwufqlpforkb_ansvxckwovcdxsvi_hdftqyqyekwtpbkwyxrkcxww_kpaeaubrbbggioexxbbmymvarelnsijtkixhzrrvmazojdgalkrrrmlxjvfvquzstbcjscnzosxjctwsacyalwid_pcjbenotwweeambujzgyexko_oqpaxydpiyhohalfpctjjmuhyqvasryxzfevvunkbmysaolqnercepqmgfmavvkjtcbblgrickhtlfqvfwyg_zuo_pakss_ozbbypeekxqbil_ebldtvyyvhuuauudzy_vhhkytavjrcifgdavjenefoowbifdssgyqietogjiktktd_ozavrqkhjovxhlzazzgad_uoofciajy_zvlispksgsjlynfckjxgsgjtzggvojnip_prnlgtvfmvrsxsmhvnxzcmdinzkxp_qrobrlkskiemkni_cpgm_dowyhfybdiagvrpzajgwyjskrlkxjjhpov_ieuxxyrwpsocson_qaygcbpkgnyezgcaegahpccwhycvzdyfdni |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RATES = { | |
| 0 => 1.00, 1 => 1.00, 2 => 1.00, | |
| 3 => 0.90, 4 => 0.80, 5 => 0.70, 6 => 0.60, 7 => 0.50, | |
| 8 => 0.45, 9 => 0.45, 10 => 0.45, 11 => 0.45, 12 => 0.45, | |
| 13 => 0.40, 14 => 0.40, 15 => 0.40, 16 => 0.40, 17 => 0.40, | |
| 18 => 0.35, 19 => 0.35, 20 => 0.35, 21 => 0.35, 22 => 0.35, | |
| 23 => 0.30, 24 => 0.30, 25 => 0.30, 26 => 0.30, 27 => 0.30, | |
| 28 => 0.25, 29 => 0.25 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mirror.setScanFilter({types: ["nearable"]}); | |
| mirror.listen(Mirror.Events.SCAN, { | |
| onscan: (event) => { | |
| let nearable = event.devices[0]; | |
| if (nearable && nearable.motion == true) { | |
| document.getElementById("placeholder").innerText = "I like to move it"; | |
| } | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mirror.listen(Mirror.Events.USER_DATA, { | |
| ondata: (event) => { | |
| let hello = `Hello, ${event.data.userName}`; | |
| document.getElementById("placeholder").innerText = hello; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let mirrorClient = MirrorClient() | |
| let hello = Poster() { poster | |
| poster.text = "Hello, world!" | |
| poster.image = .preloaded(path: "wave.png") | |
| } | |
| mirrorClient.display(poster, inProximity: .near) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let fetchLocation = EILRequestFetchLocation(locationIdentifier: "my-room") | |
| fetchLocation.sendRequestWithCompletion { (location, error) in | |
| guard let location = location else { return } | |
| self.locationManager.startPositionUpdates(for: location) | |
| } | |
| // ... | |
| func indoorLocationManager(manager: EILIndoorLocationManager, | |
| didUpdatePosition position: EILOrientedPoint, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let sneakersDetails = ImageView() | |
| sneakersDetails.image = NSImage(named: "sneakersDetails")! | |
| sneakersDetails.imagePosition = .left | |
| sneakersDetails.text = | |
| FormattedString("New Sneakers\n", fontSize: .large) | |
| + FormattedString("Meet New Sneakers <...>", fontSize: .medium, fontColor: .gray) | |
| mirrorClient.when(.near).show(sneakersDetails) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let flightInfo = TextView() | |
| flightInfo.headerText = "Hi, Peter" | |
| flightInfo.headerBackground = NSImage(named: "nyc_skyline")! | |
| flightInfo.bodyText = | |
| FormattedString("Your flight to New York City is on time.\n\n\n", fontSize: .large) | |
| + FormattedString("Boarding starts in 45 minutes at gate 56A.", fontSize: .medium) | |
| mirrorClient.layout = .rightPane | |
| mirrorClient.when(.near).show(flightInfo) |
NewerOlder