├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── README.md ├── Vagrantfile ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── uberfoobarreactnativefirebase │ │ │ ├── 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 ├── android_ios ├── components │ └── Loading.js ├── index.js └── pages │ ├── DestinationLocationPage.js │ ├── LoginPage.js │ ├── PickUpLocationPage.js │ ├── RegisterPage.js │ ├── RegisteredPage.js │ ├── ResultPage.js │ └── SplashPage.js ├── assets └── img │ ├── logo.png │ ├── search.png │ └── uber.png ├── index.android.js ├── index.ios.js ├── ios ├── UberFooBarReactNativeFirebase-tvOS │ └── Info.plist ├── UberFooBarReactNativeFirebase-tvOSTests │ └── Info.plist ├── UberFooBarReactNativeFirebase.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── UberFooBarReactNativeFirebase-tvOS.xcscheme │ │ └── UberFooBarReactNativeFirebase.xcscheme ├── UberFooBarReactNativeFirebase │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── UberFooBarReactNativeFirebaseTests │ ├── Info.plist │ └── UberFooBarReactNativeFirebaseTests.m ├── package.json ├── provision ├── 000-setup-swap-partition.sh ├── 000-setup-usb-udev-rules.sh ├── 001-install-base-dependencies.sh ├── 002-install-android-sdk.sh ├── 002-speed-up-android-builds.sh ├── 003-install-react-native.sh ├── 004-install-app-deps.sh ├── 005-dedup-app-deps.sh ├── 005-fix-own-permitions.sh ├── 099-welcome-message.sh ├── always-000-setup-adb-connection.sh ├── extra-000-install-gotty.sh ├── extra-000-install-shundle.sh ├── extra-000-install-tmux.sh ├── extra-000-install-vim-objects-in-bash.sh ├── extra-000-install-vim.sh ├── repackage-000-delete-non-portable-config.sh ├── repackage-000-delete-tmp-files.sh ├── repackage-099-remove-app.sh └── repackage-vagrant-box.sh └── screenshots ├── coords.png ├── destination.png ├── loading.png ├── login.png ├── pickup.png ├── signup-completed.png └── signup.png /.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 | emoji=true 26 | 27 | module.system=haste 28 | 29 | experimental.strict_type_args=true 30 | 31 | munge_underscores=true 32 | 33 | 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' 34 | 35 | suppress_type=$FlowIssue 36 | suppress_type=$FlowFixMe 37 | suppress_type=$FixMe 38 | 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 42 | 43 | unsafe.enable_getters_and_setters=true 44 | 45 | [version] 46 | ^0.38.0 47 | -------------------------------------------------------------------------------- /.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 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 50 | 51 | fastlane/report.xml 52 | fastlane/Preview.html 53 | fastlane/screenshots 54 | 55 | .vagrant 56 | vagrant-rsync-auto.log 57 | *.box 58 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | About 2 | ----- 3 | 4 | Sample android/ios uber-like app developed as an exercise to learn [react-native](http://facebook.github.io/react-native/)/[firebase](https://firebase.google.com/). 5 | 6 | **WARNING**: Currently the app is an early alpha stage, you should look at other samples for detailed react-native/firebase bits. 7 | 8 |

9 | login 10 | signup 11 | signup completed 12 | loading 13 | pickup 14 | destination 15 | data result 16 |

17 | 18 | Usage 19 | ----- 20 | 21 | - Connect an Android device with developer mode enabled OR install Genymotion and install a Nexus 5 or 7 (Android version 5.1). If using Genymotion, disable its ADB by selecting Settings -> ABD -> Use custom Android SDK tools 22 | - Install openssh and rsync using your operating system's package manager or installation tools 23 | 24 | **If on Windows:** 25 | 26 | 1. Install Cygwin. Within the installer, choose the rsync and openssh packages as per https://github.com/mitchellh/vagrant/issues/3913#issuecomment-45761049. Install "git", under the "Devel" category, to allow cloning this repository. Install xorg-server and xinit to allow launching Chrome for debugging. 27 | 2. If Vagrant/rsync [issue](https://github.com/mitchellh/vagrant/issues/6702) is not yet resolved, you will need to follow the instructions under https://github.com/mitchellh/vagrant/issues/6702#issuecomment-166503021 28 | 3. Launch a terminal using the "Cygwin terminal" shortcut on your desktop or Start Menu. 29 | 4. Run "startxwin" to launch a local X server for Chrome. 30 | 31 | **If on OS X:** 32 | 33 | 1. Install XQuartz to enable viewing the developer console in Chrome within the VM. 34 | 2. Clone this repository and change to the new folder. 35 | 36 | **If using an android device** 37 | 38 | vagrant up 39 | 40 | **If using an emulator (replace IP address with your emulator's IP):** 41 | 42 | ADB_EMULATOR_IP_ADDRESS=192.168.56.101 vagrant up 43 | 44 | To enable live reloading use the "shake" gesture or press Ctrl-m in Genymotion and select "Enable Live Reload". Changes made to the code should automatically update on the device. To use the Chrome developer tools for debugging, start Chrome and connect to http://localhost:8081/debugger-ui and follow the instructions to install developer tools. 45 | 46 | Login to the virtual environment and follow the instructions to get started. 47 | 48 | vagrant ssh 49 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | # vi: set ft=ruby : 2 | VAGRANTFILE_API_VERSION = '2' 3 | Vagrant.require_version '>= 1.8.2' 4 | 5 | CURRENT_DIR = File.expand_path(File.dirname(__FILE__)) 6 | DIRNAME = File.basename(CURRENT_DIR) 7 | 8 | host = RbConfig::CONFIG['host_os'] 9 | hosts = { 10 | #10.10.10.1 is configured as bridged between the host and 10.10.1.x guests 11 | "#{DIRNAME}.example.com" => "10.10.10.10", 12 | } 13 | 14 | #execute commands in host 15 | module LocalCommand 16 | class Config < Vagrant.plugin("2", :config) 17 | attr_accessor :command 18 | end 19 | class Plugin < Vagrant.plugin("2") 20 | name "local_shell" 21 | config(:local_shell, :provisioner) do 22 | Config 23 | end 24 | provisioner(:local_shell) do 25 | Provisioner 26 | end 27 | end 28 | class Provisioner < Vagrant.plugin("2", :provisioner) 29 | def provision 30 | result = system "#{config.command}" 31 | end 32 | end 33 | end 34 | 35 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 36 | hosts.each do |name, ip| 37 | config.vm.define name do |machine| 38 | #machine.vm.box = "ubuntu/trusty64" #base-image 39 | 40 | #modified base image with dependencies installed to decrease the 41 | #time required to bootstrap the environment, use 42 | #provision/repackage-vagrant-box.sh to rebuild the image 43 | machine.vm.box = "foobar-org/trusty64-#{DIRNAME}" #modified-base-image 44 | machine.vm.hostname = name 45 | machine.vm.network :private_network, ip: ip 46 | 47 | #enable remote debugging 48 | machine.vm.network "forwarded_port", guest: 22, host: 2222, auto_correct: true, id:"ssh" 49 | machine.vm.network "forwarded_port", guest: 8081, host: 8081, auto_correct: true, id:"chrome powered debugging" 50 | machine.vm.network "forwarded_port", guest: 5037, host: 5037, auto_correct: true, id:"adb" 51 | machine.vm.network "forwarded_port", guest: 8080, host: 8080, auto_correct: true, id:"gotty" 52 | 53 | #use rsync instead of vboxfs to keep files on the guest continually 54 | #updated, required for live reload to work correctly 55 | #https://www.virtualbox.org/ticket/10660?cversion=0&cnum_hist=1 56 | machine.vm.synced_folder ".", "/home/vagrant/#{DIRNAME}", type: "rsync", 57 | rsync__args: ["--verbose", "--archive", "-z", "--copy-links"] 58 | 59 | #enable X11 forwarding for chrome powered debugging 60 | machine.ssh.forward_agent = true 61 | machine.ssh.forward_x11 = true 62 | 63 | machine.vm.provider "virtualbox" do |vbox| 64 | vbox.name = name 65 | vbox.linked_clone = true if Vagrant::VERSION =~ /^1.8/ 66 | 67 | vbox.customize ["modifyvm", :id, "--memory", 2048] 68 | if host =~ /darwin/ 69 | cpus = `sysctl -n hw.ncpu`.to_i 70 | elsif host =~ /linux/ 71 | cpus = `nproc`.to_i 72 | else #windows? 73 | cpus = `wmic cpu get NumberOfCores`.split("\n")[2].to_i 74 | end 75 | #vbox.customize ["modifyvm", :id, "--cpuexecutioncap", "50"] 76 | vbox.customize ["modifyvm", :id, "--cpus", cpus] 77 | #enable USB 78 | vbox.customize ["modifyvm", :id, "--usb", "on"] 79 | #vbox.customize ["modifyvm", :id, "--usbehci", "on"] 80 | vbox.customize ['usbfilter', 'add', '0', '--target', :id, '--name', '1197123b', '--vendorid', '0x04e8'] 81 | vbox.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'android', '--vendorid', '0x18d1'] 82 | end 83 | 84 | #$ vagrant plugin install vagrant-hosts 85 | if Vagrant.has_plugin?('vagrant-hosts') 86 | machine.vm.provision :hosts, sync_hosts: true 87 | elsif Vagrant.has_plugin?('vagrant-hostmanager') 88 | machine.hostmanager.enabled = true 89 | machine.hostmanager.manage_host = true 90 | machine.hostmanager.aliases = aliases 91 | end 92 | 93 | #echo cmds, lambda syntax: http://stackoverflow.com/questions/8476627/what-do-you-call-the-operator-in-ruby 94 | CMD_SCRIPT_ROOT = -> (cmd) { machine.vm.provision 'shell', path: cmd, name: cmd, privileged: true } 95 | CMD_SCRIPT = -> (cmd) { machine.vm.provision 'shell', path: cmd, name: cmd, privileged: false } 96 | CMD_INLINE_ROOT = -> (cmd) { machine.vm.provision 'shell', inline: cmd, name: cmd, privileged: true } 97 | CMD_INLINE = -> (cmd) { machine.vm.provision 'shell', inline: cmd, name: cmd, privileged: false } 98 | CMD_SCRIPT_ALWAYS_ROOT = -> (cmd) { machine.vm.provision 'shell', path: cmd, name: cmd, run: "always", privileged: false } 99 | CMD_SCRIPT_ALWAYS = -> (cmd) { machine.vm.provision 'shell', path: cmd, name: cmd, run: "always", privileged: false } 100 | 101 | #authorize default public ssh key 102 | CMD_INLINE_ROOT.call("mkdir -p /root/.ssh/") 103 | CMD_INLINE.call ("mkdir -p /home/vagrant/.ssh/") 104 | if File.file?("#{Dir.home}/.ssh/id_rsa.pub") 105 | ssh_pub_key = File.readlines("#{Dir.home}/.ssh/id_rsa.pub").first.strip 106 | CMD_INLINE_ROOT.call("printf '\\n%s\\n' '#{ssh_pub_key}' >> /root/.ssh/authorized_keys") 107 | CMD_INLINE.call ("printf '\\n%s\\n' '#{ssh_pub_key}' >> /home/vagrant/.ssh/authorized_keys") 108 | end 109 | 110 | #copy private ssh key 111 | if File.file?("#{Dir.home}/.ssh/id_rsa") 112 | machine.vm.provision "file", source: "~/.ssh/id_rsa", destination: "/home/vagrant/.ssh/id_rsa" 113 | CMD_INLINE.call("chown vagrant:vagrant /home/vagrant/.ssh/id_rsa") 114 | CMD_INLINE.call("chmod 600 /home/vagrant/.ssh/id_rsa") 115 | else 116 | if File.file?("ansible-local/ansible-local.pub") 117 | ssh_pub_key = File.readlines("ansible-local/ansible-local.pub").first.strip 118 | CMD_INLINE_ROOT.call("printf '\\n%s\\n' '#{ssh_pub_key}' >> /root/.ssh/authorized_keys") 119 | CMD_INLINE.call ("printf '\\n%s\\n' '#{ssh_pub_key}' >> /home/vagrant/.ssh/authorized_keys") 120 | machine.vm.provision "file", source: "ansible-local/ansible-local.priv", destination: "/home/vagrant/.ssh/id_rsa" 121 | CMD_INLINE.call ("chown vagrant:vagrant /home/vagrant/.ssh/id_rsa") 122 | CMD_INLINE.call ("chmod 600 /home/vagrant/.ssh/id_rsa") 123 | end 124 | end 125 | 126 | #copy gitconfig 127 | if File.file?("#{Dir.home}/.gitconfig") 128 | machine.vm.provision "file", source: "~/.gitconfig", destination: "/home/vagrant/.gitconfig" 129 | end 130 | 131 | #provision 132 | Dir.glob("#{CURRENT_DIR}/provision/0*.sh").sort.each { |provision_script| 133 | CMD_SCRIPT.call(provision_script) 134 | } 135 | 136 | #optional 137 | Dir.glob("#{CURRENT_DIR}/provision/extra-*.sh").sort.each { |provision_script| 138 | CMD_SCRIPT.call(provision_script) 139 | } 140 | 141 | #recurrent jobs 142 | Dir.glob("#{CURRENT_DIR}/provision/always-*.sh").sort.each { |provision_script| 143 | CMD_SCRIPT_ALWAYS.call(provision_script) 144 | } 145 | 146 | if Vagrant::Util::Platform.windows? then 147 | machine.vm.provision "shell", inline: 'printf "%s\\n" "Now run $ vagrant rsync-auto #to enable live reload"' 148 | else #unix 149 | machine.vm.provision "shell", inline: 'printf "%s\\n" "Launching $ vagrant rsync-auto > vagrant-rsync-auto.log"' 150 | machine.vm.provision 'local_shell', command: "nohup vagrant rsync-auto > #{CURRENT_DIR}/vagrant-rsync-auto.log 2>&1 &" 151 | end 152 | end 153 | end 154 | end 155 | -------------------------------------------------------------------------------- /__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.uberfoobarreactnativefirebase', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.uberfoobarreactnativefirebase', 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.uberfoobarreactnativefirebase" 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-maps') 130 | compile fileTree(dir: "libs", include: ["*.jar"]) 131 | compile "com.android.support:appcompat-v7:23.0.1" 132 | compile "com.facebook.react:react-native:+" // From node_modules 133 | } 134 | 135 | // Run this once to be able to run the application with BUCK 136 | // puts all compile dependencies into folder libs for BUCK to use 137 | task copyDownloadableDepsToLibs(type: Copy) { 138 | from configurations.compile 139 | into 'libs' 140 | } 141 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 20 | 21 | 23 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/uberfoobarreactnativefirebase/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.uberfoobarreactnativefirebase; 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 "UberFooBarReactNativeFirebase"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/uberfoobarreactnativefirebase/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.uberfoobarreactnativefirebase; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.airbnb.android.react.maps.MapsPackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new MapsPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | UberFooBarReactNativeFirebase 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:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /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/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/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.14.1-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 = 'UberFooBarReactNativeFirebase' 2 | include ':react-native-maps' 3 | project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /android_ios/components/Loading.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | StyleSheet, 4 | View, 5 | Text, 6 | } from 'react-native'; 7 | 8 | var text="Loading ..." 9 | 10 | export default class Loading extends Component { 11 | render() { 12 | if (this.props.text) { text = this.props.text }; 13 | 14 | return ( 15 | 16 | {text} 17 | 18 | ); 19 | } 20 | } 21 | 22 | const LoadingStyles = StyleSheet.create({ 23 | container: { 24 | flex: 1, 25 | justifyContent: 'center', 26 | backgroundColor: '#F5FCFF', 27 | }, 28 | loading: { 29 | fontSize: 20, 30 | textAlign: 'center', 31 | margin: 10, 32 | }, 33 | }); 34 | -------------------------------------------------------------------------------- /android_ios/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | Navigator, 4 | BackAndroid, 5 | } from 'react-native'; 6 | 7 | import * as firebase from 'firebase'; 8 | 9 | import SplashPage from './pages/SplashPage' 10 | import LoginPage from './pages/LoginPage' 11 | import RegisterPage from './pages/RegisterPage' 12 | import RegisteredPage from './pages/RegisteredPage' 13 | import PickUpLocationPage from './pages/PickUpLocationPage' 14 | import DestinationLocationPage from './pages/DestinationLocationPage' 15 | import ResultPage from './pages/ResultPage' 16 | 17 | const firebaseConfig = { 18 | apiKey: "AIzaSyCbWYQPeyxGHNWqEajaPjOnCjshzN95sCo", 19 | authDomain: "uber-react-native-firebase.firebaseDAO.com", 20 | databaseURL: "https://uber-react-native-firebase.firebaseio.com", 21 | projectId: "uber-react-native-firebase", 22 | storageBucket: "uber-react-native-firebase.appspot.com", 23 | messagingSenderId: "176780898385" 24 | }; 25 | 26 | const firebaseDAO = firebase.initializeApp(firebaseConfig); 27 | 28 | export default class UberFooBarReactNativeFirebase extends Component { 29 | constructor(props) { 30 | super(props) 31 | this.navigator = null; 32 | 33 | //black magic 34 | this.handleBack = (() => { 35 | if (this.navigator && this.navigator.getCurrentRoutes().length > 1){ 36 | this.navigator.pop(); 37 | return true; //avoid closing the app 38 | } 39 | 40 | return false; //close the app 41 | }).bind(this) //don't forget bind this 42 | } 43 | 44 | componentDidMount() { 45 | BackAndroid.addEventListener('hardwareBackPress', this.handleBack); 46 | } 47 | 48 | componentWillUnmount() { 49 | BackAndroid.removeEventListener('hardwareBackPress', this.handleBack); 50 | } 51 | 52 | renderScene(route, navigator) { 53 | switch(route.id) { 54 | case 'SplashPageId': 55 | return ( 56 | 57 | ); 58 | 59 | case 'LoginPageId': 60 | return ( 61 | 65 | ); 66 | 67 | case 'RegisterPageId': 68 | return ( 69 | 73 | ); 74 | 75 | case 'RegisteredPageId': 76 | return ( 77 | 78 | ); 79 | 80 | case 'PickUpLocationPageId': 81 | return ( 82 | 86 | ); 87 | 88 | case 'DestinationLocationPageId': 89 | return ( 90 | 95 | ); 96 | 97 | case 'ResultPageId': 98 | return ( 99 | 103 | ); 104 | 105 | default: 106 | return ( 107 | 108 | ); 109 | } 110 | } 111 | 112 | render() { 113 | return ( 114 | {this.navigator = navigator}} 116 | initialRoute={{id: 'SplashPageId', name: 'SplashPage'}} 117 | renderScene={this.renderScene.bind(this)} 118 | configureScene={(route) => { 119 | if (route.sceneConfig) { 120 | return route.sceneConfig; 121 | } 122 | return Navigator.SceneConfigs.FloatFromRight; 123 | }} /> 124 | ); 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /android_ios/pages/DestinationLocationPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | StyleSheet, 4 | View, 5 | Image, 6 | Text, 7 | TouchableOpacity, 8 | } from 'react-native'; 9 | import MapView from 'react-native-maps'; 10 | var {GooglePlacesAutocomplete} = require('react-native-google-places-autocomplete'); 11 | 12 | import Loading from '../components/Loading' 13 | 14 | const searchIcon = require('../../assets/img/search.png') 15 | 16 | export default class DestinationLocationPage extends Component { 17 | state = { 18 | user: null, 19 | destinationLocation: null, 20 | mapRegion: null, 21 | } 22 | 23 | componentWillMount() { 24 | this.setState({ 25 | user: this.props.firebaseDAO.auth().currentUser, 26 | destinationLocation: this.props.pickUpLocation, 27 | mapRegion: { 28 | latitude: this.props.pickUpLocation.latitude, 29 | longitude: this.props.pickUpLocation.longitude, 30 | latitudeDelta: 0.00922*1.5, 31 | longitudeDelta: 0.00421*1.5, 32 | }, 33 | }); 34 | } 35 | 36 | onRegionChange(region) { 37 | this.setState({ 38 | mapRegion: region, 39 | }); 40 | } 41 | 42 | onDestinationLocationChange(coords) { 43 | this.setState({ 44 | destinationLocation: coords, 45 | }); 46 | } 47 | 48 | updateRegionCallback() { 49 | let coords = { 50 | latitude: this.state.mapRegion.latitude, 51 | longitude: this.state.mapRegion.longitude, 52 | } 53 | this.onDestinationLocationChange(coords); 54 | } 55 | 56 | submitDestinationLocation() { 57 | this.writeDestinationLocation(this.state.destinationLocation); 58 | 59 | this.props.navigator.push( { 60 | id: 'ResultPageId', 61 | name: 'ResultPage', 62 | }); 63 | } 64 | 65 | writeDestinationLocation(coords) { 66 | const userDAO = this.props.firebaseDAO.database().ref('users/' + this.state.user.uid); 67 | userDAO.update({destinationLocation: coords}); 68 | } 69 | 70 | render() { 71 | //Too much magic!!!! 72 | const {user, destinationLocation, mapRegion} = this.state; 73 | //console.log('DestinationLocationPage render()'); 74 | //console.log('user: ', user); 75 | //console.log('destinationLocation: ', destinationLocation); 76 | //console.log('mapRegion: ', mapRegion); 77 | 78 | if (user && destinationLocation && mapRegion) { 79 | return ( 80 | 81 | 84 | {this.onDestinationLocationChange(e.nativeEvent.coordinate)}}/> 86 | 87 | 88 | 89 | } 97 | //currentLocation={true} 98 | //currentLocationLabel='Current Location' 99 | 100 | onPress={(data, details = null) => { 101 | //'details' is initialized on fetchDetails = true 102 | let newRegion = { 103 | latitude: details.geometry.location.lat, 104 | longitude: details.geometry.location.lng, 105 | latitudeDelta: this.state.mapRegion.latitudeDelta, 106 | longitudeDelta: this.state.mapRegion.longitudeDelta, 107 | } 108 | 109 | //investigate why it's required to use a callback function 110 | //to force a re-render() 111 | this.setState({mapRegion: newRegion}, this.updateRegionCallback); 112 | 113 | //console.log('details', details); 114 | //console.log('lat', details.geometry.location.lat); 115 | //console.log('lng', details.geometry.location.lng); 116 | }} 117 | query={{ 118 | key: 'AIzaSyDF_xPY72A9X_dy13ud06Lg6Die6BJ_98M', 119 | language: 'es', 120 | types: 'geocode', }} 121 | /> 122 | 123 | 124 | 125 | 126 | {'Set Destination Location'.toUpperCase()} 127 | 128 | 129 | 130 | ); 131 | } else { 132 | return ( 133 | 134 | ); 135 | } 136 | } 137 | } 138 | 139 | const styles = StyleSheet.create({ 140 | container: { 141 | flex: 1, 142 | justifyContent: 'center', 143 | backgroundColor: '#F5FCFF', 144 | }, 145 | map: { 146 | ...StyleSheet.absoluteFillObject, 147 | //TODO >> find out a smarter way to make room for the location search bar 148 | //marginTop: 42, 149 | }, 150 | uber: { 151 | flex: 1, 152 | width: 20, 153 | height: 20, 154 | }, 155 | searchContainer: { 156 | flex: 1, 157 | }, 158 | typeUberContainer: { 159 | flexDirection: 'row', 160 | justifyContent: 'center', 161 | }, 162 | submitContainer: { 163 | //flexDirection: 'row', 164 | //justifyContent: 'center', 165 | }, 166 | button: { 167 | alignItems: 'center', 168 | backgroundColor: 'rgba(255,255,255,0.7)', 169 | borderRadius: 10, 170 | padding: 10, 171 | margin: 10, 172 | }, 173 | submitButton: { 174 | backgroundColor: 'black', 175 | color: 'white', 176 | padding: 10, 177 | marginTop: 2, 178 | textAlign: 'center', 179 | fontSize: 16 180 | }, 181 | }); 182 | 183 | const searchBarStyles = StyleSheet.create({ 184 | //textInputContainer : { 185 | //backgroundColor : 'rgba(0,0,0,0)', 186 | //}, 187 | 188 | //loader : { 189 | //backgroundColor : "#999999" 190 | //}, 191 | 192 | //TODO >> find out a smarter way to make room for the search icon 193 | searchIcon: { 194 | margin: 13, 195 | marginLeft: 8, 196 | marginRight: 0, 197 | }, 198 | }); 199 | -------------------------------------------------------------------------------- /android_ios/pages/LoginPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | TextInput, 6 | Button, 7 | StyleSheet, 8 | TouchableHighlight, 9 | ActivityIndicator, 10 | } from 'react-native'; 11 | 12 | var usernamePlaceholder = "username@domain.tld"; 13 | var passwordPlaceholder = "password"; 14 | var submit = "Login"; 15 | var register = "Register"; 16 | 17 | export default class LoginPage extends Component { 18 | state = { 19 | email: null, 20 | password: null, 21 | loading: false, 22 | } 23 | 24 | login(){ 25 | //while waiting for the firebase server show the loading indicator. 26 | this.setState({ loading: true }); 27 | 28 | if (this.state.email && this.state.password) { 29 | //log in and display an alert to tell the user what happened. 30 | this.props.firebaseDAO.auth().signInWithEmailAndPassword( 31 | this.state.email, this.state.password).then((userData) => { 32 | this.setState({ 33 | //clear out the fields when the user logs in and hide the progress indicator. 34 | email: null, 35 | password: null, 36 | loading: false 37 | }); 38 | 39 | //alert("Login successful, userData: " + JSON.stringify(userData, null, 4)); 40 | 41 | //redirect to the pickup page 42 | this.props.navigator.push( { 43 | id: 'PickUpLocationPageId', 44 | name: 'PickUpLocationPage', 45 | }); 46 | }).catch((error) => { 47 | //leave the fields filled when an error occurs and hide the progress indicator. 48 | this.setState({ loading: false }); 49 | alert(error.message + " Please try again"); 50 | }); 51 | } else { 52 | alert('Please fill all the required fields.'); 53 | this.setState({ loading: false }); 54 | } 55 | } 56 | 57 | render() { 58 | if (!this.state.loading) { 59 | if (this.props.usernamePlaceholder) 60 | {usernamePlaceholder=this.props.usernamePlaceholder}; 61 | if (this.props.passwordPlaceholder) 62 | {passwordPlaceholder=this.props.passwordPlaceholder}; 63 | if (this.props.submit) 64 | {submit=this.props.submit}; 65 | if (this.props.register) 66 | {register=this.props.register}; 67 | 68 | return ( 69 | 70 | 71 | 72 | {this.props.title} 73 | 74 | 75 | this.setState({email: text})} 78 | value={this.state.email} /> 79 | this.setState({password: text})} 83 | value={this.state.password} /> 84 | 85 | 86 | 88 | {submit} 89 | 90 | 91 | this.props.navigator.push( 93 | { 94 | id: 'RegisterPageId', 95 | name: 'RegisterPage', 96 | } 97 | )}> 98 | {register} 99 | 100 | 101 | 102 | 103 | ); 104 | } else { 105 | return ( 106 | 107 | 108 | 109 | 110 | 111 | ); 112 | } 113 | } 114 | } 115 | 116 | const LoginPageStyles = StyleSheet.create({ 117 | container: { 118 | alignItems: 'stretch', 119 | flex: 1 120 | }, 121 | body: { 122 | flex: 9, 123 | flexDirection: 'row', 124 | alignItems: 'center', 125 | justifyContent: 'center', 126 | backgroundColor: '#F5FCFF', 127 | }, 128 | title: { 129 | fontSize: 25, 130 | textAlign: 'center', 131 | margin: 5, 132 | }, 133 | textInput: { 134 | height: 40, 135 | width: 250, 136 | borderWidth: 1 137 | }, 138 | transparentButton: { 139 | marginTop: 5, 140 | padding: 15, 141 | }, 142 | transparentButtonText: { 143 | color: '#0485A9', 144 | textAlign: 'center', 145 | fontSize: 16 146 | }, 147 | primaryButton: { 148 | marginTop: 10, 149 | padding: 10, 150 | backgroundColor: 'black', 151 | }, 152 | primaryButtonText: { 153 | color: '#FFF', 154 | textAlign: 'center', 155 | fontSize: 18 156 | }, 157 | image: { 158 | width: 100, 159 | height: 100 160 | }, 161 | }); 162 | -------------------------------------------------------------------------------- /android_ios/pages/PickUpLocationPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | StyleSheet, 4 | View, 5 | Image, 6 | Text, 7 | TouchableOpacity, 8 | } from 'react-native'; 9 | import MapView from 'react-native-maps'; 10 | var {GooglePlacesAutocomplete} = require('react-native-google-places-autocomplete'); 11 | 12 | import Loading from '../components/Loading' 13 | 14 | const uberIcon = require('../../assets/img/uber.png') 15 | const searchIcon = require('../../assets/img/search.png') 16 | 17 | export default class PickUpLocationPage extends Component { 18 | state = { 19 | user: null, 20 | passengerLocation: null, 21 | mapRegion: null, 22 | ubers: null, 23 | type: 'x', 24 | gpsAccuracy: null, 25 | } 26 | watchID = null 27 | 28 | componentWillMount() { 29 | this.setState({user: this.props.firebaseDAO.auth().currentUser}); 30 | 31 | this.watchID = navigator.geolocation.watchPosition((position) => { 32 | let region = { 33 | latitude: position.coords.latitude, 34 | longitude: position.coords.longitude, 35 | latitudeDelta: 0.00922*1.5, 36 | longitudeDelta: 0.00421*1.5, 37 | } 38 | 39 | this.onRegionChange(region, position.coords.accuracy); 40 | 41 | if (!this.state.passengerLocation) { 42 | let coords = { 43 | latitude: region.latitude, 44 | longitude: region.longitude, 45 | } 46 | 47 | this.onPassengerLocationChange(coords); 48 | }; 49 | }); 50 | } 51 | 52 | componentWillUnmount() { 53 | navigator.geolocation.clearWatch(this.watchID); 54 | } 55 | 56 | onRegionChange(region, gpsAccuracy) { 57 | this.setState({ 58 | mapRegion: region, 59 | gpsAccuracy: gpsAccuracy || this.state.gpsAccuracy, 60 | }); 61 | } 62 | 63 | getRandomInt(min, max) { 64 | return Math.floor(Math.random() * (max - min + 1)) + min; 65 | } 66 | 67 | randomNearbyPosition(coords) { 68 | return { 69 | latitude: coords.latitude + this.getRandomInt(-100,100)/10000, 70 | longitude: coords.longitude + this.getRandomInt(-100,100)/10000, 71 | } 72 | } 73 | 74 | generateRandomUbers(coords) { 75 | let ubers = { 76 | 'pool' : [ 77 | { id: 1, type: 'pool', name: 'Ana', position: this.randomNearbyPosition(coords) }, 78 | { id: 2, type: 'pool', name: 'John', position: this.randomNearbyPosition(coords) }, 79 | { id: 3, type: 'pool', name: 'Emely', position: this.randomNearbyPosition(coords) }, 80 | { id: 4, type: 'pool', name: 'Mike', position: this.randomNearbyPosition(coords) }, 81 | { id: 5, type: 'pool', name: 'Christene', position: this.randomNearbyPosition(coords) }, 82 | ], 83 | 'x' : [ 84 | { id: 6, type: 'x', name: 'Alice', position: this.randomNearbyPosition(coords) }, 85 | { id: 7, type: 'x', name: 'Bob', position: this.randomNearbyPosition(coords) }, 86 | { id: 8, type: 'x', name: 'Leidi di', position: this.randomNearbyPosition(coords) }, 87 | { id: 9, type: 'x', name: 'Brayan', position: this.randomNearbyPosition(coords) }, 88 | { id: 10, type: 'x', name: 'Nicol', position: this.randomNearbyPosition(coords) }, 89 | ], 90 | 'black' : [ 91 | { id: 11, type: 'black', name: 'Yimi', position: this.randomNearbyPosition(coords) }, 92 | { id: 12, type: 'black', name: 'Lou', position: this.randomNearbyPosition(coords) }, 93 | { id: 13, type: 'black', name: 'Yann', position: this.randomNearbyPosition(coords) }, 94 | { id: 14, type: 'black', name: 'Dominique', position: this.randomNearbyPosition(coords) }, 95 | { id: 15, type: 'black', name: 'Tim', position: this.randomNearbyPosition(coords) }, 96 | ] 97 | }; 98 | 99 | //console.log('this.state.type', this.state.type) 100 | //console.log('ubers[this.state.type]', ubers[this.state.type]); 101 | return ubers[this.state.type]; 102 | } 103 | 104 | onPassengerLocationChange(coords) { 105 | this.setState({ 106 | passengerLocation: coords, 107 | ubers: this.generateRandomUbers(coords), 108 | }); 109 | 110 | //console.log(this.state.passengerLocation); 111 | //console.log(this.state.ubers); 112 | } 113 | 114 | updateTypeCallback() { 115 | this.setState({ubers: this.generateRandomUbers(this.state.passengerLocation)}); 116 | } 117 | 118 | updateRegionCallback() { 119 | let coords = { 120 | latitude: this.state.mapRegion.latitude, 121 | longitude: this.state.mapRegion.longitude, 122 | } 123 | this.onPassengerLocationChange(coords); 124 | } 125 | 126 | submitPickupLocation() { 127 | this.writePassengerData(this.state.passengerLocation, this.state.ubers[this.getRandomInt(0,4)]); 128 | 129 | this.props.navigator.push( { 130 | id: 'DestinationLocationPageId', 131 | name: 'DestinationLocationPage', 132 | pickUpLocation: this.state.passengerLocation, 133 | }); 134 | } 135 | 136 | writePassengerData(coords, uber) { 137 | const userDAO = this.props.firebaseDAO.database().ref('users/' + this.state.user.uid); 138 | 139 | userDAO.update({ 140 | pickUpLocation: coords, 141 | uber: uber, 142 | }); 143 | } 144 | 145 | render() { 146 | //Too much magic!!!! 147 | const {user, passengerLocation, mapRegion, ubers, gpsAccuracy} = this.state; 148 | //console.log('render()'); 149 | //console.log('user: ' , user); 150 | //console.log('passengerLocation: ', passengerLocation); 151 | //console.log('mapRegion: ' , mapRegion); 152 | //console.log('gpsAccuracy: ' , gpsAccuracy); 153 | //console.log('ubers: ' , ubers); 154 | 155 | if (user && passengerLocation && mapRegion && ubers) { 156 | return ( 157 | 158 | 161 | {this.onPassengerLocationChange(e.nativeEvent.coordinate)}}/> 163 | 164 | {ubers.map((uber, index) => 165 | 167 | )} 168 | 169 | 170 | 171 | } 179 | //currentLocation={true} 180 | //currentLocationLabel='Current Location' 181 | 182 | onPress={(data, details = null) => { 183 | //'details' is initialized on fetchDetails = true 184 | let newRegion = { 185 | latitude: details.geometry.location.lat, 186 | longitude: details.geometry.location.lng, 187 | latitudeDelta: this.state.mapRegion.latitudeDelta, 188 | longitudeDelta: this.state.mapRegion.longitudeDelta, 189 | } 190 | 191 | //investigate why it's required to use a callback function 192 | //to force a re-render() 193 | this.setState({mapRegion: newRegion}, this.updateRegionCallback); 194 | 195 | //console.log('details', details); 196 | //console.log('lat', details.geometry.location.lat); 197 | //console.log('lng', details.geometry.location.lng); 198 | }} 199 | query={{ 200 | key: 'AIzaSyDF_xPY72A9X_dy13ud06Lg6Die6BJ_98M', 201 | language: 'es', 202 | types: 'geocode', }} 203 | /> 204 | 205 | 206 | 207 | { this.setState({type: 'pool'}, this.updateTypeCallback); }}> 210 | Uber Pool 211 | 212 | 213 | { this.setState({type: 'x'}, this.updateTypeCallback); }}> 216 | Uber X 217 | 218 | 219 | { this.setState({type: 'black'}, this.updateTypeCallback); }}> 222 | Uber Black 223 | 224 | 225 | 226 | 227 | 228 | {'Set PickUp Location'.toUpperCase()} 229 | 230 | 231 | 232 | ); 233 | } else { 234 | return ( 235 | 236 | ); 237 | } 238 | } 239 | } 240 | 241 | const styles = StyleSheet.create({ 242 | container: { 243 | flex: 1, 244 | justifyContent: 'center', 245 | backgroundColor: '#F5FCFF', 246 | }, 247 | map: { 248 | ...StyleSheet.absoluteFillObject, 249 | }, 250 | uber: { 251 | flex: 1, 252 | width: 20, 253 | height: 20, 254 | }, 255 | searchContainer: { 256 | flex: 1, 257 | }, 258 | typeUberContainer: { 259 | flexDirection: 'row', 260 | justifyContent: 'center', 261 | }, 262 | submitContainer: { 263 | //flexDirection: 'row', 264 | //justifyContent: 'center', 265 | }, 266 | button: { 267 | alignItems: 'center', 268 | backgroundColor: 'rgba(255,255,255,0.7)', 269 | borderRadius: 10, 270 | padding: 10, 271 | margin: 10, 272 | }, 273 | buttonActive: { 274 | backgroundColor: 'black', 275 | }, 276 | textActive: { 277 | color: 'white', 278 | }, 279 | submitButton: { 280 | backgroundColor: 'black', 281 | color: 'white', 282 | padding: 10, 283 | marginTop: 2, 284 | textAlign: 'center', 285 | fontSize: 16 286 | }, 287 | }); 288 | 289 | const searchBarStyles = StyleSheet.create({ 290 | //textInputContainer : { 291 | //backgroundColor : 'rgba(0,0,0,0)', 292 | //}, 293 | 294 | //loader : { 295 | //backgroundColor : "#999999" 296 | //}, 297 | 298 | //TODO >> find out a smarter way to make room for the search icon 299 | searchIcon: { 300 | margin: 13, 301 | marginLeft: 8, 302 | marginRight: 0, 303 | }, 304 | }); 305 | -------------------------------------------------------------------------------- /android_ios/pages/RegisterPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | TextInput, 6 | Button, 7 | StyleSheet, 8 | TouchableHighlight, 9 | ActivityIndicator, 10 | Navigator, 11 | } from 'react-native'; 12 | 13 | var usernamePlaceholder = "username@domain.tld"; 14 | var passwordPlaceholder = "password"; 15 | var passwordAgainPlaceholder = "repeat password"; 16 | var submit = "Sign Up"; 17 | var cancel = "Cancel"; 18 | 19 | export default class RegisterPage extends Component { 20 | state = { 21 | email: null, 22 | password: null, 23 | passwordAgain: null, 24 | //used to display a progress indicator if waiting for a network response. 25 | loading: false, 26 | } 27 | 28 | register() { 29 | //while waiting for the firebase server show the loading indicator. 30 | this.setState({ loading: true }); 31 | 32 | if (!this.state.email && !this.state.password && !this.state.passwordAgain) { 33 | this.setState({ loading: false }); 34 | alert('Please fill all the required fields.'); 35 | return; 36 | } 37 | 38 | if (this.state.password === this.state.passwordAgain) { 39 | //make a call to firebase to create a new user. 40 | this.props.firebaseDAO.auth().createUserWithEmailAndPassword( 41 | this.state.email, this.state.password).then(() => { 42 | //catch are methods that we call on the Promise returned from 43 | //createUserWithEmailAndPassword 44 | this.setState({ 45 | //clear out the fields when the user logs in and hide the progress indicator. 46 | email: null, 47 | password: null, 48 | passwordAgain: null, 49 | loading: false 50 | }); 51 | 52 | //redirect to the login page 53 | this.props.navigator.push( { 54 | id: 'RegisteredPageId', 55 | name: 'RegisteredPage', 56 | }); 57 | }).catch((error) => { 58 | //leave the fields filled when an error occurs and hide the progress indicator. 59 | this.setState({ loading: false }); 60 | alert("Account creation failed: " + error.message ); 61 | }); 62 | } else { 63 | alert('Password doesn\'t match'); 64 | this.setState({ 65 | password: null, 66 | passwordAgain: null, 67 | loading: false 68 | }); 69 | } 70 | } 71 | 72 | render() { 73 | if (!this.state.loading) { 74 | if (this.props.usernamePlaceholder) 75 | {usernamePlaceholder=this.props.usernamePlaceholder}; 76 | if (this.props.passwordPlaceholder) 77 | {passwordPlaceholder=this.props.passwordPlaceholder}; 78 | if (this.props.passwordAgainPlaceholder) 79 | {passwordPlaceholder=this.props.passwordAgainPlaceholder}; 80 | if (this.props.submit) 81 | {submit=this.props.submit}; 82 | if (this.props.cancel) 83 | {cancel=this.props.cancel}; 84 | 85 | return ( 86 | 87 | 88 | 89 | {this.props.title} 90 | 91 | 92 | this.setState({email: text})} 95 | value={this.state.email} /> 96 | this.setState({password: text})} 100 | value={this.state.password} /> 101 | this.setState({passwordAgain: text})} 105 | value={this.state.passwordAgain} /> 106 | 107 | 108 | 110 | {submit} 111 | 112 | 113 | this.props.navigator.push( 115 | { 116 | id: 'LoginPageId', 117 | name: 'LoginPage', 118 | sceneConfig: Navigator.SceneConfigs.FloatFromLeft, 119 | } 120 | )}> 121 | {cancel} 122 | 123 | 124 | 125 | 126 | ); 127 | } else { 128 | return ( 129 | 130 | 131 | 132 | 133 | 134 | ); 135 | } 136 | } 137 | } 138 | 139 | const RegisterPageStyles = StyleSheet.create({ 140 | container: { 141 | alignItems: 'stretch', 142 | flex: 1 143 | }, 144 | body: { 145 | flex: 9, 146 | flexDirection: 'row', 147 | alignItems: 'center', 148 | justifyContent: 'center', 149 | backgroundColor: '#F5FCFF', 150 | }, 151 | title: { 152 | fontSize: 25, 153 | textAlign: 'center', 154 | margin: 5, 155 | }, 156 | textInput: { 157 | height: 40, 158 | width: 250, 159 | borderWidth: 1 160 | }, 161 | transparentButton: { 162 | marginTop: 5, 163 | padding: 15, 164 | }, 165 | transparentButtonText: { 166 | color: '#0485A9', 167 | textAlign: 'center', 168 | fontSize: 16 169 | }, 170 | primaryButton: { 171 | marginTop: 10, 172 | padding: 10, 173 | backgroundColor: 'black', 174 | }, 175 | primaryButtonText: { 176 | color: '#FFF', 177 | textAlign: 'center', 178 | fontSize: 18 179 | }, 180 | image: { 181 | width: 100, 182 | height: 100 183 | }, 184 | }); 185 | -------------------------------------------------------------------------------- /android_ios/pages/RegisteredPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | StyleSheet, 6 | } from 'react-native'; 7 | 8 | var title = "Sign up completed!" 9 | var description = "You can now login, redirecting ..." 10 | 11 | export default class RegisteredPage extends Component { 12 | componentWillMount() { 13 | var navigator = this.props.navigator; 14 | setTimeout(() => { 15 | navigator.replace({ 16 | id: 'LoginPageId', 17 | }); 18 | }, 3000); 19 | } 20 | 21 | render() { 22 | if (this.props.title) {title=this.props.title}; 23 | if (this.props.description) {description=this.props.description}; 24 | 25 | return ( 26 | 27 | 28 | {title} 29 | 30 | {description} 31 | 32 | 33 | ); 34 | } 35 | } 36 | 37 | const RegisteredPageStyles = StyleSheet.create({ 38 | container: { 39 | flex: 1, 40 | flexDirection: 'row', 41 | alignItems: 'center', 42 | justifyContent: 'center', 43 | }, 44 | title: { 45 | fontSize: 25, 46 | textAlign: 'center', 47 | margin: 5, 48 | }, 49 | loading: { 50 | fontSize: 15, 51 | textAlign: 'center', 52 | margin: 10, 53 | }, 54 | }); 55 | -------------------------------------------------------------------------------- /android_ios/pages/ResultPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | StyleSheet, 6 | ActivityIndicator, 7 | } from 'react-native'; 8 | 9 | export default class ResultPage extends Component { 10 | state = { 11 | user: null, 12 | pickupLocation: null, 13 | destinationLocation: null, 14 | uber: null, 15 | loading: true, 16 | } 17 | 18 | componentWillMount() { 19 | //while waiting for the firebase server show the loading indicator. 20 | const userDAO = this.props.firebaseDAO.database().ref('users/' + this.props.firebaseDAO.auth().currentUser.uid); 21 | 22 | //https://firebase.google.com/docs/database/web/read-and-write#read_data_once 23 | userDAO.once('value', (data) => { 24 | this.setState({ 25 | user: this.props.firebaseDAO.auth().currentUser, 26 | pickUpLocation: data.val().pickUpLocation, 27 | destinationLocation: data.val().destinationLocation, 28 | uber: data.val().uber, 29 | loading: false, 30 | }); 31 | }); 32 | } 33 | 34 | render() { 35 | if (!this.state.loading) { 36 | return ( 37 | 38 | 39 | 40 | {this.state.user.email} 41 | 42 | 43 | PickUp at: {JSON.stringify(this.state.pickUpLocation, null, 4)} 44 | Leave at: {JSON.stringify(this.state.destinationLocation, null, 4)} 45 | Uber: {JSON.stringify(this.state.uber, null, 4)} 46 | 47 | 48 | 49 | ); 50 | } else { 51 | return ( 52 | 53 | 54 | 55 | 56 | 57 | ); 58 | } 59 | } 60 | } 61 | 62 | const style = StyleSheet.create({ 63 | container: { 64 | alignItems: 'stretch', 65 | flex: 1 66 | }, 67 | body: { 68 | flex: 9, 69 | flexDirection: 'row', 70 | alignItems: 'center', 71 | justifyContent: 'center', 72 | backgroundColor: '#F5FCFF', 73 | }, 74 | title: { 75 | fontSize: 25, 76 | textAlign: 'center', 77 | margin: 5, 78 | }, 79 | underline: { 80 | textDecorationLine: 'underline', 81 | }, 82 | entry: { 83 | fontSize: 20, 84 | textAlign: 'center', 85 | margin: 5, 86 | }, 87 | }); 88 | -------------------------------------------------------------------------------- /android_ios/pages/SplashPage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | Image, 6 | StyleSheet, 7 | } from 'react-native'; 8 | 9 | var logo = require('../../assets/img/logo.png') 10 | 11 | export default class SplashPage extends Component { 12 | componentWillMount() { 13 | var navigator = this.props.navigator; 14 | setTimeout(() => { 15 | navigator.replace({ 16 | id: 'LoginPageId', 17 | }); 18 | }, 3000); 19 | } 20 | 21 | render() { 22 | if (this.props.logo) { logo = this.props.logo }; 23 | 24 | return ( 25 | 26 | 27 | {this.props.title} 28 | 29 | ); 30 | } 31 | } 32 | 33 | const SplashPageStyles = StyleSheet.create({ 34 | container: { 35 | flex: 1, 36 | flexDirection: 'row', 37 | alignItems: 'center', 38 | justifyContent: 'center', 39 | }, 40 | splash: { 41 | fontSize: 20, 42 | textAlign: 'center', 43 | margin: 10, 44 | }, 45 | }); 46 | -------------------------------------------------------------------------------- /assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/assets/img/logo.png -------------------------------------------------------------------------------- /assets/img/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/assets/img/search.png -------------------------------------------------------------------------------- /assets/img/uber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/assets/img/uber.png -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import React, { AppRegistry } from 'react-native'; 2 | import UberFooBarReactNativeFirebase from './android_ios/index'; 3 | 4 | AppRegistry.registerComponent('UberFooBarReactNativeFirebase', () => UberFooBarReactNativeFirebase); 5 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React, { AppRegistry } from 'react-native'; 2 | import UberFooBarReactNativeFirebase from './android_ios/index'; 3 | 4 | AppRegistry.registerComponent('UberFooBarReactNativeFirebase', () => UberFooBarReactNativeFirebase); 5 | -------------------------------------------------------------------------------- /ios/UberFooBarReactNativeFirebase-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/UberFooBarReactNativeFirebase-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/UberFooBarReactNativeFirebase.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 /* UberFooBarReactNativeFirebaseTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.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 /* UberFooBarReactNativeFirebaseTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.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 | 48029CC5023241BF89C88464 /* libAirMaps.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C6B8CEE6D54E4F9BAB8ADE0E /* libAirMaps.a */; }; 39 | /* End PBXBuildFile section */ 40 | 41 | /* Begin PBXContainerItemProxy section */ 42 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 45 | proxyType = 2; 46 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 47 | remoteInfo = RCTActionSheet; 48 | }; 49 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 50 | isa = PBXContainerItemProxy; 51 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 52 | proxyType = 2; 53 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 54 | remoteInfo = RCTGeolocation; 55 | }; 56 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 57 | isa = PBXContainerItemProxy; 58 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 59 | proxyType = 2; 60 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 61 | remoteInfo = RCTImage; 62 | }; 63 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 66 | proxyType = 2; 67 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 68 | remoteInfo = RCTNetwork; 69 | }; 70 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 73 | proxyType = 2; 74 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 75 | remoteInfo = RCTVibration; 76 | }; 77 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 80 | proxyType = 1; 81 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 82 | remoteInfo = UberFooBarReactNativeFirebase; 83 | }; 84 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 87 | proxyType = 2; 88 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 89 | remoteInfo = RCTSettings; 90 | }; 91 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 96 | remoteInfo = RCTWebSocket; 97 | }; 98 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 101 | proxyType = 2; 102 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 103 | remoteInfo = React; 104 | }; 105 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 106 | isa = PBXContainerItemProxy; 107 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 108 | proxyType = 1; 109 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 110 | remoteInfo = "UberFooBarReactNativeFirebase-tvOS"; 111 | }; 112 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 113 | isa = PBXContainerItemProxy; 114 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 115 | proxyType = 2; 116 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 117 | remoteInfo = "RCTImage-tvOS"; 118 | }; 119 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 120 | isa = PBXContainerItemProxy; 121 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 122 | proxyType = 2; 123 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 124 | remoteInfo = "RCTLinking-tvOS"; 125 | }; 126 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 127 | isa = PBXContainerItemProxy; 128 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 129 | proxyType = 2; 130 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 131 | remoteInfo = "RCTNetwork-tvOS"; 132 | }; 133 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 134 | isa = PBXContainerItemProxy; 135 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 136 | proxyType = 2; 137 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 138 | remoteInfo = "RCTSettings-tvOS"; 139 | }; 140 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 141 | isa = PBXContainerItemProxy; 142 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 143 | proxyType = 2; 144 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 145 | remoteInfo = "RCTText-tvOS"; 146 | }; 147 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 148 | isa = PBXContainerItemProxy; 149 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 150 | proxyType = 2; 151 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 152 | remoteInfo = "RCTWebSocket-tvOS"; 153 | }; 154 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 155 | isa = PBXContainerItemProxy; 156 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 157 | proxyType = 2; 158 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 159 | remoteInfo = "React-tvOS"; 160 | }; 161 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 162 | isa = PBXContainerItemProxy; 163 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 164 | proxyType = 2; 165 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 166 | remoteInfo = yoga; 167 | }; 168 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 169 | isa = PBXContainerItemProxy; 170 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 171 | proxyType = 2; 172 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 173 | remoteInfo = "yoga-tvOS"; 174 | }; 175 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 176 | isa = PBXContainerItemProxy; 177 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 178 | proxyType = 2; 179 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 180 | remoteInfo = cxxreact; 181 | }; 182 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 183 | isa = PBXContainerItemProxy; 184 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 185 | proxyType = 2; 186 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 187 | remoteInfo = "cxxreact-tvOS"; 188 | }; 189 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 190 | isa = PBXContainerItemProxy; 191 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 192 | proxyType = 2; 193 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 194 | remoteInfo = jschelpers; 195 | }; 196 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 197 | isa = PBXContainerItemProxy; 198 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 199 | proxyType = 2; 200 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 201 | remoteInfo = "jschelpers-tvOS"; 202 | }; 203 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 204 | isa = PBXContainerItemProxy; 205 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 206 | proxyType = 2; 207 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 208 | remoteInfo = RCTAnimation; 209 | }; 210 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 211 | isa = PBXContainerItemProxy; 212 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 213 | proxyType = 2; 214 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 215 | remoteInfo = "RCTAnimation-tvOS"; 216 | }; 217 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 218 | isa = PBXContainerItemProxy; 219 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 220 | proxyType = 2; 221 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 222 | remoteInfo = RCTLinking; 223 | }; 224 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 225 | isa = PBXContainerItemProxy; 226 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 227 | proxyType = 2; 228 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 229 | remoteInfo = RCTText; 230 | }; 231 | /* End PBXContainerItemProxy section */ 232 | 233 | /* Begin PBXFileReference section */ 234 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 235 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 236 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 237 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 238 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 239 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 240 | 00E356EE1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UberFooBarReactNativeFirebaseTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 241 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 242 | 00E356F21AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UberFooBarReactNativeFirebaseTests.m; sourceTree = ""; }; 243 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 244 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 245 | 13B07F961A680F5B00A75B9A /* UberFooBarReactNativeFirebase.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UberFooBarReactNativeFirebase.app; sourceTree = BUILT_PRODUCTS_DIR; }; 246 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = UberFooBarReactNativeFirebase/AppDelegate.h; sourceTree = ""; }; 247 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = UberFooBarReactNativeFirebase/AppDelegate.m; sourceTree = ""; }; 248 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 249 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = UberFooBarReactNativeFirebase/Images.xcassets; sourceTree = ""; }; 250 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = UberFooBarReactNativeFirebase/Info.plist; sourceTree = ""; }; 251 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = UberFooBarReactNativeFirebase/main.m; sourceTree = ""; }; 252 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 253 | 2D02E47B1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "UberFooBarReactNativeFirebase-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 254 | 2D02E4901E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UberFooBarReactNativeFirebase-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 255 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 256 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 257 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 258 | 47BAE76FDB4547A597EF19BB /* AirMaps.xcodeproj */ = {isa = PBXFileReference; name = "AirMaps.xcodeproj"; path = "../node_modules/react-native-maps/ios/AirMaps.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 259 | C6B8CEE6D54E4F9BAB8ADE0E /* libAirMaps.a */ = {isa = PBXFileReference; name = "libAirMaps.a"; path = "libAirMaps.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 260 | /* End PBXFileReference section */ 261 | 262 | /* Begin PBXFrameworksBuildPhase section */ 263 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 264 | isa = PBXFrameworksBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 272 | isa = PBXFrameworksBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 276 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 277 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 278 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 279 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 280 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 281 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 282 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 283 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 284 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 285 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 286 | 48029CC5023241BF89C88464 /* libAirMaps.a in Frameworks */, 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 291 | isa = PBXFrameworksBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 295 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 296 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 297 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 298 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 299 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 300 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 301 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 306 | isa = PBXFrameworksBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | /* End PBXFrameworksBuildPhase section */ 313 | 314 | /* Begin PBXGroup section */ 315 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 316 | isa = PBXGroup; 317 | children = ( 318 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 319 | ); 320 | name = Products; 321 | sourceTree = ""; 322 | }; 323 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 324 | isa = PBXGroup; 325 | children = ( 326 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 327 | ); 328 | name = Products; 329 | sourceTree = ""; 330 | }; 331 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 332 | isa = PBXGroup; 333 | children = ( 334 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 335 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 336 | ); 337 | name = Products; 338 | sourceTree = ""; 339 | }; 340 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 341 | isa = PBXGroup; 342 | children = ( 343 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 344 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 345 | ); 346 | name = Products; 347 | sourceTree = ""; 348 | }; 349 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 350 | isa = PBXGroup; 351 | children = ( 352 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 353 | ); 354 | name = Products; 355 | sourceTree = ""; 356 | }; 357 | 00E356EF1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests */ = { 358 | isa = PBXGroup; 359 | children = ( 360 | 00E356F21AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.m */, 361 | 00E356F01AD99517003FC87E /* Supporting Files */, 362 | ); 363 | path = UberFooBarReactNativeFirebaseTests; 364 | sourceTree = ""; 365 | }; 366 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 367 | isa = PBXGroup; 368 | children = ( 369 | 00E356F11AD99517003FC87E /* Info.plist */, 370 | ); 371 | name = "Supporting Files"; 372 | sourceTree = ""; 373 | }; 374 | 139105B71AF99BAD00B5F7CC /* Products */ = { 375 | isa = PBXGroup; 376 | children = ( 377 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 378 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 379 | ); 380 | name = Products; 381 | sourceTree = ""; 382 | }; 383 | 139FDEE71B06529A00C62182 /* Products */ = { 384 | isa = PBXGroup; 385 | children = ( 386 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 387 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 388 | ); 389 | name = Products; 390 | sourceTree = ""; 391 | }; 392 | 13B07FAE1A68108700A75B9A /* UberFooBarReactNativeFirebase */ = { 393 | isa = PBXGroup; 394 | children = ( 395 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 396 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 397 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 398 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 399 | 13B07FB61A68108700A75B9A /* Info.plist */, 400 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 401 | 13B07FB71A68108700A75B9A /* main.m */, 402 | ); 403 | name = UberFooBarReactNativeFirebase; 404 | sourceTree = ""; 405 | }; 406 | 146834001AC3E56700842450 /* Products */ = { 407 | isa = PBXGroup; 408 | children = ( 409 | 146834041AC3E56700842450 /* libReact.a */, 410 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 411 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 412 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 413 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 414 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 415 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 416 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 417 | ); 418 | name = Products; 419 | sourceTree = ""; 420 | }; 421 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 422 | isa = PBXGroup; 423 | children = ( 424 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 425 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 426 | ); 427 | name = Products; 428 | sourceTree = ""; 429 | }; 430 | 78C398B11ACF4ADC00677621 /* Products */ = { 431 | isa = PBXGroup; 432 | children = ( 433 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 434 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 435 | ); 436 | name = Products; 437 | sourceTree = ""; 438 | }; 439 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 440 | isa = PBXGroup; 441 | children = ( 442 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 443 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 444 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 445 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 446 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 447 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 448 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 449 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 450 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 451 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 452 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 453 | 47BAE76FDB4547A597EF19BB /* AirMaps.xcodeproj */, 454 | ); 455 | name = Libraries; 456 | sourceTree = ""; 457 | }; 458 | 832341B11AAA6A8300B99B32 /* Products */ = { 459 | isa = PBXGroup; 460 | children = ( 461 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 462 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 463 | ); 464 | name = Products; 465 | sourceTree = ""; 466 | }; 467 | 83CBB9F61A601CBA00E9B192 = { 468 | isa = PBXGroup; 469 | children = ( 470 | 13B07FAE1A68108700A75B9A /* UberFooBarReactNativeFirebase */, 471 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 472 | 00E356EF1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests */, 473 | 83CBBA001A601CBA00E9B192 /* Products */, 474 | ); 475 | indentWidth = 2; 476 | sourceTree = ""; 477 | tabWidth = 2; 478 | }; 479 | 83CBBA001A601CBA00E9B192 /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 13B07F961A680F5B00A75B9A /* UberFooBarReactNativeFirebase.app */, 483 | 00E356EE1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.xctest */, 484 | 2D02E47B1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOS.app */, 485 | 2D02E4901E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOSTests.xctest */, 486 | ); 487 | name = Products; 488 | sourceTree = ""; 489 | }; 490 | /* End PBXGroup section */ 491 | 492 | /* Begin PBXNativeTarget section */ 493 | 00E356ED1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests */ = { 494 | isa = PBXNativeTarget; 495 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebaseTests" */; 496 | buildPhases = ( 497 | 00E356EA1AD99517003FC87E /* Sources */, 498 | 00E356EB1AD99517003FC87E /* Frameworks */, 499 | 00E356EC1AD99517003FC87E /* Resources */, 500 | ); 501 | buildRules = ( 502 | ); 503 | dependencies = ( 504 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 505 | ); 506 | name = UberFooBarReactNativeFirebaseTests; 507 | productName = UberFooBarReactNativeFirebaseTests; 508 | productReference = 00E356EE1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.xctest */; 509 | productType = "com.apple.product-type.bundle.unit-test"; 510 | }; 511 | 13B07F861A680F5B00A75B9A /* UberFooBarReactNativeFirebase */ = { 512 | isa = PBXNativeTarget; 513 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebase" */; 514 | buildPhases = ( 515 | 13B07F871A680F5B00A75B9A /* Sources */, 516 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 517 | 13B07F8E1A680F5B00A75B9A /* Resources */, 518 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 519 | ); 520 | buildRules = ( 521 | ); 522 | dependencies = ( 523 | ); 524 | name = UberFooBarReactNativeFirebase; 525 | productName = "Hello World"; 526 | productReference = 13B07F961A680F5B00A75B9A /* UberFooBarReactNativeFirebase.app */; 527 | productType = "com.apple.product-type.application"; 528 | }; 529 | 2D02E47A1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOS */ = { 530 | isa = PBXNativeTarget; 531 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebase-tvOS" */; 532 | buildPhases = ( 533 | 2D02E4771E0B4A5D006451C7 /* Sources */, 534 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 535 | 2D02E4791E0B4A5D006451C7 /* Resources */, 536 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 537 | ); 538 | buildRules = ( 539 | ); 540 | dependencies = ( 541 | ); 542 | name = "UberFooBarReactNativeFirebase-tvOS"; 543 | productName = "UberFooBarReactNativeFirebase-tvOS"; 544 | productReference = 2D02E47B1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOS.app */; 545 | productType = "com.apple.product-type.application"; 546 | }; 547 | 2D02E48F1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOSTests */ = { 548 | isa = PBXNativeTarget; 549 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebase-tvOSTests" */; 550 | buildPhases = ( 551 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 552 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 553 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 554 | ); 555 | buildRules = ( 556 | ); 557 | dependencies = ( 558 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 559 | ); 560 | name = "UberFooBarReactNativeFirebase-tvOSTests"; 561 | productName = "UberFooBarReactNativeFirebase-tvOSTests"; 562 | productReference = 2D02E4901E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOSTests.xctest */; 563 | productType = "com.apple.product-type.bundle.unit-test"; 564 | }; 565 | /* End PBXNativeTarget section */ 566 | 567 | /* Begin PBXProject section */ 568 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 569 | isa = PBXProject; 570 | attributes = { 571 | LastUpgradeCheck = 610; 572 | ORGANIZATIONNAME = Facebook; 573 | TargetAttributes = { 574 | 00E356ED1AD99517003FC87E = { 575 | CreatedOnToolsVersion = 6.2; 576 | TestTargetID = 13B07F861A680F5B00A75B9A; 577 | }; 578 | 2D02E47A1E0B4A5D006451C7 = { 579 | CreatedOnToolsVersion = 8.2.1; 580 | ProvisioningStyle = Automatic; 581 | }; 582 | 2D02E48F1E0B4A5D006451C7 = { 583 | CreatedOnToolsVersion = 8.2.1; 584 | ProvisioningStyle = Automatic; 585 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 586 | }; 587 | }; 588 | }; 589 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "UberFooBarReactNativeFirebase" */; 590 | compatibilityVersion = "Xcode 3.2"; 591 | developmentRegion = English; 592 | hasScannedForEncodings = 0; 593 | knownRegions = ( 594 | en, 595 | Base, 596 | ); 597 | mainGroup = 83CBB9F61A601CBA00E9B192; 598 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 599 | projectDirPath = ""; 600 | projectReferences = ( 601 | { 602 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 603 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 604 | }, 605 | { 606 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 607 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 608 | }, 609 | { 610 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 611 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 612 | }, 613 | { 614 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 615 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 616 | }, 617 | { 618 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 619 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 620 | }, 621 | { 622 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 623 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 624 | }, 625 | { 626 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 627 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 628 | }, 629 | { 630 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 631 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 632 | }, 633 | { 634 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 635 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 636 | }, 637 | { 638 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 639 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 640 | }, 641 | { 642 | ProductGroup = 146834001AC3E56700842450 /* Products */; 643 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 644 | }, 645 | ); 646 | projectRoot = ""; 647 | targets = ( 648 | 13B07F861A680F5B00A75B9A /* UberFooBarReactNativeFirebase */, 649 | 00E356ED1AD99517003FC87E /* UberFooBarReactNativeFirebaseTests */, 650 | 2D02E47A1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOS */, 651 | 2D02E48F1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOSTests */, 652 | ); 653 | }; 654 | /* End PBXProject section */ 655 | 656 | /* Begin PBXReferenceProxy section */ 657 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 658 | isa = PBXReferenceProxy; 659 | fileType = archive.ar; 660 | path = libRCTActionSheet.a; 661 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 662 | sourceTree = BUILT_PRODUCTS_DIR; 663 | }; 664 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 665 | isa = PBXReferenceProxy; 666 | fileType = archive.ar; 667 | path = libRCTGeolocation.a; 668 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 669 | sourceTree = BUILT_PRODUCTS_DIR; 670 | }; 671 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 672 | isa = PBXReferenceProxy; 673 | fileType = archive.ar; 674 | path = libRCTImage.a; 675 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 676 | sourceTree = BUILT_PRODUCTS_DIR; 677 | }; 678 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 679 | isa = PBXReferenceProxy; 680 | fileType = archive.ar; 681 | path = libRCTNetwork.a; 682 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 683 | sourceTree = BUILT_PRODUCTS_DIR; 684 | }; 685 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 686 | isa = PBXReferenceProxy; 687 | fileType = archive.ar; 688 | path = libRCTVibration.a; 689 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 690 | sourceTree = BUILT_PRODUCTS_DIR; 691 | }; 692 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 693 | isa = PBXReferenceProxy; 694 | fileType = archive.ar; 695 | path = libRCTSettings.a; 696 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 697 | sourceTree = BUILT_PRODUCTS_DIR; 698 | }; 699 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 700 | isa = PBXReferenceProxy; 701 | fileType = archive.ar; 702 | path = libRCTWebSocket.a; 703 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 704 | sourceTree = BUILT_PRODUCTS_DIR; 705 | }; 706 | 146834041AC3E56700842450 /* libReact.a */ = { 707 | isa = PBXReferenceProxy; 708 | fileType = archive.ar; 709 | path = libReact.a; 710 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 711 | sourceTree = BUILT_PRODUCTS_DIR; 712 | }; 713 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 714 | isa = PBXReferenceProxy; 715 | fileType = archive.ar; 716 | path = "libRCTImage-tvOS.a"; 717 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 718 | sourceTree = BUILT_PRODUCTS_DIR; 719 | }; 720 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 721 | isa = PBXReferenceProxy; 722 | fileType = archive.ar; 723 | path = "libRCTLinking-tvOS.a"; 724 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 725 | sourceTree = BUILT_PRODUCTS_DIR; 726 | }; 727 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 728 | isa = PBXReferenceProxy; 729 | fileType = archive.ar; 730 | path = "libRCTNetwork-tvOS.a"; 731 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 732 | sourceTree = BUILT_PRODUCTS_DIR; 733 | }; 734 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 735 | isa = PBXReferenceProxy; 736 | fileType = archive.ar; 737 | path = "libRCTSettings-tvOS.a"; 738 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 739 | sourceTree = BUILT_PRODUCTS_DIR; 740 | }; 741 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 742 | isa = PBXReferenceProxy; 743 | fileType = archive.ar; 744 | path = "libRCTText-tvOS.a"; 745 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 746 | sourceTree = BUILT_PRODUCTS_DIR; 747 | }; 748 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 749 | isa = PBXReferenceProxy; 750 | fileType = archive.ar; 751 | path = "libRCTWebSocket-tvOS.a"; 752 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 753 | sourceTree = BUILT_PRODUCTS_DIR; 754 | }; 755 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 756 | isa = PBXReferenceProxy; 757 | fileType = archive.ar; 758 | path = libReact.a; 759 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 760 | sourceTree = BUILT_PRODUCTS_DIR; 761 | }; 762 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 763 | isa = PBXReferenceProxy; 764 | fileType = archive.ar; 765 | path = libyoga.a; 766 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 767 | sourceTree = BUILT_PRODUCTS_DIR; 768 | }; 769 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 770 | isa = PBXReferenceProxy; 771 | fileType = archive.ar; 772 | path = libyoga.a; 773 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 774 | sourceTree = BUILT_PRODUCTS_DIR; 775 | }; 776 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 777 | isa = PBXReferenceProxy; 778 | fileType = archive.ar; 779 | path = libcxxreact.a; 780 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 781 | sourceTree = BUILT_PRODUCTS_DIR; 782 | }; 783 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 784 | isa = PBXReferenceProxy; 785 | fileType = archive.ar; 786 | path = libcxxreact.a; 787 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 788 | sourceTree = BUILT_PRODUCTS_DIR; 789 | }; 790 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 791 | isa = PBXReferenceProxy; 792 | fileType = archive.ar; 793 | path = libjschelpers.a; 794 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 795 | sourceTree = BUILT_PRODUCTS_DIR; 796 | }; 797 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 798 | isa = PBXReferenceProxy; 799 | fileType = archive.ar; 800 | path = libjschelpers.a; 801 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 802 | sourceTree = BUILT_PRODUCTS_DIR; 803 | }; 804 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 805 | isa = PBXReferenceProxy; 806 | fileType = archive.ar; 807 | path = libRCTAnimation.a; 808 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 809 | sourceTree = BUILT_PRODUCTS_DIR; 810 | }; 811 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 812 | isa = PBXReferenceProxy; 813 | fileType = archive.ar; 814 | path = "libRCTAnimation-tvOS.a"; 815 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 816 | sourceTree = BUILT_PRODUCTS_DIR; 817 | }; 818 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 819 | isa = PBXReferenceProxy; 820 | fileType = archive.ar; 821 | path = libRCTLinking.a; 822 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 823 | sourceTree = BUILT_PRODUCTS_DIR; 824 | }; 825 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 826 | isa = PBXReferenceProxy; 827 | fileType = archive.ar; 828 | path = libRCTText.a; 829 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 830 | sourceTree = BUILT_PRODUCTS_DIR; 831 | }; 832 | /* End PBXReferenceProxy section */ 833 | 834 | /* Begin PBXResourcesBuildPhase section */ 835 | 00E356EC1AD99517003FC87E /* Resources */ = { 836 | isa = PBXResourcesBuildPhase; 837 | buildActionMask = 2147483647; 838 | files = ( 839 | ); 840 | runOnlyForDeploymentPostprocessing = 0; 841 | }; 842 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 843 | isa = PBXResourcesBuildPhase; 844 | buildActionMask = 2147483647; 845 | files = ( 846 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 847 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 848 | ); 849 | runOnlyForDeploymentPostprocessing = 0; 850 | }; 851 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 852 | isa = PBXResourcesBuildPhase; 853 | buildActionMask = 2147483647; 854 | files = ( 855 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 856 | ); 857 | runOnlyForDeploymentPostprocessing = 0; 858 | }; 859 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 860 | isa = PBXResourcesBuildPhase; 861 | buildActionMask = 2147483647; 862 | files = ( 863 | ); 864 | runOnlyForDeploymentPostprocessing = 0; 865 | }; 866 | /* End PBXResourcesBuildPhase section */ 867 | 868 | /* Begin PBXShellScriptBuildPhase section */ 869 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 870 | isa = PBXShellScriptBuildPhase; 871 | buildActionMask = 2147483647; 872 | files = ( 873 | ); 874 | inputPaths = ( 875 | ); 876 | name = "Bundle React Native code and images"; 877 | outputPaths = ( 878 | ); 879 | runOnlyForDeploymentPostprocessing = 0; 880 | shellPath = /bin/sh; 881 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 882 | }; 883 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 884 | isa = PBXShellScriptBuildPhase; 885 | buildActionMask = 2147483647; 886 | files = ( 887 | ); 888 | inputPaths = ( 889 | ); 890 | name = "Bundle React Native Code And Images"; 891 | outputPaths = ( 892 | ); 893 | runOnlyForDeploymentPostprocessing = 0; 894 | shellPath = /bin/sh; 895 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 896 | }; 897 | /* End PBXShellScriptBuildPhase section */ 898 | 899 | /* Begin PBXSourcesBuildPhase section */ 900 | 00E356EA1AD99517003FC87E /* Sources */ = { 901 | isa = PBXSourcesBuildPhase; 902 | buildActionMask = 2147483647; 903 | files = ( 904 | 00E356F31AD99517003FC87E /* UberFooBarReactNativeFirebaseTests.m in Sources */, 905 | ); 906 | runOnlyForDeploymentPostprocessing = 0; 907 | }; 908 | 13B07F871A680F5B00A75B9A /* Sources */ = { 909 | isa = PBXSourcesBuildPhase; 910 | buildActionMask = 2147483647; 911 | files = ( 912 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 913 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 914 | ); 915 | runOnlyForDeploymentPostprocessing = 0; 916 | }; 917 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 918 | isa = PBXSourcesBuildPhase; 919 | buildActionMask = 2147483647; 920 | files = ( 921 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 922 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 923 | ); 924 | runOnlyForDeploymentPostprocessing = 0; 925 | }; 926 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 927 | isa = PBXSourcesBuildPhase; 928 | buildActionMask = 2147483647; 929 | files = ( 930 | 2DCD954D1E0B4F2C00145EB5 /* UberFooBarReactNativeFirebaseTests.m in Sources */, 931 | ); 932 | runOnlyForDeploymentPostprocessing = 0; 933 | }; 934 | /* End PBXSourcesBuildPhase section */ 935 | 936 | /* Begin PBXTargetDependency section */ 937 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 938 | isa = PBXTargetDependency; 939 | target = 13B07F861A680F5B00A75B9A /* UberFooBarReactNativeFirebase */; 940 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 941 | }; 942 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 943 | isa = PBXTargetDependency; 944 | target = 2D02E47A1E0B4A5D006451C7 /* UberFooBarReactNativeFirebase-tvOS */; 945 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 946 | }; 947 | /* End PBXTargetDependency section */ 948 | 949 | /* Begin PBXVariantGroup section */ 950 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 951 | isa = PBXVariantGroup; 952 | children = ( 953 | 13B07FB21A68108700A75B9A /* Base */, 954 | ); 955 | name = LaunchScreen.xib; 956 | path = UberFooBarReactNativeFirebase; 957 | sourceTree = ""; 958 | }; 959 | /* End PBXVariantGroup section */ 960 | 961 | /* Begin XCBuildConfiguration section */ 962 | 00E356F61AD99517003FC87E /* Debug */ = { 963 | isa = XCBuildConfiguration; 964 | buildSettings = { 965 | BUNDLE_LOADER = "$(TEST_HOST)"; 966 | GCC_PREPROCESSOR_DEFINITIONS = ( 967 | "DEBUG=1", 968 | "$(inherited)", 969 | ); 970 | INFOPLIST_FILE = UberFooBarReactNativeFirebaseTests/Info.plist; 971 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 972 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 973 | OTHER_LDFLAGS = ( 974 | "-ObjC", 975 | "-lc++", 976 | ); 977 | PRODUCT_NAME = "$(TARGET_NAME)"; 978 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberFooBarReactNativeFirebase.app/UberFooBarReactNativeFirebase"; 979 | LIBRARY_SEARCH_PATHS = ( 980 | "$(inherited)", 981 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 982 | ); 983 | HEADER_SEARCH_PATHS = ( 984 | "$(inherited)", 985 | "$(SRCROOT)/../node_modules/react-native-maps/ios/**", 986 | ); 987 | }; 988 | name = Debug; 989 | }; 990 | 00E356F71AD99517003FC87E /* Release */ = { 991 | isa = XCBuildConfiguration; 992 | buildSettings = { 993 | BUNDLE_LOADER = "$(TEST_HOST)"; 994 | COPY_PHASE_STRIP = NO; 995 | INFOPLIST_FILE = UberFooBarReactNativeFirebaseTests/Info.plist; 996 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 997 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 998 | OTHER_LDFLAGS = ( 999 | "-ObjC", 1000 | "-lc++", 1001 | ); 1002 | PRODUCT_NAME = "$(TARGET_NAME)"; 1003 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberFooBarReactNativeFirebase.app/UberFooBarReactNativeFirebase"; 1004 | LIBRARY_SEARCH_PATHS = ( 1005 | "$(inherited)", 1006 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1007 | ); 1008 | HEADER_SEARCH_PATHS = ( 1009 | "$(inherited)", 1010 | "$(SRCROOT)/../node_modules/react-native-maps/ios/**", 1011 | ); 1012 | }; 1013 | name = Release; 1014 | }; 1015 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1016 | isa = XCBuildConfiguration; 1017 | buildSettings = { 1018 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1019 | CURRENT_PROJECT_VERSION = 1; 1020 | DEAD_CODE_STRIPPING = NO; 1021 | INFOPLIST_FILE = UberFooBarReactNativeFirebase/Info.plist; 1022 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1023 | OTHER_LDFLAGS = ( 1024 | "$(inherited)", 1025 | "-ObjC", 1026 | "-lc++", 1027 | ); 1028 | PRODUCT_NAME = UberFooBarReactNativeFirebase; 1029 | VERSIONING_SYSTEM = "apple-generic"; 1030 | HEADER_SEARCH_PATHS = ( 1031 | "$(inherited)", 1032 | "$(SRCROOT)/../node_modules/react-native-maps/ios/**", 1033 | ); 1034 | }; 1035 | name = Debug; 1036 | }; 1037 | 13B07F951A680F5B00A75B9A /* Release */ = { 1038 | isa = XCBuildConfiguration; 1039 | buildSettings = { 1040 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1041 | CURRENT_PROJECT_VERSION = 1; 1042 | INFOPLIST_FILE = UberFooBarReactNativeFirebase/Info.plist; 1043 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1044 | OTHER_LDFLAGS = ( 1045 | "$(inherited)", 1046 | "-ObjC", 1047 | "-lc++", 1048 | ); 1049 | PRODUCT_NAME = UberFooBarReactNativeFirebase; 1050 | VERSIONING_SYSTEM = "apple-generic"; 1051 | HEADER_SEARCH_PATHS = ( 1052 | "$(inherited)", 1053 | "$(SRCROOT)/../node_modules/react-native-maps/ios/**", 1054 | ); 1055 | }; 1056 | name = Release; 1057 | }; 1058 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1059 | isa = XCBuildConfiguration; 1060 | buildSettings = { 1061 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1062 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1063 | CLANG_ANALYZER_NONNULL = YES; 1064 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1065 | CLANG_WARN_INFINITE_RECURSION = YES; 1066 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1067 | DEBUG_INFORMATION_FORMAT = dwarf; 1068 | ENABLE_TESTABILITY = YES; 1069 | GCC_NO_COMMON_BLOCKS = YES; 1070 | INFOPLIST_FILE = "UberFooBarReactNativeFirebase-tvOS/Info.plist"; 1071 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1072 | OTHER_LDFLAGS = ( 1073 | "-ObjC", 1074 | "-lc++", 1075 | ); 1076 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberFooBarReactNativeFirebase-tvOS"; 1077 | PRODUCT_NAME = "$(TARGET_NAME)"; 1078 | SDKROOT = appletvos; 1079 | TARGETED_DEVICE_FAMILY = 3; 1080 | TVOS_DEPLOYMENT_TARGET = 9.2; 1081 | LIBRARY_SEARCH_PATHS = ( 1082 | "$(inherited)", 1083 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1084 | ); 1085 | HEADER_SEARCH_PATHS = ( 1086 | "$(inherited)", 1087 | "$(SRCROOT)/../node_modules/react-native-maps/ios/**", 1088 | ); 1089 | }; 1090 | name = Debug; 1091 | }; 1092 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1093 | isa = XCBuildConfiguration; 1094 | buildSettings = { 1095 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1096 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1097 | CLANG_ANALYZER_NONNULL = YES; 1098 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1099 | CLANG_WARN_INFINITE_RECURSION = YES; 1100 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1101 | COPY_PHASE_STRIP = NO; 1102 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1103 | GCC_NO_COMMON_BLOCKS = YES; 1104 | INFOPLIST_FILE = "UberFooBarReactNativeFirebase-tvOS/Info.plist"; 1105 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1106 | OTHER_LDFLAGS = ( 1107 | "-ObjC", 1108 | "-lc++", 1109 | ); 1110 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberFooBarReactNativeFirebase-tvOS"; 1111 | PRODUCT_NAME = "$(TARGET_NAME)"; 1112 | SDKROOT = appletvos; 1113 | TARGETED_DEVICE_FAMILY = 3; 1114 | TVOS_DEPLOYMENT_TARGET = 9.2; 1115 | LIBRARY_SEARCH_PATHS = ( 1116 | "$(inherited)", 1117 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1118 | ); 1119 | HEADER_SEARCH_PATHS = ( 1120 | "$(inherited)", 1121 | "$(SRCROOT)/../node_modules/react-native-maps/ios/**", 1122 | ); 1123 | }; 1124 | name = Release; 1125 | }; 1126 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1127 | isa = XCBuildConfiguration; 1128 | buildSettings = { 1129 | BUNDLE_LOADER = "$(TEST_HOST)"; 1130 | CLANG_ANALYZER_NONNULL = YES; 1131 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1132 | CLANG_WARN_INFINITE_RECURSION = YES; 1133 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1134 | DEBUG_INFORMATION_FORMAT = dwarf; 1135 | ENABLE_TESTABILITY = YES; 1136 | GCC_NO_COMMON_BLOCKS = YES; 1137 | INFOPLIST_FILE = "UberFooBarReactNativeFirebase-tvOSTests/Info.plist"; 1138 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1139 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberFooBarReactNativeFirebase-tvOSTests"; 1140 | PRODUCT_NAME = "$(TARGET_NAME)"; 1141 | SDKROOT = appletvos; 1142 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberFooBarReactNativeFirebase-tvOS.app/UberFooBarReactNativeFirebase-tvOS"; 1143 | TVOS_DEPLOYMENT_TARGET = 10.1; 1144 | LIBRARY_SEARCH_PATHS = ( 1145 | "$(inherited)", 1146 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1147 | ); 1148 | }; 1149 | name = Debug; 1150 | }; 1151 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1152 | isa = XCBuildConfiguration; 1153 | buildSettings = { 1154 | BUNDLE_LOADER = "$(TEST_HOST)"; 1155 | CLANG_ANALYZER_NONNULL = YES; 1156 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1157 | CLANG_WARN_INFINITE_RECURSION = YES; 1158 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1159 | COPY_PHASE_STRIP = NO; 1160 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1161 | GCC_NO_COMMON_BLOCKS = YES; 1162 | INFOPLIST_FILE = "UberFooBarReactNativeFirebase-tvOSTests/Info.plist"; 1163 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1164 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberFooBarReactNativeFirebase-tvOSTests"; 1165 | PRODUCT_NAME = "$(TARGET_NAME)"; 1166 | SDKROOT = appletvos; 1167 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberFooBarReactNativeFirebase-tvOS.app/UberFooBarReactNativeFirebase-tvOS"; 1168 | TVOS_DEPLOYMENT_TARGET = 10.1; 1169 | LIBRARY_SEARCH_PATHS = ( 1170 | "$(inherited)", 1171 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1172 | ); 1173 | }; 1174 | name = Release; 1175 | }; 1176 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1177 | isa = XCBuildConfiguration; 1178 | buildSettings = { 1179 | ALWAYS_SEARCH_USER_PATHS = NO; 1180 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1181 | CLANG_CXX_LIBRARY = "libc++"; 1182 | CLANG_ENABLE_MODULES = YES; 1183 | CLANG_ENABLE_OBJC_ARC = YES; 1184 | CLANG_WARN_BOOL_CONVERSION = YES; 1185 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1186 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1187 | CLANG_WARN_EMPTY_BODY = YES; 1188 | CLANG_WARN_ENUM_CONVERSION = YES; 1189 | CLANG_WARN_INT_CONVERSION = YES; 1190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1191 | CLANG_WARN_UNREACHABLE_CODE = YES; 1192 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1193 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1194 | COPY_PHASE_STRIP = NO; 1195 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1196 | GCC_C_LANGUAGE_STANDARD = gnu99; 1197 | GCC_DYNAMIC_NO_PIC = NO; 1198 | GCC_OPTIMIZATION_LEVEL = 0; 1199 | GCC_PREPROCESSOR_DEFINITIONS = ( 1200 | "DEBUG=1", 1201 | "$(inherited)", 1202 | ); 1203 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1204 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1205 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1206 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1207 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1208 | GCC_WARN_UNUSED_FUNCTION = YES; 1209 | GCC_WARN_UNUSED_VARIABLE = YES; 1210 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1211 | MTL_ENABLE_DEBUG_INFO = YES; 1212 | ONLY_ACTIVE_ARCH = YES; 1213 | SDKROOT = iphoneos; 1214 | }; 1215 | name = Debug; 1216 | }; 1217 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1218 | isa = XCBuildConfiguration; 1219 | buildSettings = { 1220 | ALWAYS_SEARCH_USER_PATHS = NO; 1221 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1222 | CLANG_CXX_LIBRARY = "libc++"; 1223 | CLANG_ENABLE_MODULES = YES; 1224 | CLANG_ENABLE_OBJC_ARC = YES; 1225 | CLANG_WARN_BOOL_CONVERSION = YES; 1226 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1227 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1228 | CLANG_WARN_EMPTY_BODY = YES; 1229 | CLANG_WARN_ENUM_CONVERSION = YES; 1230 | CLANG_WARN_INT_CONVERSION = YES; 1231 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1232 | CLANG_WARN_UNREACHABLE_CODE = YES; 1233 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1234 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1235 | COPY_PHASE_STRIP = YES; 1236 | ENABLE_NS_ASSERTIONS = NO; 1237 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1238 | GCC_C_LANGUAGE_STANDARD = gnu99; 1239 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1240 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1241 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1242 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1243 | GCC_WARN_UNUSED_FUNCTION = YES; 1244 | GCC_WARN_UNUSED_VARIABLE = YES; 1245 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1246 | MTL_ENABLE_DEBUG_INFO = NO; 1247 | SDKROOT = iphoneos; 1248 | VALIDATE_PRODUCT = YES; 1249 | }; 1250 | name = Release; 1251 | }; 1252 | /* End XCBuildConfiguration section */ 1253 | 1254 | /* Begin XCConfigurationList section */ 1255 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebaseTests" */ = { 1256 | isa = XCConfigurationList; 1257 | buildConfigurations = ( 1258 | 00E356F61AD99517003FC87E /* Debug */, 1259 | 00E356F71AD99517003FC87E /* Release */, 1260 | ); 1261 | defaultConfigurationIsVisible = 0; 1262 | defaultConfigurationName = Release; 1263 | }; 1264 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebase" */ = { 1265 | isa = XCConfigurationList; 1266 | buildConfigurations = ( 1267 | 13B07F941A680F5B00A75B9A /* Debug */, 1268 | 13B07F951A680F5B00A75B9A /* Release */, 1269 | ); 1270 | defaultConfigurationIsVisible = 0; 1271 | defaultConfigurationName = Release; 1272 | }; 1273 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebase-tvOS" */ = { 1274 | isa = XCConfigurationList; 1275 | buildConfigurations = ( 1276 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1277 | 2D02E4981E0B4A5E006451C7 /* Release */, 1278 | ); 1279 | defaultConfigurationIsVisible = 0; 1280 | defaultConfigurationName = Release; 1281 | }; 1282 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberFooBarReactNativeFirebase-tvOSTests" */ = { 1283 | isa = XCConfigurationList; 1284 | buildConfigurations = ( 1285 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1286 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1287 | ); 1288 | defaultConfigurationIsVisible = 0; 1289 | defaultConfigurationName = Release; 1290 | }; 1291 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "UberFooBarReactNativeFirebase" */ = { 1292 | isa = XCConfigurationList; 1293 | buildConfigurations = ( 1294 | 83CBBA201A601CBA00E9B192 /* Debug */, 1295 | 83CBBA211A601CBA00E9B192 /* Release */, 1296 | ); 1297 | defaultConfigurationIsVisible = 0; 1298 | defaultConfigurationName = Release; 1299 | }; 1300 | /* End XCConfigurationList section */ 1301 | }; 1302 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1303 | } 1304 | -------------------------------------------------------------------------------- /ios/UberFooBarReactNativeFirebase.xcodeproj/xcshareddata/xcschemes/UberFooBarReactNativeFirebase-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/UberFooBarReactNativeFirebase.xcodeproj/xcshareddata/xcschemes/UberFooBarReactNativeFirebase.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/UberFooBarReactNativeFirebase/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/UberFooBarReactNativeFirebase/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:@"UberFooBarReactNativeFirebase" 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/UberFooBarReactNativeFirebase/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/UberFooBarReactNativeFirebase/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/UberFooBarReactNativeFirebase/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/UberFooBarReactNativeFirebase/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/UberFooBarReactNativeFirebaseTests/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/UberFooBarReactNativeFirebaseTests/UberFooBarReactNativeFirebaseTests.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 UberFooBarReactNativeFirebaseTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation UberFooBarReactNativeFirebaseTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UberFooBarReactNativeFirebase", 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 | "release-android": "cd android && ./gradlew assembleRelease" 9 | }, 10 | "dependencies": { 11 | "firebase": "^4.0.0", 12 | "react": "~15.4.1", 13 | "react-native": "0.42.0", 14 | "react-native-google-places-autocomplete": "^1.2.11", 15 | "react-native-maps": "0.13.0" 16 | }, 17 | "devDependencies": { 18 | "babel-jest": "19.0.0", 19 | "babel-preset-react-native": "1.9.1", 20 | "jest": "19.0.2", 21 | "react-test-renderer": "~15.4.1" 22 | }, 23 | "jest": { 24 | "preset": "react-native" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /provision/000-setup-swap-partition.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | swapsize="2G" 5 | 6 | #does the swap file already exist? 7 | if grep "swapfile" /etc/fstab >/dev/null 2>&1; then 8 | printf "%s\\n" 'Swapfile found. No changes made.' 9 | else 10 | printf "%s\\n" 'Swapfile missing. Setting it up ...' 11 | sudo fallocate -l "${swapsize}" /swapfile 12 | sudo chmod 600 /swapfile 13 | sudo mkswap /swapfile 14 | sudo swapon /swapfile 15 | printf "%s\\n" '/swapfile none swap defaults 0 0' | sudo tee -a /etc/fstab 16 | fi 17 | -------------------------------------------------------------------------------- /provision/000-setup-usb-udev-rules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | test -f /etc/udev/rules.d/51-android.rules && exit || : 5 | 6 | #add extra usb rules, http://askubuntu.com/questions/461729/ubuntu-is-not-detecting-my-android-device 7 | cat << EOF | sudo tee /etc/udev/rules.d/51-android.rules 8 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666", GROUP="${USER}" 9 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666", GROUP="${USER}" 10 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666", GROUP="${USER}" 11 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666", GROUP="${USER}" 12 | SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666", GROUP="${USER}" 13 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666", GROUP="${USER}" 14 | SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666", GROUP="${USER}" 15 | SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666", GROUP="${USER}" 16 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666", GROUP="${USER}" 17 | SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666", GROUP="${USER}" 18 | SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666", GROUP="${USER}" 19 | SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666", GROUP="${USER}" 20 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666", GROUP="${USER}" 21 | SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666", GROUP="${USER}" 22 | SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666", GROUP="${USER}" 23 | SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666", GROUP="${USER}" 24 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666", GROUP="${USER}" 25 | SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666", GROUP="${USER}" 26 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666", GROUP="${USER}" 27 | SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666", GROUP="${USER}" 28 | SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666", GROUP="${USER}" 29 | SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666", GROUP="${USER}" 30 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666", GROUP="${USER}" 31 | SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666", GROUP="${USER}" 32 | SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666", GROUP="${USER}" 33 | SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666", GROUP="${USER}" 34 | SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666", GROUP="${USER}" 35 | SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666", GROUP="${USER}" 36 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666", GROUP="${USER}" 37 | SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666", GROUP="${USER}" 38 | SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666", GROUP="${USER}" 39 | EOF 40 | 41 | sudo chmod a+r /etc/udev/rules.d/51-android.rules 42 | sudo udevadm control --reload-rules 43 | sudo service udev restart 44 | sudo udevadm trigger 45 | -------------------------------------------------------------------------------- /provision/001-install-base-dependencies.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | _last_apt_get_update() { 5 | [ -z "${1}" ] && cache_seconds="3600" || cache_seconds="${1}" 6 | cache_file="/var/cache/apt/pkgcache.bin" 7 | if [ -f "${cache_file}" ]; then 8 | last="$(stat -c %Y "${cache_file}")" 9 | now="$(date +'%s')" 10 | diff="$(($now - $last))" 11 | if [ "${diff}" -lt "${cache_seconds}" ]; then 12 | return 1 13 | else 14 | return 0 15 | fi 16 | else 17 | return 0 18 | fi 19 | } 20 | 21 | #enable google repository and download chrome developer console 22 | if [ ! -f /etc/apt/sources.list.d/google-chrome.list ]; then 23 | wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 24 | printf "%s\\n" "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list 25 | _require_apt_get_update="1" 26 | fi 27 | 28 | if [ ! -f /etc/apt/sources.list.d/npm.list ]; then 29 | wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - 30 | VERSION="node_7.x" 31 | DISTRO="$(lsb_release -s -c)" 32 | printf "%s\\n" "deb https://deb.nodesource.com/${VERSION} ${DISTRO} main" | sudo tee /etc/apt/sources.list.d/npm.list 33 | _require_apt_get_update="1" 34 | fi 35 | 36 | if [ ! -f /etc/apt/sources.list.d/yarn.list ]; then 37 | wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - 38 | printf "%s\\n" "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list 39 | _require_apt_get_update="1" 40 | fi 41 | 42 | if ! command -v "watchman" >/dev/null 2>&1; then 43 | if ! command -v "add-apt-repository" >/dev/null 2>&1; then 44 | sudo apt-get install software-properties-common 45 | fi 46 | sudo add-apt-repository ppa:mwhiteley/watchman-daily 47 | _require_apt_get_update="1" 48 | #git clone https://github.com/facebook/watchman.git 49 | #cd watchman 50 | #./autogen.sh 51 | #./configure 52 | #make 53 | #sudo make install 54 | fi 55 | 56 | if ! command -v "java" >/dev/null 2>&1; then 57 | if ! command -v "add-apt-repository" >/dev/null 2>&1; then 58 | sudo apt-get install software-properties-common 59 | fi 60 | sudo add-apt-repository ppa:webupd8team/java -y 61 | printf "%s\\n" 'oracle-java8-installer shared/accepted-oracle-license-v1-1 select true' | \ 62 | sudo /usr/bin/debconf-set-selections 63 | _require_apt_get_update="1" 64 | fi 65 | 66 | if [ X"${_require_apt_get_update}" = X"1" ] || _last_apt_get_update 86400; then 67 | sudo apt-get update 68 | fi 69 | 70 | dpkg -l | grep squid-deb-proxy-client >/dev/null 2>&1 || \ 71 | sudo apt-get install --no-install-recommends -y squid-deb-proxy-client 72 | 73 | #install them everytime to ensure updates 74 | sudo apt-get install --no-install-recommends -y \ 75 | ant \ 76 | autoconf \ 77 | automake \ 78 | expect \ 79 | git \ 80 | google-chrome-stable \ 81 | htop \ 82 | lib32stdc++6 \ 83 | lib32z1 \ 84 | oracle-java8-installer \ 85 | python-dev \ 86 | nodejs \ 87 | watchman \ 88 | yarn 89 | 90 | command -v "n" >/dev/null 2>&1 || sudo npm install -g n 91 | sudo n stable 92 | #sudo npm install -g yarn 93 | sudo yarn self-update || : 94 | -------------------------------------------------------------------------------- /provision/002-install-android-sdk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | ANDROID_SDK_FILENAME="android-sdk_r24.2-linux.tgz" 5 | ANDROID_SDK_FULLPATH="/tmp/${ANDROID_SDK_FILENAME}" 6 | ANDROID_URL_SDK="http://dl.google.com/android/${ANDROID_SDK_FILENAME}" 7 | 8 | if [ ! -d ~/android-sdk-linux/ ]; then 9 | [ ! -f "${ANDROID_SDK_FULLPATH}" ] && wget \ 10 | --progress=bar:force "${ANDROID_URL_SDK}" -O "${ANDROID_SDK_FULLPATH}" 11 | [ ! -d /tmp/android-sdk-linux/ ] && ( cd /tmp && tar -xzf "${ANDROID_SDK_FULLPATH}") 12 | cp -r /tmp/android-sdk-linux ~ 13 | fi 14 | 15 | grep 'ANDROID_HOME' ~/.android_rc || \ 16 | printf "%s\\n" "export ANDROID_HOME=${HOME}/android-sdk-linux" >> ~/.android_rc 17 | grep 'JAVA_HOME' ~/.android_rc || \ 18 | #printf "%s\\n" "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> ~/.android_rc 19 | printf "%s\\n" "export JAVA_HOME=/usr/lib/jvm/java-8-oracle/" >> ~/.android_rc 20 | grep 'android-sdk-linux/tools' ~/.android_rc || \ 21 | printf "%s\\n" "export PATH=${PATH}:${HOME}/android-sdk-linux/tools:${HOME}/android-sdk-linux/platform-tools" >> ~/.android_rc 22 | 23 | grep '~/.android_rc' ~/.bashrc >/dev/null 2>&1 || \ 24 | printf "%s\\n" ". ~/.android_rc" >> ~/.bashrc 25 | 26 | if [ ! -d ~/android-sdk-linux/platforms/android-23 ]; then 27 | expect -c ' 28 | set timeout -1 ; 29 | spawn ~/android-sdk-linux/tools/android update sdk -u --all --filter platform-tools,tools,build-tools-23,build-tools-23.0.1,build-tools-23.0.2,build-tools-23.1,build-tools-23.1.1,build-tools-23.1.2,build-tools-23,build-tools-23.0.1,android-22,android-23,addon-google_apis_x86-google-23,extra-android-support,extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services,sys-img-armeabi-v7a-android-23 30 | expect { 31 | "Do you accept the license" { exp_send "y\r" ; exp_continue } 32 | eof 33 | }' 34 | fi 35 | 36 | #http://stackoverflow.com/questions/40392345/ionic-build-error-you-have-not-accepted-the-license-agreements-of-the-followin 37 | mkdir -p ~/android-sdk-linux/licenses/ || : 38 | echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > ~/android-sdk-linux/licenses/android-sdk-license 39 | 40 | command -v "adb" >/dev/null 2>&1 || sudo ln -s ~/android-sdk-linux/platform-tools/adb /usr/bin/adb 41 | -------------------------------------------------------------------------------- /provision/002-speed-up-android-builds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | [ -d ~/.gradle ] || mkdir ~/.gradle 5 | 6 | #enable gradle daemon 7 | grep 'org.gradle.daemon=true' ~/.gradle/gradle.properties >/dev/null 2>&1 || \ 8 | printf "%s\\n" "org.gradle.daemon=true" >> ~/.gradle/gradle.properties 9 | 10 | #enable parallel builds 11 | grep 'org.gradle.parallel=true' ~/.gradle/gradle.properties >/dev/null 2>&1 || \ 12 | printf "%s\\n" "org.gradle.parallel=true" >> ~/.gradle/gradle.properties 13 | -------------------------------------------------------------------------------- /provision/003-install-react-native.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | command -v "react-native" >/dev/null 2>&1 || sudo yarn global add react-native-cli 5 | command -v "flow" >/dev/null 2>&1 || sudo yarn global add flow 6 | command -v "babel" >/dev/null 2>&1 || sudo yarn global add babel-cli 7 | 8 | #https://github.com/yarnpkg/yarn/issues/1436 9 | whoami="$(whoami)" 10 | sudo chown -R ${whoami}:${whoami} ~/.yarn* ~/.cache/yarn/ || : 11 | #https://github.com/yarnpkg/yarn/issues/2937 12 | sudo chown -R ${whoami}:${whoami} /tmp/v8-compile-cache/ || : 13 | -------------------------------------------------------------------------------- /provision/004-install-app-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | . ~/.android_rc 5 | 6 | #setup offline cache 7 | mkdir -p ~/npm-cache 8 | yarn config set yarn-offline-mirror ~/npm-cache 9 | 10 | for dir in /home/vagrant/* /vagrant/*; do 11 | [ ! -d "${dir}" ] && continue 12 | [ ! -f "${dir}"/index.ios.js ] && continue 13 | [ ! -f "${dir}"/index.android.js ] && continue 14 | 15 | ( 16 | cd "${dir}" 17 | #download and install node app dependencies 18 | yarn 19 | 20 | #download and install android app dependencies 21 | cd android && ./gradlew dependencies 22 | ) 23 | done 24 | -------------------------------------------------------------------------------- /provision/005-dedup-app-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | for dir in /home/vagrant/* /vagrant/*; do 5 | [ ! -d "${dir}" ] && continue 6 | [ ! -f "${dir}"/index.ios.js ] && continue 7 | [ ! -f "${dir}"/index.android.js ] && continue 8 | 9 | ( 10 | cd "${dir}" 11 | #prevent http://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc 12 | npm dedupe 13 | grep 'fs.inotify.max_user_watches=524288' /etc/sysctl.conf || \ 14 | printf "%s\\n" 'fs.inotify.max_user_watches=524288' | sudo tee -a /etc/sysctl.conf && sudo sysctl -p 15 | ) 16 | done 17 | -------------------------------------------------------------------------------- /provision/005-fix-own-permitions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | #ensure vagrant user owns everything in sensible directories 5 | [ -d /vagrant ] && sudo chown -R vagrant:vagrant /vagrant 6 | whoami="$(whoami)" 7 | sudo chown -R "${whoami}":"${whoami}" ~ 8 | -------------------------------------------------------------------------------- /provision/099-welcome-message.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cat > ~/.welcome-msg <<'EOF' 4 | 5 | ----------- 6 | Quick start 7 | ----------- 8 | 9 | $ cd ~/*native* 10 | $ react-native start & #react-native packager 11 | $ react-native run-android #or run-ios 12 | 13 | Sometimes gradle success building the apk but fail to upload it to the device, 14 | in such cases restart the adb server and upload it manually: 15 | 16 | $ adb kill-server && adb start-server 17 | $ adb install "$(find ~/*native* -name "app-debug.apk")" 18 | EOF 19 | 20 | grep 'cat ~/.welcome-msg' ~/.bashrc >/dev/null 2>&1 || \ 21 | printf "%s\\n" "cat ~/.welcome-msg" >> ~/.bashrc 22 | -------------------------------------------------------------------------------- /provision/always-000-setup-adb-connection.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | . ~/.android_rc 5 | 6 | #connect to IP if specified 7 | if [ -n "${_ADB_EMULATOR_IP_ADDRESS}" ]; then 8 | # Local version of ADB_EMULATOR_IP_ADDRESS with no whitespace 9 | export _ADB_EMULATOR_IP_ADDRESS=#{ENV['ADB_EMULATOR_IP_ADDRESS']} 10 | export _ADB_EMULATOR_IP_ADDRESS="$(printf "%s" "${_ADB_EMULATOR_IP_ADDRESS}" | tr -d '[[:space:]]')" 11 | adb connect "${_ADB_EMULATOR_IP_ADDRESS}" 12 | # Appears to need some time before the adb reverse command to correctly identify the device 13 | printf "%s\\n" "Waiting for adb connection to stabilize" 14 | sleep 5 15 | fi 16 | 17 | #open live-reload port 18 | for time in 1 3 5 10 15 20 25 30 40 60; do 19 | adb reverse tcp:8081 tcp:8081 && break 20 | printf "%b\\n" "\007\c" 21 | printf "%s\\n" "Killing adb, and trying in ${time} seconds" 22 | printf "%s\\n" "Confirm the PC is authorized to connect to your device, unplug/plug your device if required" 23 | printf "%s\\n" "****************************************" 24 | adb kill-server 25 | sleep "${time}" 26 | done 27 | 28 | adb devices || : 29 | -------------------------------------------------------------------------------- /provision/extra-000-install-gotty.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | if [ ! -f /usr/bin/gotty ]; then 5 | if [ ! -f /tmp/gotty_linux_amd64.tar.gz ]; then 6 | wget --progress=bar:force \ 7 | https://github.com/yudai/gotty/releases/download/v0.0.13/gotty_linux_amd64.tar.gz -O /tmp/gotty_linux_amd64.tar.gz 8 | fi 9 | sudo tar zxf /tmp/gotty_linux_amd64.tar.gz -C /usr/bin/ 10 | fi 11 | 12 | if ! grep gotty ~/.bashrc >/dev/null 2>&1; then 13 | printf "%s\\n" "alias gotty.share.screen='gotty -p 8080 -c foobar:foobar -w tmux new -A -s foobar bash'" >> ~/.bashrc 14 | fi 15 | -------------------------------------------------------------------------------- /provision/extra-000-install-shundle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | if [ ! -f ~/.shundle.rc ]; then 5 | cat > ~/.shundle.rc <<'EOF' 6 | if [ -f ~/.shundle/bundle/shundle/shundle ]; then 7 | . ~/.shundle/bundle/shundle/shundle 8 | Bundle='javier-lopez/shundle' 9 | #SHUNDLE_ENV_VERBOSE="0" 10 | #SHUNDLE_ENV_DEBUG="0" 11 | SHUNDLE_ENV_COLOR="1" 12 | #Bundle='javier-lopez/shundle-plugins/todo-rememberator' 13 | #REMEMBERATOR_EVERY="5" 14 | Bundle="gh:javier-lopez/shundle-plugins/eternalize" 15 | ETERNALIZE_PATH="${HOME}/.eternalize-data" 16 | Bundle="github:javier-lopez/shundle-plugins/colorize" 17 | COLORIZE_THEME="default-dark" 18 | COLORIZE_PS="yujie" 19 | COLORIZE_UTILS="sky" 20 | Bundle="javier-lopez/shundle-plugins/aliazator.git" 21 | #ALIAZATOR_PLUGINS="none" 22 | #ALIAZATOR_PLUGINS="minimal" 23 | ALIAZATOR_PLUGINS="installed" 24 | #ALIAZATOR_PLUGINS="all" 25 | #ALIAZATOR_PLUGINS="custom:minimal,git,apt-get,vagrant,vim" 26 | #ALIAZATOR_CLOUD="url" 27 | Bundle="gh:javier-lopez/shundle-plugins/autocd" 28 | #AUTOCD_FILE="/tmp/autocd.59YlpZ50" 29 | else 30 | alias shundle-install='git clone --depth=1 \ 31 | https://github.com/javier-lopez/shundle ~/.shundle/bundle/shundle && \ 32 | . ~/.bashrc && ~/.shundle/bundle/shundle/bin/shundle install && \ 33 | bash' 34 | fi 35 | EOF 36 | fi 37 | 38 | if [ ! -d ~/.shundle/bundle/shundle/.git/ ]; then 39 | git clone --depth=1 https://github.com/javier-lopez/shundle ~/.shundle/bundle/shundle 40 | else 41 | (cd ~/.shundle/bundle/shundle/ && git pull || :) 42 | fi 43 | 44 | SHUNDLE_HOME=~/.shundle SHUNDLE_RC=~/.shundle.rc ~/.shundle/bundle/shundle/bin/shundle install || : 45 | grep '~/.shundle.rc' ~/.bashrc >/dev/null 2>&1 || printf "%s\\n" ". ~/.shundle.rc" >> ~/.bashrc 46 | -------------------------------------------------------------------------------- /provision/extra-000-install-tmux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | if ! command -v "tmux" >/dev/null 2>&1; then 5 | sudo apt-get install --no-install-recommends -y tmux 6 | fi 7 | 8 | rm -rf ~/.tmux.conf 9 | wget --no-check-certificate -q \ 10 | https://raw.githubusercontent.com/javier-lopez/dotfiles/master/.tmux.conf -O ~/.tmux.conf 11 | 12 | if [ ! -d ~/.tmux/plugins/tundle/.git/ ]; then 13 | git clone --depth=1 https://github.com/javier-lopez/tundle ~/.tmux/plugins/tundle 14 | else 15 | (cd ~/.tmux/plugins/tundle && git pull || :) 16 | fi 17 | 18 | sh ~/.tmux/plugins/tundle/scripts/install_plugins.sh || : 19 | 20 | #wget -q https://github.com/tmate-io/tmate/releases/download/2.2.1/tmate-2.2.1-static-linux-amd64.tar.gz -O /tmp/tmate.tar.gz 21 | #(cd /tmp && tar zxvf /tmp/tmate.tar.gz) 22 | #chmod +x /tmp/tmate-2.2.1-static-linux-amd64/tmate 23 | #sudo mv /tmp/tmate-2.2.1-static-linux-amd64/tmate /usr/bin/ 24 | -------------------------------------------------------------------------------- /provision/extra-000-install-vim-objects-in-bash.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | rm -rf ~/.inputrc 5 | wget --no-check-certificate -q \ 6 | https://raw.githubusercontent.com/minos-org/bash-minos-settings/master/etc%23%23inputrc -O ~/.inputrc || : 7 | -------------------------------------------------------------------------------- /provision/extra-000-install-vim.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -xe 4 | 5 | if ! dpkg -l | grep vim-nox >/dev/null 2>&1; then 6 | sudo apt-get install --no-install-recommends -y vim-nox git 7 | fi 8 | 9 | rm -rf ~/.vimrc 10 | wget --no-check-certificate -q \ 11 | https://raw.githubusercontent.com/javier-lopez/dotfiles/master/.vimrc -O ~/.vimrc 12 | 13 | if [ ! -d ~/.vim/bundle/vundle/.git/ ]; then 14 | git clone --depth=1 https://git::@github.com/javier-lopez/vundle.git ~/.vim/bundle/vundle/ 15 | else 16 | (cd ~/.vim/bundle/vundle/ && git pull || :) 17 | fi 18 | 19 | vim -es -u ~/.vimrc -c "BundleInstall" -c qa >/dev/null 2>&1 || : 20 | -------------------------------------------------------------------------------- /provision/repackage-000-delete-non-portable-config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | rm -rf ~/.gitconfig 5 | 6 | #remove history 7 | cat /dev/null > ~/.bash_history 8 | -------------------------------------------------------------------------------- /provision/repackage-000-delete-tmp-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | rm -rf /tmp/android*.tgz 5 | sudo apt-get clean 6 | sudo dd if=/dev/zero of=/EMPTY bs=1M || : 7 | sudo rm -f /EMPTY 8 | -------------------------------------------------------------------------------- /provision/repackage-099-remove-app.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | #remove app, it's copied from the host machine on every `vagrant up` 5 | rm -rf ~/*react-native* 6 | -------------------------------------------------------------------------------- /provision/repackage-vagrant-box.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -xe 3 | 4 | CURRENT_DIR="$(cd "$(dirname "${0}")" && pwd)" 5 | BASE_PATH="$(cd "${CURRENT_DIR}"/../ && pwd)" 6 | ORIG_VM_NAME="$(awk '/#base-image/{print $(NF-1)}' "${CURRENT_DIR}"/../Vagrantfile | awk -F'/' '{gsub(/"/,"");print $2}')" 7 | MODIFIED_VM_NAME="${ORIG_VM_NAME}-$(basename "${BASE_PATH}")" 8 | 9 | test -n "${MODIFIED_VM_NAME}" #verify variable actually contains data 10 | 11 | cp "${CURRENT_DIR}"/../Vagrantfile "${CURRENT_DIR}"/../Vagrantfile.bk 12 | trap 'mv "${CURRENT_DIR}"/../Vagrantfile.bk "${CURRENT_DIR}"/../Vagrantfile' INT TERM HUP EXIT 13 | 14 | #disable custom ssh rule to allow `vagrant ssh -c` commands 15 | sed -i '/guest: 22/d' "${CURRENT_DIR}"/../Vagrantfile 16 | 17 | #use original base-image to build upon 18 | sed -i 's:#\(machine.vm.box = .*\) #base-image$:\1 #base-image:' "${CURRENT_DIR}"/../Vagrantfile 19 | sed -i 's:\(machine.vm.box = .*\) #modified-base-image$:#\1 #modified-base-image:' "${CURRENT_DIR}"/../Vagrantfile 20 | 21 | ( 22 | cd "${CURRENT_DIR}" && cd .. 23 | vagrant up 24 | vagrant ssh -c ' 25 | for dir in /home/vagrant/* /vagrant/*; do 26 | [ ! -d "${dir}" ] && continue 27 | [ ! -f "${dir}"/index.ios.js ] && continue 28 | [ ! -f "${dir}"/index.android.js ] && continue 29 | for script in "${dir}"/provision/repackage-0*.sh; do "${script}"; done 30 | done' 31 | vagrant package --output "${MODIFIED_VM_NAME}".box 32 | ) 33 | 34 | printf "%s\\n" "Image '${BASE_PATH}/${MODIFIED_VM_NAME}.box' created sucessfully!" 35 | #upload image to https://atlas.hashicorp.com 36 | -------------------------------------------------------------------------------- /screenshots/coords.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/coords.png -------------------------------------------------------------------------------- /screenshots/destination.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/destination.png -------------------------------------------------------------------------------- /screenshots/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/loading.png -------------------------------------------------------------------------------- /screenshots/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/login.png -------------------------------------------------------------------------------- /screenshots/pickup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/pickup.png -------------------------------------------------------------------------------- /screenshots/signup-completed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/signup-completed.png -------------------------------------------------------------------------------- /screenshots/signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javier-lopez/uber-react-native-firebase/4fc9257bf9641ec1bf06aa247dbcbdff3da323ef/screenshots/signup.png --------------------------------------------------------------------------------