├── .babelrc ├── .buckconfig ├── .eslintrc ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── README.md ├── RN-iBeacon.png ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativebeaconexample │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── bgmode.gif ├── gemtot-beacon-emitter-app.PNG ├── index.android.js ├── index.ios.js ├── ios ├── reactNativeBeaconExample-tvOS │ └── Info.plist ├── reactNativeBeaconExample-tvOSTests │ └── Info.plist ├── reactNativeBeaconExample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── reactNativeBeaconExample-tvOS.xcscheme │ │ └── reactNativeBeaconExample.xcscheme ├── reactNativeBeaconExample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── reactNativeBeaconExampleTests │ ├── Info.plist │ └── reactNativeBeaconExampleTests.m ├── package.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | 4 | "ecmaFeatures": { 5 | "jsx": true 6 | }, 7 | 8 | "env": { 9 | "es6": true, 10 | "jasmine": true, 11 | }, 12 | 13 | "plugins": [ 14 | "react" 15 | ], 16 | 17 | // Map from global var to bool specifying if it can be redefined 18 | "globals": { 19 | "__DEV__": true, 20 | "__dirname": false, 21 | "__fbBatchedBridgeConfig": false, 22 | "alert": false, 23 | "cancelAnimationFrame": false, 24 | "clearImmediate": true, 25 | "clearInterval": false, 26 | "clearTimeout": false, 27 | "console": false, 28 | "document": false, 29 | "escape": false, 30 | "Event": false, 31 | "EventTarget": false, 32 | "exports": false, 33 | "fetch": false, 34 | "FormData": false, 35 | "global": false, 36 | "jest": false, 37 | "Map": true, 38 | "module": false, 39 | "navigator": false, 40 | "process": false, 41 | "Promise": true, 42 | "requestAnimationFrame": true, 43 | "require": false, 44 | "Set": true, 45 | "setImmediate": true, 46 | "setInterval": false, 47 | "setTimeout": false, 48 | "window": false, 49 | "XMLHttpRequest": false, 50 | "pit": false, 51 | 52 | // Flow global types. 53 | "ReactComponent": false, 54 | "ReactClass": false, 55 | "ReactElement": false, 56 | "ReactPropsCheckType": false, 57 | "ReactPropsChainableTypeChecker": false, 58 | "ReactPropTypes": false, 59 | "SyntheticEvent": false, 60 | "$Either": false, 61 | "$All": false, 62 | "$Tuple": false, 63 | "$Supertype": false, 64 | "$Subtype": false, 65 | "$Shape": false, 66 | "$Diff": false, 67 | "$Keys": false, 68 | "$Enum": false, 69 | "$Exports": false, 70 | "$FlowIssue": false, 71 | "$FlowFixMe": false, 72 | "$FixMe": false 73 | }, 74 | 75 | "rules": { 76 | "prefer-const": ["error", { 77 | "destructuring": "any", 78 | "ignoreReadBeforeAssign": false 79 | }], 80 | "comma-dangle": 0, // disallow trailing commas in object literals 81 | "no-cond-assign": 1, // disallow assignment in conditional expressions 82 | "no-console": 0, // disallow use of console (off by default in the node environment) 83 | "no-constant-condition": 0, // disallow use of constant expressions in conditions 84 | "no-control-regex": 1, // disallow control characters in regular expressions 85 | "no-debugger": 1, // disallow use of debugger 86 | "no-dupe-keys": 1, // disallow duplicate keys when creating object literals 87 | "no-empty": 0, // disallow empty statements 88 | "no-ex-assign": 1, // disallow assigning to the exception in a catch block 89 | "no-extra-boolean-cast": 1, // disallow double-negation boolean casts in a boolean context 90 | "no-extra-parens": 0, // disallow unnecessary parentheses (off by default) 91 | "no-extra-semi": 1, // disallow unnecessary semicolons 92 | "no-func-assign": 1, // disallow overwriting functions written as function declarations 93 | "no-inner-declarations": 0, // disallow function or variable declarations in nested blocks 94 | "no-invalid-regexp": 1, // disallow invalid regular expression strings in the RegExp constructor 95 | "no-negated-in-lhs": 1, // disallow negation of the left operand of an in expression 96 | "no-obj-calls": 1, // disallow the use of object properties of the global object (Math and JSON) as functions 97 | "no-regex-spaces": 1, // disallow multiple spaces in a regular expression literal 98 | "no-reserved-keys": 0, // disallow reserved words being used as object literal keys (off by default) 99 | "no-sparse-arrays": 1, // disallow sparse arrays 100 | "no-unreachable": 1, // disallow unreachable statements after a return, throw, continue, or break statement 101 | "use-isnan": 1, // disallow comparisons with the value NaN 102 | "valid-jsdoc": 0, // Ensure JSDoc comments are valid (off by default) 103 | "valid-typeof": 1, // Ensure that the results of typeof are compared against a valid string 104 | 105 | // Best Practices 106 | // These are rules designed to prevent you from making mistakes. They either prescribe a better way of doing something or help you avoid footguns. 107 | 108 | "block-scoped-var": 0, // treat var statements as if they were block scoped (off by default) 109 | "complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default) 110 | "consistent-return": 0, // require return statements to either always or never specify values 111 | "curly": 1, // specify curly brace conventions for all control statements 112 | "default-case": 0, // require default case in switch statements (off by default) 113 | "dot-notation": 1, // encourages use of dot notation whenever possible 114 | "eqeqeq": [1, "allow-null"], // require the use of === and !== 115 | "guard-for-in": 0, // make sure for-in loops have an if statement (off by default) 116 | "no-alert": 1, // disallow the use of alert, confirm, and prompt 117 | "no-caller": 1, // disallow use of arguments.caller or arguments.callee 118 | "no-div-regex": 1, // disallow division operators explicitly at beginning of regular expression (off by default) 119 | "no-else-return": 0, // disallow else after a return in an if (off by default) 120 | "no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default) 121 | "no-eval": 1, // disallow use of eval() 122 | "no-extend-native": 1, // disallow adding to native types 123 | "no-extra-bind": 1, // disallow unnecessary function binding 124 | "no-fallthrough": 1, // disallow fallthrough of case statements 125 | "no-floating-decimal": 1, // disallow the use of leading or trailing decimal points in numeric literals (off by default) 126 | "no-implied-eval": 1, // disallow use of eval()-like methods 127 | "no-labels": 1, // disallow use of labeled statements 128 | "no-iterator": 1, // disallow usage of __iterator__ property 129 | "no-lone-blocks": 1, // disallow unnecessary nested blocks 130 | "no-loop-func": 0, // disallow creation of functions within loops 131 | "no-multi-str": 0, // disallow use of multiline strings 132 | "no-native-reassign": 0, // disallow reassignments of native objects 133 | "no-new": 1, // disallow use of new operator when not part of the assignment or comparison 134 | "no-new-func": 1, // disallow use of new operator for Function object 135 | "no-new-wrappers": 1, // disallows creating new instances of String,Number, and Boolean 136 | "no-octal": 1, // disallow use of octal literals 137 | "no-octal-escape": 1, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251"; 138 | "no-proto": 1, // disallow usage of __proto__ property 139 | "no-redeclare": 0, // disallow declaring the same variable more then once 140 | "no-return-assign": 1, // disallow use of assignment in return statement 141 | "no-script-url": 1, // disallow use of javascript: urls. 142 | "no-self-compare": 1, // disallow comparisons where both sides are exactly the same (off by default) 143 | "no-sequences": 1, // disallow use of comma operator 144 | "no-unused-expressions": 0, // disallow usage of expressions in statement position 145 | "no-void": 1, // disallow use of void operator (off by default) 146 | "no-warning-comments": 0, // disallow usage of configurable warning terms in comments": 1, // e.g. TODO or FIXME (off by default) 147 | "no-with": 1, // disallow use of the with statement 148 | "radix": 1, // require use of the second argument for parseInt() (off by default) 149 | "semi-spacing": 1, // require a space after a semi-colon 150 | "vars-on-top": 0, // requires to declare all vars on top of their containing scope (off by default) 151 | "wrap-iife": 0, // require immediate function invocation to be wrapped in parentheses (off by default) 152 | "yoda": 1, // require or disallow Yoda conditions 153 | 154 | // Variables 155 | // These rules have to do with variable declarations. 156 | 157 | "no-catch-shadow": 1, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment) 158 | "no-delete-var": 1, // disallow deletion of variables 159 | "no-label-var": 1, // disallow labels that share a name with a variable 160 | "no-shadow": 1, // disallow declaration of variables already declared in the outer scope 161 | "no-shadow-restricted-names": 1, // disallow shadowing of names such as arguments 162 | "no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block 163 | "no-undefined": 0, // disallow use of undefined variable (off by default) 164 | "no-undef-init": 1, // disallow use of undefined when initializing variables 165 | "no-unused-vars": [1, {"vars": "all", "args": "none"}], // disallow declaration of variables that are not used in the code 166 | "no-use-before-define": 0, // disallow use of variables before they are defined 167 | 168 | // Node.js 169 | // These rules are specific to JavaScript running on Node.js. 170 | 171 | "handle-callback-err": 1, // enforces error handling in callbacks (off by default) (on by default in the node environment) 172 | "no-mixed-requires": 1, // disallow mixing regular variable and require declarations (off by default) (on by default in the node environment) 173 | "no-new-require": 1, // disallow use of new operator with the require function (off by default) (on by default in the node environment) 174 | "no-path-concat": 1, // disallow string concatenation with __dirname and __filename (off by default) (on by default in the node environment) 175 | "no-process-exit": 0, // disallow process.exit() (on by default in the node environment) 176 | "no-restricted-modules": 1, // restrict usage of specified node modules (off by default) 177 | "no-sync": 0, // disallow use of synchronous methods (off by default) 178 | 179 | // Stylistic Issues 180 | // These rules are purely matters of style and are quite subjective. 181 | 182 | "key-spacing": 0, 183 | "keyword-spacing": 1, // enforce spacing before and after keywords 184 | "jsx-quotes": [1, "prefer-double"], 185 | "comma-spacing": 0, 186 | "no-multi-spaces": 0, 187 | "brace-style": 0, // enforce one true brace style (off by default) 188 | "camelcase": 0, // require camel case names 189 | "consistent-this": [1, "self"], // enforces consistent naming when capturing the current execution context (off by default) 190 | "eol-last": 1, // enforce newline at the end of file, with no multiple empty lines 191 | "func-names": 0, // require function expressions to have a name (off by default) 192 | "func-style": 0, // enforces use of function declarations or expressions (off by default) 193 | "new-cap": 0, // require a capital letter for constructors 194 | "new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments 195 | "no-nested-ternary": 0, // disallow nested ternary expressions (off by default) 196 | "no-array-constructor": 1, // disallow use of the Array constructor 197 | "no-lonely-if": 0, // disallow if as the only statement in an else block (off by default) 198 | "no-new-object": 1, // disallow use of the Object constructor 199 | "no-spaced-func": 1, // disallow space between function identifier and application 200 | "no-ternary": 0, // disallow the use of ternary operators (off by default) 201 | "no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines 202 | "no-underscore-dangle": 0, // disallow dangling underscores in identifiers 203 | "no-mixed-spaces-and-tabs": 1, // disallow mixed spaces and tabs for indentation 204 | "quotes": [1, "single", "avoid-escape"], // specify whether double or single quotes should be used 205 | "quote-props": 0, // require quotes around object literal property names (off by default) 206 | "semi": 1, // require or disallow use of semicolons instead of ASI 207 | "sort-vars": 0, // sort variables within the same declaration block (off by default) 208 | "space-in-brackets": 0, // require or disallow spaces inside brackets (off by default) 209 | "space-in-parens": 0, // require or disallow spaces inside parentheses (off by default) 210 | "space-infix-ops": 1, // require spaces around operators 211 | "space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default) 212 | "max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default) 213 | "one-var": 0, // allow just one var statement per function (off by default) 214 | "wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default) 215 | 216 | // Legacy 217 | // The following rules are included for compatibility with JSHint and JSLint. While the names of the rules may not match up with the JSHint/JSLint counterpart, the functionality is the same. 218 | 219 | "max-depth": 0, // specify the maximum depth that blocks can be nested (off by default) 220 | "max-len": 0, // specify the maximum length of a line in your program (off by default) 221 | "max-params": 0, // limits the number of parameters that can be used in the function declaration. (off by default) 222 | "max-statements": 0, // specify the maximum number of statement allowed in a function (off by default) 223 | "no-bitwise": 1, // disallow use of bitwise operators (off by default) 224 | "no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default) 225 | 226 | "react/display-name": 0, 227 | "react/jsx-boolean-value": 0, 228 | "react/jsx-no-duplicate-props": 2, 229 | "react/jsx-no-undef": 1, 230 | "react/jsx-sort-props": 0, 231 | "react/jsx-uses-react": 1, 232 | "react/jsx-uses-vars": 1, 233 | # "react/no-did-mount-set-state": [1, "allow-in-func"], 234 | # "react/no-did-update-set-state": [1, "allow-in-func"], 235 | "react/no-multi-comp": 0, 236 | "react/no-string-refs": 0, 237 | "react/no-unknown-property": 0, 238 | "react/prop-types": 0, 239 | "react/react-in-jsx-scope": 1, 240 | "react/self-closing-comp": 1, 241 | "react/wrap-multilines": 0, 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | module.system=haste 26 | 27 | experimental.strict_type_args=true 28 | 29 | munge_underscores=true 30 | 31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 32 | 33 | suppress_type=$FlowIssue 34 | suppress_type=$FlowFixMe 35 | suppress_type=$FixMe 36 | 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | 41 | unsafe.enable_getters_and_setters=true 42 | 43 | [version] 44 | ^0.37.0 45 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | android/app/libs 43 | *.keystore 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/Preview.html 54 | fastlane/screenshots 55 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | React Native: Beacons (iOS and Android) 2 | ====== 3 | [![npm](https://img.shields.io/npm/l/express.svg?maxAge=2592000)](https://github.com/MacKentoch/reactNativeBeaconExample) 4 | 5 | 6 | Sponsor 7 | 8 | 9 | ## This repository is related to my [medium article](https://medium.com/@erwan.datin/mmazzarolohow-to-play-with-ibeacons-in-a-react-native-application-5cef754b2edc#.jsz0loalm) 10 | [![RN-iBeacon.png](RN-iBeacon.png)](https://medium.com/@erwan.datin/mmazzarolohow-to-play-with-ibeacons-in-a-react-native-application-5cef754b2edc#.jsz0loalm) 11 | 12 | ## How to install 13 | 14 | Assuming you already have: 15 | - `NodeJS >= 6.x` 16 | - `React Native` tools ([React Native website will explain better than me what it is about](https://facebook.github.io/react-native/docs/getting-started.html)) 17 | 18 | Steps to install: 19 | - clone this repository 20 | - install all npm dependencies 21 | ```bash 22 | npm install 23 | ``` 24 | or 25 | ```javascript 26 | yarn install 27 | ``` 28 | - integrates dependencies in iOS and Android projects 29 | ```bash 30 | react-native link 31 | ``` 32 | 33 | ## iOS: 34 | - iOS 8.0 minimum 35 | 36 | > Don't forget to active Bluetooth and localization service on your device 37 | 38 | *Note: this example app is already configured:* 39 | ![ios: active background mode](./bgmode.gif) 40 | 41 | ## Android: 42 | - target : 43 | - minimum to 21 `minSdkVersion` (*which means: android 5.0 LOLLIPOP*) 44 | 45 | > Don't forget to active Bluetooth on your device (already done for you in this project) 46 | 47 | ## Beacon: 48 | 49 | Any beacon should work just enter the right `uuid`. 50 | 51 | #### You have no beacon... but you have an alternate iOS device, great! 52 | 53 | This device can become your beacon like emitter thanks to [gemtot](https://github.com/gemtot/iBeacon) 54 | 55 | like here 56 | -------------------------------------------------------------------------------- /RN-iBeacon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/RN-iBeacon.png -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.reactnativebeaconexample', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.reactnativebeaconexample', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.reactnativebeaconexample" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':react-native-beacons-manager') 130 | compile fileTree(dir: "libs", include: ["*.jar"]) 131 | compile "com.android.support:appcompat-v7:23.0.1" 132 | compile "com.facebook.react:react-native:+" // From node_modules 133 | } 134 | 135 | // Run this once to be able to run the application with BUCK 136 | // puts all compile dependencies into folder libs for BUCK to use 137 | task copyDownloadableDepsToLibs(type: Copy) { 138 | from configurations.compile 139 | into 'libs' 140 | } 141 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativebeaconexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativebeaconexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "reactNativeBeaconExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativebeaconexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativebeaconexample; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.mackentoch.beaconsandroid.BeaconsAndroidPackage; 8 | import com.facebook.react.ReactInstanceManager; 9 | import com.facebook.react.ReactNativeHost; 10 | import com.facebook.react.ReactPackage; 11 | import com.facebook.react.shell.MainReactPackage; 12 | import com.facebook.soloader.SoLoader; 13 | 14 | import java.util.Arrays; 15 | import java.util.List; 16 | 17 | public class MainApplication extends Application implements ReactApplication { 18 | 19 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 20 | @Override 21 | public boolean getUseDeveloperSupport() { 22 | return BuildConfig.DEBUG; 23 | } 24 | 25 | @Override 26 | protected List getPackages() { 27 | return Arrays.asList( 28 | new MainReactPackage(), 29 | new BeaconsAndroidPackage() 30 | ); 31 | } 32 | }; 33 | 34 | @Override 35 | public ReactNativeHost getReactNativeHost() { 36 | return mReactNativeHost; 37 | } 38 | 39 | @Override 40 | public void onCreate() { 41 | super.onCreate(); 42 | SoLoader.init(this, /* native exopackage */ false); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | reactNativeBeaconExample 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'reactNativeBeaconExample' 2 | include ':react-native-beacons-manager' 3 | project(':react-native-beacons-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-beacons-manager/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactNativeBeaconExample", 3 | "displayName": "reactNativeBeaconExample" 4 | } -------------------------------------------------------------------------------- /bgmode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/bgmode.gif -------------------------------------------------------------------------------- /gemtot-beacon-emitter-app.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacKentoch/reactNativeBeaconExample/1b217ad6a2dbf0f3226a87f8a87bc1d499ba111d/gemtot-beacon-emitter-app.PNG -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React, { 4 | Component 5 | } from 'react'; 6 | import { 7 | AppRegistry, 8 | StyleSheet, 9 | Text, 10 | ListView, 11 | View, 12 | DeviceEventEmitter 13 | } from 'react-native'; 14 | import Beacons from 'react-native-beacons-manager'; 15 | 16 | 17 | class reactNativeBeaconExample extends Component { 18 | constructor(props) { 19 | super(props); 20 | // Create our dataSource which will be displayed in the ListView 21 | var ds = new ListView.DataSource({ 22 | rowHasChanged: (r1, r2) => r1 !== r2 } 23 | ); 24 | this.state = { 25 | // region information 26 | uuidRef: '7b44b47b-52a1-5381-90c2-f09b6838c5d4', 27 | // React Native ListView datasource initialization 28 | dataSource: ds.cloneWithRows([]) 29 | }; 30 | } 31 | 32 | componentWillMount() { 33 | // 34 | // ONLY non component state aware here in componentWillMount 35 | // 36 | Beacons.detectIBeacons(); 37 | 38 | const uuid = this.state.uuidRef; 39 | Beacons 40 | .startRangingBeaconsInRegion( 41 | 'REGION1', 42 | uuid 43 | ) 44 | .then( 45 | () => console.log('Beacons ranging started succesfully') 46 | ) 47 | .catch( 48 | error => console.log(`Beacons ranging not started, error: ${error}`) 49 | ); 50 | } 51 | 52 | componentDidMount() { 53 | // 54 | // component state aware here - attach events 55 | // 56 | // Ranging: 57 | this.beaconsDidRange = DeviceEventEmitter.addListener( 58 | 'beaconsDidRange', 59 | (data) => { 60 | this.setState({ 61 | dataSource: this.state.dataSource.cloneWithRows(data.beacons) 62 | }); 63 | } 64 | ); 65 | } 66 | 67 | componentWillUnMount(){ 68 | this.beaconsDidRange = null; 69 | } 70 | 71 | render() { 72 | const { dataSource } = this.state; 73 | return ( 74 | 75 | 76 | All beacons in the area 77 | 78 | 83 | 84 | ); 85 | } 86 | 87 | renderRow = rowData => { 88 | return ( 89 | 90 | 91 | UUID: {rowData.uuid ? rowData.uuid : 'NA'} 92 | 93 | 94 | Major: {rowData.major ? rowData.major : 'NA'} 95 | 96 | 97 | Minor: {rowData.minor ? rowData.minor : 'NA'} 98 | 99 | 100 | RSSI: {rowData.rssi ? rowData.rssi : 'NA'} 101 | 102 | 103 | Proximity: {rowData.proximity ? rowData.proximity : 'NA'} 104 | 105 | 106 | Distance: {rowData.accuracy ? rowData.accuracy.toFixed(2) : 'NA'}m 107 | 108 | 109 | ); 110 | } 111 | } 112 | 113 | const styles = StyleSheet.create({ 114 | container: { 115 | flex: 1, 116 | paddingTop: 60, 117 | justifyContent: 'center', 118 | alignItems: 'center', 119 | backgroundColor: '#F5FCFF' 120 | }, 121 | btleConnectionStatus: { 122 | // fontSize: 20, 123 | paddingTop: 20 124 | }, 125 | headline: { 126 | fontSize: 20, 127 | paddingTop: 20 128 | }, 129 | row: { 130 | padding: 8, 131 | paddingBottom: 16 132 | }, 133 | smallText: { 134 | fontSize: 11 135 | } 136 | }); 137 | 138 | AppRegistry.registerComponent( 139 | 'reactNativeBeaconExample', 140 | () => reactNativeBeaconExample 141 | ); 142 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React, { 4 | Component 5 | } from 'react'; 6 | import { 7 | AppRegistry, 8 | StyleSheet, 9 | View, 10 | Text, 11 | ListView, 12 | DeviceEventEmitter 13 | } from 'react-native'; 14 | import Beacons from 'react-native-beacons-manager'; 15 | import BluetoothState from 'react-native-bluetooth-state'; 16 | 17 | 18 | class reactNativeBeaconExample extends Component { 19 | constructor(props) { 20 | super(props); 21 | // Create our dataSource which will be displayed in the ListView 22 | var ds = new ListView.DataSource({ 23 | rowHasChanged: (r1, r2) => r1 !== r2 } 24 | ); 25 | this.state = { 26 | bluetoothState: '', 27 | // region information 28 | identifier: 'GemTot for iOS', 29 | uuid: '7b44b47b-52a1-5381-90c2-f09b6838c5d4', 30 | // React Native ListView datasource initialization 31 | dataSource: ds.cloneWithRows([]) 32 | }; 33 | } 34 | 35 | componentWillMount(){ 36 | // 37 | // ONLY non component state aware here in componentWillMount 38 | // 39 | // Request for authorization while the app is open 40 | Beacons.requestWhenInUseAuthorization(); 41 | // Define a region which can be identifier + uuid, 42 | // identifier + uuid + major or identifier + uuid + major + minor 43 | // (minor and major properties are numbers) 44 | const region = { 45 | identifier: this.state.identifier, 46 | uuid: this.state.uuid 47 | }; 48 | // Range for beacons inside the region 49 | Beacons.startRangingBeaconsInRegion(region); 50 | Beacons.startUpdatingLocation(); 51 | } 52 | 53 | componentDidMount() { 54 | // 55 | // component state aware here - attach events 56 | // 57 | // Ranging: Listen for beacon changes 58 | this.beaconsDidRange = DeviceEventEmitter.addListener( 59 | 'beaconsDidRange', 60 | (data) => { 61 | this.setState({ 62 | dataSource: this.state.dataSource.cloneWithRows(data.beacons) 63 | }); 64 | } 65 | ); 66 | 67 | // listen bluetooth state change event 68 | BluetoothState.subscribe( 69 | bluetoothState => { 70 | this.setState({ bluetoothState: bluetoothState }); 71 | } 72 | ); 73 | BluetoothState.initialize(); 74 | } 75 | 76 | componentWillUnMount(){ 77 | this.beaconsDidRange = null; 78 | } 79 | 80 | render() { 81 | const { bluetoothState, dataSource } = this.state; 82 | return ( 83 | 84 | 85 | Bluetooth connection status: { bluetoothState ? bluetoothState : 'NA' } 86 | 87 | 88 | All beacons in the area 89 | 90 | 95 | 96 | ); 97 | } 98 | 99 | renderRow = rowData => { 100 | return ( 101 | 102 | 103 | UUID: {rowData.uuid ? rowData.uuid : 'NA'} 104 | 105 | 106 | Major: {rowData.major ? rowData.major : 'NA'} 107 | 108 | 109 | Minor: {rowData.minor ? rowData.minor : 'NA'} 110 | 111 | 112 | RSSI: {rowData.rssi ? rowData.rssi : 'NA'} 113 | 114 | 115 | Proximity: {rowData.proximity ? rowData.proximity : 'NA'} 116 | 117 | 118 | Distance: {rowData.accuracy ? rowData.accuracy.toFixed(2) : 'NA'}m 119 | 120 | 121 | ); 122 | } 123 | } 124 | 125 | const styles = StyleSheet.create({ 126 | container: { 127 | flex: 1, 128 | paddingTop: 60, 129 | justifyContent: 'center', 130 | alignItems: 'center', 131 | backgroundColor: '#F5FCFF', 132 | }, 133 | btleConnectionStatus: { 134 | fontSize: 20, 135 | paddingTop: 20 136 | }, 137 | headline: { 138 | fontSize: 20, 139 | paddingTop: 20 140 | }, 141 | row: { 142 | padding: 8, 143 | paddingBottom: 16 144 | }, 145 | smallText: { 146 | fontSize: 11 147 | } 148 | }); 149 | 150 | 151 | AppRegistry.registerComponent( 152 | 'reactNativeBeaconExample', 153 | () => reactNativeBeaconExample 154 | ); 155 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* reactNativeBeaconExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* reactNativeBeaconExampleTests.m */; }; 16 | 05A600643BD949668062595D /* libRNBluetoothState.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A450E5E31562414A96535188 /* libRNBluetoothState.a */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 216B8C1D692B40C79FCFCB13 /* libRNiBeacon.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 826D388964A145B286874B0B /* libRNiBeacon.a */; }; 27 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 28 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 35 | proxyType = 2; 36 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 37 | remoteInfo = RCTActionSheet; 38 | }; 39 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 40 | isa = PBXContainerItemProxy; 41 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 42 | proxyType = 2; 43 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 44 | remoteInfo = RCTGeolocation; 45 | }; 46 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 47 | isa = PBXContainerItemProxy; 48 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 49 | proxyType = 2; 50 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 51 | remoteInfo = RCTImage; 52 | }; 53 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 54 | isa = PBXContainerItemProxy; 55 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 56 | proxyType = 2; 57 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 58 | remoteInfo = RCTNetwork; 59 | }; 60 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 61 | isa = PBXContainerItemProxy; 62 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 63 | proxyType = 2; 64 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 65 | remoteInfo = RCTVibration; 66 | }; 67 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 68 | isa = PBXContainerItemProxy; 69 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 70 | proxyType = 1; 71 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 72 | remoteInfo = reactNativeBeaconExample; 73 | }; 74 | 0D14D7BE1E5CCDCB00D9642D /* PBXContainerItemProxy */ = { 75 | isa = PBXContainerItemProxy; 76 | containerPortal = CD2CA9AF25BE4B3EA468480F /* RNBluetoothState.xcodeproj */; 77 | proxyType = 2; 78 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 79 | remoteInfo = RNBluetoothState; 80 | }; 81 | 0D14D7C11E5CCDCB00D9642D /* PBXContainerItemProxy */ = { 82 | isa = PBXContainerItemProxy; 83 | containerPortal = 074F9976827F4357B1225632 /* RNiBeacon.xcodeproj */; 84 | proxyType = 2; 85 | remoteGlobalIDString = 0D03EBDE1E56B1E700C55E6B; 86 | remoteInfo = RNiBeacon; 87 | }; 88 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 89 | isa = PBXContainerItemProxy; 90 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 91 | proxyType = 2; 92 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 93 | remoteInfo = RCTSettings; 94 | }; 95 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 96 | isa = PBXContainerItemProxy; 97 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 98 | proxyType = 2; 99 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 100 | remoteInfo = RCTWebSocket; 101 | }; 102 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 103 | isa = PBXContainerItemProxy; 104 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 105 | proxyType = 2; 106 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 107 | remoteInfo = React; 108 | }; 109 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 110 | isa = PBXContainerItemProxy; 111 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 112 | proxyType = 2; 113 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 114 | remoteInfo = "RCTImage-tvOS"; 115 | }; 116 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 117 | isa = PBXContainerItemProxy; 118 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 119 | proxyType = 2; 120 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 121 | remoteInfo = "RCTLinking-tvOS"; 122 | }; 123 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 124 | isa = PBXContainerItemProxy; 125 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 126 | proxyType = 2; 127 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 128 | remoteInfo = "RCTNetwork-tvOS"; 129 | }; 130 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 131 | isa = PBXContainerItemProxy; 132 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 133 | proxyType = 2; 134 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 135 | remoteInfo = "RCTSettings-tvOS"; 136 | }; 137 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 138 | isa = PBXContainerItemProxy; 139 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 140 | proxyType = 2; 141 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 142 | remoteInfo = "RCTText-tvOS"; 143 | }; 144 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 145 | isa = PBXContainerItemProxy; 146 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 147 | proxyType = 2; 148 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 149 | remoteInfo = "RCTWebSocket-tvOS"; 150 | }; 151 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 152 | isa = PBXContainerItemProxy; 153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 154 | proxyType = 2; 155 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 156 | remoteInfo = "React-tvOS"; 157 | }; 158 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 159 | isa = PBXContainerItemProxy; 160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 161 | proxyType = 2; 162 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 163 | remoteInfo = yoga; 164 | }; 165 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 166 | isa = PBXContainerItemProxy; 167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 168 | proxyType = 2; 169 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 170 | remoteInfo = "yoga-tvOS"; 171 | }; 172 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 173 | isa = PBXContainerItemProxy; 174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 175 | proxyType = 2; 176 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 177 | remoteInfo = cxxreact; 178 | }; 179 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 180 | isa = PBXContainerItemProxy; 181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 182 | proxyType = 2; 183 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 184 | remoteInfo = "cxxreact-tvOS"; 185 | }; 186 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 187 | isa = PBXContainerItemProxy; 188 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 189 | proxyType = 2; 190 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 191 | remoteInfo = jschelpers; 192 | }; 193 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 194 | isa = PBXContainerItemProxy; 195 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 196 | proxyType = 2; 197 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 198 | remoteInfo = "jschelpers-tvOS"; 199 | }; 200 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 201 | isa = PBXContainerItemProxy; 202 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 203 | proxyType = 2; 204 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 205 | remoteInfo = RCTAnimation; 206 | }; 207 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 208 | isa = PBXContainerItemProxy; 209 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 210 | proxyType = 2; 211 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 212 | remoteInfo = "RCTAnimation-tvOS"; 213 | }; 214 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 215 | isa = PBXContainerItemProxy; 216 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 217 | proxyType = 2; 218 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 219 | remoteInfo = RCTLinking; 220 | }; 221 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 222 | isa = PBXContainerItemProxy; 223 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 224 | proxyType = 2; 225 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 226 | remoteInfo = RCTText; 227 | }; 228 | /* End PBXContainerItemProxy section */ 229 | 230 | /* Begin PBXFileReference section */ 231 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 232 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 233 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 234 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 235 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 236 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 237 | 00E356EE1AD99517003FC87E /* reactNativeBeaconExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = reactNativeBeaconExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 238 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 239 | 00E356F21AD99517003FC87E /* reactNativeBeaconExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = reactNativeBeaconExampleTests.m; sourceTree = ""; }; 240 | 074F9976827F4357B1225632 /* RNiBeacon.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNiBeacon.xcodeproj; path = "../node_modules/react-native-beacons-manager/ios/RNiBeacon/RNiBeacon.xcodeproj"; sourceTree = ""; }; 241 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 242 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 243 | 13B07F961A680F5B00A75B9A /* reactNativeBeaconExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = reactNativeBeaconExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 244 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = reactNativeBeaconExample/AppDelegate.h; sourceTree = ""; }; 245 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = reactNativeBeaconExample/AppDelegate.m; sourceTree = ""; }; 246 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 247 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = reactNativeBeaconExample/Images.xcassets; sourceTree = ""; }; 248 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = reactNativeBeaconExample/Info.plist; sourceTree = ""; }; 249 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = reactNativeBeaconExample/main.m; sourceTree = ""; }; 250 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 251 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 252 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 253 | 826D388964A145B286874B0B /* libRNiBeacon.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNiBeacon.a; sourceTree = ""; }; 254 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 255 | A450E5E31562414A96535188 /* libRNBluetoothState.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNBluetoothState.a; sourceTree = ""; }; 256 | CD2CA9AF25BE4B3EA468480F /* RNBluetoothState.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNBluetoothState.xcodeproj; path = "../node_modules/react-native-bluetooth-state/RNBluetoothState.xcodeproj"; sourceTree = ""; }; 257 | /* End PBXFileReference section */ 258 | 259 | /* Begin PBXFrameworksBuildPhase section */ 260 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 261 | isa = PBXFrameworksBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 269 | isa = PBXFrameworksBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 273 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 274 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 275 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 276 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 277 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 278 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 279 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 280 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 281 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 282 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 283 | 216B8C1D692B40C79FCFCB13 /* libRNiBeacon.a in Frameworks */, 284 | 05A600643BD949668062595D /* libRNBluetoothState.a in Frameworks */, 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | }; 288 | /* End PBXFrameworksBuildPhase section */ 289 | 290 | /* Begin PBXGroup section */ 291 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 295 | ); 296 | name = Products; 297 | sourceTree = ""; 298 | }; 299 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 300 | isa = PBXGroup; 301 | children = ( 302 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 303 | ); 304 | name = Products; 305 | sourceTree = ""; 306 | }; 307 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 308 | isa = PBXGroup; 309 | children = ( 310 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 311 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 312 | ); 313 | name = Products; 314 | sourceTree = ""; 315 | }; 316 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 317 | isa = PBXGroup; 318 | children = ( 319 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 320 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 321 | ); 322 | name = Products; 323 | sourceTree = ""; 324 | }; 325 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 326 | isa = PBXGroup; 327 | children = ( 328 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 329 | ); 330 | name = Products; 331 | sourceTree = ""; 332 | }; 333 | 00E356EF1AD99517003FC87E /* reactNativeBeaconExampleTests */ = { 334 | isa = PBXGroup; 335 | children = ( 336 | 00E356F21AD99517003FC87E /* reactNativeBeaconExampleTests.m */, 337 | 00E356F01AD99517003FC87E /* Supporting Files */, 338 | ); 339 | path = reactNativeBeaconExampleTests; 340 | sourceTree = ""; 341 | }; 342 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 343 | isa = PBXGroup; 344 | children = ( 345 | 00E356F11AD99517003FC87E /* Info.plist */, 346 | ); 347 | name = "Supporting Files"; 348 | sourceTree = ""; 349 | }; 350 | 0D14D7A01E5CCDCB00D9642D /* Products */ = { 351 | isa = PBXGroup; 352 | children = ( 353 | 0D14D7BF1E5CCDCB00D9642D /* libRNBluetoothState.a */, 354 | ); 355 | name = Products; 356 | sourceTree = ""; 357 | }; 358 | 0D14D7A21E5CCDCB00D9642D /* Products */ = { 359 | isa = PBXGroup; 360 | children = ( 361 | 0D14D7C21E5CCDCB00D9642D /* libRNiBeacon.a */, 362 | ); 363 | name = Products; 364 | sourceTree = ""; 365 | }; 366 | 139105B71AF99BAD00B5F7CC /* Products */ = { 367 | isa = PBXGroup; 368 | children = ( 369 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 370 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 371 | ); 372 | name = Products; 373 | sourceTree = ""; 374 | }; 375 | 139FDEE71B06529A00C62182 /* Products */ = { 376 | isa = PBXGroup; 377 | children = ( 378 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 379 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 380 | ); 381 | name = Products; 382 | sourceTree = ""; 383 | }; 384 | 13B07FAE1A68108700A75B9A /* reactNativeBeaconExample */ = { 385 | isa = PBXGroup; 386 | children = ( 387 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 388 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 389 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 390 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 391 | 13B07FB61A68108700A75B9A /* Info.plist */, 392 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 393 | 13B07FB71A68108700A75B9A /* main.m */, 394 | ); 395 | name = reactNativeBeaconExample; 396 | sourceTree = ""; 397 | }; 398 | 146834001AC3E56700842450 /* Products */ = { 399 | isa = PBXGroup; 400 | children = ( 401 | 146834041AC3E56700842450 /* libReact.a */, 402 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 403 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 404 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 405 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 406 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 407 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 408 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 409 | ); 410 | name = Products; 411 | sourceTree = ""; 412 | }; 413 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 414 | isa = PBXGroup; 415 | children = ( 416 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 417 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 418 | ); 419 | name = Products; 420 | sourceTree = ""; 421 | }; 422 | 78C398B11ACF4ADC00677621 /* Products */ = { 423 | isa = PBXGroup; 424 | children = ( 425 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 426 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 427 | ); 428 | name = Products; 429 | sourceTree = ""; 430 | }; 431 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 432 | isa = PBXGroup; 433 | children = ( 434 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 435 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 436 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 437 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 438 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 439 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 440 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 441 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 442 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 443 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 444 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 445 | 074F9976827F4357B1225632 /* RNiBeacon.xcodeproj */, 446 | CD2CA9AF25BE4B3EA468480F /* RNBluetoothState.xcodeproj */, 447 | ); 448 | name = Libraries; 449 | sourceTree = ""; 450 | }; 451 | 832341B11AAA6A8300B99B32 /* Products */ = { 452 | isa = PBXGroup; 453 | children = ( 454 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 455 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 456 | ); 457 | name = Products; 458 | sourceTree = ""; 459 | }; 460 | 83CBB9F61A601CBA00E9B192 = { 461 | isa = PBXGroup; 462 | children = ( 463 | 13B07FAE1A68108700A75B9A /* reactNativeBeaconExample */, 464 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 465 | 00E356EF1AD99517003FC87E /* reactNativeBeaconExampleTests */, 466 | 83CBBA001A601CBA00E9B192 /* Products */, 467 | ); 468 | indentWidth = 2; 469 | sourceTree = ""; 470 | tabWidth = 2; 471 | }; 472 | 83CBBA001A601CBA00E9B192 /* Products */ = { 473 | isa = PBXGroup; 474 | children = ( 475 | 13B07F961A680F5B00A75B9A /* reactNativeBeaconExample.app */, 476 | 00E356EE1AD99517003FC87E /* reactNativeBeaconExampleTests.xctest */, 477 | ); 478 | name = Products; 479 | sourceTree = ""; 480 | }; 481 | /* End PBXGroup section */ 482 | 483 | /* Begin PBXNativeTarget section */ 484 | 00E356ED1AD99517003FC87E /* reactNativeBeaconExampleTests */ = { 485 | isa = PBXNativeTarget; 486 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "reactNativeBeaconExampleTests" */; 487 | buildPhases = ( 488 | 00E356EA1AD99517003FC87E /* Sources */, 489 | 00E356EB1AD99517003FC87E /* Frameworks */, 490 | 00E356EC1AD99517003FC87E /* Resources */, 491 | ); 492 | buildRules = ( 493 | ); 494 | dependencies = ( 495 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 496 | ); 497 | name = reactNativeBeaconExampleTests; 498 | productName = reactNativeBeaconExampleTests; 499 | productReference = 00E356EE1AD99517003FC87E /* reactNativeBeaconExampleTests.xctest */; 500 | productType = "com.apple.product-type.bundle.unit-test"; 501 | }; 502 | 13B07F861A680F5B00A75B9A /* reactNativeBeaconExample */ = { 503 | isa = PBXNativeTarget; 504 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "reactNativeBeaconExample" */; 505 | buildPhases = ( 506 | 13B07F871A680F5B00A75B9A /* Sources */, 507 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 508 | 13B07F8E1A680F5B00A75B9A /* Resources */, 509 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 510 | ); 511 | buildRules = ( 512 | ); 513 | dependencies = ( 514 | ); 515 | name = reactNativeBeaconExample; 516 | productName = "Hello World"; 517 | productReference = 13B07F961A680F5B00A75B9A /* reactNativeBeaconExample.app */; 518 | productType = "com.apple.product-type.application"; 519 | }; 520 | /* End PBXNativeTarget section */ 521 | 522 | /* Begin PBXProject section */ 523 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 524 | isa = PBXProject; 525 | attributes = { 526 | LastUpgradeCheck = 610; 527 | ORGANIZATIONNAME = Facebook; 528 | TargetAttributes = { 529 | 00E356ED1AD99517003FC87E = { 530 | CreatedOnToolsVersion = 6.2; 531 | DevelopmentTeam = P297PK2LTE; 532 | TestTargetID = 13B07F861A680F5B00A75B9A; 533 | }; 534 | 13B07F861A680F5B00A75B9A = { 535 | DevelopmentTeam = P297PK2LTE; 536 | SystemCapabilities = { 537 | com.apple.BackgroundModes = { 538 | enabled = 1; 539 | }; 540 | }; 541 | }; 542 | }; 543 | }; 544 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "reactNativeBeaconExample" */; 545 | compatibilityVersion = "Xcode 3.2"; 546 | developmentRegion = English; 547 | hasScannedForEncodings = 0; 548 | knownRegions = ( 549 | en, 550 | Base, 551 | ); 552 | mainGroup = 83CBB9F61A601CBA00E9B192; 553 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 554 | projectDirPath = ""; 555 | projectReferences = ( 556 | { 557 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 558 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 559 | }, 560 | { 561 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 562 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 563 | }, 564 | { 565 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 566 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 567 | }, 568 | { 569 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 570 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 571 | }, 572 | { 573 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 574 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 575 | }, 576 | { 577 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 578 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 579 | }, 580 | { 581 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 582 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 583 | }, 584 | { 585 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 586 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 587 | }, 588 | { 589 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 590 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 591 | }, 592 | { 593 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 594 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 595 | }, 596 | { 597 | ProductGroup = 146834001AC3E56700842450 /* Products */; 598 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 599 | }, 600 | { 601 | ProductGroup = 0D14D7A01E5CCDCB00D9642D /* Products */; 602 | ProjectRef = CD2CA9AF25BE4B3EA468480F /* RNBluetoothState.xcodeproj */; 603 | }, 604 | { 605 | ProductGroup = 0D14D7A21E5CCDCB00D9642D /* Products */; 606 | ProjectRef = 074F9976827F4357B1225632 /* RNiBeacon.xcodeproj */; 607 | }, 608 | ); 609 | projectRoot = ""; 610 | targets = ( 611 | 13B07F861A680F5B00A75B9A /* reactNativeBeaconExample */, 612 | 00E356ED1AD99517003FC87E /* reactNativeBeaconExampleTests */, 613 | ); 614 | }; 615 | /* End PBXProject section */ 616 | 617 | /* Begin PBXReferenceProxy section */ 618 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 619 | isa = PBXReferenceProxy; 620 | fileType = archive.ar; 621 | path = libRCTActionSheet.a; 622 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 623 | sourceTree = BUILT_PRODUCTS_DIR; 624 | }; 625 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 626 | isa = PBXReferenceProxy; 627 | fileType = archive.ar; 628 | path = libRCTGeolocation.a; 629 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 630 | sourceTree = BUILT_PRODUCTS_DIR; 631 | }; 632 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 633 | isa = PBXReferenceProxy; 634 | fileType = archive.ar; 635 | path = libRCTImage.a; 636 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 637 | sourceTree = BUILT_PRODUCTS_DIR; 638 | }; 639 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 640 | isa = PBXReferenceProxy; 641 | fileType = archive.ar; 642 | path = libRCTNetwork.a; 643 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 644 | sourceTree = BUILT_PRODUCTS_DIR; 645 | }; 646 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 647 | isa = PBXReferenceProxy; 648 | fileType = archive.ar; 649 | path = libRCTVibration.a; 650 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 651 | sourceTree = BUILT_PRODUCTS_DIR; 652 | }; 653 | 0D14D7BF1E5CCDCB00D9642D /* libRNBluetoothState.a */ = { 654 | isa = PBXReferenceProxy; 655 | fileType = archive.ar; 656 | path = libRNBluetoothState.a; 657 | remoteRef = 0D14D7BE1E5CCDCB00D9642D /* PBXContainerItemProxy */; 658 | sourceTree = BUILT_PRODUCTS_DIR; 659 | }; 660 | 0D14D7C21E5CCDCB00D9642D /* libRNiBeacon.a */ = { 661 | isa = PBXReferenceProxy; 662 | fileType = archive.ar; 663 | path = libRNiBeacon.a; 664 | remoteRef = 0D14D7C11E5CCDCB00D9642D /* PBXContainerItemProxy */; 665 | sourceTree = BUILT_PRODUCTS_DIR; 666 | }; 667 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 668 | isa = PBXReferenceProxy; 669 | fileType = archive.ar; 670 | path = libRCTSettings.a; 671 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 672 | sourceTree = BUILT_PRODUCTS_DIR; 673 | }; 674 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 675 | isa = PBXReferenceProxy; 676 | fileType = archive.ar; 677 | path = libRCTWebSocket.a; 678 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 679 | sourceTree = BUILT_PRODUCTS_DIR; 680 | }; 681 | 146834041AC3E56700842450 /* libReact.a */ = { 682 | isa = PBXReferenceProxy; 683 | fileType = archive.ar; 684 | path = libReact.a; 685 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 686 | sourceTree = BUILT_PRODUCTS_DIR; 687 | }; 688 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 689 | isa = PBXReferenceProxy; 690 | fileType = archive.ar; 691 | path = "libRCTImage-tvOS.a"; 692 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 693 | sourceTree = BUILT_PRODUCTS_DIR; 694 | }; 695 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 696 | isa = PBXReferenceProxy; 697 | fileType = archive.ar; 698 | path = "libRCTLinking-tvOS.a"; 699 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 700 | sourceTree = BUILT_PRODUCTS_DIR; 701 | }; 702 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 703 | isa = PBXReferenceProxy; 704 | fileType = archive.ar; 705 | path = "libRCTNetwork-tvOS.a"; 706 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 707 | sourceTree = BUILT_PRODUCTS_DIR; 708 | }; 709 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 710 | isa = PBXReferenceProxy; 711 | fileType = archive.ar; 712 | path = "libRCTSettings-tvOS.a"; 713 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 714 | sourceTree = BUILT_PRODUCTS_DIR; 715 | }; 716 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 717 | isa = PBXReferenceProxy; 718 | fileType = archive.ar; 719 | path = "libRCTText-tvOS.a"; 720 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 721 | sourceTree = BUILT_PRODUCTS_DIR; 722 | }; 723 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 724 | isa = PBXReferenceProxy; 725 | fileType = archive.ar; 726 | path = "libRCTWebSocket-tvOS.a"; 727 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 728 | sourceTree = BUILT_PRODUCTS_DIR; 729 | }; 730 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 731 | isa = PBXReferenceProxy; 732 | fileType = archive.ar; 733 | path = libReact.a; 734 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 735 | sourceTree = BUILT_PRODUCTS_DIR; 736 | }; 737 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 738 | isa = PBXReferenceProxy; 739 | fileType = archive.ar; 740 | path = libyoga.a; 741 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 742 | sourceTree = BUILT_PRODUCTS_DIR; 743 | }; 744 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 745 | isa = PBXReferenceProxy; 746 | fileType = archive.ar; 747 | path = libyoga.a; 748 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 749 | sourceTree = BUILT_PRODUCTS_DIR; 750 | }; 751 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 752 | isa = PBXReferenceProxy; 753 | fileType = archive.ar; 754 | path = libcxxreact.a; 755 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 756 | sourceTree = BUILT_PRODUCTS_DIR; 757 | }; 758 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 759 | isa = PBXReferenceProxy; 760 | fileType = archive.ar; 761 | path = libcxxreact.a; 762 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 763 | sourceTree = BUILT_PRODUCTS_DIR; 764 | }; 765 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 766 | isa = PBXReferenceProxy; 767 | fileType = archive.ar; 768 | path = libjschelpers.a; 769 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 770 | sourceTree = BUILT_PRODUCTS_DIR; 771 | }; 772 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 773 | isa = PBXReferenceProxy; 774 | fileType = archive.ar; 775 | path = libjschelpers.a; 776 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 777 | sourceTree = BUILT_PRODUCTS_DIR; 778 | }; 779 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 780 | isa = PBXReferenceProxy; 781 | fileType = archive.ar; 782 | path = libRCTAnimation.a; 783 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 784 | sourceTree = BUILT_PRODUCTS_DIR; 785 | }; 786 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 787 | isa = PBXReferenceProxy; 788 | fileType = archive.ar; 789 | path = "libRCTAnimation-tvOS.a"; 790 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 791 | sourceTree = BUILT_PRODUCTS_DIR; 792 | }; 793 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 794 | isa = PBXReferenceProxy; 795 | fileType = archive.ar; 796 | path = libRCTLinking.a; 797 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 798 | sourceTree = BUILT_PRODUCTS_DIR; 799 | }; 800 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 801 | isa = PBXReferenceProxy; 802 | fileType = archive.ar; 803 | path = libRCTText.a; 804 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 805 | sourceTree = BUILT_PRODUCTS_DIR; 806 | }; 807 | /* End PBXReferenceProxy section */ 808 | 809 | /* Begin PBXResourcesBuildPhase section */ 810 | 00E356EC1AD99517003FC87E /* Resources */ = { 811 | isa = PBXResourcesBuildPhase; 812 | buildActionMask = 2147483647; 813 | files = ( 814 | ); 815 | runOnlyForDeploymentPostprocessing = 0; 816 | }; 817 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 818 | isa = PBXResourcesBuildPhase; 819 | buildActionMask = 2147483647; 820 | files = ( 821 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 822 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 823 | ); 824 | runOnlyForDeploymentPostprocessing = 0; 825 | }; 826 | /* End PBXResourcesBuildPhase section */ 827 | 828 | /* Begin PBXShellScriptBuildPhase section */ 829 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 830 | isa = PBXShellScriptBuildPhase; 831 | buildActionMask = 2147483647; 832 | files = ( 833 | ); 834 | inputPaths = ( 835 | ); 836 | name = "Bundle React Native code and images"; 837 | outputPaths = ( 838 | ); 839 | runOnlyForDeploymentPostprocessing = 0; 840 | shellPath = /bin/sh; 841 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 842 | }; 843 | /* End PBXShellScriptBuildPhase section */ 844 | 845 | /* Begin PBXSourcesBuildPhase section */ 846 | 00E356EA1AD99517003FC87E /* Sources */ = { 847 | isa = PBXSourcesBuildPhase; 848 | buildActionMask = 2147483647; 849 | files = ( 850 | 00E356F31AD99517003FC87E /* reactNativeBeaconExampleTests.m in Sources */, 851 | ); 852 | runOnlyForDeploymentPostprocessing = 0; 853 | }; 854 | 13B07F871A680F5B00A75B9A /* Sources */ = { 855 | isa = PBXSourcesBuildPhase; 856 | buildActionMask = 2147483647; 857 | files = ( 858 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 859 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 860 | ); 861 | runOnlyForDeploymentPostprocessing = 0; 862 | }; 863 | /* End PBXSourcesBuildPhase section */ 864 | 865 | /* Begin PBXTargetDependency section */ 866 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 867 | isa = PBXTargetDependency; 868 | target = 13B07F861A680F5B00A75B9A /* reactNativeBeaconExample */; 869 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 870 | }; 871 | /* End PBXTargetDependency section */ 872 | 873 | /* Begin PBXVariantGroup section */ 874 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 875 | isa = PBXVariantGroup; 876 | children = ( 877 | 13B07FB21A68108700A75B9A /* Base */, 878 | ); 879 | name = LaunchScreen.xib; 880 | path = reactNativeBeaconExample; 881 | sourceTree = ""; 882 | }; 883 | /* End PBXVariantGroup section */ 884 | 885 | /* Begin XCBuildConfiguration section */ 886 | 00E356F61AD99517003FC87E /* Debug */ = { 887 | isa = XCBuildConfiguration; 888 | buildSettings = { 889 | BUNDLE_LOADER = "$(TEST_HOST)"; 890 | DEVELOPMENT_TEAM = P297PK2LTE; 891 | GCC_PREPROCESSOR_DEFINITIONS = ( 892 | "DEBUG=1", 893 | "$(inherited)", 894 | ); 895 | INFOPLIST_FILE = reactNativeBeaconExampleTests/Info.plist; 896 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 897 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 898 | LIBRARY_SEARCH_PATHS = ( 899 | "$(inherited)", 900 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 901 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 902 | ); 903 | OTHER_LDFLAGS = ( 904 | "-ObjC", 905 | "-lc++", 906 | ); 907 | PRODUCT_NAME = "$(TARGET_NAME)"; 908 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactNativeBeaconExample.app/reactNativeBeaconExample"; 909 | }; 910 | name = Debug; 911 | }; 912 | 00E356F71AD99517003FC87E /* Release */ = { 913 | isa = XCBuildConfiguration; 914 | buildSettings = { 915 | BUNDLE_LOADER = "$(TEST_HOST)"; 916 | COPY_PHASE_STRIP = NO; 917 | DEVELOPMENT_TEAM = P297PK2LTE; 918 | INFOPLIST_FILE = reactNativeBeaconExampleTests/Info.plist; 919 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 920 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 921 | LIBRARY_SEARCH_PATHS = ( 922 | "$(inherited)", 923 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 924 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 925 | ); 926 | OTHER_LDFLAGS = ( 927 | "-ObjC", 928 | "-lc++", 929 | ); 930 | PRODUCT_NAME = "$(TARGET_NAME)"; 931 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactNativeBeaconExample.app/reactNativeBeaconExample"; 932 | }; 933 | name = Release; 934 | }; 935 | 13B07F941A680F5B00A75B9A /* Debug */ = { 936 | isa = XCBuildConfiguration; 937 | buildSettings = { 938 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 939 | CURRENT_PROJECT_VERSION = 1; 940 | DEAD_CODE_STRIPPING = NO; 941 | DEVELOPMENT_TEAM = P297PK2LTE; 942 | INFOPLIST_FILE = reactNativeBeaconExample/Info.plist; 943 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 944 | OTHER_LDFLAGS = ( 945 | "$(inherited)", 946 | "-ObjC", 947 | "-lc++", 948 | ); 949 | PRODUCT_NAME = reactNativeBeaconExample; 950 | VERSIONING_SYSTEM = "apple-generic"; 951 | }; 952 | name = Debug; 953 | }; 954 | 13B07F951A680F5B00A75B9A /* Release */ = { 955 | isa = XCBuildConfiguration; 956 | buildSettings = { 957 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 958 | CURRENT_PROJECT_VERSION = 1; 959 | DEVELOPMENT_TEAM = P297PK2LTE; 960 | INFOPLIST_FILE = reactNativeBeaconExample/Info.plist; 961 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 962 | OTHER_LDFLAGS = ( 963 | "$(inherited)", 964 | "-ObjC", 965 | "-lc++", 966 | ); 967 | PRODUCT_NAME = reactNativeBeaconExample; 968 | VERSIONING_SYSTEM = "apple-generic"; 969 | }; 970 | name = Release; 971 | }; 972 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 973 | isa = XCBuildConfiguration; 974 | buildSettings = { 975 | ALWAYS_SEARCH_USER_PATHS = NO; 976 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 977 | CLANG_CXX_LIBRARY = "libc++"; 978 | CLANG_ENABLE_MODULES = YES; 979 | CLANG_ENABLE_OBJC_ARC = YES; 980 | CLANG_WARN_BOOL_CONVERSION = YES; 981 | CLANG_WARN_CONSTANT_CONVERSION = YES; 982 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 983 | CLANG_WARN_EMPTY_BODY = YES; 984 | CLANG_WARN_ENUM_CONVERSION = YES; 985 | CLANG_WARN_INT_CONVERSION = YES; 986 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 987 | CLANG_WARN_UNREACHABLE_CODE = YES; 988 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 989 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 990 | COPY_PHASE_STRIP = NO; 991 | ENABLE_STRICT_OBJC_MSGSEND = YES; 992 | GCC_C_LANGUAGE_STANDARD = gnu99; 993 | GCC_DYNAMIC_NO_PIC = NO; 994 | GCC_OPTIMIZATION_LEVEL = 0; 995 | GCC_PREPROCESSOR_DEFINITIONS = ( 996 | "DEBUG=1", 997 | "$(inherited)", 998 | ); 999 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1000 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1001 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1002 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1003 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1004 | GCC_WARN_UNUSED_FUNCTION = YES; 1005 | GCC_WARN_UNUSED_VARIABLE = YES; 1006 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1007 | MTL_ENABLE_DEBUG_INFO = YES; 1008 | ONLY_ACTIVE_ARCH = YES; 1009 | SDKROOT = iphoneos; 1010 | }; 1011 | name = Debug; 1012 | }; 1013 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1014 | isa = XCBuildConfiguration; 1015 | buildSettings = { 1016 | ALWAYS_SEARCH_USER_PATHS = NO; 1017 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1018 | CLANG_CXX_LIBRARY = "libc++"; 1019 | CLANG_ENABLE_MODULES = YES; 1020 | CLANG_ENABLE_OBJC_ARC = YES; 1021 | CLANG_WARN_BOOL_CONVERSION = YES; 1022 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1023 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1024 | CLANG_WARN_EMPTY_BODY = YES; 1025 | CLANG_WARN_ENUM_CONVERSION = YES; 1026 | CLANG_WARN_INT_CONVERSION = YES; 1027 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1028 | CLANG_WARN_UNREACHABLE_CODE = YES; 1029 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1030 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1031 | COPY_PHASE_STRIP = YES; 1032 | ENABLE_NS_ASSERTIONS = NO; 1033 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1034 | GCC_C_LANGUAGE_STANDARD = gnu99; 1035 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1036 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1037 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1038 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1039 | GCC_WARN_UNUSED_FUNCTION = YES; 1040 | GCC_WARN_UNUSED_VARIABLE = YES; 1041 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1042 | MTL_ENABLE_DEBUG_INFO = NO; 1043 | SDKROOT = iphoneos; 1044 | VALIDATE_PRODUCT = YES; 1045 | }; 1046 | name = Release; 1047 | }; 1048 | /* End XCBuildConfiguration section */ 1049 | 1050 | /* Begin XCConfigurationList section */ 1051 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "reactNativeBeaconExampleTests" */ = { 1052 | isa = XCConfigurationList; 1053 | buildConfigurations = ( 1054 | 00E356F61AD99517003FC87E /* Debug */, 1055 | 00E356F71AD99517003FC87E /* Release */, 1056 | ); 1057 | defaultConfigurationIsVisible = 0; 1058 | defaultConfigurationName = Release; 1059 | }; 1060 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "reactNativeBeaconExample" */ = { 1061 | isa = XCConfigurationList; 1062 | buildConfigurations = ( 1063 | 13B07F941A680F5B00A75B9A /* Debug */, 1064 | 13B07F951A680F5B00A75B9A /* Release */, 1065 | ); 1066 | defaultConfigurationIsVisible = 0; 1067 | defaultConfigurationName = Release; 1068 | }; 1069 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "reactNativeBeaconExample" */ = { 1070 | isa = XCConfigurationList; 1071 | buildConfigurations = ( 1072 | 83CBBA201A601CBA00E9B192 /* Debug */, 1073 | 83CBBA211A601CBA00E9B192 /* Release */, 1074 | ); 1075 | defaultConfigurationIsVisible = 0; 1076 | defaultConfigurationName = Release; 1077 | }; 1078 | /* End XCConfigurationList section */ 1079 | }; 1080 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1081 | } 1082 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample.xcodeproj/xcshareddata/xcschemes/reactNativeBeaconExample-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample.xcodeproj/xcshareddata/xcschemes/reactNativeBeaconExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"reactNativeBeaconExample" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | reactNativeBeaconExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UIBackgroundModes 41 | 42 | bluetooth-central 43 | location 44 | 45 | UILaunchStoryboardName 46 | LaunchScreen 47 | UIRequiredDeviceCapabilities 48 | 49 | armv7 50 | 51 | UISupportedInterfaceOrientations 52 | 53 | UIInterfaceOrientationPortrait 54 | UIInterfaceOrientationLandscapeLeft 55 | UIInterfaceOrientationLandscapeRight 56 | 57 | UIViewControllerBasedStatusBarAppearance 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/reactNativeBeaconExampleTests/reactNativeBeaconExampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface reactNativeBeaconExampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation reactNativeBeaconExampleTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactNativeBeaconExample", 3 | "version": "2.0.0", 4 | "author": "Erwan DATIN (MacKentoch)", 5 | "license": "MIT", 6 | "description": "React Native iBeacon Example", 7 | "keywords": [ 8 | "react-native", 9 | "react native", 10 | "React Native", 11 | "React", 12 | "native", 13 | "Native", 14 | "react", 15 | "starter", 16 | "es6", 17 | "ES6", 18 | "ES2015", 19 | "beacon", 20 | "iBeacon" 21 | ], 22 | "scripts": { 23 | "start": "node node_modules/react-native/local-cli/cli.js start", 24 | "test": "jest" 25 | }, 26 | "dependencies": { 27 | "react": "~15.4.0", 28 | "react-native": "0.41.2", 29 | "react-native-beacons-manager": "^1.0.1", 30 | "react-native-bluetooth-state": "^2.0.0" 31 | }, 32 | "devDependencies": { 33 | "babel-eslint": "^7.1.1", 34 | "babel-jest": "19.0.0", 35 | "babel-preset-react-native": "1.9.1", 36 | "eslint": "^3.16.0", 37 | "eslint-plugin-react": "^6.10.0", 38 | "eslint-plugin-react-native": "^2.2.1", 39 | "jest": "19.0.0", 40 | "react-test-renderer": "~15.4.0" 41 | }, 42 | "jest": { 43 | "preset": "react-native" 44 | } 45 | } 46 | --------------------------------------------------------------------------------