├── Example
├── .watchmanconfig
├── .gitattributes
├── .babelrc
├── app.json
├── android
│ ├── app
│ │ ├── .settings
│ │ │ └── org.eclipse.buildship.core.prefs
│ │ ├── src
│ │ │ └── main
│ │ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ └── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ └── MainApplication.java
│ │ │ │ └── AndroidManifest.xml
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── BUCK
│ │ ├── proguard-rules.pro
│ │ └── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── keystores
│ │ ├── debug.keystore.properties
│ │ └── BUCK
│ ├── settings.gradle
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── .project
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradlew.bat
│ └── gradlew
├── ios
│ ├── Example
│ │ ├── Images.xcassets
│ │ │ ├── Contents.json
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.h
│ │ ├── main.m
│ │ ├── AppDelegate.m
│ │ ├── Info.plist
│ │ └── Base.lproj
│ │ │ └── LaunchScreen.xib
│ ├── ExampleTests
│ │ ├── Info.plist
│ │ └── ExampleTests.m
│ ├── Example-tvOSTests
│ │ └── Info.plist
│ ├── Example-tvOS
│ │ └── Info.plist
│ └── Example.xcodeproj
│ │ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── Example.xcscheme
│ │ │ └── Example-tvOS.xcscheme
│ │ └── project.pbxproj
├── .buckconfig
├── index.js
├── package.json
├── .gitignore
├── .flowconfig
└── App.js
├── android
├── src
│ ├── main
│ │ ├── res
│ │ │ └── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── lewin
│ │ │ └── qrcode
│ │ │ ├── QRScanReaderPackage.java
│ │ │ ├── RGBLuminanceSource.java
│ │ │ └── QRScanReader.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── lewin
│ │ └── qrcode
│ │ └── ExampleUnitTest.java
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── .project
├── gradle.properties
├── build.gradle
├── gradlew.bat
└── gradlew
├── index.js
├── ios
├── QrCode
│ ├── QRScanReader.h
│ └── QRScanReader.m
├── QrCode.podspec
└── QrCode.xcodeproj
│ └── project.pbxproj
├── README.md
├── package.json
└── .gitignore
/Example/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/Example/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/Example/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/Example/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Example",
3 | "displayName": "Example"
4 | }
--------------------------------------------------------------------------------
/Example/android/app/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/android/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | My Application
3 |
4 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Example
3 |
4 |
--------------------------------------------------------------------------------
/Example/ios/Example/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LewinJun/react-native-lewin-qrcode/HEAD/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Example/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/Example/index.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 | import App from './App';
3 |
4 | AppRegistry.registerComponent('Example', () => App);
5 |
--------------------------------------------------------------------------------
/Example/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LewinJun/react-native-lewin-qrcode/HEAD/Example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Example/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 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LewinJun/react-native-lewin-qrcode/HEAD/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LewinJun/react-native-lewin-qrcode/HEAD/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LewinJun/react-native-lewin-qrcode/HEAD/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LewinJun/react-native-lewin-qrcode/HEAD/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Example/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.14.1-all.zip
6 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 18 16:16:41 CST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
7 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 |
2 | 'use strict'
3 |
4 | const { NativeModules } = require('react-native');
5 | /**
6 | * 识别照片中的二维码
7 | * @param {string} fileUrl 本地图片地址
8 | */
9 | export const readerQR = (fileUrl) => {
10 | var QRScanReader = NativeModules.QRScanReader;
11 | return QRScanReader.readerQR(fileUrl);
12 | }
--------------------------------------------------------------------------------
/ios/QrCode/QRScanReader.h:
--------------------------------------------------------------------------------
1 | //
2 | // QRScanReader.h
3 | // Bitcoin
4 | //
5 | // Created by lewin on 2018/3/14.
6 | // Copyright © 2018年 Facebook. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface QRScanReader : NSObject
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/Example/android/app/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Example/ios/Example/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | @interface AppDelegate : UIResponder
11 |
12 | @property (nonatomic, strong) UIWindow *window;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/Example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'Example'
2 | include ':react-native-lewin-qrcode'
3 | project(':react-native-lewin-qrcode').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-lewin-qrcode/android')
4 | include ':react-native-image-picker'
5 | project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android')
6 |
7 | include ':app'
8 |
--------------------------------------------------------------------------------
/android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Example/ios/Example/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | arguments=
2 | auto.sync=false
3 | build.scans.enabled=false
4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5 | connection.project.dir=
6 | eclipse.preferences.version=1
7 | gradle.user.home=
8 | java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
9 | jvm.arguments=
10 | offline.mode=false
11 | override.workspace.settings=true
12 | show.console.view=true
13 | show.executions.view=true
14 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/java/com/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example;
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 "Example";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Example/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | arguments=
2 | auto.sync=false
3 | build.scans.enabled=false
4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5 | connection.project.dir=
6 | eclipse.preferences.version=1
7 | gradle.user.home=
8 | java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
9 | jvm.arguments=
10 | offline.mode=false
11 | override.workspace.settings=true
12 | show.console.view=true
13 | show.executions.view=true
14 |
--------------------------------------------------------------------------------
/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | android
4 | Project android created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/android/src/test/java/com/lewin/qrcode/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.lewin.qrcode;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Example/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Example
4 | Project android created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-native-lewin-qrcode
2 | react-native 识别照片二维码
3 |
4 | ## Table of contents
5 | - [Install](#install)
6 | - [Usage](#usage)
7 |
8 | ## Install
9 | ### 1: yarn add 或者npm install,现在最新版本是1.1.0
10 | `yarn add react-native-lewin-qrcode `
11 | ### 2: yarn install 或 npm install
12 | ### 3: react-native link react-native-lewin-qrcode
13 |
14 | ## Usage
15 | ### NOTE: 可以参考Example的App.js中的openPhoto方法
16 |
17 | ```javascript
18 | import {readerQR} from 'react-native-lewin-qrcode'
19 | //path 图片文件的路径
20 | readerQR(path).then((data)=>{
21 | Alert.alert('识别结果',data);
22 | }).catch((err)=>{
23 | Alert.alert('识别失败');
24 | });
25 | ```
26 |
--------------------------------------------------------------------------------
/Example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Example",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "react": "latest",
11 | "react-native": "latest",
12 | "react-native-image-picker": "^0.26.7",
13 | "react-native-lewin-qrcode": "1.0.1"
14 | },
15 | "devDependencies": {
16 | "babel-jest": "22.4.3",
17 | "babel-preset-react-native": "4.0.0",
18 | "jest": "22.4.3",
19 | "react-test-renderer": "16.3.1"
20 | },
21 | "jest": {
22 | "preset": "react-native"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Example/android/app/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | app
4 | Project app created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/ios/QrCode.podspec:
--------------------------------------------------------------------------------
1 | require 'json'
2 | version = JSON.parse(File.read('../package.json'))["version"]
3 |
4 | Pod::Spec.new do |s|
5 |
6 | s.name = "QrCode"
7 | s.version = version
8 | s.summary = "Capture a React Native view to an image"
9 | s.homepage = "https://github.com/LewinJun/react-native-lewin-qrcode"
10 | s.license = "MIT"
11 | s.author = { "Gaëtan Renaudeau" => "xxx@gmail.com" }
12 | s.platform = :ios, "7.0"
13 | s.source = { :git => "https://github.com/LewinJun/react-native-lewin-qrcode.git", :tag => "v#{s.version}" }
14 | s.source_files = '**/*.{h,m}'
15 | s.preserve_paths = "**/*.js"
16 | s.dependency 'React'
17 |
18 | end
19 |
--------------------------------------------------------------------------------
/Example/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:2.2.3'
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 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-lewin-qrcode",
3 | "version": "1.1.0",
4 | "description": "二维码识别,选择相册里面的一张照片进行识别二维码",
5 | "main": "index.js",
6 | "nativePackage": true,
7 | "scripts": {
8 | "prepare": "rm -rf android/build Example/android/build Example/android/app/build node_modules"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "git+https://github.com/LewinJun/react-native-lewin-qrcode.git"
13 | },
14 | "keywords": [
15 | "qrcode",
16 | "react",
17 | "二维码",
18 | "识别",
19 | "native"
20 | ],
21 | "author": "lewin",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/LewinJun/react-native-lewin-qrcode/issues"
25 | },
26 | "homepage": "https://github.com/LewinJun/react-native-lewin-qrcode#readme"
27 | }
--------------------------------------------------------------------------------
/Example/ios/Example/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 | }
--------------------------------------------------------------------------------
/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 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/Example/ios/ExampleTests/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 |
--------------------------------------------------------------------------------
/Example/ios/Example-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 |
--------------------------------------------------------------------------------
/android/src/main/java/com/lewin/qrcode/QRScanReaderPackage.java:
--------------------------------------------------------------------------------
1 | package com.lewin.qrcode;
2 |
3 | import com.facebook.react.ReactPackage;
4 | import com.facebook.react.bridge.NativeModule;
5 | import com.facebook.react.bridge.ReactApplicationContext;
6 | import com.facebook.react.uimanager.ViewManager;
7 |
8 | import java.util.ArrayList;
9 | import java.util.Collections;
10 | import java.util.List;
11 |
12 | /**
13 | * Created by lewin on 2018/3/14.
14 | */
15 |
16 | public class QRScanReaderPackage implements ReactPackage {
17 | @Override
18 | public List createNativeModules(ReactApplicationContext reactContext) {
19 | List modules = new ArrayList<>();
20 |
21 | modules.add(new QRScanReader(reactContext));
22 |
23 | return modules;
24 | }
25 |
26 | @Override
27 | public List createViewManagers(ReactApplicationContext reactContext) {
28 | return Collections.emptyList();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Example/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 |
--------------------------------------------------------------------------------
/Example/.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 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
--------------------------------------------------------------------------------
/.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 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # CocoaPods
56 | Pods
57 |
58 | *.dSYM.zip
59 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android/src/main/java/com/lewin/qrcode/RGBLuminanceSource.java:
--------------------------------------------------------------------------------
1 | package com.lewin.qrcode;
2 |
3 | import android.graphics.Bitmap;
4 |
5 | import com.google.zxing.LuminanceSource;
6 |
7 | public class RGBLuminanceSource extends LuminanceSource {
8 |
9 | private byte bitmapPixels[];
10 |
11 | protected RGBLuminanceSource(Bitmap bitmap) {
12 | super(bitmap.getWidth(), bitmap.getHeight());
13 |
14 | // 首先,要取得该图片的像素数组内容
15 | int[] data = new int[bitmap.getWidth() * bitmap.getHeight()];
16 | this.bitmapPixels = new byte[bitmap.getWidth() * bitmap.getHeight()];
17 | bitmap.getPixels(data, 0, getWidth(), 0, 0, getWidth(), getHeight());
18 |
19 | // 将int数组转换为byte数组,也就是取像素值中蓝色值部分作为辨析内容
20 | for (int i = 0; i < data.length; i++) {
21 | this.bitmapPixels[i] = (byte) data[i];
22 | }
23 | }
24 |
25 | @Override
26 | public byte[] getMatrix() {
27 | // 返回我们生成好的像素数据
28 | return bitmapPixels;
29 | }
30 |
31 | @Override
32 | public byte[] getRow(int y, byte[] row) {
33 | // 这里要得到指定行的像素数据
34 | System.arraycopy(bitmapPixels, y * getWidth(), row, 0, getWidth());
35 | return row;
36 | }
37 | }
--------------------------------------------------------------------------------
/Example/ios/Example/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 |
13 | @implementation AppDelegate
14 |
15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16 | {
17 | NSURL *jsCodeLocation;
18 |
19 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
20 |
21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
22 | moduleName:@"Example"
23 | initialProperties:nil
24 | launchOptions:launchOptions];
25 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
26 |
27 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
28 | UIViewController *rootViewController = [UIViewController new];
29 | rootViewController.view = rootView;
30 | self.window.rootViewController = rootViewController;
31 | [self.window makeKeyAndVisible];
32 | return YES;
33 | }
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 |
2 | import groovy.json.JsonSlurper
3 | def safeExtGet(prop, fallback) {
4 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
5 | }
6 | def computeVersionName() {
7 | // dynamically retrieve version from package.json
8 | def slurper = new JsonSlurper()
9 | def json = slurper.parse(file('../package.json'), "utf-8")
10 | return json.version
11 | }
12 | buildscript {
13 | repositories {
14 | jcenter()
15 | }
16 |
17 | dependencies {
18 | classpath 'com.android.tools.build:gradle:1.3.1'
19 | }
20 | }
21 |
22 | apply plugin: 'com.android.library'
23 |
24 | android {
25 | compileSdkVersion safeExtGet('compileSdkVersion', 23)
26 | buildToolsVersion safeExtGet('buildToolsVersion', "23.0.1")
27 |
28 | defaultConfig {
29 | minSdkVersion safeExtGet('minSdkVersion', 16)
30 | targetSdkVersion safeExtGet('targetSdkVersion', 22)
31 | versionCode 1
32 | versionName computeVersionName()
33 | }
34 | lintOptions {
35 | abortOnError false
36 | }
37 | }
38 |
39 | repositories {
40 | mavenCentral()
41 | maven {
42 | url "$projectDir/../Example/node_modules/react-native/android"
43 | }
44 | maven {
45 | url "$projectDir/../../react-native/android"
46 | }
47 | }
48 |
49 | dependencies {
50 | implementation 'com.facebook.react:react-native:+'
51 | implementation 'com.google.zxing:core:3.3.2'
52 | }
53 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/java/com/example/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.lewin.qrcode.QRScanReaderPackage;
7 | import com.imagepicker.ImagePickerPackage;
8 | import com.facebook.react.ReactNativeHost;
9 | import com.facebook.react.ReactPackage;
10 | import com.facebook.react.shell.MainReactPackage;
11 | import com.facebook.soloader.SoLoader;
12 |
13 | import java.util.Arrays;
14 | import java.util.List;
15 |
16 | public class MainApplication extends Application implements ReactApplication {
17 |
18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
19 | @Override
20 | public boolean getUseDeveloperSupport() {
21 | return BuildConfig.DEBUG;
22 | }
23 |
24 | @Override
25 | protected List getPackages() {
26 | return Arrays.asList(
27 | new MainReactPackage(),
28 | new QRScanReaderPackage(),
29 | new ImagePickerPackage()
30 | );
31 | }
32 |
33 | @Override
34 | protected String getJSMainModuleName() {
35 | return "index";
36 | }
37 | };
38 |
39 | @Override
40 | public ReactNativeHost getReactNativeHost() {
41 | return mReactNativeHost;
42 | }
43 |
44 | @Override
45 | public void onCreate() {
46 | super.onCreate();
47 | SoLoader.init(this, /* native exopackage */ false);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Example/.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 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | ; Ignore metro
20 | .*/node_modules/metro/.*
21 |
22 | [include]
23 |
24 | [libs]
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
26 | node_modules/react-native/flow/
27 | node_modules/react-native/flow-github/
28 |
29 | [options]
30 | emoji=true
31 |
32 | module.system=haste
33 |
34 | munge_underscores=true
35 |
36 | 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'
37 |
38 | module.file_ext=.js
39 | module.file_ext=.jsx
40 | module.file_ext=.json
41 | module.file_ext=.native.js
42 |
43 | suppress_type=$FlowIssue
44 | suppress_type=$FlowFixMe
45 | suppress_type=$FlowFixMeProps
46 | suppress_type=$FlowFixMeState
47 |
48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
50 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
51 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
52 |
53 | [version]
54 | ^0.67.0
55 |
--------------------------------------------------------------------------------
/Example/ios/Example-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 |
--------------------------------------------------------------------------------
/Example/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | lib_deps = []
12 |
13 | for jarfile in glob(['libs/*.jar']):
14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15 | lib_deps.append(':' + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
21 | for aarfile in glob(['libs/*.aar']):
22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23 | lib_deps.append(':' + name)
24 | android_prebuilt_aar(
25 | name = name,
26 | aar = aarfile,
27 | )
28 |
29 | android_library(
30 | name = "all-libs",
31 | exported_deps = lib_deps,
32 | )
33 |
34 | android_library(
35 | name = "app-code",
36 | srcs = glob([
37 | "src/main/java/**/*.java",
38 | ]),
39 | deps = [
40 | ":all-libs",
41 | ":build_config",
42 | ":res",
43 | ],
44 | )
45 |
46 | android_build_config(
47 | name = "build_config",
48 | package = "com.example",
49 | )
50 |
51 | android_resource(
52 | name = "res",
53 | package = "com.example",
54 | res = "src/main/res",
55 | )
56 |
57 | android_binary(
58 | name = "app",
59 | keystore = "//android/keystores:debug",
60 | manifest = "src/main/AndroidManifest.xml",
61 | package_type = "debug",
62 | deps = [
63 | ":app-code",
64 | ],
65 | )
66 |
--------------------------------------------------------------------------------
/ios/QrCode/QRScanReader.m:
--------------------------------------------------------------------------------
1 | //
2 | // QRScanReader.m
3 | // Bitcoin
4 | //
5 | // Created by lewin on 2018/3/14.
6 | // Copyright © 2018年 Facebook. All rights reserved.
7 | //
8 |
9 | #import "QRScanReader.h"
10 | #import
11 | #import
12 |
13 | @implementation QRScanReader
14 | RCT_EXPORT_MODULE();
15 |
16 | RCT_EXPORT_METHOD(readerQR:(NSString *)fileUrl success:(RCTPromiseResolveBlock)success failure:(RCTResponseErrorBlock)failure){
17 | dispatch_sync(dispatch_get_main_queue(), ^{
18 | NSString *result = [self readerQR:fileUrl];
19 | if(result){
20 | success(result);
21 | }else{
22 | NSString *domain = @"yitang.xiao";
23 | NSString *desc = NSLocalizedString(@"没有相关二维码", @"");
24 | NSDictionary *userInfo = @{ NSLocalizedDescriptionKey : desc };
25 | NSError *error = [NSError errorWithDomain:domain
26 | code:404
27 | userInfo:userInfo];
28 | failure(error);
29 | }
30 | });
31 |
32 |
33 |
34 | }
35 |
36 | -(NSString*)readerQR:(NSString*)fileUrl{
37 | fileUrl = [fileUrl stringByReplacingOccurrencesOfString:@"file://" withString:@""];
38 |
39 | CIContext *context = [CIContext contextWithOptions:nil];
40 |
41 | // CIDetector(CIDetector可用于人脸识别)进行图片解析,声明一个CIDetector,并设定识别类型 CIDetectorTypeQRCode
42 | CIDetector *detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:context options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}];
43 | NSData *fileData = [[NSData alloc] initWithContentsOfFile:fileUrl];
44 | CIImage *ciImage = [CIImage imageWithData:fileData];
45 | NSArray *features = [detector featuresInImage:ciImage];
46 | if(!features || features.count==0){
47 | return nil;
48 | }
49 | //3. 获取扫描结果
50 | CIQRCodeFeature *feature = [features objectAtIndex:0];
51 | NSString *scannedResult = feature.messageString;
52 | return scannedResult;
53 | }
54 |
55 | @end
56 |
--------------------------------------------------------------------------------
/Example/ios/ExampleTests/ExampleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
16 |
17 | @interface ExampleTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation ExampleTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
44 | if (level >= RCTLogLevelError) {
45 | redboxError = message;
46 | }
47 | });
48 |
49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
52 |
53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
55 | return YES;
56 | }
57 | return NO;
58 | }];
59 | }
60 |
61 | RCTSetLogFunction(RCTDefaultLogFunction);
62 |
63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/Example/ios/Example/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NSPhotoLibraryUsageDescription
6 | $(PRODUCT_NAME) would like access to your photo gallery
7 | NSCameraUsageDescription
8 | $(PRODUCT_NAME) would like to use your camera
9 | NSPhotoLibraryAddUsageDescription
10 | $(PRODUCT_NAME) would like to save photos to your photo gallery
11 | NSMicrophoneUsageDescription
12 | $(PRODUCT_NAME) would like to your microphone (for videos)
13 | CFBundleDevelopmentRegion
14 | en
15 | CFBundleDisplayName
16 | Example
17 | CFBundleExecutable
18 | $(EXECUTABLE_NAME)
19 | CFBundleIdentifier
20 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
21 | CFBundleInfoDictionaryVersion
22 | 6.0
23 | CFBundleName
24 | $(PRODUCT_NAME)
25 | CFBundlePackageType
26 | APPL
27 | CFBundleShortVersionString
28 | 1.0
29 | CFBundleSignature
30 | ????
31 | CFBundleVersion
32 | 1
33 | LSRequiresIPhoneOS
34 |
35 | UILaunchStoryboardName
36 | LaunchScreen
37 | UIRequiredDeviceCapabilities
38 |
39 | armv7
40 |
41 | UISupportedInterfaceOrientations
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationLandscapeLeft
45 | UIInterfaceOrientationLandscapeRight
46 |
47 | UIViewControllerBasedStatusBarAppearance
48 |
49 | NSLocationWhenInUseUsageDescription
50 |
51 | NSAppTransportSecurity
52 |
53 |
54 | NSExceptionDomains
55 |
56 | localhost
57 |
58 | NSExceptionAllowsInsecureHTTPLoads
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Example/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | Platform,
10 | StyleSheet,
11 | TouchableOpacity,
12 | Alert,
13 | Text,
14 | View
15 | } from 'react-native';
16 | var ImagePicker = require('react-native-image-picker');
17 |
18 | import {readerQR} from 'react-native-lewin-qrcode'
19 |
20 | const instructions = Platform.select({
21 | ios: 'Press Cmd+R to reload,\n' +
22 | 'Cmd+D or shake for dev menu',
23 | android: 'Double tap R on your keyboard to reload,\n' +
24 | 'Shake or press menu button for dev menu',
25 | });
26 |
27 | type Props = {};
28 | export default class App extends Component {
29 | openPhoto(){
30 | console.log('ImagePicker');
31 | ImagePicker.launchImageLibrary({}, (response) => {
32 | console.log('Response = ', response);
33 |
34 | if (response.didCancel) {
35 | console.log('User cancelled image picker');
36 | }
37 | else if (response.error) {
38 | console.log('ImagePicker Error: ', response.error);
39 | }
40 | else if (response.customButton) {
41 | console.log('User tapped custom button: ', response.customButton);
42 | }
43 | else {
44 | if(response.uri){
45 | var path = response.path;
46 | if(!path){
47 | path = response.uri;
48 | }
49 | readerQR(path).then((data)=>{
50 | Alert.alert('识别结果',data);
51 | }).catch((err)=>{
52 | Alert.alert('识别失败');
53 | });
54 |
55 | }
56 | }
57 | });
58 | }
59 | render() {
60 | return (
61 |
62 |
63 | Welcome to React Native Lewin QRCODE!
64 |
65 | {
66 | this.openPhoto();
67 | }}>
68 | 打开相册识别二维码
69 |
70 |
71 |
72 |
73 | );
74 | }
75 | }
76 |
77 | const styles = StyleSheet.create({
78 | container: {
79 | flex: 1,
80 | justifyContent: 'center',
81 | alignItems: 'center',
82 | backgroundColor: '#F5FCFF',
83 | },
84 | welcome: {
85 | fontSize: 20,
86 | textAlign: 'center',
87 | margin: 10,
88 | },
89 | instructions: {
90 | textAlign: 'center',
91 | color: '#333333',
92 | marginBottom: 5,
93 | },
94 | });
95 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Example/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 |
--------------------------------------------------------------------------------
/Example/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 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
55 | -dontwarn android.text.StaticLayout
56 |
57 | # okhttp
58 |
59 | -keepattributes Signature
60 | -keepattributes *Annotation*
61 | -keep class okhttp3.** { *; }
62 | -keep interface okhttp3.** { *; }
63 | -dontwarn okhttp3.**
64 |
65 | # okio
66 |
67 | -keep class sun.misc.Unsafe { *; }
68 | -dontwarn java.nio.file.*
69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
70 | -dontwarn okio.**
71 |
--------------------------------------------------------------------------------
/Example/ios/Example/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 |
--------------------------------------------------------------------------------
/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.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 |
--------------------------------------------------------------------------------
/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-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 |
--------------------------------------------------------------------------------
/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 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/Example/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 |
--------------------------------------------------------------------------------
/Example/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 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion 23
98 | buildToolsVersion "23.0.1"
99 |
100 | defaultConfig {
101 | applicationId "com.example"
102 | minSdkVersion 16
103 | targetSdkVersion 22
104 | versionCode 1
105 | versionName "1.0"
106 | ndk {
107 | abiFilters "armeabi-v7a", "x86"
108 | }
109 | }
110 | splits {
111 | abi {
112 | reset()
113 | enable enableSeparateBuildPerCPUArchitecture
114 | universalApk false // If true, also generate a universal APK
115 | include "armeabi-v7a", "x86"
116 | }
117 | }
118 | buildTypes {
119 | release {
120 | minifyEnabled enableProguardInReleaseBuilds
121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
122 | }
123 | }
124 | // applicationVariants are e.g. debug, release
125 | applicationVariants.all { variant ->
126 | variant.outputs.each { output ->
127 | // For each separate APK per architecture, set a unique version code as described here:
128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
129 | def versionCodes = ["armeabi-v7a":1, "x86":2]
130 | def abi = output.getFilter(OutputFile.ABI)
131 | if (abi != null) { // null for the universal-debug, universal-release variants
132 | output.versionCodeOverride =
133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
134 | }
135 | }
136 | }
137 | }
138 |
139 | dependencies {
140 | compile project(':react-native-lewin-qrcode')
141 | compile project(':react-native-image-picker')
142 | compile fileTree(dir: "libs", include: ["*.jar"])
143 | compile "com.android.support:appcompat-v7:23.0.1"
144 | compile "com.facebook.react:react-native:+" // From node_modules
145 | }
146 |
147 | // Run this once to be able to run the application with BUCK
148 | // puts all compile dependencies into folder libs for BUCK to use
149 | task copyDownloadableDepsToLibs(type: Copy) {
150 | from configurations.compile
151 | into 'libs'
152 | }
153 |
--------------------------------------------------------------------------------
/ios/QrCode.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 48;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 07FD4BEE20874AD2002FBD31 /* QRScanReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 078A94AA20873A0700EC805D /* QRScanReader.m */; };
11 | /* End PBXBuildFile section */
12 |
13 | /* Begin PBXCopyFilesBuildPhase section */
14 | 07FD4BE320874AB3002FBD31 /* CopyFiles */ = {
15 | isa = PBXCopyFilesBuildPhase;
16 | buildActionMask = 2147483647;
17 | dstPath = "include/$(PRODUCT_NAME)";
18 | dstSubfolderSpec = 16;
19 | files = (
20 | );
21 | runOnlyForDeploymentPostprocessing = 0;
22 | };
23 | /* End PBXCopyFilesBuildPhase section */
24 |
25 | /* Begin PBXFileReference section */
26 | 078A94A920873A0700EC805D /* QRScanReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QRScanReader.h; sourceTree = ""; };
27 | 078A94AA20873A0700EC805D /* QRScanReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QRScanReader.m; sourceTree = ""; };
28 | 07FD4BE520874AB3002FBD31 /* libQRCode.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libQRCode.a; sourceTree = BUILT_PRODUCTS_DIR; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | 07FD4BE220874AB3002FBD31 /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | 078A9474208738FB00EC805D = {
43 | isa = PBXGroup;
44 | children = (
45 | 07FD4BE620874AB3002FBD31 /* QRCode */,
46 | 078A947F208738FB00EC805D /* Products */,
47 | );
48 | sourceTree = "";
49 | };
50 | 078A947F208738FB00EC805D /* Products */ = {
51 | isa = PBXGroup;
52 | children = (
53 | 07FD4BE520874AB3002FBD31 /* libQRCode.a */,
54 | );
55 | name = Products;
56 | sourceTree = "";
57 | };
58 | 07FD4BE620874AB3002FBD31 /* QRCode */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 078A94A920873A0700EC805D /* QRScanReader.h */,
62 | 078A94AA20873A0700EC805D /* QRScanReader.m */,
63 | );
64 | path = QRCode;
65 | sourceTree = "";
66 | };
67 | /* End PBXGroup section */
68 |
69 | /* Begin PBXNativeTarget section */
70 | 07FD4BE420874AB3002FBD31 /* QRCode */ = {
71 | isa = PBXNativeTarget;
72 | buildConfigurationList = 07FD4BEB20874AB3002FBD31 /* Build configuration list for PBXNativeTarget "QRCode" */;
73 | buildPhases = (
74 | 07FD4BE120874AB3002FBD31 /* Sources */,
75 | 07FD4BE220874AB3002FBD31 /* Frameworks */,
76 | 07FD4BE320874AB3002FBD31 /* CopyFiles */,
77 | );
78 | buildRules = (
79 | );
80 | dependencies = (
81 | );
82 | name = QRCode;
83 | productName = QRCode;
84 | productReference = 07FD4BE520874AB3002FBD31 /* libQRCode.a */;
85 | productType = "com.apple.product-type.library.static";
86 | };
87 | /* End PBXNativeTarget section */
88 |
89 | /* Begin PBXProject section */
90 | 078A9475208738FB00EC805D /* Project object */ = {
91 | isa = PBXProject;
92 | attributes = {
93 | LastUpgradeCheck = 0920;
94 | ORGANIZATIONNAME = lewin;
95 | TargetAttributes = {
96 | 07FD4BE420874AB3002FBD31 = {
97 | CreatedOnToolsVersion = 9.2;
98 | ProvisioningStyle = Automatic;
99 | };
100 | };
101 | };
102 | buildConfigurationList = 078A9478208738FB00EC805D /* Build configuration list for PBXProject "QrCode" */;
103 | compatibilityVersion = "Xcode 8.0";
104 | developmentRegion = en;
105 | hasScannedForEncodings = 0;
106 | knownRegions = (
107 | en,
108 | );
109 | mainGroup = 078A9474208738FB00EC805D;
110 | productRefGroup = 078A947F208738FB00EC805D /* Products */;
111 | projectDirPath = "";
112 | projectRoot = "";
113 | targets = (
114 | 07FD4BE420874AB3002FBD31 /* QRCode */,
115 | );
116 | };
117 | /* End PBXProject section */
118 |
119 | /* Begin PBXSourcesBuildPhase section */
120 | 07FD4BE120874AB3002FBD31 /* Sources */ = {
121 | isa = PBXSourcesBuildPhase;
122 | buildActionMask = 2147483647;
123 | files = (
124 | 07FD4BEE20874AD2002FBD31 /* QRScanReader.m in Sources */,
125 | );
126 | runOnlyForDeploymentPostprocessing = 0;
127 | };
128 | /* End PBXSourcesBuildPhase section */
129 |
130 | /* Begin XCBuildConfiguration section */
131 | 078A9484208738FB00EC805D /* Debug */ = {
132 | isa = XCBuildConfiguration;
133 | buildSettings = {
134 | ALWAYS_SEARCH_USER_PATHS = NO;
135 | CLANG_ANALYZER_NONNULL = YES;
136 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
137 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
138 | CLANG_CXX_LIBRARY = "libc++";
139 | CLANG_ENABLE_MODULES = YES;
140 | CLANG_ENABLE_OBJC_ARC = YES;
141 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
142 | CLANG_WARN_BOOL_CONVERSION = YES;
143 | CLANG_WARN_COMMA = YES;
144 | CLANG_WARN_CONSTANT_CONVERSION = YES;
145 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
146 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
147 | CLANG_WARN_EMPTY_BODY = YES;
148 | CLANG_WARN_ENUM_CONVERSION = YES;
149 | CLANG_WARN_INFINITE_RECURSION = YES;
150 | CLANG_WARN_INT_CONVERSION = YES;
151 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
152 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
153 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
154 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
155 | CLANG_WARN_STRICT_PROTOTYPES = YES;
156 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
157 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
158 | CLANG_WARN_UNREACHABLE_CODE = YES;
159 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
160 | CODE_SIGN_IDENTITY = "iPhone Developer";
161 | COPY_PHASE_STRIP = NO;
162 | CURRENT_PROJECT_VERSION = 1;
163 | DEBUG_INFORMATION_FORMAT = dwarf;
164 | ENABLE_STRICT_OBJC_MSGSEND = YES;
165 | ENABLE_TESTABILITY = YES;
166 | FRAMEWORK_SEARCH_PATHS = "$(inherited)";
167 | GCC_C_LANGUAGE_STANDARD = gnu11;
168 | GCC_DYNAMIC_NO_PIC = NO;
169 | GCC_NO_COMMON_BLOCKS = YES;
170 | GCC_OPTIMIZATION_LEVEL = 0;
171 | GCC_PREPROCESSOR_DEFINITIONS = (
172 | "DEBUG=1",
173 | "$(inherited)",
174 | );
175 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
176 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
177 | GCC_WARN_UNDECLARED_SELECTOR = YES;
178 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
179 | GCC_WARN_UNUSED_FUNCTION = YES;
180 | GCC_WARN_UNUSED_VARIABLE = YES;
181 | HEADER_SEARCH_PATHS = "$(inherited)";
182 | IPHONEOS_DEPLOYMENT_TARGET = 11.4;
183 | LIBRARY_SEARCH_PATHS = "$(inherited)";
184 | MTL_ENABLE_DEBUG_INFO = YES;
185 | ONLY_ACTIVE_ARCH = YES;
186 | SDKROOT = iphoneos;
187 | VERSIONING_SYSTEM = "apple-generic";
188 | VERSION_INFO_PREFIX = "";
189 | };
190 | name = Debug;
191 | };
192 | 078A9485208738FB00EC805D /* Release */ = {
193 | isa = XCBuildConfiguration;
194 | buildSettings = {
195 | ALWAYS_SEARCH_USER_PATHS = NO;
196 | CLANG_ANALYZER_NONNULL = YES;
197 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
198 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
199 | CLANG_CXX_LIBRARY = "libc++";
200 | CLANG_ENABLE_MODULES = YES;
201 | CLANG_ENABLE_OBJC_ARC = YES;
202 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
203 | CLANG_WARN_BOOL_CONVERSION = YES;
204 | CLANG_WARN_COMMA = YES;
205 | CLANG_WARN_CONSTANT_CONVERSION = YES;
206 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
207 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
208 | CLANG_WARN_EMPTY_BODY = YES;
209 | CLANG_WARN_ENUM_CONVERSION = YES;
210 | CLANG_WARN_INFINITE_RECURSION = YES;
211 | CLANG_WARN_INT_CONVERSION = YES;
212 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
213 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
214 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
215 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
216 | CLANG_WARN_STRICT_PROTOTYPES = YES;
217 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
218 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
219 | CLANG_WARN_UNREACHABLE_CODE = YES;
220 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
221 | CODE_SIGN_IDENTITY = "iPhone Developer";
222 | COPY_PHASE_STRIP = NO;
223 | CURRENT_PROJECT_VERSION = 1;
224 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
225 | ENABLE_NS_ASSERTIONS = NO;
226 | ENABLE_STRICT_OBJC_MSGSEND = YES;
227 | FRAMEWORK_SEARCH_PATHS = "$(inherited)";
228 | GCC_C_LANGUAGE_STANDARD = gnu11;
229 | GCC_NO_COMMON_BLOCKS = YES;
230 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
231 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
232 | GCC_WARN_UNDECLARED_SELECTOR = YES;
233 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
234 | GCC_WARN_UNUSED_FUNCTION = YES;
235 | GCC_WARN_UNUSED_VARIABLE = YES;
236 | HEADER_SEARCH_PATHS = "$(inherited)";
237 | IPHONEOS_DEPLOYMENT_TARGET = 11.4;
238 | LIBRARY_SEARCH_PATHS = "$(inherited)";
239 | MTL_ENABLE_DEBUG_INFO = NO;
240 | SDKROOT = iphoneos;
241 | VALIDATE_PRODUCT = YES;
242 | VERSIONING_SYSTEM = "apple-generic";
243 | VERSION_INFO_PREFIX = "";
244 | };
245 | name = Release;
246 | };
247 | 07FD4BEC20874AB3002FBD31 /* Debug */ = {
248 | isa = XCBuildConfiguration;
249 | buildSettings = {
250 | CLANG_ANALYZER_NONNULL = YES_NONAGGRESSIVE;
251 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES;
252 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
253 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = NO;
254 | CODE_SIGN_IDENTITY = "";
255 | CODE_SIGN_STYLE = Automatic;
256 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
257 | GCC_C_LANGUAGE_STANDARD = gnu99;
258 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
259 | LIBRARY_SEARCH_PATHS = "$(inherited)";
260 | OTHER_LDFLAGS = "-ObjC";
261 | PRODUCT_NAME = "$(TARGET_NAME)";
262 | SKIP_INSTALL = YES;
263 | TARGETED_DEVICE_FAMILY = 1;
264 | };
265 | name = Debug;
266 | };
267 | 07FD4BED20874AB3002FBD31 /* Release */ = {
268 | isa = XCBuildConfiguration;
269 | buildSettings = {
270 | CLANG_ANALYZER_NONNULL = YES_NONAGGRESSIVE;
271 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES;
272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
273 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = NO;
274 | CODE_SIGN_IDENTITY = "";
275 | CODE_SIGN_STYLE = Automatic;
276 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
277 | GCC_C_LANGUAGE_STANDARD = gnu99;
278 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
279 | LIBRARY_SEARCH_PATHS = "$(inherited)";
280 | OTHER_LDFLAGS = "-ObjC";
281 | PRODUCT_NAME = "$(TARGET_NAME)";
282 | SKIP_INSTALL = YES;
283 | TARGETED_DEVICE_FAMILY = 1;
284 | };
285 | name = Release;
286 | };
287 | /* End XCBuildConfiguration section */
288 |
289 | /* Begin XCConfigurationList section */
290 | 078A9478208738FB00EC805D /* Build configuration list for PBXProject "QrCode" */ = {
291 | isa = XCConfigurationList;
292 | buildConfigurations = (
293 | 078A9484208738FB00EC805D /* Debug */,
294 | 078A9485208738FB00EC805D /* Release */,
295 | );
296 | defaultConfigurationIsVisible = 0;
297 | defaultConfigurationName = Release;
298 | };
299 | 07FD4BEB20874AB3002FBD31 /* Build configuration list for PBXNativeTarget "QRCode" */ = {
300 | isa = XCConfigurationList;
301 | buildConfigurations = (
302 | 07FD4BEC20874AB3002FBD31 /* Debug */,
303 | 07FD4BED20874AB3002FBD31 /* Release */,
304 | );
305 | defaultConfigurationIsVisible = 0;
306 | defaultConfigurationName = Release;
307 | };
308 | /* End XCConfigurationList section */
309 | };
310 | rootObject = 078A9475208738FB00EC805D /* Project object */;
311 | }
312 |
--------------------------------------------------------------------------------
/android/src/main/java/com/lewin/qrcode/QRScanReader.java:
--------------------------------------------------------------------------------
1 | package com.lewin.qrcode;
2 |
3 | import android.graphics.Bitmap;
4 | import android.graphics.BitmapFactory;
5 | import android.util.Base64;
6 |
7 | import com.facebook.react.bridge.Promise;
8 | import com.facebook.react.bridge.ReactApplicationContext;
9 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
10 | import com.facebook.react.bridge.ReactMethod;
11 | import com.google.zxing.BinaryBitmap;
12 | import com.google.zxing.ChecksumException;
13 | import com.google.zxing.DecodeHintType;
14 | import com.google.zxing.FormatException;
15 | import com.google.zxing.MultiFormatReader;
16 | import com.google.zxing.NotFoundException;
17 | import com.google.zxing.PlanarYUVLuminanceSource;
18 | import com.google.zxing.RGBLuminanceSource;
19 | import com.google.zxing.ReaderException;
20 | import com.google.zxing.Result;
21 | import com.google.zxing.common.HybridBinarizer;
22 | import com.google.zxing.qrcode.QRCodeReader;
23 |
24 | import java.util.Hashtable;
25 |
26 | /**
27 | * Created by lewin on 2018/3/14.
28 | */
29 |
30 | public class QRScanReader extends ReactContextBaseJavaModule {
31 |
32 | public QRScanReader(ReactApplicationContext reactContext) {
33 | super(reactContext);
34 | }
35 |
36 | @Override
37 | public String getName() {
38 | return "QRScanReader";
39 | }
40 |
41 | @ReactMethod
42 | public void readerQR(String fileUrl1, Promise promise ) {
43 | String fileUrl = fileUrl1.replace("file://","");
44 | Result result = scannLumin(fileUrl);
45 | if(result == null){
46 | // promise.reject("404","没有相关的二维码");
47 | result = scanningImage(fileUrl);
48 | if(result == null){
49 | result = decodeBarcodeRGB(fileUrl);
50 | if(result == null){
51 | result = decodeBarcodeYUV(fileUrl);
52 | if(result == null){
53 | promise.reject("404","没有相关的二维码");
54 | }else{
55 | promise.resolve(result.getText());
56 | }
57 | }else{
58 | promise.resolve(result.getText());
59 | }
60 | }else {
61 | promise.resolve(result.getText());
62 | }
63 |
64 | }else{
65 | promise.resolve(result.getText());
66 | }
67 | }
68 |
69 | public Result scannLumin(String path) {
70 |
71 | Result re = null;
72 | try {
73 | Bitmap barcode = fromToFileOrBase64(path, null);
74 | int width = barcode.getWidth();
75 | int height = barcode.getHeight();
76 | int[] data = new int[width * height];
77 | barcode.getPixels(data, 0, width, 0, 0, width, height); //得到像素
78 | RGBLuminanceSource source = new RGBLuminanceSource(width, height, data); //RGBLuminanceSource对象
79 | BinaryBitmap bitmap1 = new BinaryBitmap(new HybridBinarizer(source));
80 | QRCodeReader reader = new QRCodeReader();
81 | //得到结果
82 | re = reader.decode(bitmap1);
83 | } catch (NotFoundException e) {
84 | e.printStackTrace();
85 | } catch (ChecksumException e) {
86 | e.printStackTrace();
87 | } catch (FormatException e) {
88 | e.printStackTrace();
89 | }
90 | return re;
91 |
92 | }
93 |
94 | public static Bitmap base64ToBitmap(String base64Data) {
95 | try {
96 | byte[] bytes = Base64.decode(base64Data, Base64.DEFAULT);
97 | return BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
98 | }catch (Exception e) {
99 | e.printStackTrace();
100 | return null;
101 | }
102 |
103 | }
104 |
105 | public static Bitmap fromToFileOrBase64(String fileOrBase64, BitmapFactory.Options options) {
106 | try {
107 |
108 | if (fileOrBase64.toLowerCase().indexOf(";base64,") > 0) {
109 | return base64ToBitmap(fileOrBase64);
110 | }
111 | BitmapFactory.Options opts = null;
112 | if (options == null) {
113 | opts = new BitmapFactory.Options();
114 | opts.inSampleSize = 1;
115 | } else {
116 | opts = options;
117 | }
118 |
119 | Bitmap barcode = BitmapFactory.decodeFile(fileOrBase64, opts);
120 | return barcode;
121 |
122 | }catch (Exception ex) {
123 | ex.printStackTrace();
124 | return null;
125 | }
126 | }
127 |
128 |
129 | /**
130 | * 扫描二维码图片的方法
131 | * @param path
132 | * @return
133 | */
134 | public Result scanningImage(String path) {
135 |
136 | try {
137 | if (path == null || path.length() == 0) {
138 | return null;
139 | }
140 | Hashtable hints = new Hashtable<>();
141 | hints.put(DecodeHintType.CHARACTER_SET, "UTF8"); //设置二维码内容的编码
142 |
143 | BitmapFactory.Options options = new BitmapFactory.Options();
144 | options.inJustDecodeBounds = true; // 先获取原大小
145 | Bitmap scanBitmap = fromToFileOrBase64(path, options);
146 | options.inJustDecodeBounds = false; // 获取新的大小
147 | int sampleSize = (int) (options.outHeight / (float) 200);
148 | if (sampleSize <= 0)
149 | sampleSize = 1;
150 | options.inSampleSize = sampleSize;
151 | scanBitmap = BitmapFactory.decodeFile(path, options);
152 | int width=scanBitmap.getWidth();
153 | int height=scanBitmap.getHeight();
154 | int[] pixels=new int[width*height];
155 | scanBitmap.getPixels(pixels,0,width,0,0,width,height);//获取图片像素点
156 | RGBLuminanceSource source = new RGBLuminanceSource(scanBitmap.getWidth(),scanBitmap.getHeight(),pixels);
157 | BinaryBitmap bitmap1 = new BinaryBitmap(new HybridBinarizer(source));
158 | QRCodeReader reader = new QRCodeReader();
159 | return reader.decode(bitmap1, hints);
160 | } catch (NotFoundException e) {
161 | e.printStackTrace();
162 | } catch (ChecksumException e) {
163 | e.printStackTrace();
164 | } catch (FormatException e) {
165 | e.printStackTrace();
166 | } catch (Exception e) {
167 | e.printStackTrace();
168 | }
169 | return null;
170 | }
171 |
172 | /**
173 | * 解析二维码(使用解析RGB编码数据的方式)
174 | *
175 | * @param path
176 | * @return
177 | */
178 | public static Result decodeBarcodeRGB(String path) {
179 | try {
180 |
181 | Bitmap barcode = fromToFileOrBase64(path, null);
182 | Result result = decodeBarcodeRGB(barcode);
183 | barcode.recycle();
184 | barcode = null;
185 | return result;
186 | }catch (Exception ex) {
187 | ex.printStackTrace();
188 | return null;
189 | }
190 |
191 | }
192 |
193 | /**
194 | * 解析二维码 (使用解析RGB编码数据的方式)
195 | *
196 | * @param barcode
197 | * @return
198 | */
199 | public static Result decodeBarcodeRGB(Bitmap barcode) {
200 | int width = barcode.getWidth();
201 | int height = barcode.getHeight();
202 | int[] data = new int[width * height];
203 | barcode.getPixels(data, 0, width, 0, 0, width, height);
204 | RGBLuminanceSource source = new RGBLuminanceSource(width, height, data);
205 | BinaryBitmap bitmap1 = new BinaryBitmap(new HybridBinarizer(source));
206 | QRCodeReader reader = new QRCodeReader();
207 | Result result = null;
208 | try {
209 | result = reader.decode(bitmap1);
210 | } catch (NotFoundException e) {
211 | e.printStackTrace();
212 | } catch (ChecksumException e) {
213 | e.printStackTrace();
214 | } catch (FormatException e) {
215 | e.printStackTrace();
216 | }
217 | barcode.recycle();
218 | barcode = null;
219 | return result;
220 | }
221 |
222 | /**
223 | * 解析二维码(使用解析YUV编码数据的方式)
224 | *
225 | * @param path
226 | * @return
227 | */
228 | public static Result decodeBarcodeYUV(String path) {
229 | try{
230 | if (path == null || path.length() == 0) {
231 | return null;
232 | }
233 | Bitmap barcode = fromToFileOrBase64(path, null);
234 | Result result = decodeBarcodeYUV(barcode);
235 | barcode.recycle();
236 | barcode = null;
237 | return result;
238 | }catch (Exception ex) {
239 | ex.printStackTrace();
240 | return null;
241 | }
242 | }
243 |
244 | /**
245 | * 解析二维码(使用解析YUV编码数据的方式)
246 | *
247 | * @param barcode
248 | * @return
249 | */
250 | public static Result decodeBarcodeYUV(Bitmap barcode) {
251 | if (null == barcode) {
252 | return null;
253 | }
254 | int width = barcode.getWidth();
255 | int height = barcode.getHeight();
256 | //以argb方式存放图片的像素
257 | int[] argb = new int[width * height];
258 | barcode.getPixels(argb, 0, width, 0, 0, width, height);
259 | //将argb转换为yuv
260 | byte[] yuv = new byte[width * height * 3 / 2];
261 | encodeYUV420SP(yuv, argb, width, height);
262 | //解析YUV编码方式的二维码
263 | Result result = decodeBarcodeYUV(yuv, width, height);
264 |
265 | barcode.recycle();
266 | barcode = null;
267 | return result;
268 | }
269 |
270 | /**
271 | * 解析二维码(使用解析YUV编码数据的方式)
272 | *
273 | * @param yuv
274 | * @param width
275 | * @param height
276 | * @return
277 | */
278 | private static Result decodeBarcodeYUV(byte[] yuv, int width, int height) {
279 | long start = System.currentTimeMillis();
280 | MultiFormatReader multiFormatReader = new MultiFormatReader();
281 | multiFormatReader.setHints(null);
282 |
283 | Result rawResult = null;
284 | PlanarYUVLuminanceSource source = new PlanarYUVLuminanceSource(yuv, width, height, 0, 0,
285 | width, height, false);
286 | if (source != null) {
287 | BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
288 | try {
289 | rawResult = multiFormatReader.decodeWithState(bitmap);
290 | } catch (ReaderException re) {
291 | re.printStackTrace();
292 | } finally {
293 | multiFormatReader.reset();
294 | multiFormatReader = null;
295 | }
296 | }
297 | long end = System.currentTimeMillis();
298 | return rawResult;
299 | }
300 |
301 |
302 | /**
303 | * RGB转YUV的公式是:
304 | * Y=0.299R+0.587G+0.114B;
305 | * U=-0.147R-0.289G+0.436B;
306 | * V=0.615R-0.515G-0.1B;
307 | *
308 | * @param yuv
309 | * @param argb
310 | * @param width
311 | * @param height
312 | */
313 | private static void encodeYUV420SP(byte[] yuv, int[] argb, int width, int height) {
314 | // 帧图片的像素大小
315 | final int frameSize = width * height;
316 | // ---YUV数据---
317 | int Y, U, V;
318 | // Y的index从0开始
319 | int yIndex = 0;
320 | // UV的index从frameSize开始
321 | int uvIndex = frameSize;
322 | // ---颜色数据---
323 | int R, G, B;
324 | int rgbIndex = 0;
325 | // ---循环所有像素点,RGB转YUV---
326 | for (int j = 0; j < height; j++) {
327 | for (int i = 0; i < width; i++) {
328 | R = (argb[rgbIndex] & 0xff0000) >> 16;
329 | G = (argb[rgbIndex] & 0xff00) >> 8;
330 | B = (argb[rgbIndex] & 0xff);
331 | //
332 | rgbIndex++;
333 | // well known RGB to YUV algorithm
334 | Y = ((66 * R + 129 * G + 25 * B + 128) >> 8) + 16;
335 | U = ((-38 * R - 74 * G + 112 * B + 128) >> 8) + 128;
336 | V = ((112 * R - 94 * G - 18 * B + 128) >> 8) + 128;
337 | Y = Math.max(0, Math.min(Y, 255));
338 | U = Math.max(0, Math.min(U, 255));
339 | V = Math.max(0, Math.min(V, 255));
340 | // NV21 has a plane of Y and interleaved planes of VU each sampled by a factor of 2
341 | // meaning for every 4 Y pixels there are 1 V and 1 U. Note the sampling is every other
342 | // pixel AND every other scan line.
343 | // ---Y---
344 | yuv[yIndex++] = (byte) Y;
345 | // ---UV---
346 | if ((j % 2 == 0) && (i % 2 == 0)) {
347 | //
348 | yuv[uvIndex++] = (byte) V;
349 | //
350 | yuv[uvIndex++] = (byte) U;
351 | }
352 | }
353 | }
354 | }
355 | }
356 |
--------------------------------------------------------------------------------
/Example/ios/Example.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 /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; };
16 | 03A3DBB8D4A64A36B7E5FA9E /* libRNImagePicker.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E917BB9D3A30449B833ED482 /* libRNImagePicker.a */; };
17 | 109E9454CDF0496E94C5EAF2 /* libQRCode.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 198912DE384F4E188A542E89 /* libQRCode.a */; };
18 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
19 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
20 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
21 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
22 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
23 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
24 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
25 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
26 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
27 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
28 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
29 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
30 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
31 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
32 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
33 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
34 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
35 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
36 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
37 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
38 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; };
39 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
40 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
41 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
42 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
43 | /* End PBXBuildFile section */
44 |
45 | /* Begin PBXContainerItemProxy section */
46 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
47 | isa = PBXContainerItemProxy;
48 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
49 | proxyType = 2;
50 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
51 | remoteInfo = RCTActionSheet;
52 | };
53 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
54 | isa = PBXContainerItemProxy;
55 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
56 | proxyType = 2;
57 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
58 | remoteInfo = RCTGeolocation;
59 | };
60 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
61 | isa = PBXContainerItemProxy;
62 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
63 | proxyType = 2;
64 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
65 | remoteInfo = RCTImage;
66 | };
67 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
68 | isa = PBXContainerItemProxy;
69 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
70 | proxyType = 2;
71 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
72 | remoteInfo = RCTNetwork;
73 | };
74 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
75 | isa = PBXContainerItemProxy;
76 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
77 | proxyType = 2;
78 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
79 | remoteInfo = RCTVibration;
80 | };
81 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
82 | isa = PBXContainerItemProxy;
83 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
84 | proxyType = 1;
85 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
86 | remoteInfo = Example;
87 | };
88 | 07B2F1DD208740F600046E1B /* PBXContainerItemProxy */ = {
89 | isa = PBXContainerItemProxy;
90 | containerPortal = 80FFD2FB65A5418BBE6878F3 /* RNImagePicker.xcodeproj */;
91 | proxyType = 2;
92 | remoteGlobalIDString = 014A3B5C1C6CF33500B6D375;
93 | remoteInfo = RNImagePicker;
94 | };
95 | 07FD4C5920874B83002FBD31 /* PBXContainerItemProxy */ = {
96 | isa = PBXContainerItemProxy;
97 | containerPortal = A0A0E29F058F4B61882EE249 /* QrCode.xcodeproj */;
98 | proxyType = 2;
99 | remoteGlobalIDString = 07FD4BE520874AB3002FBD31;
100 | remoteInfo = QRCode;
101 | };
102 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
103 | isa = PBXContainerItemProxy;
104 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
105 | proxyType = 2;
106 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
107 | remoteInfo = RCTSettings;
108 | };
109 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
110 | isa = PBXContainerItemProxy;
111 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
112 | proxyType = 2;
113 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
114 | remoteInfo = RCTWebSocket;
115 | };
116 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
117 | isa = PBXContainerItemProxy;
118 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
119 | proxyType = 2;
120 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
121 | remoteInfo = React;
122 | };
123 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
124 | isa = PBXContainerItemProxy;
125 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
126 | proxyType = 1;
127 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
128 | remoteInfo = "Example-tvOS";
129 | };
130 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
131 | isa = PBXContainerItemProxy;
132 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
133 | proxyType = 2;
134 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
135 | remoteInfo = "RCTBlob-tvOS";
136 | };
137 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
138 | isa = PBXContainerItemProxy;
139 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
140 | proxyType = 2;
141 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
142 | remoteInfo = fishhook;
143 | };
144 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
145 | isa = PBXContainerItemProxy;
146 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
147 | proxyType = 2;
148 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
149 | remoteInfo = "fishhook-tvOS";
150 | };
151 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
152 | isa = PBXContainerItemProxy;
153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
154 | proxyType = 2;
155 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
156 | remoteInfo = jsinspector;
157 | };
158 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
159 | isa = PBXContainerItemProxy;
160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
161 | proxyType = 2;
162 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
163 | remoteInfo = "jsinspector-tvOS";
164 | };
165 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
166 | isa = PBXContainerItemProxy;
167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
168 | proxyType = 2;
169 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
170 | remoteInfo = "third-party";
171 | };
172 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
173 | isa = PBXContainerItemProxy;
174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
175 | proxyType = 2;
176 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
177 | remoteInfo = "third-party-tvOS";
178 | };
179 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
180 | isa = PBXContainerItemProxy;
181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
182 | proxyType = 2;
183 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
184 | remoteInfo = "double-conversion";
185 | };
186 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
187 | isa = PBXContainerItemProxy;
188 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
189 | proxyType = 2;
190 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
191 | remoteInfo = "double-conversion-tvOS";
192 | };
193 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = {
194 | isa = PBXContainerItemProxy;
195 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
196 | proxyType = 2;
197 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
198 | remoteInfo = privatedata;
199 | };
200 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = {
201 | isa = PBXContainerItemProxy;
202 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
203 | proxyType = 2;
204 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
205 | remoteInfo = "privatedata-tvOS";
206 | };
207 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
208 | isa = PBXContainerItemProxy;
209 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
210 | proxyType = 2;
211 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
212 | remoteInfo = "RCTImage-tvOS";
213 | };
214 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
215 | isa = PBXContainerItemProxy;
216 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
217 | proxyType = 2;
218 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
219 | remoteInfo = "RCTLinking-tvOS";
220 | };
221 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
222 | isa = PBXContainerItemProxy;
223 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
224 | proxyType = 2;
225 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
226 | remoteInfo = "RCTNetwork-tvOS";
227 | };
228 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
229 | isa = PBXContainerItemProxy;
230 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
231 | proxyType = 2;
232 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
233 | remoteInfo = "RCTSettings-tvOS";
234 | };
235 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
236 | isa = PBXContainerItemProxy;
237 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
238 | proxyType = 2;
239 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
240 | remoteInfo = "RCTText-tvOS";
241 | };
242 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
243 | isa = PBXContainerItemProxy;
244 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
245 | proxyType = 2;
246 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
247 | remoteInfo = "RCTWebSocket-tvOS";
248 | };
249 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
250 | isa = PBXContainerItemProxy;
251 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
252 | proxyType = 2;
253 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
254 | remoteInfo = "React-tvOS";
255 | };
256 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
257 | isa = PBXContainerItemProxy;
258 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
259 | proxyType = 2;
260 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
261 | remoteInfo = yoga;
262 | };
263 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
264 | isa = PBXContainerItemProxy;
265 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
266 | proxyType = 2;
267 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
268 | remoteInfo = "yoga-tvOS";
269 | };
270 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
271 | isa = PBXContainerItemProxy;
272 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
273 | proxyType = 2;
274 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
275 | remoteInfo = cxxreact;
276 | };
277 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
278 | isa = PBXContainerItemProxy;
279 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
280 | proxyType = 2;
281 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
282 | remoteInfo = "cxxreact-tvOS";
283 | };
284 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
285 | isa = PBXContainerItemProxy;
286 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
287 | proxyType = 2;
288 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
289 | remoteInfo = jschelpers;
290 | };
291 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
292 | isa = PBXContainerItemProxy;
293 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
294 | proxyType = 2;
295 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
296 | remoteInfo = "jschelpers-tvOS";
297 | };
298 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
299 | isa = PBXContainerItemProxy;
300 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
301 | proxyType = 2;
302 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
303 | remoteInfo = RCTAnimation;
304 | };
305 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
306 | isa = PBXContainerItemProxy;
307 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
308 | proxyType = 2;
309 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
310 | remoteInfo = "RCTAnimation-tvOS";
311 | };
312 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
313 | isa = PBXContainerItemProxy;
314 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
315 | proxyType = 2;
316 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
317 | remoteInfo = RCTLinking;
318 | };
319 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
320 | isa = PBXContainerItemProxy;
321 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
322 | proxyType = 2;
323 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
324 | remoteInfo = RCTText;
325 | };
326 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
327 | isa = PBXContainerItemProxy;
328 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
329 | proxyType = 2;
330 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
331 | remoteInfo = RCTBlob;
332 | };
333 | /* End PBXContainerItemProxy section */
334 |
335 | /* Begin PBXFileReference section */
336 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
337 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
338 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
339 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
340 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
341 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
342 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
343 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
344 | 00E356F21AD99517003FC87E /* ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleTests.m; sourceTree = ""; };
345 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
346 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
347 | 13B07F961A680F5B00A75B9A /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
348 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Example/AppDelegate.h; sourceTree = ""; };
349 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Example/AppDelegate.m; sourceTree = ""; };
350 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
351 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Example/Images.xcassets; sourceTree = ""; };
352 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Example/Info.plist; sourceTree = ""; };
353 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Example/main.m; sourceTree = ""; };
354 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
355 | 198912DE384F4E188A542E89 /* libQRCode.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libQRCode.a; sourceTree = ""; };
356 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
357 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Example-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
358 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
359 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
360 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
361 | 80FFD2FB65A5418BBE6878F3 /* RNImagePicker.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNImagePicker.xcodeproj; path = "../node_modules/react-native-image-picker/ios/RNImagePicker.xcodeproj"; sourceTree = ""; };
362 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
363 | A0A0E29F058F4B61882EE249 /* QrCode.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = QrCode.xcodeproj; path = "../node_modules/react-native-lewin-qrcode/ios/QrCode.xcodeproj"; sourceTree = ""; };
364 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
365 | E917BB9D3A30449B833ED482 /* libRNImagePicker.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNImagePicker.a; sourceTree = ""; };
366 | FEEA834DBE59495E95C95E59 /* QrCode.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = QrCode.framework; path = System/Library/Frameworks/QrCode.framework; sourceTree = SDKROOT; };
367 | /* End PBXFileReference section */
368 |
369 | /* Begin PBXFrameworksBuildPhase section */
370 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
371 | isa = PBXFrameworksBuildPhase;
372 | buildActionMask = 2147483647;
373 | files = (
374 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
375 | );
376 | runOnlyForDeploymentPostprocessing = 0;
377 | };
378 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
379 | isa = PBXFrameworksBuildPhase;
380 | buildActionMask = 2147483647;
381 | files = (
382 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
383 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
384 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
385 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
386 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
387 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
388 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
389 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
390 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
391 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
392 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
393 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
394 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
395 | 03A3DBB8D4A64A36B7E5FA9E /* libRNImagePicker.a in Frameworks */,
396 | 109E9454CDF0496E94C5EAF2 /* libQRCode.a in Frameworks */,
397 | );
398 | runOnlyForDeploymentPostprocessing = 0;
399 | };
400 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
401 | isa = PBXFrameworksBuildPhase;
402 | buildActionMask = 2147483647;
403 | files = (
404 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
405 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
406 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
407 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
408 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
409 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
410 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
411 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
412 | );
413 | runOnlyForDeploymentPostprocessing = 0;
414 | };
415 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
416 | isa = PBXFrameworksBuildPhase;
417 | buildActionMask = 2147483647;
418 | files = (
419 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */,
420 | );
421 | runOnlyForDeploymentPostprocessing = 0;
422 | };
423 | /* End PBXFrameworksBuildPhase section */
424 |
425 | /* Begin PBXGroup section */
426 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
427 | isa = PBXGroup;
428 | children = (
429 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
430 | );
431 | name = Products;
432 | sourceTree = "";
433 | };
434 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
435 | isa = PBXGroup;
436 | children = (
437 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
438 | );
439 | name = Products;
440 | sourceTree = "";
441 | };
442 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
443 | isa = PBXGroup;
444 | children = (
445 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
446 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
447 | );
448 | name = Products;
449 | sourceTree = "";
450 | };
451 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
452 | isa = PBXGroup;
453 | children = (
454 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
455 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
456 | );
457 | name = Products;
458 | sourceTree = "";
459 | };
460 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
461 | isa = PBXGroup;
462 | children = (
463 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
464 | );
465 | name = Products;
466 | sourceTree = "";
467 | };
468 | 00E356EF1AD99517003FC87E /* ExampleTests */ = {
469 | isa = PBXGroup;
470 | children = (
471 | 00E356F21AD99517003FC87E /* ExampleTests.m */,
472 | 00E356F01AD99517003FC87E /* Supporting Files */,
473 | );
474 | path = ExampleTests;
475 | sourceTree = "";
476 | };
477 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
478 | isa = PBXGroup;
479 | children = (
480 | 00E356F11AD99517003FC87E /* Info.plist */,
481 | );
482 | name = "Supporting Files";
483 | sourceTree = "";
484 | };
485 | 07B2F1AF208740F100046E1B /* Recovered References */ = {
486 | isa = PBXGroup;
487 | children = (
488 | E917BB9D3A30449B833ED482 /* libRNImagePicker.a */,
489 | FEEA834DBE59495E95C95E59 /* QrCode.framework */,
490 | 198912DE384F4E188A542E89 /* libQRCode.a */,
491 | );
492 | name = "Recovered References";
493 | sourceTree = "";
494 | };
495 | 07B2F1D5208740F600046E1B /* Products */ = {
496 | isa = PBXGroup;
497 | children = (
498 | 07B2F1DE208740F600046E1B /* libRNImagePicker.a */,
499 | );
500 | name = Products;
501 | sourceTree = "";
502 | };
503 | 07FD4C5620874B83002FBD31 /* Products */ = {
504 | isa = PBXGroup;
505 | children = (
506 | 07FD4C5A20874B83002FBD31 /* libQRCode.a */,
507 | );
508 | name = Products;
509 | sourceTree = "";
510 | };
511 | 139105B71AF99BAD00B5F7CC /* Products */ = {
512 | isa = PBXGroup;
513 | children = (
514 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
515 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
516 | );
517 | name = Products;
518 | sourceTree = "";
519 | };
520 | 139FDEE71B06529A00C62182 /* Products */ = {
521 | isa = PBXGroup;
522 | children = (
523 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
524 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
525 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
526 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
527 | );
528 | name = Products;
529 | sourceTree = "";
530 | };
531 | 13B07FAE1A68108700A75B9A /* Example */ = {
532 | isa = PBXGroup;
533 | children = (
534 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
535 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
536 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
537 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
538 | 13B07FB61A68108700A75B9A /* Info.plist */,
539 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
540 | 13B07FB71A68108700A75B9A /* main.m */,
541 | );
542 | name = Example;
543 | sourceTree = "";
544 | };
545 | 146834001AC3E56700842450 /* Products */ = {
546 | isa = PBXGroup;
547 | children = (
548 | 146834041AC3E56700842450 /* libReact.a */,
549 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
550 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
551 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
552 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
553 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
554 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
555 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
556 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
557 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
558 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
559 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
560 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
561 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
562 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */,
563 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */,
564 | );
565 | name = Products;
566 | sourceTree = "";
567 | };
568 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
569 | isa = PBXGroup;
570 | children = (
571 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
572 | );
573 | name = Frameworks;
574 | sourceTree = "";
575 | };
576 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
577 | isa = PBXGroup;
578 | children = (
579 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
580 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
581 | );
582 | name = Products;
583 | sourceTree = "";
584 | };
585 | 78C398B11ACF4ADC00677621 /* Products */ = {
586 | isa = PBXGroup;
587 | children = (
588 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
589 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
590 | );
591 | name = Products;
592 | sourceTree = "";
593 | };
594 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
595 | isa = PBXGroup;
596 | children = (
597 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
598 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
599 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
600 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
601 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
602 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
603 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
604 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
605 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
606 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
607 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
608 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
609 | 80FFD2FB65A5418BBE6878F3 /* RNImagePicker.xcodeproj */,
610 | A0A0E29F058F4B61882EE249 /* QrCode.xcodeproj */,
611 | );
612 | name = Libraries;
613 | sourceTree = "";
614 | };
615 | 832341B11AAA6A8300B99B32 /* Products */ = {
616 | isa = PBXGroup;
617 | children = (
618 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
619 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
620 | );
621 | name = Products;
622 | sourceTree = "";
623 | };
624 | 83CBB9F61A601CBA00E9B192 = {
625 | isa = PBXGroup;
626 | children = (
627 | 13B07FAE1A68108700A75B9A /* Example */,
628 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
629 | 00E356EF1AD99517003FC87E /* ExampleTests */,
630 | 83CBBA001A601CBA00E9B192 /* Products */,
631 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
632 | 07B2F1AF208740F100046E1B /* Recovered References */,
633 | );
634 | indentWidth = 2;
635 | sourceTree = "";
636 | tabWidth = 2;
637 | usesTabs = 0;
638 | };
639 | 83CBBA001A601CBA00E9B192 /* Products */ = {
640 | isa = PBXGroup;
641 | children = (
642 | 13B07F961A680F5B00A75B9A /* Example.app */,
643 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */,
644 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */,
645 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */,
646 | );
647 | name = Products;
648 | sourceTree = "";
649 | };
650 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
651 | isa = PBXGroup;
652 | children = (
653 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
654 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
655 | );
656 | name = Products;
657 | sourceTree = "";
658 | };
659 | /* End PBXGroup section */
660 |
661 | /* Begin PBXNativeTarget section */
662 | 00E356ED1AD99517003FC87E /* ExampleTests */ = {
663 | isa = PBXNativeTarget;
664 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */;
665 | buildPhases = (
666 | 00E356EA1AD99517003FC87E /* Sources */,
667 | 00E356EB1AD99517003FC87E /* Frameworks */,
668 | 00E356EC1AD99517003FC87E /* Resources */,
669 | );
670 | buildRules = (
671 | );
672 | dependencies = (
673 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
674 | );
675 | name = ExampleTests;
676 | productName = ExampleTests;
677 | productReference = 00E356EE1AD99517003FC87E /* ExampleTests.xctest */;
678 | productType = "com.apple.product-type.bundle.unit-test";
679 | };
680 | 13B07F861A680F5B00A75B9A /* Example */ = {
681 | isa = PBXNativeTarget;
682 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */;
683 | buildPhases = (
684 | 13B07F871A680F5B00A75B9A /* Sources */,
685 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
686 | 13B07F8E1A680F5B00A75B9A /* Resources */,
687 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
688 | );
689 | buildRules = (
690 | );
691 | dependencies = (
692 | );
693 | name = Example;
694 | productName = "Hello World";
695 | productReference = 13B07F961A680F5B00A75B9A /* Example.app */;
696 | productType = "com.apple.product-type.application";
697 | };
698 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */ = {
699 | isa = PBXNativeTarget;
700 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */;
701 | buildPhases = (
702 | 2D02E4771E0B4A5D006451C7 /* Sources */,
703 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
704 | 2D02E4791E0B4A5D006451C7 /* Resources */,
705 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
706 | );
707 | buildRules = (
708 | );
709 | dependencies = (
710 | );
711 | name = "Example-tvOS";
712 | productName = "Example-tvOS";
713 | productReference = 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */;
714 | productType = "com.apple.product-type.application";
715 | };
716 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */ = {
717 | isa = PBXNativeTarget;
718 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */;
719 | buildPhases = (
720 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
721 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
722 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
723 | );
724 | buildRules = (
725 | );
726 | dependencies = (
727 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
728 | );
729 | name = "Example-tvOSTests";
730 | productName = "Example-tvOSTests";
731 | productReference = 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */;
732 | productType = "com.apple.product-type.bundle.unit-test";
733 | };
734 | /* End PBXNativeTarget section */
735 |
736 | /* Begin PBXProject section */
737 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
738 | isa = PBXProject;
739 | attributes = {
740 | LastUpgradeCheck = 610;
741 | ORGANIZATIONNAME = Facebook;
742 | TargetAttributes = {
743 | 00E356ED1AD99517003FC87E = {
744 | CreatedOnToolsVersion = 6.2;
745 | TestTargetID = 13B07F861A680F5B00A75B9A;
746 | };
747 | 13B07F861A680F5B00A75B9A = {
748 | DevelopmentTeam = 54QU9625D3;
749 | };
750 | 2D02E47A1E0B4A5D006451C7 = {
751 | CreatedOnToolsVersion = 8.2.1;
752 | ProvisioningStyle = Automatic;
753 | };
754 | 2D02E48F1E0B4A5D006451C7 = {
755 | CreatedOnToolsVersion = 8.2.1;
756 | ProvisioningStyle = Automatic;
757 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
758 | };
759 | };
760 | };
761 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */;
762 | compatibilityVersion = "Xcode 3.2";
763 | developmentRegion = English;
764 | hasScannedForEncodings = 0;
765 | knownRegions = (
766 | en,
767 | Base,
768 | );
769 | mainGroup = 83CBB9F61A601CBA00E9B192;
770 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
771 | projectDirPath = "";
772 | projectReferences = (
773 | {
774 | ProductGroup = 07FD4C5620874B83002FBD31 /* Products */;
775 | ProjectRef = A0A0E29F058F4B61882EE249 /* QrCode.xcodeproj */;
776 | },
777 | {
778 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
779 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
780 | },
781 | {
782 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
783 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
784 | },
785 | {
786 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
787 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
788 | },
789 | {
790 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
791 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
792 | },
793 | {
794 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
795 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
796 | },
797 | {
798 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
799 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
800 | },
801 | {
802 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
803 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
804 | },
805 | {
806 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
807 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
808 | },
809 | {
810 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
811 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
812 | },
813 | {
814 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
815 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
816 | },
817 | {
818 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
819 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
820 | },
821 | {
822 | ProductGroup = 146834001AC3E56700842450 /* Products */;
823 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
824 | },
825 | {
826 | ProductGroup = 07B2F1D5208740F600046E1B /* Products */;
827 | ProjectRef = 80FFD2FB65A5418BBE6878F3 /* RNImagePicker.xcodeproj */;
828 | },
829 | );
830 | projectRoot = "";
831 | targets = (
832 | 13B07F861A680F5B00A75B9A /* Example */,
833 | 00E356ED1AD99517003FC87E /* ExampleTests */,
834 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */,
835 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */,
836 | );
837 | };
838 | /* End PBXProject section */
839 |
840 | /* Begin PBXReferenceProxy section */
841 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
842 | isa = PBXReferenceProxy;
843 | fileType = archive.ar;
844 | path = libRCTActionSheet.a;
845 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
846 | sourceTree = BUILT_PRODUCTS_DIR;
847 | };
848 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
849 | isa = PBXReferenceProxy;
850 | fileType = archive.ar;
851 | path = libRCTGeolocation.a;
852 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
853 | sourceTree = BUILT_PRODUCTS_DIR;
854 | };
855 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
856 | isa = PBXReferenceProxy;
857 | fileType = archive.ar;
858 | path = libRCTImage.a;
859 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
860 | sourceTree = BUILT_PRODUCTS_DIR;
861 | };
862 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
863 | isa = PBXReferenceProxy;
864 | fileType = archive.ar;
865 | path = libRCTNetwork.a;
866 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
867 | sourceTree = BUILT_PRODUCTS_DIR;
868 | };
869 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
870 | isa = PBXReferenceProxy;
871 | fileType = archive.ar;
872 | path = libRCTVibration.a;
873 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
874 | sourceTree = BUILT_PRODUCTS_DIR;
875 | };
876 | 07B2F1DE208740F600046E1B /* libRNImagePicker.a */ = {
877 | isa = PBXReferenceProxy;
878 | fileType = archive.ar;
879 | path = libRNImagePicker.a;
880 | remoteRef = 07B2F1DD208740F600046E1B /* PBXContainerItemProxy */;
881 | sourceTree = BUILT_PRODUCTS_DIR;
882 | };
883 | 07FD4C5A20874B83002FBD31 /* libQRCode.a */ = {
884 | isa = PBXReferenceProxy;
885 | fileType = archive.ar;
886 | path = libQRCode.a;
887 | remoteRef = 07FD4C5920874B83002FBD31 /* PBXContainerItemProxy */;
888 | sourceTree = BUILT_PRODUCTS_DIR;
889 | };
890 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
891 | isa = PBXReferenceProxy;
892 | fileType = archive.ar;
893 | path = libRCTSettings.a;
894 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
895 | sourceTree = BUILT_PRODUCTS_DIR;
896 | };
897 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
898 | isa = PBXReferenceProxy;
899 | fileType = archive.ar;
900 | path = libRCTWebSocket.a;
901 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
902 | sourceTree = BUILT_PRODUCTS_DIR;
903 | };
904 | 146834041AC3E56700842450 /* libReact.a */ = {
905 | isa = PBXReferenceProxy;
906 | fileType = archive.ar;
907 | path = libReact.a;
908 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
909 | sourceTree = BUILT_PRODUCTS_DIR;
910 | };
911 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
912 | isa = PBXReferenceProxy;
913 | fileType = archive.ar;
914 | path = "libRCTBlob-tvOS.a";
915 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
916 | sourceTree = BUILT_PRODUCTS_DIR;
917 | };
918 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
919 | isa = PBXReferenceProxy;
920 | fileType = archive.ar;
921 | path = libfishhook.a;
922 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
923 | sourceTree = BUILT_PRODUCTS_DIR;
924 | };
925 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
926 | isa = PBXReferenceProxy;
927 | fileType = archive.ar;
928 | path = "libfishhook-tvOS.a";
929 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
930 | sourceTree = BUILT_PRODUCTS_DIR;
931 | };
932 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
933 | isa = PBXReferenceProxy;
934 | fileType = archive.ar;
935 | path = libjsinspector.a;
936 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
937 | sourceTree = BUILT_PRODUCTS_DIR;
938 | };
939 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
940 | isa = PBXReferenceProxy;
941 | fileType = archive.ar;
942 | path = "libjsinspector-tvOS.a";
943 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
944 | sourceTree = BUILT_PRODUCTS_DIR;
945 | };
946 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
947 | isa = PBXReferenceProxy;
948 | fileType = archive.ar;
949 | path = "libthird-party.a";
950 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
951 | sourceTree = BUILT_PRODUCTS_DIR;
952 | };
953 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
954 | isa = PBXReferenceProxy;
955 | fileType = archive.ar;
956 | path = "libthird-party.a";
957 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
958 | sourceTree = BUILT_PRODUCTS_DIR;
959 | };
960 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
961 | isa = PBXReferenceProxy;
962 | fileType = archive.ar;
963 | path = "libdouble-conversion.a";
964 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
965 | sourceTree = BUILT_PRODUCTS_DIR;
966 | };
967 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
968 | isa = PBXReferenceProxy;
969 | fileType = archive.ar;
970 | path = "libdouble-conversion.a";
971 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
972 | sourceTree = BUILT_PRODUCTS_DIR;
973 | };
974 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = {
975 | isa = PBXReferenceProxy;
976 | fileType = archive.ar;
977 | path = libprivatedata.a;
978 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */;
979 | sourceTree = BUILT_PRODUCTS_DIR;
980 | };
981 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = {
982 | isa = PBXReferenceProxy;
983 | fileType = archive.ar;
984 | path = "libprivatedata-tvOS.a";
985 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */;
986 | sourceTree = BUILT_PRODUCTS_DIR;
987 | };
988 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
989 | isa = PBXReferenceProxy;
990 | fileType = archive.ar;
991 | path = "libRCTImage-tvOS.a";
992 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
993 | sourceTree = BUILT_PRODUCTS_DIR;
994 | };
995 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
996 | isa = PBXReferenceProxy;
997 | fileType = archive.ar;
998 | path = "libRCTLinking-tvOS.a";
999 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
1000 | sourceTree = BUILT_PRODUCTS_DIR;
1001 | };
1002 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
1003 | isa = PBXReferenceProxy;
1004 | fileType = archive.ar;
1005 | path = "libRCTNetwork-tvOS.a";
1006 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
1007 | sourceTree = BUILT_PRODUCTS_DIR;
1008 | };
1009 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
1010 | isa = PBXReferenceProxy;
1011 | fileType = archive.ar;
1012 | path = "libRCTSettings-tvOS.a";
1013 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
1014 | sourceTree = BUILT_PRODUCTS_DIR;
1015 | };
1016 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
1017 | isa = PBXReferenceProxy;
1018 | fileType = archive.ar;
1019 | path = "libRCTText-tvOS.a";
1020 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
1021 | sourceTree = BUILT_PRODUCTS_DIR;
1022 | };
1023 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
1024 | isa = PBXReferenceProxy;
1025 | fileType = archive.ar;
1026 | path = "libRCTWebSocket-tvOS.a";
1027 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
1028 | sourceTree = BUILT_PRODUCTS_DIR;
1029 | };
1030 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
1031 | isa = PBXReferenceProxy;
1032 | fileType = archive.ar;
1033 | path = libReact.a;
1034 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
1035 | sourceTree = BUILT_PRODUCTS_DIR;
1036 | };
1037 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
1038 | isa = PBXReferenceProxy;
1039 | fileType = archive.ar;
1040 | path = libyoga.a;
1041 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
1042 | sourceTree = BUILT_PRODUCTS_DIR;
1043 | };
1044 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
1045 | isa = PBXReferenceProxy;
1046 | fileType = archive.ar;
1047 | path = libyoga.a;
1048 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
1049 | sourceTree = BUILT_PRODUCTS_DIR;
1050 | };
1051 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
1052 | isa = PBXReferenceProxy;
1053 | fileType = archive.ar;
1054 | path = libcxxreact.a;
1055 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
1056 | sourceTree = BUILT_PRODUCTS_DIR;
1057 | };
1058 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
1059 | isa = PBXReferenceProxy;
1060 | fileType = archive.ar;
1061 | path = libcxxreact.a;
1062 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
1063 | sourceTree = BUILT_PRODUCTS_DIR;
1064 | };
1065 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
1066 | isa = PBXReferenceProxy;
1067 | fileType = archive.ar;
1068 | path = libjschelpers.a;
1069 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
1070 | sourceTree = BUILT_PRODUCTS_DIR;
1071 | };
1072 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
1073 | isa = PBXReferenceProxy;
1074 | fileType = archive.ar;
1075 | path = libjschelpers.a;
1076 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
1077 | sourceTree = BUILT_PRODUCTS_DIR;
1078 | };
1079 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1080 | isa = PBXReferenceProxy;
1081 | fileType = archive.ar;
1082 | path = libRCTAnimation.a;
1083 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1084 | sourceTree = BUILT_PRODUCTS_DIR;
1085 | };
1086 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1087 | isa = PBXReferenceProxy;
1088 | fileType = archive.ar;
1089 | path = libRCTAnimation.a;
1090 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1091 | sourceTree = BUILT_PRODUCTS_DIR;
1092 | };
1093 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
1094 | isa = PBXReferenceProxy;
1095 | fileType = archive.ar;
1096 | path = libRCTLinking.a;
1097 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
1098 | sourceTree = BUILT_PRODUCTS_DIR;
1099 | };
1100 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
1101 | isa = PBXReferenceProxy;
1102 | fileType = archive.ar;
1103 | path = libRCTText.a;
1104 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
1105 | sourceTree = BUILT_PRODUCTS_DIR;
1106 | };
1107 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
1108 | isa = PBXReferenceProxy;
1109 | fileType = archive.ar;
1110 | path = libRCTBlob.a;
1111 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
1112 | sourceTree = BUILT_PRODUCTS_DIR;
1113 | };
1114 | /* End PBXReferenceProxy section */
1115 |
1116 | /* Begin PBXResourcesBuildPhase section */
1117 | 00E356EC1AD99517003FC87E /* Resources */ = {
1118 | isa = PBXResourcesBuildPhase;
1119 | buildActionMask = 2147483647;
1120 | files = (
1121 | );
1122 | runOnlyForDeploymentPostprocessing = 0;
1123 | };
1124 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
1125 | isa = PBXResourcesBuildPhase;
1126 | buildActionMask = 2147483647;
1127 | files = (
1128 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
1129 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
1130 | );
1131 | runOnlyForDeploymentPostprocessing = 0;
1132 | };
1133 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
1134 | isa = PBXResourcesBuildPhase;
1135 | buildActionMask = 2147483647;
1136 | files = (
1137 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
1138 | );
1139 | runOnlyForDeploymentPostprocessing = 0;
1140 | };
1141 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
1142 | isa = PBXResourcesBuildPhase;
1143 | buildActionMask = 2147483647;
1144 | files = (
1145 | );
1146 | runOnlyForDeploymentPostprocessing = 0;
1147 | };
1148 | /* End PBXResourcesBuildPhase section */
1149 |
1150 | /* Begin PBXShellScriptBuildPhase section */
1151 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1152 | isa = PBXShellScriptBuildPhase;
1153 | buildActionMask = 2147483647;
1154 | files = (
1155 | );
1156 | inputPaths = (
1157 | );
1158 | name = "Bundle React Native code and images";
1159 | outputPaths = (
1160 | );
1161 | runOnlyForDeploymentPostprocessing = 0;
1162 | shellPath = /bin/sh;
1163 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1164 | };
1165 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1166 | isa = PBXShellScriptBuildPhase;
1167 | buildActionMask = 2147483647;
1168 | files = (
1169 | );
1170 | inputPaths = (
1171 | );
1172 | name = "Bundle React Native Code And Images";
1173 | outputPaths = (
1174 | );
1175 | runOnlyForDeploymentPostprocessing = 0;
1176 | shellPath = /bin/sh;
1177 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1178 | };
1179 | /* End PBXShellScriptBuildPhase section */
1180 |
1181 | /* Begin PBXSourcesBuildPhase section */
1182 | 00E356EA1AD99517003FC87E /* Sources */ = {
1183 | isa = PBXSourcesBuildPhase;
1184 | buildActionMask = 2147483647;
1185 | files = (
1186 | 00E356F31AD99517003FC87E /* ExampleTests.m in Sources */,
1187 | );
1188 | runOnlyForDeploymentPostprocessing = 0;
1189 | };
1190 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1191 | isa = PBXSourcesBuildPhase;
1192 | buildActionMask = 2147483647;
1193 | files = (
1194 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1195 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1196 | );
1197 | runOnlyForDeploymentPostprocessing = 0;
1198 | };
1199 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1200 | isa = PBXSourcesBuildPhase;
1201 | buildActionMask = 2147483647;
1202 | files = (
1203 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1204 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1205 | );
1206 | runOnlyForDeploymentPostprocessing = 0;
1207 | };
1208 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
1209 | isa = PBXSourcesBuildPhase;
1210 | buildActionMask = 2147483647;
1211 | files = (
1212 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */,
1213 | );
1214 | runOnlyForDeploymentPostprocessing = 0;
1215 | };
1216 | /* End PBXSourcesBuildPhase section */
1217 |
1218 | /* Begin PBXTargetDependency section */
1219 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
1220 | isa = PBXTargetDependency;
1221 | target = 13B07F861A680F5B00A75B9A /* Example */;
1222 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
1223 | };
1224 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
1225 | isa = PBXTargetDependency;
1226 | target = 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */;
1227 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
1228 | };
1229 | /* End PBXTargetDependency section */
1230 |
1231 | /* Begin PBXVariantGroup section */
1232 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1233 | isa = PBXVariantGroup;
1234 | children = (
1235 | 13B07FB21A68108700A75B9A /* Base */,
1236 | );
1237 | name = LaunchScreen.xib;
1238 | path = Example;
1239 | sourceTree = "";
1240 | };
1241 | /* End PBXVariantGroup section */
1242 |
1243 | /* Begin XCBuildConfiguration section */
1244 | 00E356F61AD99517003FC87E /* Debug */ = {
1245 | isa = XCBuildConfiguration;
1246 | buildSettings = {
1247 | BUNDLE_LOADER = "$(TEST_HOST)";
1248 | GCC_PREPROCESSOR_DEFINITIONS = (
1249 | "DEBUG=1",
1250 | "$(inherited)",
1251 | );
1252 | HEADER_SEARCH_PATHS = (
1253 | "$(inherited)",
1254 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1255 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1256 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1257 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1258 | );
1259 | INFOPLIST_FILE = ExampleTests/Info.plist;
1260 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1261 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1262 | LIBRARY_SEARCH_PATHS = (
1263 | "$(inherited)",
1264 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1265 | "\"$(SRCROOT)/$(TARGET_NAME)/System/Library/Frameworks\"",
1266 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1267 | );
1268 | OTHER_LDFLAGS = (
1269 | "-ObjC",
1270 | "-lc++",
1271 | );
1272 | PRODUCT_NAME = "$(TARGET_NAME)";
1273 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
1274 | };
1275 | name = Debug;
1276 | };
1277 | 00E356F71AD99517003FC87E /* Release */ = {
1278 | isa = XCBuildConfiguration;
1279 | buildSettings = {
1280 | BUNDLE_LOADER = "$(TEST_HOST)";
1281 | COPY_PHASE_STRIP = NO;
1282 | HEADER_SEARCH_PATHS = (
1283 | "$(inherited)",
1284 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1285 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1286 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1287 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1288 | );
1289 | INFOPLIST_FILE = ExampleTests/Info.plist;
1290 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1291 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1292 | LIBRARY_SEARCH_PATHS = (
1293 | "$(inherited)",
1294 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1295 | "\"$(SRCROOT)/$(TARGET_NAME)/System/Library/Frameworks\"",
1296 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1297 | );
1298 | OTHER_LDFLAGS = (
1299 | "-ObjC",
1300 | "-lc++",
1301 | );
1302 | PRODUCT_NAME = "$(TARGET_NAME)";
1303 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
1304 | };
1305 | name = Release;
1306 | };
1307 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1308 | isa = XCBuildConfiguration;
1309 | buildSettings = {
1310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1311 | CURRENT_PROJECT_VERSION = 1;
1312 | DEAD_CODE_STRIPPING = NO;
1313 | DEVELOPMENT_TEAM = 54QU9625D3;
1314 | HEADER_SEARCH_PATHS = (
1315 | "$(inherited)",
1316 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1317 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1318 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1319 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1320 | );
1321 | INFOPLIST_FILE = Example/Info.plist;
1322 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1323 | OTHER_LDFLAGS = (
1324 | "$(inherited)",
1325 | "-ObjC",
1326 | "-lc++",
1327 | );
1328 | PRODUCT_NAME = Example;
1329 | VERSIONING_SYSTEM = "apple-generic";
1330 | };
1331 | name = Debug;
1332 | };
1333 | 13B07F951A680F5B00A75B9A /* Release */ = {
1334 | isa = XCBuildConfiguration;
1335 | buildSettings = {
1336 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1337 | CURRENT_PROJECT_VERSION = 1;
1338 | DEVELOPMENT_TEAM = 54QU9625D3;
1339 | HEADER_SEARCH_PATHS = (
1340 | "$(inherited)",
1341 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1342 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1343 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1344 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1345 | );
1346 | INFOPLIST_FILE = Example/Info.plist;
1347 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1348 | OTHER_LDFLAGS = (
1349 | "$(inherited)",
1350 | "-ObjC",
1351 | "-lc++",
1352 | );
1353 | PRODUCT_NAME = Example;
1354 | VERSIONING_SYSTEM = "apple-generic";
1355 | };
1356 | name = Release;
1357 | };
1358 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1359 | isa = XCBuildConfiguration;
1360 | buildSettings = {
1361 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1362 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1363 | CLANG_ANALYZER_NONNULL = YES;
1364 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1365 | CLANG_WARN_INFINITE_RECURSION = YES;
1366 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1367 | DEBUG_INFORMATION_FORMAT = dwarf;
1368 | ENABLE_TESTABILITY = YES;
1369 | GCC_NO_COMMON_BLOCKS = YES;
1370 | HEADER_SEARCH_PATHS = (
1371 | "$(inherited)",
1372 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1373 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1374 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1375 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1376 | );
1377 | INFOPLIST_FILE = "Example-tvOS/Info.plist";
1378 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1379 | LIBRARY_SEARCH_PATHS = (
1380 | "$(inherited)",
1381 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1382 | "\"$(SRCROOT)/$(TARGET_NAME)/System/Library/Frameworks\"",
1383 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1384 | );
1385 | OTHER_LDFLAGS = (
1386 | "-ObjC",
1387 | "-lc++",
1388 | );
1389 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS";
1390 | PRODUCT_NAME = "$(TARGET_NAME)";
1391 | SDKROOT = appletvos;
1392 | TARGETED_DEVICE_FAMILY = 3;
1393 | TVOS_DEPLOYMENT_TARGET = 9.2;
1394 | };
1395 | name = Debug;
1396 | };
1397 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1398 | isa = XCBuildConfiguration;
1399 | buildSettings = {
1400 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1401 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1402 | CLANG_ANALYZER_NONNULL = YES;
1403 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1404 | CLANG_WARN_INFINITE_RECURSION = YES;
1405 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1406 | COPY_PHASE_STRIP = NO;
1407 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1408 | GCC_NO_COMMON_BLOCKS = YES;
1409 | HEADER_SEARCH_PATHS = (
1410 | "$(inherited)",
1411 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1412 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1413 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1414 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1415 | );
1416 | INFOPLIST_FILE = "Example-tvOS/Info.plist";
1417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1418 | LIBRARY_SEARCH_PATHS = (
1419 | "$(inherited)",
1420 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1421 | "\"$(SRCROOT)/$(TARGET_NAME)/System/Library/Frameworks\"",
1422 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1423 | );
1424 | OTHER_LDFLAGS = (
1425 | "-ObjC",
1426 | "-lc++",
1427 | );
1428 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS";
1429 | PRODUCT_NAME = "$(TARGET_NAME)";
1430 | SDKROOT = appletvos;
1431 | TARGETED_DEVICE_FAMILY = 3;
1432 | TVOS_DEPLOYMENT_TARGET = 9.2;
1433 | };
1434 | name = Release;
1435 | };
1436 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1437 | isa = XCBuildConfiguration;
1438 | buildSettings = {
1439 | BUNDLE_LOADER = "$(TEST_HOST)";
1440 | CLANG_ANALYZER_NONNULL = YES;
1441 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1442 | CLANG_WARN_INFINITE_RECURSION = YES;
1443 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1444 | DEBUG_INFORMATION_FORMAT = dwarf;
1445 | ENABLE_TESTABILITY = YES;
1446 | GCC_NO_COMMON_BLOCKS = YES;
1447 | HEADER_SEARCH_PATHS = (
1448 | "$(inherited)",
1449 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1450 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1451 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1452 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1453 | );
1454 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist";
1455 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1456 | LIBRARY_SEARCH_PATHS = (
1457 | "$(inherited)",
1458 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1459 | "\"$(SRCROOT)/$(TARGET_NAME)/System/Library/Frameworks\"",
1460 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1461 | );
1462 | OTHER_LDFLAGS = (
1463 | "-ObjC",
1464 | "-lc++",
1465 | );
1466 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests";
1467 | PRODUCT_NAME = "$(TARGET_NAME)";
1468 | SDKROOT = appletvos;
1469 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS";
1470 | TVOS_DEPLOYMENT_TARGET = 10.1;
1471 | };
1472 | name = Debug;
1473 | };
1474 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1475 | isa = XCBuildConfiguration;
1476 | buildSettings = {
1477 | BUNDLE_LOADER = "$(TEST_HOST)";
1478 | CLANG_ANALYZER_NONNULL = YES;
1479 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1480 | CLANG_WARN_INFINITE_RECURSION = YES;
1481 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1482 | COPY_PHASE_STRIP = NO;
1483 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1484 | GCC_NO_COMMON_BLOCKS = YES;
1485 | HEADER_SEARCH_PATHS = (
1486 | "$(inherited)",
1487 | "$(SRCROOT)/../node_modules/react-native-image-picker/ios",
1488 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1489 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1490 | "$(SRCROOT)/../node_modules/react-native-lewin-qrcode/ios/**",
1491 | );
1492 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist";
1493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1494 | LIBRARY_SEARCH_PATHS = (
1495 | "$(inherited)",
1496 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1497 | "\"$(SRCROOT)/$(TARGET_NAME)/System/Library/Frameworks\"",
1498 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1499 | );
1500 | OTHER_LDFLAGS = (
1501 | "-ObjC",
1502 | "-lc++",
1503 | );
1504 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests";
1505 | PRODUCT_NAME = "$(TARGET_NAME)";
1506 | SDKROOT = appletvos;
1507 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS";
1508 | TVOS_DEPLOYMENT_TARGET = 10.1;
1509 | };
1510 | name = Release;
1511 | };
1512 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1513 | isa = XCBuildConfiguration;
1514 | buildSettings = {
1515 | ALWAYS_SEARCH_USER_PATHS = NO;
1516 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1517 | CLANG_CXX_LIBRARY = "libc++";
1518 | CLANG_ENABLE_MODULES = YES;
1519 | CLANG_ENABLE_OBJC_ARC = YES;
1520 | CLANG_WARN_BOOL_CONVERSION = YES;
1521 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1522 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1523 | CLANG_WARN_EMPTY_BODY = YES;
1524 | CLANG_WARN_ENUM_CONVERSION = YES;
1525 | CLANG_WARN_INT_CONVERSION = YES;
1526 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1527 | CLANG_WARN_UNREACHABLE_CODE = YES;
1528 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1529 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1530 | COPY_PHASE_STRIP = NO;
1531 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1532 | GCC_C_LANGUAGE_STANDARD = gnu99;
1533 | GCC_DYNAMIC_NO_PIC = NO;
1534 | GCC_OPTIMIZATION_LEVEL = 0;
1535 | GCC_PREPROCESSOR_DEFINITIONS = (
1536 | "DEBUG=1",
1537 | "$(inherited)",
1538 | );
1539 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1540 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1541 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1542 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1543 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1544 | GCC_WARN_UNUSED_FUNCTION = YES;
1545 | GCC_WARN_UNUSED_VARIABLE = YES;
1546 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1547 | MTL_ENABLE_DEBUG_INFO = YES;
1548 | ONLY_ACTIVE_ARCH = YES;
1549 | SDKROOT = iphoneos;
1550 | };
1551 | name = Debug;
1552 | };
1553 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1554 | isa = XCBuildConfiguration;
1555 | buildSettings = {
1556 | ALWAYS_SEARCH_USER_PATHS = NO;
1557 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1558 | CLANG_CXX_LIBRARY = "libc++";
1559 | CLANG_ENABLE_MODULES = YES;
1560 | CLANG_ENABLE_OBJC_ARC = YES;
1561 | CLANG_WARN_BOOL_CONVERSION = YES;
1562 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1563 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1564 | CLANG_WARN_EMPTY_BODY = YES;
1565 | CLANG_WARN_ENUM_CONVERSION = YES;
1566 | CLANG_WARN_INT_CONVERSION = YES;
1567 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1568 | CLANG_WARN_UNREACHABLE_CODE = YES;
1569 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1570 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1571 | COPY_PHASE_STRIP = YES;
1572 | ENABLE_NS_ASSERTIONS = NO;
1573 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1574 | GCC_C_LANGUAGE_STANDARD = gnu99;
1575 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1576 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1577 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1578 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1579 | GCC_WARN_UNUSED_FUNCTION = YES;
1580 | GCC_WARN_UNUSED_VARIABLE = YES;
1581 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1582 | MTL_ENABLE_DEBUG_INFO = NO;
1583 | SDKROOT = iphoneos;
1584 | VALIDATE_PRODUCT = YES;
1585 | };
1586 | name = Release;
1587 | };
1588 | /* End XCBuildConfiguration section */
1589 |
1590 | /* Begin XCConfigurationList section */
1591 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */ = {
1592 | isa = XCConfigurationList;
1593 | buildConfigurations = (
1594 | 00E356F61AD99517003FC87E /* Debug */,
1595 | 00E356F71AD99517003FC87E /* Release */,
1596 | );
1597 | defaultConfigurationIsVisible = 0;
1598 | defaultConfigurationName = Release;
1599 | };
1600 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */ = {
1601 | isa = XCConfigurationList;
1602 | buildConfigurations = (
1603 | 13B07F941A680F5B00A75B9A /* Debug */,
1604 | 13B07F951A680F5B00A75B9A /* Release */,
1605 | );
1606 | defaultConfigurationIsVisible = 0;
1607 | defaultConfigurationName = Release;
1608 | };
1609 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */ = {
1610 | isa = XCConfigurationList;
1611 | buildConfigurations = (
1612 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1613 | 2D02E4981E0B4A5E006451C7 /* Release */,
1614 | );
1615 | defaultConfigurationIsVisible = 0;
1616 | defaultConfigurationName = Release;
1617 | };
1618 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */ = {
1619 | isa = XCConfigurationList;
1620 | buildConfigurations = (
1621 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1622 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1623 | );
1624 | defaultConfigurationIsVisible = 0;
1625 | defaultConfigurationName = Release;
1626 | };
1627 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */ = {
1628 | isa = XCConfigurationList;
1629 | buildConfigurations = (
1630 | 83CBBA201A601CBA00E9B192 /* Debug */,
1631 | 83CBBA211A601CBA00E9B192 /* Release */,
1632 | );
1633 | defaultConfigurationIsVisible = 0;
1634 | defaultConfigurationName = Release;
1635 | };
1636 | /* End XCConfigurationList section */
1637 | };
1638 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1639 | }
1640 |
--------------------------------------------------------------------------------