├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .vscode └── launch.json ├── .watchmanconfig ├── README.md ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── rnfirebaseuploadapp │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── index.android.js ├── index.ios.js ├── ios ├── RNFirebaseUploadApp-tvOS │ └── Info.plist ├── RNFirebaseUploadApp-tvOSTests │ └── Info.plist ├── RNFirebaseUploadApp.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── RNFirebaseUploadApp-tvOS.xcscheme │ │ └── RNFirebaseUploadApp.xcscheme ├── RNFirebaseUploadApp │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── RNFirebaseUploadAppTests │ ├── Info.plist │ └── RNFirebaseUploadAppTests.m ├── jsconfig.json ├── package.json └── service └── firebaseService.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | module.system=haste 26 | 27 | experimental.strict_type_args=true 28 | 29 | munge_underscores=true 30 | 31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 32 | 33 | suppress_type=$FlowIssue 34 | suppress_type=$FlowFixMe 35 | suppress_type=$FixMe 36 | 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | 41 | unsafe.enable_getters_and_setters=true 42 | 43 | [version] 44 | ^0.37.0 45 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | android/app/libs 43 | *.keystore 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/Preview.html 54 | fastlane/screenshots 55 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible Node.js debug attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Debug Android", 9 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", 10 | "type": "reactnative", 11 | "request": "launch", 12 | "platform": "android", 13 | "sourceMaps": true, 14 | "outDir": "${workspaceRoot}/.vscode/.react" 15 | }, 16 | { 17 | "name": "Debug iOS", 18 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", 19 | "type": "reactnative", 20 | "request": "launch", 21 | "platform": "ios", 22 | "sourceMaps": true, 23 | "target": "iPhone 5s", 24 | "outDir": "${workspaceRoot}/.vscode/.react" 25 | }, 26 | { 27 | "type": "node", 28 | "request": "launch", 29 | "name": "Launch Program", 30 | "program": "${workspaceRoot}/start", 31 | "cwd": "${workspaceRoot}" 32 | }, 33 | { 34 | "type": "node", 35 | "request": "attach", 36 | "name": "Attach to Process", 37 | "port": 5858 38 | } 39 | ] 40 | } -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native Firebase File Upload 2 | 3 | 4 | ### Still investigating 5 | On IOS when using the `NFetchBlob.wrap(PATH_TO_THE_FILE)` call, is was prepending `RNFetchBlob-file://` to the file path I get from IOS and that path already starts with `file://` This requrires me to account for it before calling wrap 6 | 7 | ```javascript 8 | uploadFile({ uri, fileName }) { 9 | 10 | var forCleanUp = null 11 | 12 | return new Promise((resolve, reject) => { 13 | 14 | // create the blob for firebase 15 | let path = uri.replace('file://', ''); 16 | 17 | // we are wrapping the path so that RNFetchBlob know where to find 18 | // the data, see RNFetchBlob documentation for more information 19 | Blob.build(RNFetchBlob.wrap(path), { type: 'image/jpeg' }) 20 | .then((blob) => { 21 | forCleanUp = blob; 22 | console.log("got blob...") 23 | 24 | // now that we have a blob, upload it to firebase 25 | return this.doFirebaseUploadStuff('images/' + fileName, blob) 26 | }).then((snap) => { 27 | forCleanUp.close() 28 | console.log("file uploaded...") 29 | resolve(snap) 30 | }, (err) => { 31 | console.log('err', err) 32 | forCleanUp && forCleanUp.close() 33 | reject(err) 34 | }).catch((err) => { 35 | console.log('catch', err) 36 | forCleanUp && forCleanUp.close() 37 | reject(err) 38 | }) 39 | }) 40 | }) 41 | ``` 42 | ### Plugins Used 43 | 44 | - [https://github.com/wkh237/react-native-fetch-blob](https://github.com/wkh237/react-native-fetch-blob) 45 | - [https://github.com/marcshilling/react-native-image-picker](https://github.com/marcshilling/react-native-image-picker) 46 | 47 | ### On IOS Set Keys in `Info.plist` 48 | ```xml 49 | NSPhotoLibraryUsageDescription 50 | For testing only 51 | NSCameraUsageDescription 52 | For testing only 53 | NSLocationWhenInUseUsageDescription 54 | For testing only 55 | ``` 56 | 57 | ### On Android, update `AndroidManifest.xml` 58 | ```xml 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | ``` 67 | 68 | ### Set Firebase Configuration in `service/FirebaseService.js` 69 | ```javascript 70 | // Initialize Firebase 71 | const firebaseConfig = { 72 | apiKey: "YOUR-VALUES-HERE", 73 | authDomain: "YOUR-VALUES-HERE.firebaseapp.com", 74 | databaseURL: "https://YOUR-VALUES-HERE.firebaseio.com", 75 | storageBucket: "YOUR-VALUES-HERE.appspot.com", 76 | messagingSenderId: "YOUR-VALUES-HERE" 77 | }; 78 | ``` -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.rnfirebaseuploadapp', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.rnfirebaseuploadapp', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.rnfirebaseuploadapp" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':react-native-image-picker') 130 | compile project(':react-native-fetch-blob') 131 | compile fileTree(dir: "libs", include: ["*.jar"]) 132 | compile "com.android.support:appcompat-v7:23.0.1" 133 | compile "com.facebook.react:react-native:+" // From node_modules 134 | } 135 | 136 | // Run this once to be able to run the application with BUCK 137 | // puts all compile dependencies into folder libs for BUCK to use 138 | task copyDownloadableDepsToLibs(type: Copy) { 139 | from configurations.compile 140 | into 'libs' 141 | } 142 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 25 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnfirebaseuploadapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rnfirebaseuploadapp; 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 "RNFirebaseUploadApp"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnfirebaseuploadapp/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rnfirebaseuploadapp; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.imagepicker.ImagePickerPackage; 8 | import com.RNFetchBlob.RNFetchBlobPackage; 9 | import com.facebook.react.ReactInstanceManager; 10 | import com.facebook.react.ReactNativeHost; 11 | import com.facebook.react.ReactPackage; 12 | import com.facebook.react.shell.MainReactPackage; 13 | import com.facebook.soloader.SoLoader; 14 | 15 | import java.util.Arrays; 16 | import java.util.List; 17 | 18 | public class MainApplication extends Application implements ReactApplication { 19 | 20 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 21 | @Override 22 | public boolean getUseDeveloperSupport() { 23 | return BuildConfig.DEBUG; 24 | } 25 | 26 | @Override 27 | protected List getPackages() { 28 | return Arrays.asList( 29 | new MainReactPackage(), 30 | new ImagePickerPackage(), 31 | new RNFetchBlobPackage() 32 | ); 33 | } 34 | }; 35 | 36 | @Override 37 | public ReactNativeHost getReactNativeHost() { 38 | return mReactNativeHost; 39 | } 40 | 41 | @Override 42 | public void onCreate() { 43 | super.onCreate(); 44 | SoLoader.init(this, /* native exopackage */ false); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaronksaunders/Firebase3-ReactProject/7a3f6ed30cd9cc2a39d694411ef9aa07e227d850/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaronksaunders/Firebase3-ReactProject/7a3f6ed30cd9cc2a39d694411ef9aa07e227d850/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaronksaunders/Firebase3-ReactProject/7a3f6ed30cd9cc2a39d694411ef9aa07e227d850/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaronksaunders/Firebase3-ReactProject/7a3f6ed30cd9cc2a39d694411ef9aa07e227d850/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RNFirebaseUploadApp 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaronksaunders/Firebase3-ReactProject/7a3f6ed30cd9cc2a39d694411ef9aa07e227d850/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RNFirebaseUploadApp' 2 | include ':react-native-image-picker' 3 | project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') 4 | include ':react-native-fetch-blob' 5 | project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fetch-blob/android') 6 | 7 | include ':app' 8 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RNFirebaseUploadApp", 3 | "displayName": "RNFirebaseUploadApp" 4 | } -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App for File upload 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View, 13 | TouchableHighlight, 14 | Alert 15 | } from 'react-native'; 16 | 17 | import ImagePicker from 'react-native-image-picker' 18 | 19 | import FirebaseService from './service/firebaseService' 20 | 21 | export default class RNFirebaseUploadApp extends Component { 22 | 23 | _doShowAlert(_title = "RNFirebaseUploadApp", _message) { 24 | 25 | // Works on both iOS and Android 26 | Alert.alert(_title, _message, 27 | [ 28 | { text: 'OK', onPress: () => console.log('OK Pressed') }, 29 | ], 30 | { cancelable: false } 31 | ) 32 | 33 | } 34 | 35 | _doPressAction() { 36 | const options = { 37 | title: 'Select Image', 38 | noData: true, 39 | quality: .8, 40 | maxWidth: 2000, 41 | maxHeight: 2000, 42 | storageOptions: { 43 | skipBackup: true, 44 | path: 'images' 45 | } 46 | } 47 | 48 | try { 49 | ImagePicker.showImagePicker(options, (response) => { 50 | //console.log('Response = ', response); 51 | 52 | if (response.didCancel) { 53 | console.log('User cancelled image picker'); 54 | } else if (response.error) { 55 | console.log('ImagePicker Error: ', response.error); 56 | } else { 57 | this.setState({ image: { uri: response.uri }, data: response }) 58 | 59 | FirebaseService.uploadFile(response).then((_resp) => { 60 | console.log("file uploaded successfully", _resp); 61 | this._doShowAlert("RNFirebaseUploadApp - Upload Success", _resp.downloadURL) 62 | }, (_error) => { 63 | console.log("Error Uploading File", _error); 64 | this._doShowAlert("RNFirebaseUploadApp - Upload Error", JSON.stringify(_error, null, 2)) 65 | }).catch((_error) => { 66 | console.log("Error Uploading File", _error); 67 | }) 68 | } 69 | }); 70 | } catch (EE) { 71 | console.log(EE) 72 | } 73 | } 74 | 75 | 76 | render() { 77 | return ( 78 | 79 | 80 | Welcome to React Native - Firebase File Upload Example 81 | 82 | 83 | Uploading file using RNFetchBlob 84 | 85 | 86 | { this._doPressAction() }}> 90 | 91 | GET PHOTO 92 | 93 | 94 | 95 | 96 | ); 97 | } 98 | } 99 | 100 | const styles = StyleSheet.create({ 101 | container: { 102 | flex: 1, 103 | justifyContent: 'center', 104 | alignItems: 'center', 105 | backgroundColor: '#F5FCFF', 106 | }, 107 | welcome: { 108 | fontSize: 20, 109 | textAlign: 'center', 110 | margin: 10, 111 | }, 112 | 113 | buttonText: { 114 | fontSize: 12, 115 | color: 'white', 116 | alignSelf: 'center' 117 | }, 118 | button: { 119 | marginTop: 10, 120 | height: 32, 121 | width: 120, 122 | backgroundColor: '#48BBEC', 123 | borderColor: '#48BBEC', 124 | borderWidth: 1, 125 | borderRadius: 2, 126 | marginBottom: 10, 127 | justifyContent: 'center' 128 | } 129 | }); 130 | 131 | AppRegistry.registerComponent('RNFirebaseUploadApp', () => RNFirebaseUploadApp); -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App for File upload 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View, 13 | TouchableHighlight, 14 | Alert 15 | } from 'react-native'; 16 | 17 | import ImagePicker from 'react-native-image-picker' 18 | 19 | import FirebaseService from './service/firebaseService' 20 | 21 | export default class RNFirebaseUploadApp extends Component { 22 | 23 | _doShowAlert(_title = "RNFirebaseUploadApp", _message) { 24 | 25 | // Works on both iOS and Android 26 | Alert.alert(_title, _message, 27 | [ 28 | { text: 'OK', onPress: () => console.log('OK Pressed') }, 29 | ], 30 | { cancelable: false } 31 | ) 32 | 33 | 34 | } 35 | 36 | _doPressAction() { 37 | const options = { 38 | title: 'Select Image', 39 | noData: true, 40 | quality: .8, 41 | maxWidth: 2000, 42 | maxHeight: 2000, 43 | storageOptions: { 44 | skipBackup: true, 45 | path: 'images' 46 | } 47 | } 48 | 49 | ImagePicker.showImagePicker(options, (response) => { 50 | //console.log('Response = ', response); 51 | 52 | if (response.didCancel) { 53 | console.log('User cancelled image picker'); 54 | } else if (response.error) { 55 | console.log('ImagePicker Error: ', response.error); 56 | } else { 57 | this.setState({ image: { uri: response.uri }, data: response }) 58 | 59 | FirebaseService.uploadFile(response).then((_resp) => { 60 | console.log("file uploaded successfully", _resp); 61 | this._doShowAlert("RNFirebaseUploadApp - Upload Success", _resp.downloadURL) 62 | }, (_error) => { 63 | console.log("Error Uploading File", _error); 64 | this._doShowAlert("RNFirebaseUploadApp - Upload Error", JSON.stringify(_error, null, 2)) 65 | }).catch((_error) => { 66 | console.log("Error Uploading File", _error); 67 | }) 68 | } 69 | }); 70 | } 71 | 72 | 73 | render() { 74 | return ( 75 | 76 | 77 | Welcome to React Native - Firebase File Upload Example 78 | 79 | 80 | Uploading file using RNFetchBlob 81 | 82 | 83 | { this._doPressAction() }}> 87 | 88 | GET PHOTO 89 | 90 | 91 | 92 | 93 | ); 94 | } 95 | } 96 | 97 | const styles = StyleSheet.create({ 98 | container: { 99 | flex: 1, 100 | justifyContent: 'center', 101 | alignItems: 'center', 102 | backgroundColor: '#F5FCFF', 103 | }, 104 | welcome: { 105 | fontSize: 20, 106 | textAlign: 'center', 107 | margin: 10, 108 | }, 109 | 110 | buttonText: { 111 | fontSize: 12, 112 | color: 'white', 113 | alignSelf: 'center' 114 | }, 115 | button: { 116 | marginTop: 10, 117 | height: 32, 118 | width: 120, 119 | backgroundColor: '#48BBEC', 120 | borderColor: '#48BBEC', 121 | borderWidth: 1, 122 | borderRadius: 2, 123 | marginBottom: 10, 124 | justifyContent: 'center' 125 | } 126 | }); 127 | 128 | AppRegistry.registerComponent('RNFirebaseUploadApp', () => RNFirebaseUploadApp); 129 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* RNFirebaseUploadAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RNFirebaseUploadAppTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 34 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 35 | 2DCD954D1E0B4F2C00145EB5 /* RNFirebaseUploadAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RNFirebaseUploadAppTests.m */; }; 36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 37 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 38 | 4B8F27B583E345B3A02B076D /* libRNFetchBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 77F05AC776DD48BE936A2B5D /* libRNFetchBlob.a */; }; 39 | 7DDC126E3FA24A33957F5899 /* libRNImagePicker.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E56D6E695FF64877ADF0C137 /* libRNImagePicker.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = RNFirebaseUploadApp; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 109 | proxyType = 1; 110 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 111 | remoteInfo = "RNFirebaseUploadApp-tvOS"; 112 | }; 113 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 118 | remoteInfo = "RCTImage-tvOS"; 119 | }; 120 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 125 | remoteInfo = "RCTLinking-tvOS"; 126 | }; 127 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 132 | remoteInfo = "RCTNetwork-tvOS"; 133 | }; 134 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 139 | remoteInfo = "RCTSettings-tvOS"; 140 | }; 141 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 146 | remoteInfo = "RCTText-tvOS"; 147 | }; 148 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 153 | remoteInfo = "RCTWebSocket-tvOS"; 154 | }; 155 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 160 | remoteInfo = "React-tvOS"; 161 | }; 162 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 167 | remoteInfo = yoga; 168 | }; 169 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 174 | remoteInfo = "yoga-tvOS"; 175 | }; 176 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 181 | remoteInfo = cxxreact; 182 | }; 183 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 188 | remoteInfo = "cxxreact-tvOS"; 189 | }; 190 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 195 | remoteInfo = jschelpers; 196 | }; 197 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 202 | remoteInfo = "jschelpers-tvOS"; 203 | }; 204 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 209 | remoteInfo = RCTAnimation; 210 | }; 211 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 216 | remoteInfo = "RCTAnimation-tvOS"; 217 | }; 218 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 223 | remoteInfo = RCTLinking; 224 | }; 225 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 230 | remoteInfo = RCTText; 231 | }; 232 | /* End PBXContainerItemProxy section */ 233 | 234 | /* Begin PBXFileReference section */ 235 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 236 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 237 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 238 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 239 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 240 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 241 | 00E356EE1AD99517003FC87E /* RNFirebaseUploadAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNFirebaseUploadAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 242 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 243 | 00E356F21AD99517003FC87E /* RNFirebaseUploadAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFirebaseUploadAppTests.m; sourceTree = ""; }; 244 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 245 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 246 | 13B07F961A680F5B00A75B9A /* RNFirebaseUploadApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNFirebaseUploadApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 247 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNFirebaseUploadApp/AppDelegate.h; sourceTree = ""; }; 248 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNFirebaseUploadApp/AppDelegate.m; sourceTree = ""; }; 249 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 250 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNFirebaseUploadApp/Images.xcassets; sourceTree = ""; }; 251 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNFirebaseUploadApp/Info.plist; sourceTree = ""; }; 252 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNFirebaseUploadApp/main.m; sourceTree = ""; }; 253 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 254 | 2D02E47B1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RNFirebaseUploadApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 255 | 2D02E4901E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "RNFirebaseUploadApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 256 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 257 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 258 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 259 | 588B2A2693634C73B8DCD1E7 /* RNFetchBlob.xcodeproj */ = {isa = PBXFileReference; name = "RNFetchBlob.xcodeproj"; path = "../node_modules/react-native-fetch-blob/ios/RNFetchBlob.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 260 | 77F05AC776DD48BE936A2B5D /* libRNFetchBlob.a */ = {isa = PBXFileReference; name = "libRNFetchBlob.a"; path = "libRNFetchBlob.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 261 | 928BDEF9AC204EC7BCF0DF82 /* RNImagePicker.xcodeproj */ = {isa = PBXFileReference; name = "RNImagePicker.xcodeproj"; path = "../node_modules/react-native-image-picker/ios/RNImagePicker.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 262 | E56D6E695FF64877ADF0C137 /* libRNImagePicker.a */ = {isa = PBXFileReference; name = "libRNImagePicker.a"; path = "libRNImagePicker.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 263 | /* End PBXFileReference section */ 264 | 265 | /* Begin PBXFrameworksBuildPhase section */ 266 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 267 | isa = PBXFrameworksBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 275 | isa = PBXFrameworksBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 279 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 280 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 281 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 282 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 283 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 284 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 285 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 286 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 287 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 288 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 289 | 4B8F27B583E345B3A02B076D /* libRNFetchBlob.a in Frameworks */, 290 | 7DDC126E3FA24A33957F5899 /* libRNImagePicker.a in Frameworks */, 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | }; 294 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 295 | isa = PBXFrameworksBuildPhase; 296 | buildActionMask = 2147483647; 297 | files = ( 298 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 299 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 300 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 301 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 302 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 303 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 304 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 305 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 310 | isa = PBXFrameworksBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | /* End PBXFrameworksBuildPhase section */ 317 | 318 | /* Begin PBXGroup section */ 319 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 320 | isa = PBXGroup; 321 | children = ( 322 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 323 | ); 324 | name = Products; 325 | sourceTree = ""; 326 | }; 327 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 328 | isa = PBXGroup; 329 | children = ( 330 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 331 | ); 332 | name = Products; 333 | sourceTree = ""; 334 | }; 335 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 336 | isa = PBXGroup; 337 | children = ( 338 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 339 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 340 | ); 341 | name = Products; 342 | sourceTree = ""; 343 | }; 344 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 345 | isa = PBXGroup; 346 | children = ( 347 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 348 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 349 | ); 350 | name = Products; 351 | sourceTree = ""; 352 | }; 353 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 354 | isa = PBXGroup; 355 | children = ( 356 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 357 | ); 358 | name = Products; 359 | sourceTree = ""; 360 | }; 361 | 00E356EF1AD99517003FC87E /* RNFirebaseUploadAppTests */ = { 362 | isa = PBXGroup; 363 | children = ( 364 | 00E356F21AD99517003FC87E /* RNFirebaseUploadAppTests.m */, 365 | 00E356F01AD99517003FC87E /* Supporting Files */, 366 | ); 367 | path = RNFirebaseUploadAppTests; 368 | sourceTree = ""; 369 | }; 370 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 371 | isa = PBXGroup; 372 | children = ( 373 | 00E356F11AD99517003FC87E /* Info.plist */, 374 | ); 375 | name = "Supporting Files"; 376 | sourceTree = ""; 377 | }; 378 | 139105B71AF99BAD00B5F7CC /* Products */ = { 379 | isa = PBXGroup; 380 | children = ( 381 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 382 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 383 | ); 384 | name = Products; 385 | sourceTree = ""; 386 | }; 387 | 139FDEE71B06529A00C62182 /* Products */ = { 388 | isa = PBXGroup; 389 | children = ( 390 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 391 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 392 | ); 393 | name = Products; 394 | sourceTree = ""; 395 | }; 396 | 13B07FAE1A68108700A75B9A /* RNFirebaseUploadApp */ = { 397 | isa = PBXGroup; 398 | children = ( 399 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 400 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 401 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 402 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 403 | 13B07FB61A68108700A75B9A /* Info.plist */, 404 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 405 | 13B07FB71A68108700A75B9A /* main.m */, 406 | ); 407 | name = RNFirebaseUploadApp; 408 | sourceTree = ""; 409 | }; 410 | 146834001AC3E56700842450 /* Products */ = { 411 | isa = PBXGroup; 412 | children = ( 413 | 146834041AC3E56700842450 /* libReact.a */, 414 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 415 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 416 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 417 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 418 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 419 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 420 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 421 | ); 422 | name = Products; 423 | sourceTree = ""; 424 | }; 425 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 426 | isa = PBXGroup; 427 | children = ( 428 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 429 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 430 | ); 431 | name = Products; 432 | sourceTree = ""; 433 | }; 434 | 78C398B11ACF4ADC00677621 /* Products */ = { 435 | isa = PBXGroup; 436 | children = ( 437 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 438 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 439 | ); 440 | name = Products; 441 | sourceTree = ""; 442 | }; 443 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 444 | isa = PBXGroup; 445 | children = ( 446 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 447 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 448 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 449 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 450 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 451 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 452 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 453 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 454 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 455 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 456 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 457 | 588B2A2693634C73B8DCD1E7 /* RNFetchBlob.xcodeproj */, 458 | 928BDEF9AC204EC7BCF0DF82 /* RNImagePicker.xcodeproj */, 459 | ); 460 | name = Libraries; 461 | sourceTree = ""; 462 | }; 463 | 832341B11AAA6A8300B99B32 /* Products */ = { 464 | isa = PBXGroup; 465 | children = ( 466 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 467 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 468 | ); 469 | name = Products; 470 | sourceTree = ""; 471 | }; 472 | 83CBB9F61A601CBA00E9B192 = { 473 | isa = PBXGroup; 474 | children = ( 475 | 13B07FAE1A68108700A75B9A /* RNFirebaseUploadApp */, 476 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 477 | 00E356EF1AD99517003FC87E /* RNFirebaseUploadAppTests */, 478 | 83CBBA001A601CBA00E9B192 /* Products */, 479 | ); 480 | indentWidth = 2; 481 | sourceTree = ""; 482 | tabWidth = 2; 483 | }; 484 | 83CBBA001A601CBA00E9B192 /* Products */ = { 485 | isa = PBXGroup; 486 | children = ( 487 | 13B07F961A680F5B00A75B9A /* RNFirebaseUploadApp.app */, 488 | 00E356EE1AD99517003FC87E /* RNFirebaseUploadAppTests.xctest */, 489 | 2D02E47B1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOS.app */, 490 | 2D02E4901E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOSTests.xctest */, 491 | ); 492 | name = Products; 493 | sourceTree = ""; 494 | }; 495 | /* End PBXGroup section */ 496 | 497 | /* Begin PBXNativeTarget section */ 498 | 00E356ED1AD99517003FC87E /* RNFirebaseUploadAppTests */ = { 499 | isa = PBXNativeTarget; 500 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNFirebaseUploadAppTests" */; 501 | buildPhases = ( 502 | 00E356EA1AD99517003FC87E /* Sources */, 503 | 00E356EB1AD99517003FC87E /* Frameworks */, 504 | 00E356EC1AD99517003FC87E /* Resources */, 505 | ); 506 | buildRules = ( 507 | ); 508 | dependencies = ( 509 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 510 | ); 511 | name = RNFirebaseUploadAppTests; 512 | productName = RNFirebaseUploadAppTests; 513 | productReference = 00E356EE1AD99517003FC87E /* RNFirebaseUploadAppTests.xctest */; 514 | productType = "com.apple.product-type.bundle.unit-test"; 515 | }; 516 | 13B07F861A680F5B00A75B9A /* RNFirebaseUploadApp */ = { 517 | isa = PBXNativeTarget; 518 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNFirebaseUploadApp" */; 519 | buildPhases = ( 520 | 13B07F871A680F5B00A75B9A /* Sources */, 521 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 522 | 13B07F8E1A680F5B00A75B9A /* Resources */, 523 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 524 | ); 525 | buildRules = ( 526 | ); 527 | dependencies = ( 528 | ); 529 | name = RNFirebaseUploadApp; 530 | productName = "Hello World"; 531 | productReference = 13B07F961A680F5B00A75B9A /* RNFirebaseUploadApp.app */; 532 | productType = "com.apple.product-type.application"; 533 | }; 534 | 2D02E47A1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOS */ = { 535 | isa = PBXNativeTarget; 536 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNFirebaseUploadApp-tvOS" */; 537 | buildPhases = ( 538 | 2D02E4771E0B4A5D006451C7 /* Sources */, 539 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 540 | 2D02E4791E0B4A5D006451C7 /* Resources */, 541 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 542 | ); 543 | buildRules = ( 544 | ); 545 | dependencies = ( 546 | ); 547 | name = "RNFirebaseUploadApp-tvOS"; 548 | productName = "RNFirebaseUploadApp-tvOS"; 549 | productReference = 2D02E47B1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOS.app */; 550 | productType = "com.apple.product-type.application"; 551 | }; 552 | 2D02E48F1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOSTests */ = { 553 | isa = PBXNativeTarget; 554 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNFirebaseUploadApp-tvOSTests" */; 555 | buildPhases = ( 556 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 557 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 558 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 559 | ); 560 | buildRules = ( 561 | ); 562 | dependencies = ( 563 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 564 | ); 565 | name = "RNFirebaseUploadApp-tvOSTests"; 566 | productName = "RNFirebaseUploadApp-tvOSTests"; 567 | productReference = 2D02E4901E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOSTests.xctest */; 568 | productType = "com.apple.product-type.bundle.unit-test"; 569 | }; 570 | /* End PBXNativeTarget section */ 571 | 572 | /* Begin PBXProject section */ 573 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 574 | isa = PBXProject; 575 | attributes = { 576 | LastUpgradeCheck = 610; 577 | ORGANIZATIONNAME = Facebook; 578 | TargetAttributes = { 579 | 00E356ED1AD99517003FC87E = { 580 | CreatedOnToolsVersion = 6.2; 581 | TestTargetID = 13B07F861A680F5B00A75B9A; 582 | }; 583 | 2D02E47A1E0B4A5D006451C7 = { 584 | CreatedOnToolsVersion = 8.2.1; 585 | ProvisioningStyle = Automatic; 586 | }; 587 | 2D02E48F1E0B4A5D006451C7 = { 588 | CreatedOnToolsVersion = 8.2.1; 589 | ProvisioningStyle = Automatic; 590 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 591 | }; 592 | }; 593 | }; 594 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNFirebaseUploadApp" */; 595 | compatibilityVersion = "Xcode 3.2"; 596 | developmentRegion = English; 597 | hasScannedForEncodings = 0; 598 | knownRegions = ( 599 | en, 600 | Base, 601 | ); 602 | mainGroup = 83CBB9F61A601CBA00E9B192; 603 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 604 | projectDirPath = ""; 605 | projectReferences = ( 606 | { 607 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 608 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 609 | }, 610 | { 611 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 612 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 613 | }, 614 | { 615 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 616 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 617 | }, 618 | { 619 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 620 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 621 | }, 622 | { 623 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 624 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 625 | }, 626 | { 627 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 628 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 629 | }, 630 | { 631 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 632 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 633 | }, 634 | { 635 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 636 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 637 | }, 638 | { 639 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 640 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 641 | }, 642 | { 643 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 644 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 645 | }, 646 | { 647 | ProductGroup = 146834001AC3E56700842450 /* Products */; 648 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 649 | }, 650 | ); 651 | projectRoot = ""; 652 | targets = ( 653 | 13B07F861A680F5B00A75B9A /* RNFirebaseUploadApp */, 654 | 00E356ED1AD99517003FC87E /* RNFirebaseUploadAppTests */, 655 | 2D02E47A1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOS */, 656 | 2D02E48F1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOSTests */, 657 | ); 658 | }; 659 | /* End PBXProject section */ 660 | 661 | /* Begin PBXReferenceProxy section */ 662 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 663 | isa = PBXReferenceProxy; 664 | fileType = archive.ar; 665 | path = libRCTActionSheet.a; 666 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 667 | sourceTree = BUILT_PRODUCTS_DIR; 668 | }; 669 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 670 | isa = PBXReferenceProxy; 671 | fileType = archive.ar; 672 | path = libRCTGeolocation.a; 673 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 674 | sourceTree = BUILT_PRODUCTS_DIR; 675 | }; 676 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 677 | isa = PBXReferenceProxy; 678 | fileType = archive.ar; 679 | path = libRCTImage.a; 680 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 681 | sourceTree = BUILT_PRODUCTS_DIR; 682 | }; 683 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 684 | isa = PBXReferenceProxy; 685 | fileType = archive.ar; 686 | path = libRCTNetwork.a; 687 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 688 | sourceTree = BUILT_PRODUCTS_DIR; 689 | }; 690 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 691 | isa = PBXReferenceProxy; 692 | fileType = archive.ar; 693 | path = libRCTVibration.a; 694 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 695 | sourceTree = BUILT_PRODUCTS_DIR; 696 | }; 697 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 698 | isa = PBXReferenceProxy; 699 | fileType = archive.ar; 700 | path = libRCTSettings.a; 701 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 702 | sourceTree = BUILT_PRODUCTS_DIR; 703 | }; 704 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 705 | isa = PBXReferenceProxy; 706 | fileType = archive.ar; 707 | path = libRCTWebSocket.a; 708 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 709 | sourceTree = BUILT_PRODUCTS_DIR; 710 | }; 711 | 146834041AC3E56700842450 /* libReact.a */ = { 712 | isa = PBXReferenceProxy; 713 | fileType = archive.ar; 714 | path = libReact.a; 715 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 716 | sourceTree = BUILT_PRODUCTS_DIR; 717 | }; 718 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 719 | isa = PBXReferenceProxy; 720 | fileType = archive.ar; 721 | path = "libRCTImage-tvOS.a"; 722 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 723 | sourceTree = BUILT_PRODUCTS_DIR; 724 | }; 725 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 726 | isa = PBXReferenceProxy; 727 | fileType = archive.ar; 728 | path = "libRCTLinking-tvOS.a"; 729 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 730 | sourceTree = BUILT_PRODUCTS_DIR; 731 | }; 732 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 733 | isa = PBXReferenceProxy; 734 | fileType = archive.ar; 735 | path = "libRCTNetwork-tvOS.a"; 736 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 737 | sourceTree = BUILT_PRODUCTS_DIR; 738 | }; 739 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 740 | isa = PBXReferenceProxy; 741 | fileType = archive.ar; 742 | path = "libRCTSettings-tvOS.a"; 743 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 744 | sourceTree = BUILT_PRODUCTS_DIR; 745 | }; 746 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 747 | isa = PBXReferenceProxy; 748 | fileType = archive.ar; 749 | path = "libRCTText-tvOS.a"; 750 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 751 | sourceTree = BUILT_PRODUCTS_DIR; 752 | }; 753 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 754 | isa = PBXReferenceProxy; 755 | fileType = archive.ar; 756 | path = "libRCTWebSocket-tvOS.a"; 757 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 758 | sourceTree = BUILT_PRODUCTS_DIR; 759 | }; 760 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 761 | isa = PBXReferenceProxy; 762 | fileType = archive.ar; 763 | path = libReact.a; 764 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 765 | sourceTree = BUILT_PRODUCTS_DIR; 766 | }; 767 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 768 | isa = PBXReferenceProxy; 769 | fileType = archive.ar; 770 | path = libyoga.a; 771 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 772 | sourceTree = BUILT_PRODUCTS_DIR; 773 | }; 774 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 775 | isa = PBXReferenceProxy; 776 | fileType = archive.ar; 777 | path = libyoga.a; 778 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 779 | sourceTree = BUILT_PRODUCTS_DIR; 780 | }; 781 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 782 | isa = PBXReferenceProxy; 783 | fileType = archive.ar; 784 | path = libcxxreact.a; 785 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 786 | sourceTree = BUILT_PRODUCTS_DIR; 787 | }; 788 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 789 | isa = PBXReferenceProxy; 790 | fileType = archive.ar; 791 | path = libcxxreact.a; 792 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 793 | sourceTree = BUILT_PRODUCTS_DIR; 794 | }; 795 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 796 | isa = PBXReferenceProxy; 797 | fileType = archive.ar; 798 | path = libjschelpers.a; 799 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 800 | sourceTree = BUILT_PRODUCTS_DIR; 801 | }; 802 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 803 | isa = PBXReferenceProxy; 804 | fileType = archive.ar; 805 | path = libjschelpers.a; 806 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 807 | sourceTree = BUILT_PRODUCTS_DIR; 808 | }; 809 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 810 | isa = PBXReferenceProxy; 811 | fileType = archive.ar; 812 | path = libRCTAnimation.a; 813 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 814 | sourceTree = BUILT_PRODUCTS_DIR; 815 | }; 816 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 817 | isa = PBXReferenceProxy; 818 | fileType = archive.ar; 819 | path = "libRCTAnimation-tvOS.a"; 820 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 821 | sourceTree = BUILT_PRODUCTS_DIR; 822 | }; 823 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 824 | isa = PBXReferenceProxy; 825 | fileType = archive.ar; 826 | path = libRCTLinking.a; 827 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 828 | sourceTree = BUILT_PRODUCTS_DIR; 829 | }; 830 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 831 | isa = PBXReferenceProxy; 832 | fileType = archive.ar; 833 | path = libRCTText.a; 834 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 835 | sourceTree = BUILT_PRODUCTS_DIR; 836 | }; 837 | /* End PBXReferenceProxy section */ 838 | 839 | /* Begin PBXResourcesBuildPhase section */ 840 | 00E356EC1AD99517003FC87E /* Resources */ = { 841 | isa = PBXResourcesBuildPhase; 842 | buildActionMask = 2147483647; 843 | files = ( 844 | ); 845 | runOnlyForDeploymentPostprocessing = 0; 846 | }; 847 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 848 | isa = PBXResourcesBuildPhase; 849 | buildActionMask = 2147483647; 850 | files = ( 851 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 852 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 853 | ); 854 | runOnlyForDeploymentPostprocessing = 0; 855 | }; 856 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 857 | isa = PBXResourcesBuildPhase; 858 | buildActionMask = 2147483647; 859 | files = ( 860 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 861 | ); 862 | runOnlyForDeploymentPostprocessing = 0; 863 | }; 864 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 865 | isa = PBXResourcesBuildPhase; 866 | buildActionMask = 2147483647; 867 | files = ( 868 | ); 869 | runOnlyForDeploymentPostprocessing = 0; 870 | }; 871 | /* End PBXResourcesBuildPhase section */ 872 | 873 | /* Begin PBXShellScriptBuildPhase section */ 874 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 875 | isa = PBXShellScriptBuildPhase; 876 | buildActionMask = 2147483647; 877 | files = ( 878 | ); 879 | inputPaths = ( 880 | ); 881 | name = "Bundle React Native code and images"; 882 | outputPaths = ( 883 | ); 884 | runOnlyForDeploymentPostprocessing = 0; 885 | shellPath = /bin/sh; 886 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 887 | }; 888 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 889 | isa = PBXShellScriptBuildPhase; 890 | buildActionMask = 2147483647; 891 | files = ( 892 | ); 893 | inputPaths = ( 894 | ); 895 | name = "Bundle React Native Code And Images"; 896 | outputPaths = ( 897 | ); 898 | runOnlyForDeploymentPostprocessing = 0; 899 | shellPath = /bin/sh; 900 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 901 | }; 902 | /* End PBXShellScriptBuildPhase section */ 903 | 904 | /* Begin PBXSourcesBuildPhase section */ 905 | 00E356EA1AD99517003FC87E /* Sources */ = { 906 | isa = PBXSourcesBuildPhase; 907 | buildActionMask = 2147483647; 908 | files = ( 909 | 00E356F31AD99517003FC87E /* RNFirebaseUploadAppTests.m in Sources */, 910 | ); 911 | runOnlyForDeploymentPostprocessing = 0; 912 | }; 913 | 13B07F871A680F5B00A75B9A /* Sources */ = { 914 | isa = PBXSourcesBuildPhase; 915 | buildActionMask = 2147483647; 916 | files = ( 917 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 918 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 919 | ); 920 | runOnlyForDeploymentPostprocessing = 0; 921 | }; 922 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 923 | isa = PBXSourcesBuildPhase; 924 | buildActionMask = 2147483647; 925 | files = ( 926 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 927 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 928 | ); 929 | runOnlyForDeploymentPostprocessing = 0; 930 | }; 931 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 932 | isa = PBXSourcesBuildPhase; 933 | buildActionMask = 2147483647; 934 | files = ( 935 | 2DCD954D1E0B4F2C00145EB5 /* RNFirebaseUploadAppTests.m in Sources */, 936 | ); 937 | runOnlyForDeploymentPostprocessing = 0; 938 | }; 939 | /* End PBXSourcesBuildPhase section */ 940 | 941 | /* Begin PBXTargetDependency section */ 942 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 943 | isa = PBXTargetDependency; 944 | target = 13B07F861A680F5B00A75B9A /* RNFirebaseUploadApp */; 945 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 946 | }; 947 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 948 | isa = PBXTargetDependency; 949 | target = 2D02E47A1E0B4A5D006451C7 /* RNFirebaseUploadApp-tvOS */; 950 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 951 | }; 952 | /* End PBXTargetDependency section */ 953 | 954 | /* Begin PBXVariantGroup section */ 955 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 956 | isa = PBXVariantGroup; 957 | children = ( 958 | 13B07FB21A68108700A75B9A /* Base */, 959 | ); 960 | name = LaunchScreen.xib; 961 | path = RNFirebaseUploadApp; 962 | sourceTree = ""; 963 | }; 964 | /* End PBXVariantGroup section */ 965 | 966 | /* Begin XCBuildConfiguration section */ 967 | 00E356F61AD99517003FC87E /* Debug */ = { 968 | isa = XCBuildConfiguration; 969 | buildSettings = { 970 | BUNDLE_LOADER = "$(TEST_HOST)"; 971 | GCC_PREPROCESSOR_DEFINITIONS = ( 972 | "DEBUG=1", 973 | "$(inherited)", 974 | ); 975 | INFOPLIST_FILE = RNFirebaseUploadAppTests/Info.plist; 976 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 977 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 978 | OTHER_LDFLAGS = ( 979 | "-ObjC", 980 | "-lc++", 981 | ); 982 | PRODUCT_NAME = "$(TARGET_NAME)"; 983 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNFirebaseUploadApp.app/RNFirebaseUploadApp"; 984 | LIBRARY_SEARCH_PATHS = ( 985 | "$(inherited)", 986 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 987 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 988 | ); 989 | }; 990 | name = Debug; 991 | }; 992 | 00E356F71AD99517003FC87E /* Release */ = { 993 | isa = XCBuildConfiguration; 994 | buildSettings = { 995 | BUNDLE_LOADER = "$(TEST_HOST)"; 996 | COPY_PHASE_STRIP = NO; 997 | INFOPLIST_FILE = RNFirebaseUploadAppTests/Info.plist; 998 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 999 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1000 | OTHER_LDFLAGS = ( 1001 | "-ObjC", 1002 | "-lc++", 1003 | ); 1004 | PRODUCT_NAME = "$(TARGET_NAME)"; 1005 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNFirebaseUploadApp.app/RNFirebaseUploadApp"; 1006 | LIBRARY_SEARCH_PATHS = ( 1007 | "$(inherited)", 1008 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1009 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1010 | ); 1011 | }; 1012 | name = Release; 1013 | }; 1014 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1015 | isa = XCBuildConfiguration; 1016 | buildSettings = { 1017 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1018 | CURRENT_PROJECT_VERSION = 1; 1019 | DEAD_CODE_STRIPPING = NO; 1020 | INFOPLIST_FILE = RNFirebaseUploadApp/Info.plist; 1021 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1022 | OTHER_LDFLAGS = ( 1023 | "$(inherited)", 1024 | "-ObjC", 1025 | "-lc++", 1026 | ); 1027 | PRODUCT_NAME = RNFirebaseUploadApp; 1028 | VERSIONING_SYSTEM = "apple-generic"; 1029 | }; 1030 | name = Debug; 1031 | }; 1032 | 13B07F951A680F5B00A75B9A /* Release */ = { 1033 | isa = XCBuildConfiguration; 1034 | buildSettings = { 1035 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1036 | CURRENT_PROJECT_VERSION = 1; 1037 | INFOPLIST_FILE = RNFirebaseUploadApp/Info.plist; 1038 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1039 | OTHER_LDFLAGS = ( 1040 | "$(inherited)", 1041 | "-ObjC", 1042 | "-lc++", 1043 | ); 1044 | PRODUCT_NAME = RNFirebaseUploadApp; 1045 | VERSIONING_SYSTEM = "apple-generic"; 1046 | }; 1047 | name = Release; 1048 | }; 1049 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1050 | isa = XCBuildConfiguration; 1051 | buildSettings = { 1052 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1053 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1054 | CLANG_ANALYZER_NONNULL = YES; 1055 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1056 | CLANG_WARN_INFINITE_RECURSION = YES; 1057 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1058 | DEBUG_INFORMATION_FORMAT = dwarf; 1059 | ENABLE_TESTABILITY = YES; 1060 | GCC_NO_COMMON_BLOCKS = YES; 1061 | INFOPLIST_FILE = "RNFirebaseUploadApp-tvOS/Info.plist"; 1062 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1063 | OTHER_LDFLAGS = ( 1064 | "-ObjC", 1065 | "-lc++", 1066 | ); 1067 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNFirebaseUploadApp-tvOS"; 1068 | PRODUCT_NAME = "$(TARGET_NAME)"; 1069 | SDKROOT = appletvos; 1070 | TARGETED_DEVICE_FAMILY = 3; 1071 | TVOS_DEPLOYMENT_TARGET = 9.2; 1072 | LIBRARY_SEARCH_PATHS = ( 1073 | "$(inherited)", 1074 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1075 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1076 | ); 1077 | }; 1078 | name = Debug; 1079 | }; 1080 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1081 | isa = XCBuildConfiguration; 1082 | buildSettings = { 1083 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1084 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1085 | CLANG_ANALYZER_NONNULL = YES; 1086 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1087 | CLANG_WARN_INFINITE_RECURSION = YES; 1088 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1089 | COPY_PHASE_STRIP = NO; 1090 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1091 | GCC_NO_COMMON_BLOCKS = YES; 1092 | INFOPLIST_FILE = "RNFirebaseUploadApp-tvOS/Info.plist"; 1093 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1094 | OTHER_LDFLAGS = ( 1095 | "-ObjC", 1096 | "-lc++", 1097 | ); 1098 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNFirebaseUploadApp-tvOS"; 1099 | PRODUCT_NAME = "$(TARGET_NAME)"; 1100 | SDKROOT = appletvos; 1101 | TARGETED_DEVICE_FAMILY = 3; 1102 | TVOS_DEPLOYMENT_TARGET = 9.2; 1103 | LIBRARY_SEARCH_PATHS = ( 1104 | "$(inherited)", 1105 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1106 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1107 | ); 1108 | }; 1109 | name = Release; 1110 | }; 1111 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1112 | isa = XCBuildConfiguration; 1113 | buildSettings = { 1114 | BUNDLE_LOADER = "$(TEST_HOST)"; 1115 | CLANG_ANALYZER_NONNULL = YES; 1116 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1117 | CLANG_WARN_INFINITE_RECURSION = YES; 1118 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1119 | DEBUG_INFORMATION_FORMAT = dwarf; 1120 | ENABLE_TESTABILITY = YES; 1121 | GCC_NO_COMMON_BLOCKS = YES; 1122 | INFOPLIST_FILE = "RNFirebaseUploadApp-tvOSTests/Info.plist"; 1123 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1124 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNFirebaseUploadApp-tvOSTests"; 1125 | PRODUCT_NAME = "$(TARGET_NAME)"; 1126 | SDKROOT = appletvos; 1127 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNFirebaseUploadApp-tvOS.app/RNFirebaseUploadApp-tvOS"; 1128 | TVOS_DEPLOYMENT_TARGET = 10.1; 1129 | LIBRARY_SEARCH_PATHS = ( 1130 | "$(inherited)", 1131 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1132 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1133 | ); 1134 | }; 1135 | name = Debug; 1136 | }; 1137 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1138 | isa = XCBuildConfiguration; 1139 | buildSettings = { 1140 | BUNDLE_LOADER = "$(TEST_HOST)"; 1141 | CLANG_ANALYZER_NONNULL = YES; 1142 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1143 | CLANG_WARN_INFINITE_RECURSION = YES; 1144 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1145 | COPY_PHASE_STRIP = NO; 1146 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1147 | GCC_NO_COMMON_BLOCKS = YES; 1148 | INFOPLIST_FILE = "RNFirebaseUploadApp-tvOSTests/Info.plist"; 1149 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1150 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNFirebaseUploadApp-tvOSTests"; 1151 | PRODUCT_NAME = "$(TARGET_NAME)"; 1152 | SDKROOT = appletvos; 1153 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNFirebaseUploadApp-tvOS.app/RNFirebaseUploadApp-tvOS"; 1154 | TVOS_DEPLOYMENT_TARGET = 10.1; 1155 | LIBRARY_SEARCH_PATHS = ( 1156 | "$(inherited)", 1157 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1158 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1159 | ); 1160 | }; 1161 | name = Release; 1162 | }; 1163 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1164 | isa = XCBuildConfiguration; 1165 | buildSettings = { 1166 | ALWAYS_SEARCH_USER_PATHS = NO; 1167 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1168 | CLANG_CXX_LIBRARY = "libc++"; 1169 | CLANG_ENABLE_MODULES = YES; 1170 | CLANG_ENABLE_OBJC_ARC = YES; 1171 | CLANG_WARN_BOOL_CONVERSION = YES; 1172 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1173 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1174 | CLANG_WARN_EMPTY_BODY = YES; 1175 | CLANG_WARN_ENUM_CONVERSION = YES; 1176 | CLANG_WARN_INT_CONVERSION = YES; 1177 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1178 | CLANG_WARN_UNREACHABLE_CODE = YES; 1179 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1180 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1181 | COPY_PHASE_STRIP = NO; 1182 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1183 | GCC_C_LANGUAGE_STANDARD = gnu99; 1184 | GCC_DYNAMIC_NO_PIC = NO; 1185 | GCC_OPTIMIZATION_LEVEL = 0; 1186 | GCC_PREPROCESSOR_DEFINITIONS = ( 1187 | "DEBUG=1", 1188 | "$(inherited)", 1189 | ); 1190 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1191 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1192 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1193 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1194 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1195 | GCC_WARN_UNUSED_FUNCTION = YES; 1196 | GCC_WARN_UNUSED_VARIABLE = YES; 1197 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1198 | MTL_ENABLE_DEBUG_INFO = YES; 1199 | ONLY_ACTIVE_ARCH = YES; 1200 | SDKROOT = iphoneos; 1201 | }; 1202 | name = Debug; 1203 | }; 1204 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1205 | isa = XCBuildConfiguration; 1206 | buildSettings = { 1207 | ALWAYS_SEARCH_USER_PATHS = NO; 1208 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1209 | CLANG_CXX_LIBRARY = "libc++"; 1210 | CLANG_ENABLE_MODULES = YES; 1211 | CLANG_ENABLE_OBJC_ARC = YES; 1212 | CLANG_WARN_BOOL_CONVERSION = YES; 1213 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1214 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1215 | CLANG_WARN_EMPTY_BODY = YES; 1216 | CLANG_WARN_ENUM_CONVERSION = YES; 1217 | CLANG_WARN_INT_CONVERSION = YES; 1218 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1219 | CLANG_WARN_UNREACHABLE_CODE = YES; 1220 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1221 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1222 | COPY_PHASE_STRIP = YES; 1223 | ENABLE_NS_ASSERTIONS = NO; 1224 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1225 | GCC_C_LANGUAGE_STANDARD = gnu99; 1226 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1227 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1228 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1229 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1230 | GCC_WARN_UNUSED_FUNCTION = YES; 1231 | GCC_WARN_UNUSED_VARIABLE = YES; 1232 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1233 | MTL_ENABLE_DEBUG_INFO = NO; 1234 | SDKROOT = iphoneos; 1235 | VALIDATE_PRODUCT = YES; 1236 | }; 1237 | name = Release; 1238 | }; 1239 | /* End XCBuildConfiguration section */ 1240 | 1241 | /* Begin XCConfigurationList section */ 1242 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNFirebaseUploadAppTests" */ = { 1243 | isa = XCConfigurationList; 1244 | buildConfigurations = ( 1245 | 00E356F61AD99517003FC87E /* Debug */, 1246 | 00E356F71AD99517003FC87E /* Release */, 1247 | ); 1248 | defaultConfigurationIsVisible = 0; 1249 | defaultConfigurationName = Release; 1250 | }; 1251 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNFirebaseUploadApp" */ = { 1252 | isa = XCConfigurationList; 1253 | buildConfigurations = ( 1254 | 13B07F941A680F5B00A75B9A /* Debug */, 1255 | 13B07F951A680F5B00A75B9A /* Release */, 1256 | ); 1257 | defaultConfigurationIsVisible = 0; 1258 | defaultConfigurationName = Release; 1259 | }; 1260 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNFirebaseUploadApp-tvOS" */ = { 1261 | isa = XCConfigurationList; 1262 | buildConfigurations = ( 1263 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1264 | 2D02E4981E0B4A5E006451C7 /* Release */, 1265 | ); 1266 | defaultConfigurationIsVisible = 0; 1267 | defaultConfigurationName = Release; 1268 | }; 1269 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNFirebaseUploadApp-tvOSTests" */ = { 1270 | isa = XCConfigurationList; 1271 | buildConfigurations = ( 1272 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1273 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1274 | ); 1275 | defaultConfigurationIsVisible = 0; 1276 | defaultConfigurationName = Release; 1277 | }; 1278 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNFirebaseUploadApp" */ = { 1279 | isa = XCConfigurationList; 1280 | buildConfigurations = ( 1281 | 83CBBA201A601CBA00E9B192 /* Debug */, 1282 | 83CBBA211A601CBA00E9B192 /* Release */, 1283 | ); 1284 | defaultConfigurationIsVisible = 0; 1285 | defaultConfigurationName = Release; 1286 | }; 1287 | /* End XCConfigurationList section */ 1288 | }; 1289 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1290 | } 1291 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp.xcodeproj/xcshareddata/xcschemes/RNFirebaseUploadApp-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp.xcodeproj/xcshareddata/xcschemes/RNFirebaseUploadApp.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"RNFirebaseUploadApp" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | RNFirebaseUploadApp 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSPhotoLibraryUsageDescription 42 | For testing only 43 | NSCameraUsageDescription 44 | For testing only 45 | NSLocationWhenInUseUsageDescription 46 | For testing only 47 | NSAppTransportSecurity 48 | 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadApp/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/RNFirebaseUploadAppTests/RNFirebaseUploadAppTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface RNFirebaseUploadAppTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation RNFirebaseUploadAppTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true 5 | }, 6 | "exclude": [ 7 | "node_modules" 8 | ] 9 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RNFirebaseUploadApp", 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 | "firebase": "^3.6.10", 11 | "react": "15.4.2", 12 | "react-native": "0.41.2", 13 | "react-native-fetch-blob": "^0.10.2", 14 | "react-native-image-picker": "^0.25.7" 15 | }, 16 | "devDependencies": { 17 | "babel-jest": "19.0.0", 18 | "babel-preset-react-native": "1.9.1", 19 | "jest": "19.0.2", 20 | "react-test-renderer": "15.4.2" 21 | }, 22 | "jest": { 23 | "preset": "react-native" 24 | } 25 | } -------------------------------------------------------------------------------- /service/firebaseService.js: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // FOR THE BLOB 4 | import RNFetchBlob from 'react-native-fetch-blob' 5 | const Blob = RNFetchBlob.polyfill.Blob 6 | window.XMLHttpRequest = RNFetchBlob.polyfill.XMLHttpRequest 7 | window.Blob = Blob 8 | // 9 | // 10 | 11 | const firebase = require("firebase"); 12 | 13 | // Initialize Firebase 14 | const firebaseConfig = { 15 | // YOUR VALUES HERE 16 | }; 17 | const firebaseApp = firebase.initializeApp(firebaseConfig); 18 | 19 | class FirebaseService { 20 | /** 21 | * 22 | * 23 | * @param {String} _path 24 | * @param {any} _blob 25 | * @returns 26 | */ 27 | doFirebaseUploadStuff(_path, _blob) { 28 | 29 | return new Promise((resolve, reject) => { 30 | var uploadTask = firebase.storage().ref(_path) 31 | .put(_blob, { contentType: 'image/jpeg' }) 32 | 33 | uploadTask.on('state_changed', (snapshot) => { 34 | var progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100; 35 | console.log('Upload is ' + progress + '% done'); 36 | }, (error) => { 37 | // Handle unsuccessful uploads 38 | reject(error) 39 | }, () => { 40 | // Handle successful uploads on complete 41 | resolve(uploadTask.snapshot) 42 | }); 43 | }); 44 | } 45 | 46 | /** 47 | * 48 | * 49 | * @param {any} {uri, fileName} 50 | * @returns 51 | */ 52 | uploadFile({ uri, fileName }) { 53 | 54 | var forCleanUp = null 55 | 56 | return new Promise((resolve, reject) => { 57 | 58 | // create the blob for firebase 59 | let path = uri.replace('file://', ''); 60 | 61 | // we are wrapping the path so that RNFetchBlob know where to find 62 | // the data, see RNFetchBlob documentation for more information 63 | Blob.build(RNFetchBlob.wrap(path), { type: 'image/jpeg' }) 64 | .then((blob) => { 65 | forCleanUp = blob; 66 | console.log("got blob...") 67 | 68 | // now that we have a blob, upload it to firebase 69 | return this.doFirebaseUploadStuff('images/' + fileName, blob) 70 | }).then((snap) => { 71 | forCleanUp.close() 72 | console.log("file uploaded...") 73 | resolve(snap) 74 | }, (err) => { 75 | console.log('err', err) 76 | forCleanUp && forCleanUp.close() 77 | reject(err) 78 | }).catch((err) => { 79 | console.log('catch', err) 80 | forCleanUp && forCleanUp.close() 81 | reject(err) 82 | }) 83 | }) 84 | } 85 | } 86 | 87 | export default new FirebaseService() --------------------------------------------------------------------------------