Skip to content

Instantly share code, notes, and snippets.

View pafry7's full-sized avatar
🌄

Patryk Fryda pafry7

🌄
View GitHub Profile
@pafry7
pafry7 / gist:18fe60910a7807ea9a7223027bb84863
Last active June 19, 2024 14:57
Incrementing buildNumber and versionCode in Expo projects
import JsonFileModule from '@expo/json-file';
import path from "path";
import { getConfig } from "@expo/config"
const JsonFile = JsonFileModule.default;
function getNewVersionCode(versionCode) {
return versionCode ? versionCode + 1 : 1;
}
@pafry7
pafry7 / machine.js
Created March 17, 2020 14:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pafry7
pafry7 / machine.js
Last active March 17, 2020 14:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pafry7
pafry7 / machine.js
Last active March 17, 2020 14:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pafry7
pafry7 / machine.js
Last active March 11, 2020 15:56
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pafry7
pafry7 / machine.js
Last active March 11, 2020 13:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)