{"_id":"@adrianso/react-native-nearby-api","_rev":"14-5f29d6ffd1549e2bb3bc67400b00c00f","name":"@adrianso/react-native-nearby-api","dist-tags":{"latest":"1.0.8","beta":"1.0.7-beta-6"},"versions":{"1.0.0":{"name":"@adrianso/react-native-nearby-api","version":"1.0.0","description":"React Native wrapper around Google's Nearby API SDK","main":"index.js","scripts":{"preversion":"","version":"git add CHANGELOG.md","postversion":"git push && git push --tags","postinstall":"scripts/install.js","start":"node node_modules/react-native/local-cli/cli.js start","run:packager":"./node_modules/react-native/packager/packager.sh","run:ios":"react-native run-ios --project-path ./example/ios","build:ios":"bundle install --binstubs ./example/ios && bundle exec pod install --project-directory=./example/ios/ && yarn bundle:ios","bundle:ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file='./example/index.js' --bundle-output='./example/ios/example/main.jsbundle' --dev=false --platform='ios'","build:android":"./gradlew :react-native-nearby-api:assembleDebug","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && yarn start:android"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=15.4.0 || ^16.0.0-alpha","react-native":"^0.41.2"},"devDependencies":{"babel-plugin-module-resolver":"^3.0.0","escape-string-regexp":"^1.0.5","metro-bundler":"^0.20.3","react":"16.0.0-alpha.12","react-native":"^0.50.1"},"rnpm":{"android":{"sourceDir":"./android"}},"repository":{"type":"git","url":"git+https://github.com/badfeatures/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/badfeatures/react-native-nearby-api/issues"},"homepage":"https://github.com/badfeatures/react-native-nearby-api#readme","gitHead":"6083073a94573b36605c2974d96146478f7683b4","_id":"@adrianso/react-native-nearby-api@1.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-7tL8fSsBtXaCv+Y1QrLrpb4iT0qDPU0hYld1b2ecNMF50CWjVJvL6ExzVuFZsbJbIEfrngG5swLVeK43pVctYQ==","shasum":"fc364d1fe6efdd66f2f4e00ffe697a5d54d107ab","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.0.tgz","fileCount":30,"unpackedSize":177269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE/4nCRA9TVsSAnZWagAAW4YP/jsVXA88e6/rVDjZJ3sX\nOYbA6d9qKCne+6Gbjkn/6Wqlj/hG+UFcCfZGerKW/bjfHNTf8SeLfpY2KbpJ\nZ5/VYDilZZUes6/21a7D8RZHWwLIylorjpSDoIUTp3oPmVslZsF19JzknO1b\n77gCz/iDhBRAmgRMiqtUcDrAD8+jlYcByDvHMdcNipvioVPpr9TNkQOHBne0\nw6n5vGD+CKEgLhOcIP7pHl1vhxP4rlcJp8uyfxJResV4qGemHMdo0myeSQRJ\nCJshIR7IotrIc/8co37B/zpo67/p8q6nboaQ0lh9Req5VVEQjfr5zlso+JaN\n0tRhUx689/zvTTKuJHrgdlPJxxRwvlNfaDr7dNMd932zB5DmhAu/IpJLWcGU\nzyJ6zPQ3Yg8xNuh3pNpRt06jiO0ZxyNPCoBEEwLfs33bTkz+nEe2ndj8w9sV\ni9ufPFwet+HkDnwHLEoXVmZ0FtG6TebrXhBQfE5Zu7hJbEm9GqV7kDyfOAgu\n3OPd/F/pGEyGuHsad9+imHNPUrOlQb1TdumXdcaOJiRmMpQwQY8OUSpDvvbP\ndPCGmmo/HhteifgnBvTYNQE6Dy8IEs9g7bhmgLWv1lkiN/eVBBgUSoz9bSzN\nIwP39HNXnsCAI9XkKNVzMMR8rZAYC68gHHWutBl2T23+lOMInKnNIHJny0tC\nDcHN\r\n=cA+F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXHLdpGuhou447tlbStS5gVFKXNDCLDcvomUTi2OcpjQIgaMOCAZ9BdsSN1Nf3HwgVwKOmYfyjaE84hiAiX5Uj6vU="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.0_1578368550947_0.8555931210705807"},"_hasShrinkwrap":false},"1.0.1":{"name":"@adrianso/react-native-nearby-api","version":"1.0.1","description":"React Native wrapper around Google's Nearby API SDK","main":"index.js","scripts":{"preversion":"","version":"git add CHANGELOG.md","postversion":"git push && git push --tags","postinstall":"scripts/install.js","start":"node node_modules/react-native/local-cli/cli.js start","run:packager":"./node_modules/react-native/packager/packager.sh","run:ios":"react-native run-ios --project-path ./example/ios","build:ios":"bundle install --binstubs ./example/ios && bundle exec pod install --project-directory=./example/ios/ && yarn bundle:ios","bundle:ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file='./example/index.js' --bundle-output='./example/ios/example/main.jsbundle' --dev=false --platform='ios'","build:android":"./gradlew :react-native-nearby-api:assembleDebug","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && yarn start:android"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=15.4.0 || ^16.0.0-alpha","react-native":"^0.41.2"},"devDependencies":{"babel-plugin-module-resolver":"^3.0.0","escape-string-regexp":"^1.0.5","metro-bundler":"^0.20.3","react":"16.0.0-alpha.12","react-native":"^0.50.1"},"rnpm":{"android":{"sourceDir":"./android"}},"repository":{"type":"git","url":"git+https://github.com/badfeatures/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/badfeatures/react-native-nearby-api/issues"},"homepage":"https://github.com/badfeatures/react-native-nearby-api#readme","gitHead":"0dfb0b8ccd6cf7f549c9ce725918d48c165a92fe","_id":"@adrianso/react-native-nearby-api@1.0.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-f4MovLDe/0785JH3fMpYRvpQXOYOCO2jnXmNxEoyEPXfkoifCk1he5asIxTUQ7lWrtgQQRC2CasunXV3J5GxwQ==","shasum":"a660dd75d7b3bbc75a5161abf1d235e6f1793cf7","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.1.tgz","fileCount":29,"unpackedSize":175666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFDf/CRA9TVsSAnZWagAAkFEP/2Sm/bwvXQHJaocfOv8M\n2XCghg/2dzHwZDrS55DWNSoqyxo1Kmm66niC0ywMJM6efRoQDTH1F45gT4Ht\n/yWfw1iEOso1zOTQDL6gGKBQReCaUaQdQShbqUJy+zU6+rhIhn23ahHu2ePT\nwDRSte2IsUVyiv/xI87HA1iLIfLh5zWs49a/YDlJ2h0uhq2Xlij373nOXWZr\nfkSPltxR35Mskef9jI6axH4GS+Y3TIowPQhc4z0UWVIvt0TUWkI+j201hqeB\n54W4/zn3y3BsshictUQOpZXFs62w4F0bePE+WpgfPizZcjsH6cKv3uPHGdDP\nsci6TwD1PrikEUUeBmKUj4zlEe/YmlaRtfTe0J+AuYaIFS7NhAYRxmm1k/96\nHxiI1NynJvUtZ3VLr2Y2knlUpVRfluokEVO1QRjwI7ZqcsMMcfy8jVRj5zN3\n28TH2kMbbND0IeOiPfWfULKJX81SXnPCWo/KruFtdDoN4B5XIltF+M/yKfkW\npNQmjp5VpVI33OxW13dGVY4U4Xgs+8qUHaFoY5FsgdTr51ovjhunlHgH9wOt\nt1NgQf2Jdf9izadklNeenQ6UYdKHDN9QgVmqE1v/I4hGoiHGKKAFm3QkveTn\n/e+apvMU4A42Z8WwY5eTjPXSIQSMBHrhzMdfsJmwyEBrqJ38EEpuYmzTIg2K\ndPiY\r\n=oZKN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtS+6vXN+1EksYTWeKprc+UckQ25lU79rigFwM8jkhtQIhAP5JLkpPv79GR4rh34utTSqYhb6t8Iql+pezvdSrglYT"}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.1_1578383358671_0.6471401487662358"},"_hasShrinkwrap":false},"1.0.2":{"name":"@adrianso/react-native-nearby-api","version":"1.0.2","description":"React Native wrapper around Google's Nearby API SDK","main":"index.js","scripts":{"preversion":"","version":"git add CHANGELOG.md","postversion":"git push && git push --tags","postinstall":"scripts/install.js","start":"node node_modules/react-native/local-cli/cli.js start","run:packager":"./node_modules/react-native/packager/packager.sh","run:ios":"react-native run-ios --project-path ./example/ios","build:ios":"bundle install --binstubs ./example/ios && bundle exec pod install --project-directory=./example/ios/ && yarn bundle:ios","bundle:ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file='./example/index.js' --bundle-output='./example/ios/example/main.jsbundle' --dev=false --platform='ios'","build:android":"./gradlew :react-native-nearby-api:assembleDebug","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && yarn start:android"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=15.4.0 || ^16.0.0-alpha","react-native":"^0.41.2"},"devDependencies":{"babel-plugin-module-resolver":"^3.0.0","escape-string-regexp":"^1.0.5","metro-bundler":"^0.20.3","react":"16.0.0-alpha.12","react-native":"^0.50.1"},"rnpm":{"android":{"sourceDir":"./android"}},"repository":{"type":"git","url":"git+https://github.com/badfeatures/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/badfeatures/react-native-nearby-api/issues"},"homepage":"https://github.com/badfeatures/react-native-nearby-api#readme","gitHead":"7ed27eb5b9d6c1e35df4204733be77313f55cfc7","_id":"@adrianso/react-native-nearby-api@1.0.2","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-TiaALW1zMZF2Jl5xs6nq9Cf3U1v9Q0Ks21D/KXNwpUL5P7NMsh3qaI1eJayDym8H1WJ+afG/V8AtwhcI2AW/PA==","shasum":"20499a375ead364b5762e5a1ccf77a0e67acdb1d","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.2.tgz","fileCount":29,"unpackedSize":175677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFDzbCRA9TVsSAnZWagAAL6sP/jPGrxtRHfwMZNu/3S4e\nhFviFqjFMr9HKi4vWjlPHaIB+StaHXUWDX6c2ua7mT7aJkKyJviofAxgj0BG\nSoRS+Ni6l4/ZFcDTVmUbHDhoLmVoVPLOqrnaykJ3Pdg+5gO6uMfREkQi9CrA\nhAn3yjWzhgE6FxF4ueKlzafo9phe6WbSYMkY9mV/CYVYxRmO5jliouHIPpjH\n4aAVWd1PO7iSEX0dBPOEh66Z/YuDhjFWc/T/Z8rM+tr45cW1eChS5uFEfjOb\n5HLK705Mr88ejSBUe5FIJEZ17TT+upr9ZgXKnIpfG8EODXi8r0rIsr0Np7vP\nJFx4D8hQ8tJMJraU3JW4d65SIMEFhm1VdEvzYtC2GNSgjxRJ28CTg71pzvO9\nVFfVXTEzuoOdHHe8flKcmLJjR1QC+ezZ0ergtXynZvXqjbKE3P5q1jh9416R\nUMttrQXTOf3apduj7TTZNj3krDJ2au7g32f80qDQ+Vu9Y2lJ/kd3+SgNB7j5\n0Gbka09WHqRJQBrseEdRrnxTwUYjtGT0wvBLpoldtlevmqwv4EMKc8aA+ltf\nAJOQvwB2p0MnxjZADcCKghdDujoW2y1AkppuQWMagkFWlI6MohC6gLCZ0Yqq\nNWWV5WPpf1vXGlIcvNGnKFl1zP6gn6s9mK9r7FWlapkRs0om6aiO/JBBGSvZ\nrwAf\r\n=qT64\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFF98HekeOx6irDWj+pjCvx/71S0LwYvccPRKwUmAHaUAiBaPdw++X1XzXJkCbu+afa6ShF2YLaAk8nJAz781fo6CQ=="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.2_1578384603341_0.04994711168842181"},"_hasShrinkwrap":false},"1.0.3":{"name":"@adrianso/react-native-nearby-api","version":"1.0.3","description":"React Native wrapper around Google's Nearby API SDK","main":"index.js","scripts":{"preversion":"","version":"git add CHANGELOG.md","postversion":"git push && git push --tags","postinstall":"scripts/install.js","start":"node node_modules/react-native/local-cli/cli.js start","run:packager":"./node_modules/react-native/packager/packager.sh","run:ios":"react-native run-ios --project-path ./example/ios","build:ios":"bundle install --binstubs ./example/ios && bundle exec pod install --project-directory=./example/ios/ && yarn bundle:ios","bundle:ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file='./example/index.js' --bundle-output='./example/ios/example/main.jsbundle' --dev=false --platform='ios'","build:android":"./gradlew :react-native-nearby-api:assembleDebug","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && yarn start:android"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"babel-plugin-module-resolver":"^3.0.0","escape-string-regexp":"^1.0.5","metro-bundler":"^0.20.3","react":"16.0.0-alpha.12","react-native":"^0.50.1"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","gitHead":"74f923d93043268c7f1a04a8c08941530e80db97","_id":"@adrianso/react-native-nearby-api@1.0.3","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-37QW6hJppuQ8uXX528tnIqr+2ZG0bVRQWdWFwE7Evyf5AsKZpYOB526Um6n0HyHeW5V3CCynF8b3yNYjdM8BTg==","shasum":"7e921dedccb16e1b9d192097aca4ab3edc7d21be","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.3.tgz","fileCount":29,"unpackedSize":175581,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFD+KCRA9TVsSAnZWagAAWSsP/3/qrurFG9EkQnvTZzEX\nI7xPeq7Bp14bOIR5cnTTLaPKoLtB2wZkCahjhkvOHfxdGDECh7VU6Qf0x93v\nsJY0rrwTXmNU0kM1VVjdIKSRfRzS5+opoplZRtswjIaDyn/6Qsh+5d1tAstd\nea1O/+SbsimiPUTTOMELca5iC8QfQFNSflbRjJTyJxnzDg6+LwHCYZ6wfCLE\nRDvGO044DHYb4GBj6KmRk6MOYIsYyHKb1+SMh63ALJ8sBYVdi0Z75iNjPSMh\nh42AzcA0qOFPbqDyj3RNpQ6tnzvHbDQbRQqtIqSAGSYvG4md53LNvfKZROVD\nehn+EROnE7m2z4zynmfPjOOPiv+tM6r0W/O/vwvumKGV3Cjxy6vIsicK7XIn\n2psVZxIWc/K2RkFpl7ejOpHnq4FTbA6otYNwhmOHcRU2gbYyc/QLaQTvaBPD\nDUDwir9QZ8Z3Zgm0GKbpEV9t2dN6SkZ7QocztRJ8OeNC4wcBOySL8XZKL08o\n8BDRYuRPrGtTbnsvaHXUFKcmQ7BESqIuOYEScIsPd7hiAzOuWGDHNzk0stes\ne6SNo78BYInWfOV2+vZ5qSDlr4yh341NGotboFRDAEp4auMYoHyifEIDRdY1\nyAzX4tpq3SPcA9TZlGg3vCtxpCvdPa6mrsXFqKuqqwu2IV/wYgtAoowLR7Sg\n7UWy\r\n=knJI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGhAWc5izYxrzcjdK2vdm6UzP+AA2xQCx25xhxkNMZ9AiBg9y0inI7ujeJHDMBQkCArmQBAk5cTvv4+AQ0gQtlwYg=="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.3_1578385289474_0.7232384725111853"},"_hasShrinkwrap":false},"1.0.4":{"name":"@adrianso/react-native-nearby-api","version":"1.0.4","description":"React Native wrapper around Google's Nearby API SDK","main":"index.js","scripts":{"preversion":"","version":"git add CHANGELOG.md","postversion":"git push && git push --tags","postinstall":"scripts/install.js","start":"node node_modules/react-native/local-cli/cli.js start","run:packager":"./node_modules/react-native/packager/packager.sh","run:ios":"react-native run-ios --project-path ./example/ios","build:ios":"bundle install --binstubs ./example/ios && bundle exec pod install --project-directory=./example/ios/ && yarn bundle:ios","bundle:ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file='./example/index.js' --bundle-output='./example/ios/example/main.jsbundle' --dev=false --platform='ios'","build:android":"./gradlew :react-native-nearby-api:assembleDebug","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && yarn start:android"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"babel-plugin-module-resolver":"^3.0.0","escape-string-regexp":"^1.0.5","metro-bundler":"^0.20.3","react":"16.0.0-alpha.12","react-native":"^0.50.1"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","gitHead":"77ab03f0b6d2bc294456115624e76d93ccda9a18","_id":"@adrianso/react-native-nearby-api@1.0.4","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-i7pHEs5bFe4Ne0sq7TdxUljXAHrtvfSJu7PiDyS2InjIPK5WM7d0hi/wPsiSimdnhPRbErwmePr/kuZta+RnXA==","shasum":"8bfbaa60489f68b9f3ae9e1731fea3282ba970df","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.4.tgz","fileCount":29,"unpackedSize":175609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFEG3CRA9TVsSAnZWagAAi9kP/3AKirhJw0pf2o6gkhPj\nsNnjQWdLpMd6mHp0hAZA2FO6DzQOgjsORes4L32S8UXGU6fVST4FSEeGoehA\n8MBNsRccPXa9JExhzwoEozKxuaWFRKPJDlXaR4LZMvl/GuBH4yqIxZkrpW+H\npz2J4lrajsvS/f2vuMbMb3lPXv0mzbFEhYe6RnHIDfocbTnH/4aL+/Brm9ot\nAEBPF/3TsgwPHJO8Bsb3gQaj1EdwCKJfnlBp/YXkZMeoAEm1CpW/uiq5n7Ya\nFffpt5KQb3Fc8ZfMosbc4rMvfPqv0nvHWXM7CNu/KskTs0oGa/tVQ+4J5z0J\nkWU3/d5nm9tcuQPKxRxtLIm5ruBcXY4onWMTKcUa2yNfFnrjMMmW+e79uLXw\ntkcuXH/vNyJMLIBeCbDz+iKpeMaCck17erJk0oIFPJh0o+VTA1m0xz6wzJGu\nwB44VbcqBGRD98MCEJmCfjX8dkOUIUgtBzwbln/20c2eqAhoe2obv+FXdyAR\npuAJ7ybyJhIBEfWSbEdghsCgbnILDhZVsGLq0fG3b+mKraUNW+taWP+C21gO\n+bjj40o5rjcDOl2dECvbY4LfY89PoFp/QihZluWWWUbc4SRUFeTrxadh3GAI\nzxXzzsIzJhWSFl/aG1FTALggz06CL8jkjJduMTNaTZ14wP4F3l4hn5/1kJE+\nYHtl\r\n=nEOy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCximSt9yqM0AiASHE+kNLs2CGGb6JH39ST4smnBjn5AiARrQcfw1Bn5kqWQR44IFtrk8SmEXjvHVmLHP4ZdtbeUQ=="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.4_1578385847525_0.6286249831851547"},"_hasShrinkwrap":false},"1.0.5":{"name":"@adrianso/react-native-nearby-api","version":"1.0.5","description":"React Native wrapper around Google's Nearby API SDK","main":"index.js","scripts":{"preversion":"","version":"git add CHANGELOG.md","postversion":"git push && git push --tags","postinstall":"scripts/install.js","start":"node node_modules/react-native/local-cli/cli.js start","run:packager":"./node_modules/react-native/packager/packager.sh","run:ios":"react-native run-ios --project-path ./example/ios","build:ios":"bundle install --binstubs ./example/ios && bundle exec pod install --project-directory=./example/ios/ && yarn bundle:ios","bundle:ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file='./example/index.js' --bundle-output='./example/ios/example/main.jsbundle' --dev=false --platform='ios'","build:android":"./gradlew :react-native-nearby-api:assembleDebug","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && yarn start:android"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"babel-plugin-module-resolver":"^3.0.0","escape-string-regexp":"^1.0.5","metro-bundler":"^0.20.3","react":"16.0.0-alpha.12","react-native":"^0.50.1"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","gitHead":"208ef4e17eebb55b9bb4040e8eb535d37e409e06","_id":"@adrianso/react-native-nearby-api@1.0.5","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-iTEefabbEBU2ZtJIoFLV3TGFJ8lXBudFLU88+9AdoTo3o/6rZdUD5jEoN1keN94NdeLMpd4g3Q6s8HGxLFPHDw==","shasum":"dc39650217325b0cc69818e10bc2150fd2048b05","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.5.tgz","fileCount":30,"unpackedSize":177429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFElvCRA9TVsSAnZWagAAvtUQAJJhe+5bUBpglQ6686EZ\nc8g/dXm+rke2DLv3+VkQ01NOtazRgAdD2HMh2sPQRSeCbvCcTae99ly5BFDL\npox9QeGNmE34CGEDAuWqkbC1A92JjbfKdWGSOi2yX06HjaFCVIiSP+fpwHqG\n+ei1LPYLaS3vu9SmgUsFcF1ZpE6Ju28p/vJLKfWkzHa7nnl0ovDbXd8md6RN\nyuRU8nzeJtI+pMu6DeKbc2pKvNJM4QOToQSMjZNM9bn7E6TTOnCywmtdtmr1\nInrkpymKkQn4CD0M2VYF5yjLPThW+hJWDfkHjv3qvIILwwcGN9YgzpwR3b4L\ng76xTQ60wwFdakln4UbW0rjWuTp9abbsNEzq6RrIGsTmaYNFQ2kFcOdTsvkF\nVVe/pMawF1RLZdwcywghPq1OoQKcUkVn9eh2TJZyAry/yD6FqEEe2fShobbd\npY0jkMnkatsBtOyEeM9w8Ef7PLd0fl9eEWO6zAvc98WbCnW4R5zFu8EsJBnd\nW78zLQZFBXhRgPNPga5PPhhvEPPCxgnZHv86drJJkGI1r6B1WcwgBUXdXpq/\nJ2cm+AQJCZ+WADAQ1PT9NO4lpRBWsS783d7Sy0HPWDtdMUObqaYDDR0DVsXA\no3ngxX+PBmCUhKxqaeVbJ1M23/Lq7rbe+oaIOJMe8dp/T1ezdSIIe7W68FGO\n0GEJ\r\n=6hHx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnhu5YoMaelXl2RNrSp8xIEBYjVtm/Us0uAb98uAtohwIhAOW74o1Y1m1up0tb6LfDiV9YyT//l4uIWHLgQ0ZGZvyU"}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.5_1578387823035_0.31050567649074035"},"_hasShrinkwrap":false},"1.0.7-beta":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7-beta","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"postinstall":"scripts/install.js","prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api` or `$ npm install @adrianso/react-native-nearby-api --save`\n\n### Installation\n\nThis package supports Autolinking for React Native 0.60 and above.\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from \"react-native-nearby-api\";\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log(\"Message Found!\");\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log(\"Message Lost!\");\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log(\"Distance Changed!\");\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log(\"BLE Signal Changed!\");\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish(\"Hello World!\");\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n  NOTE: If you receive a `duplicate symbols for architecture` error through Xcode, this is a [known issue](https://github.com/facebook/react-native/issues/16406). A work around is to run `./renameLogger.sh` after `node_modules` have been installed and you've attempted to run in Xcode.\n","readmeFilename":"README.md","gitHead":"1d1985f5212a8a3f11ad63f8bcbb8afe224b292e","_id":"@adrianso/react-native-nearby-api@1.0.7-beta","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JMg7SjD1hKMeT7ItqmQ9PBZJ7oGl00StA5Q4V2/hbEXt1MPDj7lp7KauBHbayOq+QkDM+wImGnuzGdU112dVAQ==","shasum":"eba3df8c69c0eb6cc85bc3e32cdd70f84a368a55","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7-beta.tgz","fileCount":37,"unpackedSize":184075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqj4TCRA9TVsSAnZWagAANUsP/jR4hJ9iokJji+35E5B2\n91mBqFM8kjhsT5TIAGHlcjV3aG1wTIL5neHwSEwt0okLibAXcMC1Mcc/r3ro\nqGoS9oRH737i01ONT6h5Lds0DMDKV4GnRGyR0gI8XFeuK7GE9xdfJwKPqpoG\nTaWF+J4fW67IGyrfptzeZuah3J9GhXQetQuzpqsfKXYsHRaF2FLv9hrU4BHF\njlLFSH4gBCzlREVx1cW8vSLwHVRce6BGcaDOOhZfWuBOLwaziQwsJXCgSRTK\nvUtLSXBy4P7r0h595lLcm83B4Zn4DDKLey2hgUDs1BnedO01r5/tM+W3YtR+\nXxK/ICSjpOYL3QmN5illhCgFZ3pBPRkmdf1dlDIe07UqWb4pCdnOjmRs0p44\nB6ByaozNQjNhabPvFBT3r9fLf9kPNv946kDFZiT94oZSqQ6P33i+v5+pEpbG\nWO6uNcn9/x84gSkCbaFn2TvrknfYLy4ueP4SQVFc1uImRw89GwcFo6l1e5ol\n4HtjdIKk4hKo11xWgg0pW27aNs8xI3nK5JjqqMXjD9FPkouNtE6UfbhLBUmJ\nQabdK3YqrDbP5JW4tzffE1BL1hJ7o2VP96bYGiur+TU6UHPbIiblHN1CVcuO\n5h3iGbrHYbJEz3/wPnSQLZkVMT77UXNjxwdAPn/F6dynVJjMRC+9lZBsOQkv\nESM1\r\n=ehsR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoNkC67A/h/WUoDvRpKPDxfGLXRs+x/VDmSiRZEhAelAIhAIgOPTed0apbMueLUBthx0i8gs4yAmg1GGnUqSlZug9u"}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7-beta_1588215314994_0.9132537051840821"},"_hasShrinkwrap":false},"1.0.7-beta-2":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7-beta-2","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"postinstall":"scripts/install.js","prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api` or `$ npm install @adrianso/react-native-nearby-api --save`\n\n### Installation\n\nThis package supports Autolinking for React Native 0.60 and above.\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from \"react-native-nearby-api\";\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log(\"Message Found!\");\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log(\"Message Lost!\");\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log(\"Distance Changed!\");\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log(\"BLE Signal Changed!\");\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish(\"Hello World!\");\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n  NOTE: If you receive a `duplicate symbols for architecture` error through Xcode, this is a [known issue](https://github.com/facebook/react-native/issues/16406). A work around is to run `./renameLogger.sh` after `node_modules` have been installed and you've attempted to run in Xcode.\n","readmeFilename":"README.md","gitHead":"1d1985f5212a8a3f11ad63f8bcbb8afe224b292e","_id":"@adrianso/react-native-nearby-api@1.0.7-beta-2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KvIqpz/UjFUnL0wv5b+aaAfzc1n+qjdal+UrXbSzpEywQcAnRQhBvxuGHau3HKcM0EPRiUllAMt3ZRf38HCpJA==","shasum":"17732f7bdd279646c0a12e0d8387d9f59d7d1581","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7-beta-2.tgz","fileCount":36,"unpackedSize":183634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqmK7CRA9TVsSAnZWagAA4G0P/Al8Zsy4EcFWWDsH9k2G\neUPmg275bKpbnV6u7Z1C9yI1qrlrZ4TcYClmuNmJpmt/ywz28weQAOa+5j4q\n0lolERyMCXRncSuJq1gKPg6EN86eARPN+OU0W3J5MdUzNwW97SAblhp/cU6L\n4qmqYrw1DLJ+sECvfwPLrygkbdyVWDp4WpVkteoSVvPBbYDOpVLwGQCimZ1E\nzcATgzFSsiR7O3MVtg8YxBPKdml8Zeb3FeBIwBWmKOqXnHnzkqdTND8GTVLt\nECDPQg1Dr9YdDlq3Z256oU6tYmMyPcKa1rtAVSSHWethxQTzFMxYYUepAHkO\nNiM0qIpAcKUEGI60YMW2h2jmQcY6zjQau2mg7XZHGWT/rKBbHWXcF+FO9Vf1\nMgnX33hgDzgOH0ciGTLtDkjfFmT4Kiu0JVxnUoXF47Ttvwhd5EEeAaqY5FlT\nTnR16gDYvGa498qgAPiEvp1MRHQ1kE3mbOLptz85Yp7TVFUI1cpTF+3ERCvW\n6fbOm094kTRA6GxMAh9Ir4biz4/BZ68Vuv/f7g/x/0ftg6lkxu/8zRiIertB\n/CTA6sD9sMumdudZIiMank4DvSFknIhY5aHN0ZjZISWqkqPzveMA5ZYUv8VV\nXZl782wp5WTTAbve++PLlIlCcKAY4RA67790ookWw57aOF0Oy60dKRKpGlkE\nr8lM\r\n=CcSM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICFTBrs45OCZYH4/WkxR+rK8R/cSAHUj2yRsjP98qBIuAiBoRw84RrtHOJhX/qHCF3ooTEe6PH2l3FqNo5P1cazD0A=="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7-beta-2_1588224699340_0.7836648468733012"},"_hasShrinkwrap":false},"1.0.7-beta-3":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7-beta-3","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"postinstall":"scripts/install.js","prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api` or `$ npm install @adrianso/react-native-nearby-api --save`\n\n### Installation\n\nThis package supports Autolinking for React Native 0.60 and above.\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from \"react-native-nearby-api\";\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log(\"Message Found!\");\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log(\"Message Lost!\");\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log(\"Distance Changed!\");\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log(\"BLE Signal Changed!\");\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish(\"Hello World!\");\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n  NOTE: If you receive a `duplicate symbols for architecture` error through Xcode, this is a [known issue](https://github.com/facebook/react-native/issues/16406). A work around is to run `./renameLogger.sh` after `node_modules` have been installed and you've attempted to run in Xcode.\n","readmeFilename":"README.md","gitHead":"1d1985f5212a8a3f11ad63f8bcbb8afe224b292e","_id":"@adrianso/react-native-nearby-api@1.0.7-beta-3","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4GsXpo/j3S5hGE+zrtaZ3wHWSNFa97g/YJcDIXN4lgpGsyOYgGsbB5zfFfTShCX6EwnWfDiATxs5R1BNc9oXqA==","shasum":"1e6a96b64fdc2502f6afff712f42eb63db4780b5","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7-beta-3.tgz","fileCount":26,"unpackedSize":178137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqmMHCRA9TVsSAnZWagAAbNUQAIVa3ARLwfE48yHQntBI\nOCZ7iVPBDZQ+BdmI+naCZm69ifzonS3otRPbwU2VYInFgWGq9aRVxMGsuQ4a\nvEWflddj6JYUb5pYEsfNVg5FuG7IRD0Bn7MDn85QxezUT5IKBW2vRlAfMg8M\n1nUIHh2OCdNF7FtjxMEhmi1V5RVEOiBDoHoKutbIGd4M90elSiRa6Vx5o8ET\nk5OtcBR0D+fOxxDtLqcNOTSVALIG0UZwO2JgzVZQaZcpPEs4GaFsw9V1jU16\nXtwIoTf0rLuSkArsb4bTBmP3nKLwZcXiXzh3+LhbastotxUylYZGe35SkCqr\n8VGZjUkTiDTuc8zx/L8r9Au1AFg0ZCe4IPQ5dGU6JMJHu3uOg7zfLuBxOd9u\n3iDhxnyrxcUUm5mUShxzA5OVtabip8SpATV+8gfohaA9wh84bEKkAXC0Ls+U\nzuinEJTEKZi0HYVLUmrO1pO0sZqdnGeC9pVTBbYOLQY6ut7YJUE9Pej6gl7P\nRH0RMBumzoRb5NTGyOCDMKpdoJoIMv9goLaIj5QR2gD1X19S8HtIT3oooPq9\njNuyha1mJiqnCj/L39wMUbaelsTaLgPGs1OEelQpiNy7O9njAOd3ilG8iX2x\n0DYLmQGsePVHomct6ZdUMpohiYC4kZZTopAKsXJGYbn0dMvFJ69lgpM59J1U\ns5gX\r\n=wAzK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxljqP3VyH2ulpc73YQVMrbXnoTjPXjiWUF3I++eMuDAiEAh+mwPVDxAT9pG53yGBAA2AZUC8dmXMmfea0+lNEcBEA="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7-beta-3_1588224775007_0.291610176984477"},"_hasShrinkwrap":false},"1.0.7-beta-4":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7-beta-4","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api` or `$ npm install @adrianso/react-native-nearby-api --save`\n\n### Installation\n\nThis package supports Autolinking for React Native 0.60 and above.\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from \"react-native-nearby-api\";\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log(\"Message Found!\");\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log(\"Message Lost!\");\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log(\"Distance Changed!\");\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log(\"BLE Signal Changed!\");\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish(\"Hello World!\");\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n  NOTE: If you receive a `duplicate symbols for architecture` error through Xcode, this is a [known issue](https://github.com/facebook/react-native/issues/16406). A work around is to run `./renameLogger.sh` after `node_modules` have been installed and you've attempted to run in Xcode.\n","readmeFilename":"README.md","gitHead":"3ef35289de9fc8b53b47dc1e6b619ec8c97b221f","_id":"@adrianso/react-native-nearby-api@1.0.7-beta-4","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CuFu48xySC2MkwOshbgqOIpJ7BDFuZ7KmJkl80VaG9PoWxGUEW24OzJfbkf3/Kw85qtg8yONjlrmtdwwda2TzQ==","shasum":"45f54dee01806d8f28190122f0a8e161529f177f","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7-beta-4.tgz","fileCount":26,"unpackedSize":178110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqmwYCRA9TVsSAnZWagAAVc4P/1axLDfpb38g9WabQd+M\nkEo4oEm8VCgVhisrolYXD30tcV75zNKeJUStcoSLwQ9z/azhUPjO/syS1d3R\nXOA4tkSfVyVngNjY9WFLpUPU+kC4UY1O5k41X+kIbqCeH21GbAJiJucweInc\nW6REWRk4CvQWIEkYsD9rF0wy8UFWoihqSpqpanmUNQgKjXWoERjDo87wQZWe\nCMgcsmhTOIBI7wkxX1OsVljwlnDaiJgCGkjRo5QDtwPKPuVhGzG3VN/R7ykX\nICRfBgpbhnTM5/cga6H0g7wAb0FbRUjkaxaTMoyV7GI7Is1tdC7s/mnDb3OY\nIOjrBFkA9HtasoSi/qfjQyZk/M2swHGoOaLfKciWjIagwy6P5L/PGnDXy+jA\nqzJJ3WQSiJ7fGeFopJalRRjkb155V1KCRhA9YOfgDYT2loPZd+Rs7s9ZOnq6\n39zOxw6zuBpUXV7dGPkljv2jSqeBTpijDpXINdoj3MXdQWBEJ7SirXTNdCIf\n9ENPfHcFDbgoTmJl11TvpV4XNkrIXnprAu9PNkAv0Ud6SReq4nCabn+d88zy\nE+mXpE3lQ+g6yg2NqkUy3x2v4mgXQpFC5cSjTJnLwecpDnlsaBGyEVg5RyB0\nzvKjbU/gYiT2bfBtPVHsNec/XnnmVxEi7lMJ+s+2UuFssytWtLiROC0NLRdj\n/m3b\r\n=fzXu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvLCuktSqYpQbIrX6s8pnGqG8RKzzw81hHiVBvcgntjAiEAighJkHr9Urn/tX6qYPPJPwr6fLyE/wF5b5VwTlZjvjk="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7-beta-4_1588227095940_0.7662002067285458"},"_hasShrinkwrap":false},"1.0.7-beta-5":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7-beta-5","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api` or `$ npm install @adrianso/react-native-nearby-api --save`\n\n### Installation\n\nThis package supports Autolinking for React Native 0.60 and above.\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from \"react-native-nearby-api\";\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log(\"Message Found!\");\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log(\"Message Lost!\");\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log(\"Distance Changed!\");\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log(\"BLE Signal Changed!\");\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish(\"Hello World!\");\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n  NOTE: If you receive a `duplicate symbols for architecture` error through Xcode, this is a [known issue](https://github.com/facebook/react-native/issues/16406). A work around is to run `./renameLogger.sh` after `node_modules` have been installed and you've attempted to run in Xcode.\n","readmeFilename":"README.md","gitHead":"3ef35289de9fc8b53b47dc1e6b619ec8c97b221f","_id":"@adrianso/react-native-nearby-api@1.0.7-beta-5","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vKjofjDsOzi+F++iVpZQTPMrTjZKexJpsJgsZxESVQlRh0Pkz5dqWMHtADU3wBMWGJGsucP13FZg/Fy5mNFvxQ==","shasum":"71d5b7865777bead618fd815065b81aecbe7bb7e","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7-beta-5.tgz","fileCount":26,"unpackedSize":178140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqm6pCRA9TVsSAnZWagAAnRkP/ioQTlm4lvpMrKcMabaS\n8eQ096dO+GytFK3wQZgBgn4b5/y3fOXpr+Yk/zJodAqeSvRUpb93Ok53z+IS\nFzdyGxyFbcv0vI6F19I9mOfQfTe3VEv4Ekl68/32EEU2VcoNkFcWSf8ybdMB\n8Nnxwv33HLsniw52pMjrINZs2VSKEP85t/DXtMazQ2SFG1th/CeySEtvGa0d\nBgp8xUffRicSiCwobgzjlflL2Rq0Dpk9HGhcXmwJskKwg7GafGyGLfhTTacL\n+q8YK4iAKZ0hct80BuIn0e67Gy0No4zk4e1g0hcYJ8uAutjlYyn4jaiR44wl\nYmzoah58RFQGm6dXNcCRk97yCAlBi8ixPbljwHeYTvDdRFHkuB+VkkBU2N9M\nSC330ihOzDx6mTI4HWWfEhv2MCstrZHEsLZp6K7wkGJ/tlBRN6TDMQV+bIIw\nlPBOpZER46Fp9J2pGCtCOuNyxIJXdj1rKcegKnIDEMUboNseapl48l3dipFl\nrnSNRHfz317sBwdcFQ/4C9imt5aduk8i3fX3WVnTJUKs7631JlWvJyetKUKF\nphrmmgEiNVl8HgdVjVau76rqHx0s0wOdpZkN6sWc31gVv5Rgb+R/tFwX8UBp\nMRDm/5wVr8RO+ctdKCzsqwHYb9d7eex7sICyio54MSBhkBXDpn1Vo+6Y2+ZB\n9V7E\r\n=dfk/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1VXtGfxVcXPUvhwneQTlE4ToLUEWTF7hSICJKUPe5aQIgY2lyopzV8unpDl8qD6iI6WwTmTDxW2Px8Kyzy9cTvwk="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7-beta-5_1588227752890_0.13539815562980362"},"_hasShrinkwrap":false},"1.0.7-beta-6":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7-beta-6","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"gitHead":"3ef35289de9fc8b53b47dc1e6b619ec8c97b221f","readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api` or `$ npm install @adrianso/react-native-nearby-api --save`\n\n### Installation\n\nThis package supports Autolinking for React Native 0.60 and above.\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from \"react-native-nearby-api\";\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log(\"Message Found!\");\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log(\"Message Lost!\");\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log(\"Distance Changed!\");\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log(\"BLE Signal Changed!\");\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish(\"Hello World!\");\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n  NOTE: If you receive a `duplicate symbols for architecture` error through Xcode, this is a [known issue](https://github.com/facebook/react-native/issues/16406). A work around is to run `./renameLogger.sh` after `node_modules` have been installed and you've attempted to run in Xcode.\n","readmeFilename":"README.md","_id":"@adrianso/react-native-nearby-api@1.0.7-beta-6","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Kxg/2z6zV96b38CjFcm6VbmLo1sWFt6SacXDR4mxO7HiXeu4qRUyu4YXd7HxX/ud+oE2XtoCFPXoQ8c9pROfKA==","shasum":"3bdff265be952ae92f39b223d22a8637e9f41fde","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7-beta-6.tgz","fileCount":26,"unpackedSize":178127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqnTiCRA9TVsSAnZWagAA6kUP/jNRJ2leUwI5bokPZ9mw\nDo6ukgf8viCEcX/ZxOaUIkdCffC+ry+wvrkOfmLkhNdEBPRd3noed6/4/prT\nI18dtwm1p6Blm7lwRr4o9TkGGmJdYShz60uf/crseXH1gNtkGD+J1LVVwPe9\niVlJw3TgoyHFu12+GaYOHNI8Pq1TQX87md3FbniIIqvtWvW4HZGZQcpJ+w+2\nXcE0WsIm5cGUlqClNqxDZvCej/Ni1I8S1H2mF0hyUq3+FjBP1thdbxEwoErs\nUr2HBS5waHeiZ/9Q7XiSAQQ2uPgCDqYaPogN0Vdbla2xWBC8AMODYPiHbQWE\nWOCpyC/JM63x9q+KjylFRLAaq/t3gNp9uXs6OZApsFCfPSzJJSuccj/a5wYb\n9eC/T+Xanlf3DZ87u3U3U3wMIgptP72C7E4XmUPwWVk3tQzouv6/sicpphQ8\nPUSzUpRx7DAXULBMmlJw6Tdhbh3yl+Xo2w9PfxGiurBfOUdZAi7WKcrBB2Qr\nRX62/iUwQWN+0zb2ntGOAzEnPy6ziYOqHv6J3lwb0OYLVjcTvLsvm/fFj4ae\n5w0Razubu2eWBq1f5Oiby4W6AWXaFP+GIEk2+BbLTGo6BPxi35i9er9qvp6H\nA+qiy0SuSmT44UMHZZs6H3rNqiu7pepCg/1uDPEHXQ0wtOF6yscQAxJdmWkg\ndiiU\r\n=zy97\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAMdyKuH5+ukX9d+NbY1Z1xwVlSnr0RaE43byMIkS3ZgIgG9k4oNaozrmPNnwo3KuQMu/QoWm0ZchVj8SCeIzetD0="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7-beta-6_1588229346328_0.24468369834638604"},"_hasShrinkwrap":false},"1.0.7":{"name":"@adrianso/react-native-nearby-api","version":"1.0.7","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"gitHead":"dae3681885931cb5ca0fecaac83ebb6acbb1a6db","_id":"@adrianso/react-native-nearby-api@1.0.7","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JZ/FeZDYuSzV8qyOj3VJ7Uw7NRNo+mEaL6UTYaO89C+5aB5oau68pKsIOlkGQkYh9jHXm7mlmkQ6pebG/i2jLQ==","shasum":"5e2a872608312dfff786e508a63050153d69f345","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.7.tgz","fileCount":26,"unpackedSize":180066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqn/eCRA9TVsSAnZWagAAo7MP/irqxn419pPkjF2VWiTg\nEsIbqbFciOQJZ6tbpdKW2TCC8Iv2ocUzQB3uVIKFD1ebRktEuk2f2oUAFtBd\nN6cFWlA1ovr65/tgAJitUxsFddtgJJOkvGl9YBEphEthbZ4anKX1WJ+SI7RY\nPGKTlF5m7drSrR1V3LmBZjkYAxNyHD84MbiL2/H3t1/OOl1z3LlUs+anRdot\nMYaw56ddoWenD0hRQWNN6RX2fDnrk4yYAjSaD2eh1nOvipk9WycNb1XoRewr\nhFJ1G+q4v4UL8AKHnSxvmpsyfIg3kWhGGUtZujtmrYGsqmgeyj7SeYLfG3qc\nbRj9lbGeRMRr/gM9cGS3KJg8VeQerbPghVb1uSQKeIjgB+PU3Eq/1oetxvDg\nlSknlZBZvdRSWOtRnIu7HS8P84wlxQoaRNGHU5VHVjj1aEIEg3eHtnx15eRd\n2ppl9dAfwGt7gyHqk+EP93XPyWjQk+afmdprHWyK46Z3RetHM2AU80WYuaaH\n8sEpNqKzT62SaOrk3tJ7JHNd6f6F86Vg00sQGDxTx+fx2ezC81Kt2otJwOaE\nd8Ln3WfmTm8fm/FxNUPxk56rTErGzfKg0rYbxGSjcQarAr0ZtAN6uPeiMfiy\nA5pevuxNt1qkYWPTtIalzhHE5NI+FbKik1JuQFDk1FIT7tJGfqCGIn7Xcx4W\nX/1b\r\n=X6Ay\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGskTO+SkInj7YkddQo5HdwVHe0vFM71pB+L5FAgKKUCAiEAxd/xft+SioLmc6Dl+Bn9tkf6qKuwwOJqmSDSZ3BPHpE="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.7_1588232158300_0.2752300162377832"},"_hasShrinkwrap":false},"1.0.8":{"name":"@adrianso/react-native-nearby-api","version":"1.0.8","description":"React Native wrapper around Google's Nearby API SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepublishOnly":"yarn tsc --noEmit false"},"keywords":["react-native","google","nearby","messages","android","ios"],"author":{"name":"Bad Features, Inc"},"license":"ISC","peerDependencies":{"react":">=16.8.0","react-native":">=0.60.0"},"devDependencies":{"@types/react-native":"^0.62.5","husky":"^4.2.5","prettier":"2.0.5","react":"16.13.1","react-native":"0.62.2","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"homepage":"https://github.com/adrianso/react-native-nearby-api#readme","husky":{"pre-commit":"tsc"},"gitHead":"c72f8433572c698e9a8671412925dfd694883cda","_id":"@adrianso/react-native-nearby-api@1.0.8","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-h1l8lpZqzPFUPBsWuRbm3Y3JR0t6PDTKyM2MZ3QruJXrNhL/hxGYa2w9emuZ2ObyDGPieZ8CughCYJrwjIOo3g==","shasum":"b49d8e677e9f851dec26754e29fe4bc33fb47520","tarball":"https://registry.npmjs.org/@adrianso/react-native-nearby-api/-/react-native-nearby-api-1.0.8.tgz","fileCount":26,"unpackedSize":180374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqoSyCRA9TVsSAnZWagAAHf0QAJ5cJK0o/eO9m9sBDfjB\nMlMcNeFF+T+QUETh5cIrujtfxFYoT6SX8a1Y/+/CER5BntWBrJJVO8wQPTjp\n2/FpcaLyFbT80pruUVCJpma7jNAZxM9JzeNeeSPw6iz0x1M1nKpSTgJsvjaC\nqcseEZjx2wFQHcxDOy58jT2LrsFj70OgrDKJcsNuXN9LmThDCCO3R3F5iWW/\n4xbt8V2EZ1NUDR2VKd1VuCB+ElySstD9WR81oBqcnQOeV8GG0KzLEvIZGsPN\nb9w1rDz4LERRO2EfxHWqMjVLWk0EijkJrD3Z77LdpPvzLHa+PeI/YVRwYo3t\nsnoB6JmQsibtSiEhXfZWv0UTN7hacLJaQkJWkQrx+MbOCrebDdTFgVfRV4QZ\nQF9nF3iDCdaYAQhMgslS9IgZuP/KC19z2fxWpCVSXwglyfFY4MavRlNr88be\nG7TJi7t84BCq3E+27hI6uTJgdUgg783Jqw1ImRi26a5jIbTFrJKQqdbL57eP\n0iHpCEagjePeX7L1Wh9AAP8o4aw5ZFwT6bfpUnx9v2C7ftk4v09Bpd+hHHt9\nNxelArplpYLVcj3CPxArhQdBg1RHHsBnapNHlKD0oVCJpEb+wadoELUQ+5DC\n7uj1fnhxCNzzllbA+ONqj9oo7yJJImlCvrHSZx88w5d6diKLhK3rau85PqwD\ncP1C\r\n=g8XO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyZVIOCt0KB/IoI4Xe/ylIPHOxYfukjHZTR7OBEKgGEQIgfVQYkmo52Oz3yeaRAZLs/DOg40CmtIEOXlVHTp58j2U="}]},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"_npmUser":{"name":"adrianso","email":"adrian.so@sld.co.nz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nearby-api_1.0.8_1588233394190_0.13287177139409567"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-07T03:42:30.912Z","1.0.0":"2020-01-07T03:42:31.156Z","modified":"2022-04-04T11:37:30.318Z","1.0.1":"2020-01-07T07:49:18.785Z","1.0.2":"2020-01-07T08:10:03.570Z","1.0.3":"2020-01-07T08:21:29.931Z","1.0.4":"2020-01-07T08:30:47.645Z","1.0.5":"2020-01-07T09:03:43.185Z","1.0.7-beta":"2020-04-30T02:55:15.117Z","1.0.7-beta-2":"2020-04-30T05:31:39.487Z","1.0.7-beta-3":"2020-04-30T05:32:55.111Z","1.0.7-beta-4":"2020-04-30T06:11:36.054Z","1.0.7-beta-5":"2020-04-30T06:22:33.003Z","1.0.7-beta-6":"2020-04-30T06:49:06.491Z","1.0.7":"2020-04-30T07:35:58.422Z","1.0.8":"2020-04-30T07:56:34.311Z"},"maintainers":[{"name":"adrianso","email":"adrian.so@sld.co.nz"}],"description":"React Native wrapper around Google's Nearby API SDK","homepage":"https://github.com/adrianso/react-native-nearby-api#readme","keywords":["react-native","google","nearby","messages","android","ios"],"repository":{"type":"git","url":"git+https://github.com/adrianso/react-native-nearby-api.git"},"author":{"name":"Bad Features, Inc"},"bugs":{"url":"https://github.com/adrianso/react-native-nearby-api/issues"},"license":"ISC","readme":"# react-native-nearby-api [![npm version](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api.svg)](https://badge.fury.io/js/%40adrianso%2Freact-native-nearby-api)\n\nThis is a React Native wrapper for the Google Nearby Messages API. It is a fork of [this repository](https://github.com/badfeatures/react-native-nearby-api) by [badfeatures](https://github.com/badfeatures).\n\nNoteable changes to the original respository\n\n- Rewritten in Typescript\n- Autolinking support for React Native 0.60 and above.\n- Android X support\n- Upgraded to play-services-nearby@17.0.0 on Android\n- Upgraded to Gradle 3.5.2\n\n## Getting started\n\n`$ yarn add @adrianso/react-native-nearby-api`\n\n### Installation\n\n#### iOS\n\n- ```\n  cd ios/\n  pod install\n  ```\n- Build and run project\n\n#### Android\n\nThere are no additional steps required for Android\n\n## Usage\n\nSee the\n[example app](https://github.com/adrianso/react-native-nearby-api/tree/master/example) for more detail and code examples.\n\n- Retrieve your API Keys from the Google Console [iOS](https://developers.google.com/nearby/messages/ios/get-started) | [Android](https://developers.google.com/nearby/messages/android/get-started)\n- Add the correct permissions to the AndroidManifest.\n\n  ```xml\n  <!-- Include if wish to use BLE -->\n  <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n  <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n  <!-- Include if wish to use audio -->\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n  ```\n\n- Add the Android API Key in the AndroidManifest .\n\n  ```xml\n  <meta-data\n    android:name=\"com.google.android.nearby.messages.API_KEY\"\n    android:value=\"MY_API_KEY\" />\n  ```\n\n- The iOS API key will be supplied through the `connect()` method.\n- Add `NSBluetoothPeripheralUsageDescription` to the Info.plist\n- Add `NSMicrophoneUsageDescription` to the iOS project's Info.plist _if using audio_\n\n```javascript\nimport NearbyApi from 'react-native-nearby-api';\n\nconst nearbyAPI = new NearbyAPI(true); // Use BLE only, no audio.\n\nnearbyAPI.onConnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onDisconnected((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onFound((message) => {\n  console.log('Message Found!');\n  console.log(message);\n});\n\nnearbyAPI.onLost((message) => {\n  console.log('Message Lost!');\n  console.log(message);\n});\n\n// Android Only\nnearbyAPI.onDistanceChanged((message, value) => {\n  console.log('Distance Changed!');\n  console.log(message, value);\n});\n\n// Android Only\nnearbyAPI.onBLESignalChanged((message, value) => {\n  console.log('BLE Signal Changed!');\n  console.log(message, value);\n});\n\nnearbyAPI.onPublishSuccess((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onPublishFailed((message) => {\n  console.log(message);\n});\n\nnearbyAPI.onSubscribeSuccess(() => {});\n\nnearbyAPI.onSubscribeFailed(() => {});\n\n// To connect from Google API Client\nnearbyAPI.connect(API_KEY);\n\n// To check if the nearby API is connected.\nnearbyAPI.isConnected((connected, error) => {\n  console.log(connected);\n});\n\n// To disconnect later\nnearbyAPI.disconnect();\n\n// To publish to nearby devices\nnearbyAPI.publish('Hello World!');\n\n// To check if the nearby API is publishing.\nnearbyAPI.isPublishing((publishing, error) => {\n  console.log(publishing);\n});\n\n// To subscribe to nearby devices broadcasting\nnearbyAPI.subscribe();\n\n// To check if the nearby API is subscribing.\nnearbyAPI.isSubscribing((subscribing, error) => {\n  console.log(subscribing);\n});\n\n// To unpublish\nnearbyAPI.unpublish();\n\n// To unsubscribe\nnearbyAPI.unsubscribe();\n```\n\n## Running the Example\n\n- Install the dependencies in the root folder\n\n  `yarn`\n\n#### Generate an API Key from the [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=copresence&keyType=CLIENT_SIDE_ANDROID&reusekey=true)\n\n1. Go to the Google Developers Console.\n2. Create or select a project to register your application with.\n3. Click Continue to Enable the API.\n4. On the Credentials page, create a new API Key. (No key restrictions are needed for this example)\n5. Copy/Paste your key in [example/index.js](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/App.js#L26) and in the example [AndroidManifest.xml](https://github.com/adrianso/react-native-nearby-api/blob/develop/example/android/app/src/main/AndroidManifest.xml#L31)\n\n#### Android\n\n- To run the example app, the packager must have the `projectRoots` reordered\n  for the example/ directory. In another terminal window:\n\n`yarn start --projectRoots <FULL-PATH-TO-REPO>/react-native-nearby-api/example,<FULL-PATH-TO-REPO>/react-native-nearby-api`\n\n`yarn run:android`\n\n`adb reverse tcp:8081 tcp:8081`\n\n#### iOS\n\n- `cd example ios/`\n- `bundle exec pod install`\n- Open `example.xcworkspace`\n- Add your IP to `AppDelegate.m`\n\n```objective-c\n  jsCodeLocation = [NSURL URLWithString:@\"http://<IP-ADDRESS>:8081/index.bundle?platform=ios&dev=true\"];\n```\n\n- In another terminal window: `yarn start`\n- Run on device\n\n## Common issues\n\n### iOS compilation error: `duplicate symbols for architecture`\n\n#### Cause\n\nThis is caused by a conflict of the `AddLogSink` and `RemoveLogSink` functions in the `glog` and `NearbyMessages` library.\n\n#### Workaround\n\nAdd the following to your Podfile.\n\n```ruby\npost_install do |installer|\n  puts \"Renaming logging functions\"\n\n  root = File.dirname(installer.pods_project.path)\n  Dir.chdir(root);\n  Dir.glob(\"**/*.{h,cc,cpp,in}\") {|filename|\n    filepath = root + \"/\" + filename\n    text = File.read(filepath)\n    addText = text.gsub!(/(?<!React)AddLogSink/, \"ReactAddLogSink\")\n    if addText\n      File.chmod(0644, filepath)\n      f = File.open(filepath, \"w\")\n      f.write(addText)\n      f.close\n    end\n\n    text2 = addText ? addText : text\n    removeText = text2.gsub!(/(?<!React)RemoveLogSink/, \"ReactRemoveLogSink\")\n    if removeText\n      File.chmod(0644, filepath)\n      f = File.open(filepath, \"w\")\n      f.write(removeText)\n      f.close\n    end\n  }\nend\n```\n\n### iOS compilation error: `Multiple commands produce Assets.car.`\n\n#### Details\n\nThis is casued by an [issue](https://stackoverflow.com/questions/58928768/xcode-new-build-system-cocoapods-copy-pods-resources-has-assets-car-in-output) in the `NearbyMessage` podspec. This only affects bulids using the \"New Build System\" in Xcode.\n\n#### Work around\n\nAdd the following to your Podfile\n\n```ruby\n  post_install do |installer|\n    project_path = 'example.xcodeproj'\n    project = Xcodeproj::Project.open(project_path)\n    project.targets.each do |target|\n        build_phase = target.build_phases.find { |bp| bp.display_name == '[CP] Copy Pods Resources' }\n        assets_path = '${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Assets.car'\n        if build_phase.present? && build_phase.output_paths.include?(assets_path) == true\n            build_phase.output_paths.delete(assets_path)\n        end\n    end\n    project.save(project_path)\n  end\n```\n","readmeFilename":"README.md"}