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
| diff --git a/node_modules/@nozbe/watermelondb/WatermelonDB.podspec b/node_modules/@nozbe/watermelondb/WatermelonDB.podspec | |
| new file mode 100644 | |
| index 0000000..bb0eac2 | |
| --- /dev/null | |
| +++ b/node_modules/@nozbe/watermelondb/WatermelonDB.podspec | |
| @@ -0,0 +1,19 @@ | |
| +require "json" | |
| + | |
| +Pod::Spec.new do |s| | |
| + # NPM package specification |
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
| ~ code --list-extensions --show-versions | |
| bungcip.better-toml@0.3.2 | |
| christian-kohler.npm-intellisense@1.3.0 | |
| donjayamanne.githistory@0.4.6 | |
| eamodio.gitlens@9.5.1 | |
| EditorConfig.EditorConfig@0.13.0 | |
| eg2.tslint@1.0.43 | |
| esbenp.prettier-vscode@1.8.1 | |
| fatihacet.gitlab-workflow@2.0.1 | |
| flowtype.flow-for-vscode@1.1.0 |
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
| import React, { useState } from "react"; | |
| import ReactDOM from "react-dom"; | |
| const usePersistedState = (initialState, key) => { | |
| // Check if we have a value stored | |
| let value = localStorage.getItem(key); | |
| if (!value) { | |
| value = initialState; | |
| } else { | |
| value = JSON.parse(value); |
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
| #!/bin/sh | |
| # Make sure node packages are there | |
| yarn | |
| # 1st fix: glog config.h not found | |
| # Manually trigger 3rd party installs | |
| cd node_modules/react-native | |
| ./scripts/ios-install-third-party.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
| ### Keybase proof | |
| I hereby claim: | |
| * I am stigi on github. | |
| * I am ullrich (https://keybase.io/ullrich) on keybase. | |
| * I have a public key ASBvBQm1Dl9T7YVshwg3uQq5P9VyAzlN4bQNQef1Z7rzYgo | |
| To claim this, I am signing this object: |
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
| def fetchPassword(identifier) { | |
| if (!Os.isFamily(Os.FAMILY_MAC)) { | |
| println "Not on macOS, falling back to using keystore password from Environment" | |
| return props.getProperty(identifier) | |
| } | |
| def keychainLabel = "${identifier}" | |
| println "Fetching keychain password with label '${keychainLabel}" | |
| def stdout = new ByteArrayOutputStream() |
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
| func doubleToInt(_ input: Double) -> Int? { | |
| guard ( | |
| input < Double(Int.max).nextDown && | |
| input > Double(Int.min).nextDown) | |
| else { | |
| // Int overflow | |
| return nil | |
| } | |
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
| import Realm from 'realm' | |
| const openAndCloseWithModel = async (schema) => { | |
| let realm | |
| try { | |
| console.log("Opening realm") | |
| realm = await Realm.open({schema}) | |
| .catch((e) => { | |
| console.error("Cought rejection error") |
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
| // @flow | |
| // Adapted from https://gist.github.com/hyb175/beb9ceed4c34300ba7c77d3d6d44ae52 | |
| import type {ModelSchemaType} from '../schema' | |
| type CallbackType = ()=>{} | |
| type RealmObjectType = { | |
| realmModelName: string | |
| } |