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
# Export iOS code signing as p12 and mobileprovision file for usage in Appcenter | |
# Manual decryption as described on https://docs.fastlane.tools/actions/match/ | |
desc "Export fastlane match signing credentials for AppCenter" | |
lane :export_code_signing do | |
ensure_env_vars( | |
env_vars: [ | |
"MATCH_GIT_URL", | |
"MATCH_PASSWORD", | |
] |
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
// HierarchylessDetoxReporter.js | |
// Custom jest reporter for wix/detox that surpress printing of the entire page's UI hierarchy on failed spec | |
// Github issue: https://github.com/wix/Detox/issues/992 | |
// Usage (in your jest config): "reporters": ["./e2e/HierarchylessDetoxReporter.js"], | |
const StreamlineReporter = require('detox/runners/jest/streamlineReporter'); | |
const HIERARCHY_REGEX_TRIMMER = /[\s\S]+?(?=Hierarchy)/; | |
class HierarchylessDetoxReporter extends StreamlineReporter { |
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
// simple-reporter.js | |
var mocha = require('mocha') | |
module.exports = SimpleReporter | |
const trimregex = /[\s\S]+?(?=Hierarchy)/ // or /[\s\S]+?(?=Error Trace)/ or /[\s\S]+?(?=Exception)/ etc | |
function SimpleReporter (runner) { | |
mocha.reporters.Base.call(this, runner) | |
var passes = 0 | |
var failures = 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
const path = require('path'); | |
const fs = require('fs'); | |
const topLevelQuery = fs.readFileSync( | |
path.resolve(__dirname, 'Query.graphql'), | |
{ encoding: 'UTF-8' } | |
); | |
let types = fs | |
.readdirSync(__dirname) | |
.filter(fileName => { |
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
// place this file in __mocks__ | |
let pendingAssertions | |
exports.prompt = prompts => { | |
if (!pendingAssertions) { | |
throw new Error(`inquirer was mocked and used without pending assertions: ${prompts}`) | |
} | |
const answers = {} |
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
this._panResponder = PanResponder.create({ | |
// ----------- NEGOTIATION: | |
// A view can become the touch responder by implementing the correct negotiation methods. | |
// Should child views be prevented from becoming responder on first touch? | |
onStartShouldSetPanResponderCapture: (evt, gestureState) => () => { | |
console.info('onStartShouldSetPanResponderCapture'); | |
return 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
// | |
// RxAlamofireObjMapper.swift | |
// RXDemo | |
// | |
// Created by Yaqing Wang on 10/30/15. | |
// Copyright © 2015 billwang1990.github.io. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |
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/bash | |
file=$1 | |
test -z $file && echo "file required." 1>&2 && exit 1 | |
git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all | |
git ignore $file | |
git add .gitignore | |
git commit -m "Add $file to .gitignore" |