This file contains 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 "json" | |
require "httparty" | |
require "sem_version" | |
require 'xcodeproj' | |
# | |
# CONSTS | |
# | |
FASTLANE_ENV_FILE = ".fastlane" | |
PROJECT = "REDACTED" |
This file contains 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 * as Analytics from "expo-firebase-analytics" | |
import { recordError } from "./exceptions" | |
export const setCurrentScreen = (screenName: string): void => { | |
void Analytics.logEvent("screen_view", { screen_name: screenName }) | |
// track screens. | |
__DEV__ && console.tron.log(`currentScreen: ${screenName}`) | |
} | |
/** |
This file contains 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 { TextProps as TextProperties } from "react-native" | |
import type { SxProps } from "@bridge/ui/view" | |
import type { Nullable } from "@bridge/types" | |
import { TextVariants } from "../theme" | |
export interface TextProps extends TextProperties, SxProps { | |
/** | |
* Children components. | |
*/ | |
children?: React.ReactNode |
This file contains 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 const GENERATION_MODELS: Record<string, GenerationModel> = { | |
"6c2ccdf0300616cfca3ba78701b511def42447960b086bb47a487aed5a9a892d": { | |
name: "Realism", | |
path: "models/ckpt/aresmix.safetensors", | |
vae: "models/vae/vae-ft-mse-840000-ema-pruned.safetensors", | |
modelHash: | |
"6c2ccdf0300616cfca3ba78701b511def42447960b086bb47a487aed5a9a892d", | |
positivePromptStart: `${POSITIVE_PROMPT_START}, RAW photo, cinematic still, high quality, film grain, sharp focus, (high detailed skin:1.2), 8k uhd, dslr, award winning photograph,`, | |
}, | |
c5b6055a843f079998738c7d115060a4e116f0eedd1a5cb10b2b52d6f5f0ff68: { |
This file contains 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 from "react" | |
import { SafeAreaProvider } from "react-native-safe-area-context" | |
// Cache the wrapper component to avoid creating a new one every time a screen | |
// is created. | |
const componentsCache = new WeakMap< | |
React.ComponentType<any>, | |
React.ComponentType<any> | |
>() |
This file contains 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
{ | |
"common": { | |
"ok": "OK!", | |
"cancel": "Cancel", | |
"continue": "Continue", | |
"doThisLater": "Do This Later", | |
"percentageCompleted": "%{number}% Completed", | |
"needHelp": "Need help ?", | |
"done": "Done", | |
"next": "Next", |
This file contains 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
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
import React from "react" | |
import { SafeAreaProvider } from "react-native-safe-area-context" | |
// Cache the wrapper component to avoid creating a new one every time a screen | |
// is created. | |
const componentsCache = new WeakMap< | |
React.ComponentType<any>, | |
React.ComponentType<any> | |
>() |
This file contains 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 from "react" | |
import { KeyboardAvoidingView, Platform } from "react-native" | |
import { StatusBar } from "expo-status-bar" | |
import { ScreenProps } from "./screen.props" | |
import { isNonScrolling, offsets, variants } from "./screen.variants" | |
import { useAppColorScheme } from "@zaboca/ui/hooks/use-app-color-scheme" | |
import { useThemeColor } from "@zaboca/ui/hooks/use-theme-color" | |
import { View } from "@zaboca/ui/view" | |
import { useSafeAreaInsets } from "@zaboca/ui/dimensions" | |
import { ScrollView } from "@zaboca/ui/scroll-view" |
This file contains 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 { useEffect, useRef } from "react" | |
import { noop } from "../../utils" | |
export function useInterval( | |
callback: () => void, | |
delay: number | null | false, | |
immediate?: boolean, | |
) { | |
const savedCallback = useRef(noop) |
NewerOlder