This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git reset --hard HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spaceship' | |
| Spaceship.login | |
| Spaceship.select_team | |
| # Fetch all provisioning profiles | |
| certs = Spaceship.provisioning_profile.app_store.all | |
| certs.each do |cert| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lane :beta do | |
| keychain_name = "ci-travis-app" | |
| create_keychain( | |
| name: keychain_name, | |
| default_keychain: true, | |
| unlock: true, | |
| timeout: 3600, | |
| lock_when_sleeps: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: objective-c | |
| osx_image: xcode7.3 | |
| before_script: | |
| - openssl aes-256-cbc -k $ENCRYPTION_PASSWORD -in fastlane/Certificates/distribution.p12.enc | |
| -d -a -out fastlane/Certificates/distribution.p12 | |
| script: | |
| - "./fastlane/travis.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| firebase-debug.log* | |
| firestore-debug.log* | |
| ui-debug.log* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ yarn add firebase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/firebase.js | |
| import firebase from 'firebase/app'; | |
| import 'firebase/auth'; | |
| import 'firebase/firestore'; | |
| // TODO: Use a configuration object | |
| firebaseApp.initializeApp({ | |
| projectId: '', | |
| appId: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/App.js | |
| import React from "react"; | |
| import { db } from "./firebase"; | |
| function App() { | |
| db.doc("hello/world").set({ hello: "world" }); | |
| return <div />; | |
| } | |
| export default App; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/App.js | |
| import React from 'react'; | |
| import { db } from './firebase'; | |
| function App() { | |
| const [data, setData] = React.useState(); | |
| React.useEffect(() => { | |
| db.doc('people/me') | |
| .get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "emulators": "firebase emulators:start --import=data --export-on-exit", |