docstring_tokens
stringlengths 18
16.9k
| code_tokens
stringlengths 75
1.81M
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|
keep keep keep keep replace
|
<mask> export const getPendingDeepLink = jest.fn().mockResolvedValue('');
<mask> export const addDeepLinkListener = jest.fn().mockImplementation(() => jest.fn());
<mask> export const copyToClipboardAsync = jest.fn().mockResolvedValue(null);
<mask> export const getRecentlyOpenedApps = jest.fn().mockResolvedValue([]);
<mask> export const getCrashReport = jest.fn().mockResolvedValue(null); </s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add export type EXUpdatesConfig = {
runtimeVersion: string;
sdkVersion: string;
appId: string;
usesEASUpdates: boolean;
};
export const updatesConfig: EXUpdatesConfig = DevLauncher.updatesConfig; </s> remove export const useUser = () => React.useContext(Context);
</s> add export const useUser = () => React.useContext<UserContext>(Context); </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove export function useStackItems<T>(stack: IStack<T>) {
const [items, setItems] = React.useState(() => stack.getState().items);
</s> add export function useStackItems<T>(stack: Stack<T>) {
const [items, setItems] = React.useState<StackItem<T>[]>(stack.getState().items); </s> remove function ModalStackContainer() {
const modalStack = useModalStack();
</s> add export function ModalStackProvider({ children, modalStack = defaultModalStack }) { </s> remove export function AppHeader({ title, subtitle, appImageUri, onUserProfilePress }: AppHeaderProps) {
const insets = useSafeAreaInsets();
</s> add
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/native-modules/__mocks__/DevLauncherInternal.ts
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> import { BuildInfoProvider } from './BuildInfoProvider';
<mask> import { CrashReportProvider } from './CrashReportProvider';
<mask> import { DevMenuPreferencesProvider } from './DevMenuPreferencesProvider';
<mask> import { DevSessionsProvider } from './DevSessionsProvider';
<mask> import { ModalProvider } from './ModalStackProvider';
<mask> import { PendingDeepLinkProvider } from './PendingDeepLinkProvider';
<mask> import { RecentApp, RecentlyOpenedAppsProvider } from './RecentlyOpenedAppsProvider';
<mask> import { UserContextProvider } from './UserContextProvider';
<mask>
<mask> export type AppProvidersProps = {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { QueryProvider } from './QueryProvider'; </s> add import { ToastStackProvider } from './ToastStackProvider'; </s> add import { UpdatesConfigProvider } from './UpdatesConfigProvider'; </s> add import { prefetchBranchesForApp } from '../queries/useBranchesForApp'; </s> remove import { useBuildInfo } from '../providers/BuildInfoProvider';
</s> add </s> remove import { ExtensionsScreen } from './screens/ExtensionsScreen';
</s> add import { ExtensionsStack } from './screens/ExtensionsStack';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/AppProviders.tsx
|
keep keep keep add keep keep keep keep keep keep
|
<mask> import { DevMenuPreferencesProvider } from './DevMenuPreferencesProvider';
<mask> import { DevSessionsProvider } from './DevSessionsProvider';
<mask> import { ModalStackProvider } from './ModalStackProvider';
<mask> import { PendingDeepLinkProvider } from './PendingDeepLinkProvider';
<mask> import { RecentApp, RecentlyOpenedAppsProvider } from './RecentlyOpenedAppsProvider';
<mask> import { ToastStackProvider } from './ToastStackProvider';
<mask> import { UserContextProvider } from './UserContextProvider';
<mask> import { UpdatesConfigProvider } from './UpdatesConfigProvider';
<mask>
<mask> export type AppProvidersProps = {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove import { ModalProvider } from './ModalStackProvider';
</s> add import { ModalStackProvider } from './ModalStackProvider'; </s> add import { ToastStackProvider } from './ToastStackProvider'; </s> add import { UpdatesConfigProvider } from './UpdatesConfigProvider'; </s> add import { prefetchBranchesForApp } from '../queries/useBranchesForApp'; </s> remove import { useBuildInfo } from '../providers/BuildInfoProvider';
</s> add </s> remove import { ExtensionsScreen } from './screens/ExtensionsScreen';
</s> add import { ExtensionsStack } from './screens/ExtensionsStack';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/AppProviders.tsx
|
keep add keep keep keep keep keep
|
<mask> import { QueryProvider } from './QueryProvider';
<mask> import { RecentApp, RecentlyOpenedAppsProvider } from './RecentlyOpenedAppsProvider';
<mask> import { UserContextProvider } from './UserContextProvider';
<mask> import { UpdatesConfigProvider } from './UpdatesConfigProvider';
<mask>
<mask> export type AppProvidersProps = {
<mask> children?: React.ReactNode;
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { QueryProvider } from './QueryProvider'; </s> add import { UpdatesConfigProvider } from './UpdatesConfigProvider'; </s> remove import { ModalProvider } from './ModalStackProvider';
</s> add import { ModalStackProvider } from './ModalStackProvider'; </s> add import { prefetchBranchesForApp } from '../queries/useBranchesForApp'; </s> add import { apiClient } from './apiClient'; </s> remove import { ExtensionsScreen } from './screens/ExtensionsScreen';
</s> add import { ExtensionsStack } from './screens/ExtensionsStack';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/AppProviders.tsx
|
keep add keep keep keep keep keep keep
|
<mask> import { ToastStackProvider } from './ToastStackProvider';
<mask> import { UserContextProvider } from './UserContextProvider';
<mask>
<mask> export type AppProvidersProps = {
<mask> children?: React.ReactNode;
<mask> initialUserData?: UserData;
<mask> initialDevMenuPreferences?: DevMenuPreferencesType;
<mask> initialDevSessions?: DevSession[];
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { ToastStackProvider } from './ToastStackProvider'; </s> add import { QueryProvider } from './QueryProvider'; </s> remove import { ModalProvider } from './ModalStackProvider';
</s> add import { ModalStackProvider } from './ModalStackProvider'; </s> add import { resetBranchQueries } from '../queries/useBranchesForApp'; </s> add import { apiClient } from './apiClient'; </s> add import { prefetchBranchesForApp } from '../queries/useBranchesForApp';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/AppProviders.tsx
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep
|
<mask> const isDark = theme === 'dark';
<mask> const statusBarContent = isDark ? 'light-content' : 'dark-content';
<mask>
<mask> return (
<mask> <ThemeProvider themePreference="no-preference">
<mask> <UserContextProvider initialUserData={initialUserData}>
<mask> <DevMenuPreferencesProvider initialPreferences={initialDevMenuPreferences}>
<mask> <DevSessionsProvider initialDevSessions={initialDevSessions}>
<mask> <RecentlyOpenedAppsProvider initialApps={initialRecentlyOpenedApps}>
<mask> <BuildInfoProvider initialBuildInfo={initialBuildInfo}>
<mask> <CrashReportProvider initialCrashReport={initialCrashReport}>
<mask> <ModalProvider>
<mask> <PendingDeepLinkProvider initialPendingDeepLink={initialPendingDeepLink}>
<mask> <NavigationContainer
<mask> theme={isDark ? darkNavigationTheme : lightNavigationTheme}>
<mask> <StatusBar barStyle={statusBarContent} />
<mask> {children}
<mask> </NavigationContainer>
<mask> </PendingDeepLinkProvider>
<mask> </ModalProvider>
<mask> </CrashReportProvider>
<mask> </BuildInfoProvider>
<mask> </RecentlyOpenedAppsProvider>
<mask> </DevSessionsProvider>
<mask> </DevMenuPreferencesProvider>
<mask> </UserContextProvider>
<mask> </ThemeProvider>
<mask> );
<mask> }
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Animated.View
style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
pointerEvents={hasModal ? 'auto' : 'none'}>
<Pressable
onPress={() => {
modalStack.pop();
}}
style={[StyleSheet.absoluteFillObject]}>
{modals.map((item) => (
<ModalScreen
key={item.key}
{...item}
onClose={() => modalStack.pop()}
onPopEnd={() => modalStack.onPopEnd(item.key)}
onPushEnd={() => modalStack.onPushEnd(item.key)}
/>
))}
</Pressable>
</Animated.View>
</s> add <ModalStackContext.Provider value={{ push, pop }}>
{children}
<Animated.View
style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
pointerEvents={hasModal ? 'box-none' : 'none'}>
<Pressable
onPress={() => {
modalStack.pop();
}}
style={[StyleSheet.absoluteFillObject]}>
{modals.map((item) => (
<ModalScreen
key={item.key}
{...item}
onClose={item.pop}
onPopEnd={item.onPopEnd}
onPushEnd={item.onPushEnd}
/>
))}
</Pressable>
</Animated.View>
</ModalStackContext.Provider> </s> remove const promise2 = await push(replaceOptions);
const promise1 = await pop(itemsToPop, 1);
return Promise.all([promise2, promise1]);
</s> add return item; </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<View bg="default" py="small" px="small" roundedBottom="medium">
</s> add function onBranchPress(branchName: string) {
navigation.navigate('Updates', { branchName });
}
if (isLoading) {
return (
<View height="44" align="centered" mx="medium" rounded="large" bg="default">
<ActivityIndicator />
</View>
);
}
if (branches.length === 0) {
return (
<View mx="medium">
<View px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
<Spacer.Vertical size="small" />
<EmptyBranchesMessage branches={branches} incompatibleBranches={incompatibleBranches} />
</View>
);
}
return (
<View>
<View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
{branches?.slice(0, 2).map((branch, index) => {
const isFirst = index === 0;
return (
<View key={branch.name}>
<Button.ScaleOnPressContainer
bg="default"
onPress={() => onBranchPress(branch.name)}
roundedBottom="none"
roundedTop={isFirst ? 'large' : 'none'}>
<View
bg="default"
roundedTop={isFirst ? 'large' : 'none'}
roundedBottom="none"
py="small"
px="small">
<EASBranchRow branch={branch} />
</View>
</Button.ScaleOnPressContainer>
<Divider />
</View>
);
})}
{branches?.length > 0 && (
<Button.ScaleOnPressContainer
onPress={onSeeAllBranchesPress}
bg="default"
roundedTop="none"
roundedBottom="large">
<View bg="default" py="small" px="small" roundedTop="none" roundedBottom="large"> </s> remove }
async function replace(replaceOptions: IReplaceOptions<T>) {
const itemsToPop = replaceOptions.replaceAmount != null ? replaceOptions.replaceAmount : 1;
</s> add </s> remove delete popResolvers[key];
delete pushResolvers[key];
</s> add item.status = 'popped'; </s> remove function ModalScreen({ status, element, onPopEnd, onPushEnd }: ModalScreenProps) {
</s> add function ModalScreen({ status, data, onPopEnd, onPushEnd }: ModalScreenProps) {
const { element } = data;
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/AppProviders.tsx
|
keep keep keep replace replace replace replace keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep
|
<mask> import * as React from 'react';
<mask> import { Animated, StyleSheet, useWindowDimensions, Pressable } from 'react-native';
<mask>
<mask> import { createAsyncStack, StackItem, useStackItems } from '../functions/createAsyncStack';
<mask>
<mask> export type ModalProps = {
<mask> element: React.ReactElement<any>;
<mask> };
<mask>
<mask> const ModalContext = React.createContext(createAsyncStack<ModalProps>());
<mask> export const useModalStack = () => React.useContext(ModalContext);
<mask>
<mask> export function ModalProvider({ children }) {
<mask> const modalStack = React.useRef(createAsyncStack<ModalProps>());
<mask>
<mask> return (
<mask> <ModalContext.Provider value={modalStack.current}>
<mask> {children}
<mask> <ModalStackContainer />
<mask> </ModalContext.Provider>
<mask> );
<mask> }
<mask>
<mask> function ModalStackContainer() {
<mask> const modalStack = useModalStack();
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove import { SafeAreaView } from 'react-native';
</s> add import { ScrollView } from 'react-native-gesture-handler'; </s> add import { useBuildInfo } from '../providers/BuildInfoProvider'; </s> remove function ModalStackContainer() {
const modalStack = useModalStack();
</s> add export function ModalStackProvider({ children, modalStack = defaultModalStack }) { </s> remove export function ExtensionsScreen() {
const extensions = [];
const palette = useExpoPalette();
</s> add import { ActivityIndicator } from '../components/ActivityIndicator';
import { AppHeader } from '../components/AppHeader';
import { EASBranchRow } from '../components/EASUpdatesRows';
import { EmptyBranchesMessage } from '../components/EmptyBranchesMessage';
import { useUser, useUserActions } from '../providers/UserContextProvider';
import { useUpdatesConfig } from '../providers/UpdatesConfigProvider';
import { useBranchesForApp } from '../queries/useBranchesForApp';
import { ExtensionsStackParamList } from './ExtensionsStack'; </s> add import { apiClient } from './apiClient';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/ModalStackProvider.tsx
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> </ModalContext.Provider>
<mask> );
<mask> }
<mask>
<mask> function ModalStackContainer() {
<mask> const modalStack = useModalStack();
<mask> const modals = useStackItems(modalStack);
<mask> const animatedValue = React.useRef(new Animated.Value(0));
<mask>
<mask> const hasModal = modals.some((m) => m.status === 'settled' || m.status === 'pushing');
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove function ModalScreen({ status, element, onPopEnd, onPushEnd }: ModalScreenProps) {
</s> add function ModalScreen({ status, data, onPopEnd, onPushEnd }: ModalScreenProps) {
const { element } = data; </s> remove const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo;
</s> add </s> remove for (let i = 1; i <= amount; i++) {
const key = keys[keys.length - startIndex - i];
</s> add let startIndex = keys.length - 1;
for (let i = keys.length - 1; i >= 0; i--) {
const key = keys[i];
const item = lookup[key];
if (item && (item.status === 'settled' || item.status === 'pushing')) {
startIndex = i;
break;
}
}
for (let i = startIndex; i > startIndex - amount; i--) {
const key = keys[i]; </s> add if (process.env.NODE_ENV === 'test') {
return {
presets: ['babel-preset-expo'],
};
}
</s> remove function pop(amount = 1, startIndex = 0) {
const promises = [];
</s> add function pop(amount: number | string = 1) {
const items: StackItem[] = [];
if (typeof amount === 'string') {
const key = amount;
const item = lookup[key];
if (item) {
if (item.status === 'pushing') {
onPushEnd(key);
}
item.status = 'popping';
const promise = new Promise<StackItem<T>>((resolve) => {
popResolvers[key] = resolve;
});
item.promise = promise;
emit('popstart', key);
items.push(item);
}
return items;
}
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/ModalStackProvider.tsx
|
keep keep keep add keep keep keep keep keep
|
<mask> inputRange: [0, 1],
<mask> outputRange: ['rgba(0,0,0,0)', 'rgba(0,0,0,0.75)'],
<mask> });
<mask>
<mask> return (
<mask> <ModalStackContext.Provider value={{ push, pop }}>
<mask> {children}
<mask> <Animated.View
<mask> style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Animated.View
style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
pointerEvents={hasModal ? 'auto' : 'none'}>
<Pressable
onPress={() => {
modalStack.pop();
}}
style={[StyleSheet.absoluteFillObject]}>
{modals.map((item) => (
<ModalScreen
key={item.key}
{...item}
onClose={() => modalStack.pop()}
onPopEnd={() => modalStack.onPopEnd(item.key)}
onPushEnd={() => modalStack.onPushEnd(item.key)}
/>
))}
</Pressable>
</Animated.View>
</s> add <ModalStackContext.Provider value={{ push, pop }}>
{children}
<Animated.View
style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
pointerEvents={hasModal ? 'box-none' : 'none'}>
<Pressable
onPress={() => {
modalStack.pop();
}}
style={[StyleSheet.absoluteFillObject]}>
{modals.map((item) => (
<ModalScreen
key={item.key}
{...item}
onClose={item.pop}
onPopEnd={item.onPopEnd}
onPushEnd={item.onPushEnd}
/>
))}
</Pressable>
</Animated.View>
</ModalStackContext.Provider> </s> remove <Context.Provider value={{ userData, selectedAccount }}>{children}</Context.Provider>
</s> add <Context.Provider value={{ userData, selectedAccount, isAuthenticated: userData != null }}>
{children}
</Context.Provider> </s> remove onPushEnd,
</s> add </s> remove onPopEnd,
replace,
</s> add </s> remove <View bg="default">
<AppHeader
title={appName}
appImageUri={appIcon}
subtitle="Development Build"
onUserProfilePress={onUserProfilePress}
/>
</View>
</s> add <AppHeader navigation={navigation} /> </s> remove export function ExtensionsScreen() {
const extensions = [];
const palette = useExpoPalette();
</s> add import { ActivityIndicator } from '../components/ActivityIndicator';
import { AppHeader } from '../components/AppHeader';
import { EASBranchRow } from '../components/EASUpdatesRows';
import { EmptyBranchesMessage } from '../components/EmptyBranchesMessage';
import { useUser, useUserActions } from '../providers/UserContextProvider';
import { useUpdatesConfig } from '../providers/UpdatesConfigProvider';
import { useBranchesForApp } from '../queries/useBranchesForApp';
import { ExtensionsStackParamList } from './ExtensionsStack';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/ModalStackProvider.tsx
|
keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep replace keep keep keep
|
<mask> return (
<mask> <Animated.View
<mask> style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
<mask> pointerEvents={hasModal ? 'auto' : 'none'}>
<mask> <Pressable
<mask> onPress={() => {
<mask> modalStack.pop();
<mask> }}
<mask> style={[StyleSheet.absoluteFillObject]}>
<mask> {modals.map((item) => (
<mask> <ModalScreen
<mask> key={item.key}
<mask> {...item}
<mask> onClose={() => modalStack.pop()}
<mask> onPopEnd={() => modalStack.onPopEnd(item.key)}
<mask> onPushEnd={() => modalStack.onPushEnd(item.key)}
<mask> />
<mask> ))}
<mask> </Pressable>
<mask> </Animated.View>
<mask> );
<mask> }
<mask>
<mask> type ModalScreenProps = StackItem<ModalProps> & {
<mask> onPushEnd: () => void;
<mask> onPopEnd: () => void;
<mask> onClose: () => void;
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove modalStack.push({
element: (
<LogoutConfirmationModal
onClosePress={() => modalStack.pop()}
onLogoutPress={() => {
actions.logout();
modalStack.pop();
}}
/>
),
});
</s> add modalStack.push(() => (
<LogoutConfirmationModal
onClosePress={() => modalStack.pop()}
onLogoutPress={async () => {
await actions.logout();
modalStack.pop();
}}
/>
)); </s> remove function ModalScreen({ status, element, onPopEnd, onPushEnd }: ModalScreenProps) {
</s> add function ModalScreen({ status, data, onPopEnd, onPushEnd }: ModalScreenProps) {
const { element } = data; </s> remove export function createAsyncStack<T>(): IStack<T> {
</s> add export type StackItem<T = any> = {
key: string;
status: Status;
promise: Promise<StackItem<T>>;
pop: () => void;
onPushEnd: () => void;
onPopEnd: () => void;
data: T;
animatedValue: typeof AValue;
};
export type StackState<T = any> = {
items: StackItem<T>[];
lookup: Record<string, StackItem<T>>;
getItemByKey: (key: string) => StackItem<T> | null;
};
export type Stack<T> = {
push: (data?: T | undefined) => StackItem<T>;
pop: (amount?: number, startIndex?: number) => StackItem<any>[];
subscribe: (listener: (state: StackEvent<T>) => void) => () => void;
getState: () => StackState;
};
export function createAsyncStack<T = any>() { </s> remove export type StackItemStatus = 'pushing' | 'popping' | 'settled';
export type ListenerFn<T> = ({
items,
}: {
action: IStackEvent;
key: string;
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
}) => void;
export type StackItem<T> = T & { key: string; status: StackItemStatus };
export type IReplaceOptions<T> = T & { replaceAmount?: number; key?: string };
export type IPushOptions<T> = T & { key?: string };
export interface IStack<T> {
push: (pushOptions: IPushOptions<T>) => Promise<string>;
pop: (amount?: number) => Promise<string[]>;
replace: (replaceOptions: IReplaceOptions<T>) => Promise<any>;
onPushEnd: (key: string) => void;
onPopEnd: (key: string) => void;
subscribe: (listener: ListenerFn<T>) => () => void;
getState: () => {
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
</s> add export type StackEvent<T = any> = {
state: StackState<T>;
event: {
action: StackAction;
key: string; </s> add function push(element: StackItemComponent) {
return modalStack.push({ element });
}
function pop(amount: number = 1) {
return modalStack.pop(amount);
}
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/ModalStackProvider.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> onPopEnd: () => void;
<mask> onClose: () => void;
<mask> };
<mask>
<mask> function ModalScreen({ status, element, onPopEnd, onPushEnd }: ModalScreenProps) {
<mask> const { height } = useWindowDimensions();
<mask>
<mask> const animatedValue = React.useRef(new Animated.Value(status === 'settled' ? 1 : 0));
<mask>
<mask> React.useEffect(() => {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove type ModalScreenProps = StackItem<ModalProps> & {
</s> add type ModalScreenProps = StackItem & { </s> remove function ModalStackContainer() {
const modalStack = useModalStack();
</s> add export function ModalStackProvider({ children, modalStack = defaultModalStack }) { </s> remove export function createAsyncStack<T>(): IStack<T> {
</s> add export type StackItem<T = any> = {
key: string;
status: Status;
promise: Promise<StackItem<T>>;
pop: () => void;
onPushEnd: () => void;
onPopEnd: () => void;
data: T;
animatedValue: typeof AValue;
};
export type StackState<T = any> = {
items: StackItem<T>[];
lookup: Record<string, StackItem<T>>;
getItemByKey: (key: string) => StackItem<T> | null;
};
export type Stack<T> = {
push: (data?: T | undefined) => StackItem<T>;
pop: (amount?: number, startIndex?: number) => StackItem<any>[];
subscribe: (listener: (state: StackEvent<T>) => void) => () => void;
getState: () => StackState;
};
export function createAsyncStack<T = any>() { </s> remove export function AppHeader({ title, subtitle, appImageUri, onUserProfilePress }: AppHeaderProps) {
const insets = useSafeAreaInsets();
</s> add </s> remove type AppHeaderProps = {
title?: string;
subtitle?: string;
appImageUri?: string;
onUserProfilePress: () => void;
};
</s> add export function AppHeader({ navigation }) {
const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo; </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack();
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/ModalStackProvider.tsx
|
keep keep keep replace keep keep keep keep keep
|
<mask> import * as React from 'react';
<mask>
<mask> import { DeepLinkModal } from '../components/DeepLinkModal';
<mask> import { useModalStack } from '../providers/ModalStackProvider';
<mask> import { addDeepLinkListener, getPendingDeepLink } from '../native-modules/DevLauncherInternal';
<mask>
<mask> type PendingDeepLinkContext = {
<mask> pendingDeepLink: string;
<mask> setPendingDeepLink: (url: string) => void;
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { useModalStack } from '../providers/ModalStackProvider'; </s> remove import { useSafeAreaInsets } from 'react-native-safe-area-context';
</s> add </s> add import { apiClient } from './apiClient'; </s> remove import { useBuildInfo } from '../providers/BuildInfoProvider';
</s> add </s> add scale,
Divider,
Heading, </s> add View,
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/PendingDeepLinkProvider.tsx
|
keep keep add keep keep keep keep
|
<mask>
<mask> import { DeepLinkModal } from '../components/DeepLinkModal';
<mask> import { addDeepLinkListener, getPendingDeepLink } from '../native-modules/DevLauncherInternal';
<mask>
<mask> type PendingDeepLinkContext = {
<mask> pendingDeepLink: string;
<mask> setPendingDeepLink: (url: string) => void;
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove import { useModalStack } from '../providers/ModalStackProvider';
</s> add </s> remove import { useSafeAreaInsets } from 'react-native-safe-area-context';
</s> add </s> remove import { useBuildInfo } from '../providers/BuildInfoProvider';
</s> add </s> remove type AppHeaderProps = {
title?: string;
subtitle?: string;
appImageUri?: string;
onUserProfilePress: () => void;
};
</s> add export function AppHeader({ navigation }) {
const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo; </s> add import { prefetchBranchesForApp } from '../queries/useBranchesForApp'; </s> add updatesConfig,
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/PendingDeepLinkProvider.tsx
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> React.useEffect(() => {
<mask> getPendingDeepLink().then((url) => {
<mask> if (url) {
<mask> setPendingDeepLink(url);
<mask> modalStack.push({
<mask> element: <DeepLinkModal pendingDeepLink={url} />,
<mask> });
<mask> }
<mask> });
<mask> }, []);
<mask>
<mask> React.useEffect(() => {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove modalStack.push({
element: <DeepLinkModal pendingDeepLink={url} />,
});
</s> add modalStack.push(() => <DeepLinkModal pendingDeepLink={url} />); </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove const { getByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText } = render(<DeepLinkModal pendingDeepLink="123" />, { </s> remove return () => {
unsubscribe && unsubscribe();
};
}, [stack]);
</s> add return () => unsubscribe();
}, []); </s> remove const { getByText, queryByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText, queryByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/PendingDeepLinkProvider.tsx
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> React.useEffect(() => {
<mask> const listener = addDeepLinkListener((url) => {
<mask> if (url) {
<mask> setPendingDeepLink(url);
<mask> modalStack.push({
<mask> element: <DeepLinkModal pendingDeepLink={url} />,
<mask> });
<mask> }
<mask> });
<mask>
<mask> return () => {
<mask> listener.remove();
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove modalStack.push({
element: <DeepLinkModal pendingDeepLink={url} />,
});
</s> add modalStack.push(() => <DeepLinkModal pendingDeepLink={url} />); </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove const { getByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText } = render(<DeepLinkModal pendingDeepLink="123" />, { </s> remove modalStack.push({ element: <DevServerExplainerModal /> });
</s> add modalStack.push(() => <DevServerExplainerModal />); </s> remove const { getByText, queryByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText, queryByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/PendingDeepLinkProvider.tsx
|
keep add keep keep keep keep
|
<mask> import { startAuthSessionAsync } from '../functions/startAuthSessionAsync';
<mask> import { useIsMounted } from '../hooks/useIsMounted';
<mask>
<mask> type UserContext = {
<mask> userData?: UserData;
<mask> isAuthenticated: boolean;
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add isAuthenticated: boolean; </s> add import { UpdatesConfigProvider } from './UpdatesConfigProvider'; </s> add import { QueryProvider } from './QueryProvider'; </s> remove import { ModalProvider } from './ModalStackProvider';
</s> add import { ModalStackProvider } from './ModalStackProvider'; </s> add import { ToastStackProvider } from './ToastStackProvider'; </s> remove import { ExtensionsScreen } from './screens/ExtensionsScreen';
</s> add import { ExtensionsStack } from './screens/ExtensionsStack';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep keep add keep keep keep keep keep keep
|
<mask>
<mask> type UserContext = {
<mask> userData?: UserData;
<mask> selectedAccount?: UserAccount;
<mask> };
<mask>
<mask> type UserActionsContext = {
<mask> login: (loginType: 'signup' | 'login') => Promise<void>;
<mask> logout: () => Promise<void>;
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { resetBranchQueries } from '../queries/useBranchesForApp'; </s> remove const Context = React.createContext<UserContext | null>(null);
</s> add const Context = React.createContext<UserContext>(null); </s> remove export type StackItemStatus = 'pushing' | 'popping' | 'settled';
export type ListenerFn<T> = ({
items,
}: {
action: IStackEvent;
key: string;
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
}) => void;
export type StackItem<T> = T & { key: string; status: StackItemStatus };
export type IReplaceOptions<T> = T & { replaceAmount?: number; key?: string };
export type IPushOptions<T> = T & { key?: string };
export interface IStack<T> {
push: (pushOptions: IPushOptions<T>) => Promise<string>;
pop: (amount?: number) => Promise<string[]>;
replace: (replaceOptions: IReplaceOptions<T>) => Promise<any>;
onPushEnd: (key: string) => void;
onPopEnd: (key: string) => void;
subscribe: (listener: ListenerFn<T>) => () => void;
getState: () => {
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
</s> add export type StackEvent<T = any> = {
state: StackState<T>;
event: {
action: StackAction;
key: string; </s> remove export function createAsyncStack<T>(): IStack<T> {
</s> add export type StackItem<T = any> = {
key: string;
status: Status;
promise: Promise<StackItem<T>>;
pop: () => void;
onPushEnd: () => void;
onPopEnd: () => void;
data: T;
animatedValue: typeof AValue;
};
export type StackState<T = any> = {
items: StackItem<T>[];
lookup: Record<string, StackItem<T>>;
getItemByKey: (key: string) => StackItem<T> | null;
};
export type Stack<T> = {
push: (data?: T | undefined) => StackItem<T>;
pop: (amount?: number, startIndex?: number) => StackItem<any>[];
subscribe: (listener: (state: StackEvent<T>) => void) => () => void;
getState: () => StackState;
};
export function createAsyncStack<T = any>() { </s> remove type ModalScreenProps = StackItem<ModalProps> & {
</s> add type ModalScreenProps = StackItem & { </s> add import { Animated } from 'react-native';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> setSelectedAccount: (accountId: string) => void;
<mask> };
<mask>
<mask> const ActionsContext = React.createContext<UserActionsContext | null>(null);
<mask> const Context = React.createContext<UserContext | null>(null);
<mask>
<mask> type UserContextProviderProps = {
<mask> children: React.ReactNode;
<mask> initialUserData?: UserData;
<mask> };
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove export type StackItemStatus = 'pushing' | 'popping' | 'settled';
export type ListenerFn<T> = ({
items,
}: {
action: IStackEvent;
key: string;
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
}) => void;
export type StackItem<T> = T & { key: string; status: StackItemStatus };
export type IReplaceOptions<T> = T & { replaceAmount?: number; key?: string };
export type IPushOptions<T> = T & { key?: string };
export interface IStack<T> {
push: (pushOptions: IPushOptions<T>) => Promise<string>;
pop: (amount?: number) => Promise<string[]>;
replace: (replaceOptions: IReplaceOptions<T>) => Promise<any>;
onPushEnd: (key: string) => void;
onPopEnd: (key: string) => void;
subscribe: (listener: ListenerFn<T>) => () => void;
getState: () => {
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
</s> add export type StackEvent<T = any> = {
state: StackState<T>;
event: {
action: StackAction;
key: string; </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove export function createAsyncStack<T>(): IStack<T> {
</s> add export type StackItem<T = any> = {
key: string;
status: Status;
promise: Promise<StackItem<T>>;
pop: () => void;
onPushEnd: () => void;
onPopEnd: () => void;
data: T;
animatedValue: typeof AValue;
};
export type StackState<T = any> = {
items: StackItem<T>[];
lookup: Record<string, StackItem<T>>;
getItemByKey: (key: string) => StackItem<T> | null;
};
export type Stack<T> = {
push: (data?: T | undefined) => StackItem<T>;
pop: (amount?: number, startIndex?: number) => StackItem<any>[];
subscribe: (listener: (state: StackEvent<T>) => void) => () => void;
getState: () => StackState;
};
export function createAsyncStack<T = any>() { </s> add isAuthenticated: boolean; </s> remove const generateRouteKey = () => `${new Date().getTime()}`;
</s> add const AValue = new Animated.Value(0); </s> add import { UpdatesConfigProvider } from './UpdatesConfigProvider';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> export function UserContextProvider({ children, initialUserData }: UserContextProviderProps) {
<mask> const [userData, setUserData] = React.useState<UserData | undefined>(initialUserData);
<mask> const [selectedAccountId, setSelectedAccount] = React.useState<string>(
<mask> initialUserData?.accounts[0].id ?? ''
<mask> );
<mask> const isMounted = useIsMounted();
<mask>
<mask> const selectedAccount = userData?.accounts.find((account) => account.id === selectedAccountId);
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove function ModalStackContainer() {
const modalStack = useModalStack();
</s> add export function ModalStackProvider({ children, modalStack = defaultModalStack }) { </s> remove export function AppHeader({ title, subtitle, appImageUri, onUserProfilePress }: AppHeaderProps) {
const insets = useSafeAreaInsets();
</s> add </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove type AppHeaderProps = {
title?: string;
subtitle?: string;
appImageUri?: string;
onUserProfilePress: () => void;
};
</s> add export function AppHeader({ navigation }) {
const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo; </s> remove function pop(amount = 1, startIndex = 0) {
const promises = [];
</s> add function pop(amount: number | string = 1) {
const items: StackItem[] = [];
if (typeof amount === 'string') {
const key = amount;
const item = lookup[key];
if (item) {
if (item.status === 'pushing') {
onPushEnd(key);
}
item.status = 'popping';
const promise = new Promise<StackItem<T>>((resolve) => {
popResolvers[key] = resolve;
});
item.promise = promise;
emit('popstart', key);
items.push(item);
}
return items;
} </s> add if (process.env.NODE_ENV === 'test') {
return {
presets: ['babel-preset-expo'],
};
}
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask> }
<mask>
<mask> async function logout() {
<mask> return clearSession();
<mask> }
<mask>
<mask> async function restore() {
<mask> const userData = await restoreUserAsync();
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove const promise2 = await push(replaceOptions);
const promise1 = await pop(itemsToPop, 1);
return Promise.all([promise2, promise1]);
</s> add return item; </s> remove }
async function replace(replaceOptions: IReplaceOptions<T>) {
const itemsToPop = replaceOptions.replaceAmount != null ? replaceOptions.replaceAmount : 1;
</s> add </s> remove const { getByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText } = render(<DeepLinkModal pendingDeepLink="123" />, { </s> remove delete popResolvers[key];
delete pushResolvers[key];
</s> add item.status = 'popped'; </s> remove await setSessionAsync(null);
</s> add return await setSessionAsync(null); </s> remove await waitFor(() => getByText(/deep link received/i));
getByText(fakeLocalDevSession.description);
</s> add await waitFor(() => queryByText(/deep link received/i));
expect(queryAllByText(fakeLocalDevSession.description)).not.toBe(null);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> setUserData(undefined);
<mask> setSelectedAccount(undefined);
<mask> }
<mask>
<mask> await setSessionAsync(null);
<mask> }
<mask>
<mask> const actions = React.useMemo(() => {
<mask> return {
<mask> login,
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove return clearSession();
</s> add const result = await clearSession();
await resetBranchQueries();
return result; </s> add if (isAuthenticated && updatesConfig.usesEASUpdates) {
prefetchBranchesForApp(updatesConfig.appId, updatesConfig.runtimeVersion).catch((error) =>
console.log({ error })
);
}
</s> remove const promise2 = await push(replaceOptions);
const promise1 = await pop(itemsToPop, 1);
return Promise.all([promise2, promise1]);
</s> add return item; </s> remove const { getByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText } = render(<DeepLinkModal pendingDeepLink="123" />, { </s> remove await waitFor(() => getByText(/deep link received/i));
getByText(fakeLocalDevSession.description);
</s> add await waitFor(() => queryByText(/deep link received/i));
expect(queryAllByText(fakeLocalDevSession.description)).not.toBe(null); </s> remove }
async function replace(replaceOptions: IReplaceOptions<T>) {
const itemsToPop = replaceOptions.replaceAmount != null ? replaceOptions.replaceAmount : 1;
</s> add
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep keep replace keep keep keep keep replace
|
<mask> return (
<mask> <ActionsContext.Provider value={actions}>
<mask> <Context.Provider value={{ userData, selectedAccount }}>{children}</Context.Provider>
<mask> </ActionsContext.Provider>
<mask> );
<mask> }
<mask>
<mask> export const useUser = () => React.useContext(Context);
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add const onUserProfilePress = () => {
navigation.navigate('User Profile');
};
</s> remove type AppHeaderProps = {
title?: string;
subtitle?: string;
appImageUri?: string;
onUserProfilePress: () => void;
};
</s> add export function AppHeader({ navigation }) {
const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo; </s> remove export function AppHeader({ title, subtitle, appImageUri, onUserProfilePress }: AppHeaderProps) {
const insets = useSafeAreaInsets();
</s> add </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove initialUserData?.accounts[0].id ?? ''
</s> add initialUserData?.accounts[0]?.id ?? ''
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/providers/UserContextProvider.tsx
|
keep replace keep keep keep keep replace keep keep
|
<mask> import {
<mask> Heading,
<mask> Spacer,
<mask> View,
<mask> Text,
<mask> Button,
<mask> useExpoPalette,
<mask> Row,
<mask> ChevronRightIcon,
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove Divider,
BranchIcon,
UpdateIcon,
</s> add </s> add scale,
Divider,
Heading, </s> add View, </s> remove import { useSafeAreaInsets } from 'react-native-safe-area-context';
</s> add </s> remove import { useBuildInfo } from '../providers/BuildInfoProvider';
</s> add
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> Button,
<mask> useExpoPalette,
<mask> Row,
<mask> ChevronRightIcon,
<mask> Divider,
<mask> BranchIcon,
<mask> UpdateIcon,
<mask> ExtensionsIcon,
<mask> } from 'expo-dev-client-components';
<mask> import * as React from 'react';
<mask> import { SafeAreaView } from 'react-native';
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove import { SafeAreaView } from 'react-native';
</s> add import { ScrollView } from 'react-native-gesture-handler'; </s> add scale,
Divider,
Heading, </s> remove useExpoPalette,
</s> add </s> add View, </s> remove import { useSafeAreaInsets } from 'react-native-safe-area-context';
</s> add </s> remove export function ExtensionsScreen() {
const extensions = [];
const palette = useExpoPalette();
</s> add import { ActivityIndicator } from '../components/ActivityIndicator';
import { AppHeader } from '../components/AppHeader';
import { EASBranchRow } from '../components/EASUpdatesRows';
import { EmptyBranchesMessage } from '../components/EmptyBranchesMessage';
import { useUser, useUserActions } from '../providers/UserContextProvider';
import { useUpdatesConfig } from '../providers/UpdatesConfigProvider';
import { useBranchesForApp } from '../queries/useBranchesForApp';
import { ExtensionsStackParamList } from './ExtensionsStack';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep add keep keep keep keep keep keep
|
<mask> ChevronRightIcon,
<mask> ExtensionsIcon,
<mask> } from 'expo-dev-client-components';
<mask> import * as React from 'react';
<mask> import { ScrollView } from 'react-native-gesture-handler';
<mask>
<mask> import { ActivityIndicator } from '../components/ActivityIndicator';
<mask> import { AppHeader } from '../components/AppHeader';
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove import { SafeAreaView } from 'react-native';
</s> add import { ScrollView } from 'react-native-gesture-handler'; </s> remove export function ExtensionsScreen() {
const extensions = [];
const palette = useExpoPalette();
</s> add import { ActivityIndicator } from '../components/ActivityIndicator';
import { AppHeader } from '../components/AppHeader';
import { EASBranchRow } from '../components/EASUpdatesRows';
import { EmptyBranchesMessage } from '../components/EmptyBranchesMessage';
import { useUser, useUserActions } from '../providers/UserContextProvider';
import { useUpdatesConfig } from '../providers/UpdatesConfigProvider';
import { useBranchesForApp } from '../queries/useBranchesForApp';
import { ExtensionsStackParamList } from './ExtensionsStack'; </s> remove Divider,
BranchIcon,
UpdateIcon,
</s> add </s> add View, </s> remove import { useSafeAreaInsets } from 'react-native-safe-area-context';
</s> add </s> add import { apiClient } from './apiClient';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep replace keep replace replace replace keep
|
<mask> import * as React from 'react';
<mask> import { SafeAreaView } from 'react-native';
<mask>
<mask> export function ExtensionsScreen() {
<mask> const extensions = [];
<mask> const palette = useExpoPalette();
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove Divider,
BranchIcon,
UpdateIcon,
</s> add </s> add import { useBuildInfo } from '../providers/BuildInfoProvider'; </s> add import { apiClient } from './apiClient'; </s> remove import { createAsyncStack, StackItem, useStackItems } from '../functions/createAsyncStack';
export type ModalProps = {
element: React.ReactElement<any>;
</s> add import {
createAsyncStack,
StackItem,
StackItemComponent,
useStackItems,
} from '../functions/createAsyncStack';
type ModalStackContextProps = {
push: (element: StackItemComponent) => StackItem;
pop: (amount?: number) => StackItem[]; </s> add import { Animated } from 'react-native';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep replace keep keep keep keep
|
<mask> const extensions = [];
<mask> const palette = useExpoPalette();
<mask>
<mask> return (
<mask> <SafeAreaView style={{ flex: 1 }}>
<mask> <View flex="1">
<mask> {extensions.length === 0 && (
<mask> <View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<mask> <View align="centered">
<mask> <ExtensionsIcon />
<mask> </View>
<mask> <Spacer.Vertical size="medium" />
<mask> <View px="small">
<mask> <Text size="small" align="center">
<mask> Extensions allow you to customize your development app with additional capabilities.
<mask> </Text>
<mask> </View>
<mask>
<mask> <Spacer.Vertical size="small" />
<mask>
<mask> <View align="centered">
<mask> <Button.ScaleOnPressContainer bg="ghost" rounded="small">
<mask> <View border="default" px="small" py="2" rounded="small">
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Divider />
</s> add return (
<View>
<AppHeader navigation={navigation} />
<ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<View flex="1">
{compatibleExtensions.length === 0 && (
<>
<Spacer.Vertical size="medium" />
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development build with additional
capabilities.
</Text>
</View> </s> remove <View align="centered">
<Button.ScaleOnPressContainer bg="ghost" rounded="small">
<View border="default" px="small" py="2" rounded="small">
<Button.Text color="ghost" weight="semibold" size="small">
Learn More
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
</View>
)}
</s> add const { usesEASUpdates } = useUpdatesConfig(); </s> remove </View>
</Button.ScaleOnPressContainer>
</s> add </>
)}
{usesEASUpdates && isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<EASUpdatesPreview navigation={navigation} />
<Spacer.Vertical size="medium" />
</>
)}
{usesEASUpdates && !isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<View mx="medium" padding="medium" bg="default" rounded="large">
<Text color="secondary" size="small">
Log in or create an account to get started with Extensions
</Text>
<Spacer.Vertical size="large" />
<View>
<Button.ScaleOnPressContainer
bg="tertiary"
rounded="medium"
onPress={onLoginPress}
accessibilityLabel="Log in">
<View py="small">
<Button.Text color="tertiary" weight="semibold" align="center">
Log In
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
<Spacer.Vertical size="small" />
<Button.ScaleOnPressContainer
bg="secondary"
rounded="medium"
onPress={onSignupPress}
accessibilityLabel="Sign Up">
<View py="small">
<Button.Text color="secondary" weight="semibold" align="center">
Sign Up
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
</View>
<Spacer.Vertical size="medium" />
</>
)}
{compatibleExtensions.length > 0 && (
<>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development build with additional
capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</>
)}
</View>
</ScrollView>
</View>
);
}
function EASUpdatesPreview({ navigation }: ExtensionsScreenProps) {
const { appId } = useUpdatesConfig();
const { isLoading, data: branches, incompatibleBranches } = useBranchesForApp(appId); </s> remove </View>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development app with additional capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</s> add )} </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Adds header on screen 123132"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</s> add <View align="centered">
<Button.ScaleOnPressContainer bg="ghost" rounded="small">
<View border="default" px="small" py="2" rounded="small">
<Button.Text color="ghost" weight="semibold" size="small">
Learn More
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep replace replace replace replace replace replace replace replace replace replace replace keep replace replace replace replace replace replace keep
|
<mask> <Spacer.Vertical size="small" />
<mask>
<mask> <View align="centered">
<mask> <Button.ScaleOnPressContainer bg="ghost" rounded="small">
<mask> <View border="default" px="small" py="2" rounded="small">
<mask> <Button.Text color="ghost" weight="semibold" size="small">
<mask> Learn More
<mask> </Button.Text>
<mask> </View>
<mask> </Button.ScaleOnPressContainer>
<mask> </View>
<mask> </View>
<mask> )}
<mask>
<mask> <View mx="medium">
<mask> <View py="small" px="small">
<mask> <Heading size="small" color="secondary">
<mask> EAS Update
<mask> </Heading>
<mask> </View>
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Adds header on screen 123132"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</s> add <View align="centered">
<Button.ScaleOnPressContainer bg="ghost" rounded="small">
<View border="default" px="small" py="2" rounded="small">
<Button.Text color="ghost" weight="semibold" size="small">
Learn More
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View> </s> remove <Spacer.Vertical size="small" />
</s> add export function ExtensionsScreen({ navigation }: ExtensionsScreenProps) {
const { isAuthenticated } = useUser();
const actions = useUserActions(); </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<View bg="default" py="small" px="small" roundedBottom="medium">
</s> add function onBranchPress(branchName: string) {
navigation.navigate('Updates', { branchName });
}
if (isLoading) {
return (
<View height="44" align="centered" mx="medium" rounded="large" bg="default">
<ActivityIndicator />
</View>
);
}
if (branches.length === 0) {
return (
<View mx="medium">
<View px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
<Spacer.Vertical size="small" />
<EmptyBranchesMessage branches={branches} incompatibleBranches={incompatibleBranches} />
</View>
);
}
return (
<View>
<View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
{branches?.slice(0, 2).map((branch, index) => {
const isFirst = index === 0;
return (
<View key={branch.name}>
<Button.ScaleOnPressContainer
bg="default"
onPress={() => onBranchPress(branch.name)}
roundedBottom="none"
roundedTop={isFirst ? 'large' : 'none'}>
<View
bg="default"
roundedTop={isFirst ? 'large' : 'none'}
roundedBottom="none"
py="small"
px="small">
<EASBranchRow branch={branch} />
</View>
</Button.ScaleOnPressContainer>
<Divider />
</View>
);
})}
{branches?.length > 0 && (
<Button.ScaleOnPressContainer
onPress={onSeeAllBranchesPress}
bg="default"
roundedTop="none"
roundedBottom="large">
<View bg="default" py="small" px="small" roundedTop="none" roundedBottom="large"> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Fixes typo"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</View>
</View>
</Button.ScaleOnPressContainer>
</s> add if (usesEASUpdates) {
compatibleExtensions.push('EASUpdates');
} </s> remove </View>
</Button.ScaleOnPressContainer>
</s> add </>
)}
{usesEASUpdates && isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<EASUpdatesPreview navigation={navigation} />
<Spacer.Vertical size="medium" />
</>
)}
{usesEASUpdates && !isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<View mx="medium" padding="medium" bg="default" rounded="large">
<Text color="secondary" size="small">
Log in or create an account to get started with Extensions
</Text>
<Spacer.Vertical size="large" />
<View>
<Button.ScaleOnPressContainer
bg="tertiary"
rounded="medium"
onPress={onLoginPress}
accessibilityLabel="Log in">
<View py="small">
<Button.Text color="tertiary" weight="semibold" align="center">
Log In
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
<Spacer.Vertical size="small" />
<Button.ScaleOnPressContainer
bg="secondary"
rounded="medium"
onPress={onSignupPress}
accessibilityLabel="Sign Up">
<View py="small">
<Button.Text color="secondary" weight="semibold" align="center">
Sign Up
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
</View>
<Spacer.Vertical size="medium" />
</>
)}
{compatibleExtensions.length > 0 && (
<>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development build with additional
capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</>
)}
</View>
</ScrollView>
</View>
);
}
function EASUpdatesPreview({ navigation }: ExtensionsScreenProps) {
const { appId } = useUpdatesConfig();
const { isLoading, data: branches, incompatibleBranches } = useBranchesForApp(appId);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep replace replace keep keep keep
|
<mask>
<mask> <Button.ScaleOnPressContainer bg="default" rounded="none" roundedTop="medium">
<mask> <View bg="default" roundedTop="large" py="small" px="small">
<mask> <Row>
<mask> <Row
<mask> style={{ backgroundColor: palette.blue['100'] }}
<mask> py="tiny"
<mask> px="1.5"
<mask> rounded="medium"
<mask> align="center">
<mask> <BranchIcon
<mask> style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
<mask> resizeMethod="scale"
<mask> />
<mask> <Spacer.Horizontal size="tiny" />
<mask> <Text size="small">Branch: main</Text>
<mask> </Row>
<mask> <Spacer.Horizontal />
<mask>
<mask> <ChevronRightIcon />
<mask> </Row>
<mask>
<mask> <Spacer.Vertical size="small" />
<mask>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none">
<View bg="default" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
rounded="medium"
py="tiny"
px="1.5"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: staging</Text>
</Row>
<Spacer.Horizontal />
<ChevronRightIcon />
</Row>
</s> add <Spacer.Vertical size="small" /> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Fixes typo"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</View>
</View>
</Button.ScaleOnPressContainer>
</s> add if (usesEASUpdates) {
compatibleExtensions.push('EASUpdates');
} </s> remove <Text>See all branches</Text>
</s> add <Text size="medium">See all branches</Text> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Adds header on screen 123132"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</s> add <View align="centered">
<Button.ScaleOnPressContainer bg="ghost" rounded="small">
<View border="default" px="small" py="2" rounded="small">
<Button.Text color="ghost" weight="semibold" size="small">
Learn More
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View> </s> remove <Divider />
</s> add return (
<View>
<AppHeader navigation={navigation} />
<ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<View flex="1">
{compatibleExtensions.length === 0 && (
<>
<Spacer.Vertical size="medium" />
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development build with additional
capabilities.
</Text>
</View>
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep replace keep keep keep
|
<mask>
<mask> <ChevronRightIcon />
<mask> </Row>
<mask>
<mask> <Spacer.Vertical size="small" />
<mask>
<mask> <View>
<mask> <Row>
<mask> <View>
<mask> <Spacer.Vertical size="tiny" />
<mask> <UpdateIcon />
<mask> </View>
<mask> <Spacer.Horizontal size="small" />
<mask> <View flex="1" shrink="1">
<mask> <Heading size="small" numberOfLines={1}>
<mask> Update "Fixes typo"
<mask> </Heading>
<mask> <Spacer.Vertical size="tiny" />
<mask> <Text size="small" color="secondary">
<mask> Published May 16, 2021, 3:15PM
<mask> </Text>
<mask> </View>
<mask> </Row>
<mask> </View>
<mask> </View>
<mask> </Button.ScaleOnPressContainer>
<mask>
<mask> <Divider />
<mask>
<mask> <Button.ScaleOnPressContainer bg="default" rounded="none">
<mask> <View bg="default" py="small" px="small">
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Adds header on screen 123132"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</s> add <View align="centered">
<Button.ScaleOnPressContainer bg="ghost" rounded="small">
<View border="default" px="small" py="2" rounded="small">
<Button.Text color="ghost" weight="semibold" size="small">
Learn More
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none">
<View bg="default" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
rounded="medium"
py="tiny"
px="1.5"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: staging</Text>
</Row>
<Spacer.Horizontal />
<ChevronRightIcon />
</Row>
</s> add <Spacer.Vertical size="small" /> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedTop="medium">
<View bg="default" roundedTop="large" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
py="tiny"
px="1.5"
rounded="medium"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: main</Text>
</Row>
<Spacer.Horizontal />
</s> add function onSignupPress() {
actions.login('signup');
} </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<View bg="default" py="small" px="small" roundedBottom="medium">
</s> add function onBranchPress(branchName: string) {
navigation.navigate('Updates', { branchName });
}
if (isLoading) {
return (
<View height="44" align="centered" mx="medium" rounded="large" bg="default">
<ActivityIndicator />
</View>
);
}
if (branches.length === 0) {
return (
<View mx="medium">
<View px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
<Spacer.Vertical size="small" />
<EmptyBranchesMessage branches={branches} incompatibleBranches={incompatibleBranches} />
</View>
);
}
return (
<View>
<View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
{branches?.slice(0, 2).map((branch, index) => {
const isFirst = index === 0;
return (
<View key={branch.name}>
<Button.ScaleOnPressContainer
bg="default"
onPress={() => onBranchPress(branch.name)}
roundedBottom="none"
roundedTop={isFirst ? 'large' : 'none'}>
<View
bg="default"
roundedTop={isFirst ? 'large' : 'none'}
roundedBottom="none"
py="small"
px="small">
<EASBranchRow branch={branch} />
</View>
</Button.ScaleOnPressContainer>
<Divider />
</View>
);
})}
{branches?.length > 0 && (
<Button.ScaleOnPressContainer
onPress={onSeeAllBranchesPress}
bg="default"
roundedTop="none"
roundedBottom="large">
<View bg="default" py="small" px="small" roundedTop="none" roundedBottom="large"> </s> remove </View>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development app with additional capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</s> add )}
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep
|
<mask>
<mask> <Divider />
<mask>
<mask> <Button.ScaleOnPressContainer bg="default" rounded="none">
<mask> <View bg="default" py="small" px="small">
<mask> <Row>
<mask> <Row
<mask> style={{ backgroundColor: palette.blue['100'] }}
<mask> rounded="medium"
<mask> py="tiny"
<mask> px="1.5"
<mask> align="center">
<mask> <BranchIcon
<mask> style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
<mask> resizeMethod="scale"
<mask> />
<mask> <Spacer.Horizontal size="tiny" />
<mask> <Text size="small">Branch: staging</Text>
<mask> </Row>
<mask> <Spacer.Horizontal />
<mask> <ChevronRightIcon />
<mask> </Row>
<mask>
<mask> <Spacer.Vertical size="small" />
<mask>
<mask> <View>
<mask> <Row>
<mask> <View>
<mask> <Spacer.Vertical size="tiny" />
<mask> <UpdateIcon />
<mask> </View>
<mask> <Spacer.Horizontal size="small" />
<mask> <View flex="1" shrink="1">
<mask> <Heading size="small" numberOfLines={1}>
<mask> Update "Adds header on screen 123132"
<mask> </Heading>
<mask> <Spacer.Vertical size="tiny" />
<mask> <Text size="small" color="secondary">
<mask> Published May 16, 2021, 3:15PM
<mask> </Text>
<mask> </View>
<mask> </Row>
<mask> </View>
<mask> </View>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedTop="medium">
<View bg="default" roundedTop="large" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
py="tiny"
px="1.5"
rounded="medium"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: main</Text>
</Row>
<Spacer.Horizontal />
</s> add function onSignupPress() {
actions.login('signup');
} </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Fixes typo"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</View>
</View>
</Button.ScaleOnPressContainer>
</s> add if (usesEASUpdates) {
compatibleExtensions.push('EASUpdates');
} </s> remove <ChevronRightIcon />
</Row>
</s> add const compatibleExtensions: string[] = []; </s> remove <Divider />
</s> add return (
<View>
<AppHeader navigation={navigation} />
<ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<View flex="1">
{compatibleExtensions.length === 0 && (
<>
<Spacer.Vertical size="medium" />
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development build with additional
capabilities.
</Text>
</View> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<View bg="default" py="small" px="small" roundedBottom="medium">
</s> add function onBranchPress(branchName: string) {
navigation.navigate('Updates', { branchName });
}
if (isLoading) {
return (
<View height="44" align="centered" mx="medium" rounded="large" bg="default">
<ActivityIndicator />
</View>
);
}
if (branches.length === 0) {
return (
<View mx="medium">
<View px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
<Spacer.Vertical size="small" />
<EmptyBranchesMessage branches={branches} incompatibleBranches={incompatibleBranches} />
</View>
);
}
return (
<View>
<View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
{branches?.slice(0, 2).map((branch, index) => {
const isFirst = index === 0;
return (
<View key={branch.name}>
<Button.ScaleOnPressContainer
bg="default"
onPress={() => onBranchPress(branch.name)}
roundedBottom="none"
roundedTop={isFirst ? 'large' : 'none'}>
<View
bg="default"
roundedTop={isFirst ? 'large' : 'none'}
roundedBottom="none"
py="small"
px="small">
<EASBranchRow branch={branch} />
</View>
</Button.ScaleOnPressContainer>
<Divider />
</View>
);
})}
{branches?.length > 0 && (
<Button.ScaleOnPressContainer
onPress={onSeeAllBranchesPress}
bg="default"
roundedTop="none"
roundedBottom="large">
<View bg="default" py="small" px="small" roundedTop="none" roundedBottom="large">
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep keep replace replace keep replace keep keep keep keep
|
<mask> </Text>
<mask> </View>
<mask> </Row>
<mask> </View>
<mask> </View>
<mask> </Button.ScaleOnPressContainer>
<mask>
<mask> <Divider />
<mask>
<mask> <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<mask> <View bg="default" py="small" px="small" roundedBottom="medium">
<mask> <Row>
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Text>See all branches</Text>
</s> add <Text size="medium">See all branches</Text> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<View bg="default" py="small" px="small" roundedBottom="medium">
</s> add function onBranchPress(branchName: string) {
navigation.navigate('Updates', { branchName });
}
if (isLoading) {
return (
<View height="44" align="centered" mx="medium" rounded="large" bg="default">
<ActivityIndicator />
</View>
);
}
if (branches.length === 0) {
return (
<View mx="medium">
<View px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
<Spacer.Vertical size="small" />
<EmptyBranchesMessage branches={branches} incompatibleBranches={incompatibleBranches} />
</View>
);
}
return (
<View>
<View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
{branches?.slice(0, 2).map((branch, index) => {
const isFirst = index === 0;
return (
<View key={branch.name}>
<Button.ScaleOnPressContainer
bg="default"
onPress={() => onBranchPress(branch.name)}
roundedBottom="none"
roundedTop={isFirst ? 'large' : 'none'}>
<View
bg="default"
roundedTop={isFirst ? 'large' : 'none'}
roundedBottom="none"
py="small"
px="small">
<EASBranchRow branch={branch} />
</View>
</Button.ScaleOnPressContainer>
<Divider />
</View>
);
})}
{branches?.length > 0 && (
<Button.ScaleOnPressContainer
onPress={onSeeAllBranchesPress}
bg="default"
roundedTop="none"
roundedBottom="large">
<View bg="default" py="small" px="small" roundedTop="none" roundedBottom="large"> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Fixes typo"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</View>
</View>
</Button.ScaleOnPressContainer>
</s> add if (usesEASUpdates) {
compatibleExtensions.push('EASUpdates');
} </s> remove <Divider />
</s> add return (
<View>
<AppHeader navigation={navigation} />
<ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<View flex="1">
{compatibleExtensions.length === 0 && (
<>
<Spacer.Vertical size="medium" />
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development build with additional
capabilities.
</Text>
</View> </s> remove <View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Update
</Heading>
</View>
</s> add function onLoginPress() {
actions.login('login');
}
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep keep replace replace keep replace keep keep
|
<mask> </Button.ScaleOnPressContainer>
<mask>
<mask> <Divider />
<mask>
<mask> <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<mask> <View bg="default" py="small" px="small" roundedBottom="medium">
<mask> <Row>
<mask> <Text>See all branches</Text>
<mask> <Spacer.Horizontal />
<mask> <ChevronRightIcon />
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Divider />
</s> add function onSeeAllBranchesPress() {
navigation.navigate('Branches');
} </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none">
<View bg="default" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
rounded="medium"
py="tiny"
px="1.5"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: staging</Text>
</Row>
<Spacer.Horizontal />
<ChevronRightIcon />
</Row>
</s> add <Spacer.Vertical size="small" /> </s> remove <Spacer.Vertical size="small" />
<View>
<Row>
<View>
<Spacer.Vertical size="tiny" />
<UpdateIcon />
</View>
<Spacer.Horizontal size="small" />
<View flex="1" shrink="1">
<Heading size="small" numberOfLines={1}>
Update "Fixes typo"
</Heading>
<Spacer.Vertical size="tiny" />
<Text size="small" color="secondary">
Published May 16, 2021, 3:15PM
</Text>
</View>
</Row>
</View>
</View>
</Button.ScaleOnPressContainer>
</s> add if (usesEASUpdates) {
compatibleExtensions.push('EASUpdates');
} </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedTop="medium">
<View bg="default" roundedTop="large" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
py="tiny"
px="1.5"
rounded="medium"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: main</Text>
</Row>
<Spacer.Horizontal />
</s> add function onSignupPress() {
actions.login('signup');
} </s> remove </View>
</Button.ScaleOnPressContainer>
</s> add </>
)}
{usesEASUpdates && isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<EASUpdatesPreview navigation={navigation} />
<Spacer.Vertical size="medium" />
</>
)}
{usesEASUpdates && !isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<View mx="medium" padding="medium" bg="default" rounded="large">
<Text color="secondary" size="small">
Log in or create an account to get started with Extensions
</Text>
<Spacer.Vertical size="large" />
<View>
<Button.ScaleOnPressContainer
bg="tertiary"
rounded="medium"
onPress={onLoginPress}
accessibilityLabel="Log in">
<View py="small">
<Button.Text color="tertiary" weight="semibold" align="center">
Log In
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
<Spacer.Vertical size="small" />
<Button.ScaleOnPressContainer
bg="secondary"
rounded="medium"
onPress={onSignupPress}
accessibilityLabel="Sign Up">
<View py="small">
<Button.Text color="secondary" weight="semibold" align="center">
Sign Up
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
</View>
<Spacer.Vertical size="medium" />
</>
)}
{compatibleExtensions.length > 0 && (
<>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development build with additional
capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</>
)}
</View>
</ScrollView>
</View>
);
}
function EASUpdatesPreview({ navigation }: ExtensionsScreenProps) {
const { appId } = useUpdatesConfig();
const { isLoading, data: branches, incompatibleBranches } = useBranchesForApp(appId);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace keep replace keep
|
<mask> </Row>
<mask> </View>
<mask> </Button.ScaleOnPressContainer>
<mask> </View>
<mask>
<mask> <Spacer.Vertical size="medium" />
<mask>
<mask> <View px="xl">
<mask> <Text size="small" color="secondary">
<mask> Extensions allow you to customize your development app with additional capabilities.{' '}
<mask> <Text size="small" color="secondary">
<mask> Learn more.
<mask> </Text>
<mask> </Text>
<mask> </View>
<mask> </View>
<mask> </SafeAreaView>
<mask> );
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]>
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/ExtensionsScreen.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> import { LoadAppErrorModal } from '../components/LoadAppErrorModal';
<mask> import { PulseIndicator } from '../components/PulseIndicator';
<mask> import { UrlDropdown } from '../components/UrlDropdown';
<mask> import { loadApp } from '../native-modules/DevLauncherInternal';
<mask> import { useBuildInfo } from '../providers/BuildInfoProvider';
<mask> import { useCrashReport } from '../providers/CrashReportProvider';
<mask> import { useDevSessions } from '../providers/DevSessionsProvider';
<mask> import { useModalStack } from '../providers/ModalStackProvider';
<mask> import { useRecentlyOpenedApps } from '../providers/RecentlyOpenedAppsProvider';
<mask> import { DevSession } from '../types';
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { prefetchBranchesForApp } from '../queries/useBranchesForApp'; </s> remove import { ExtensionsScreen } from './screens/ExtensionsScreen';
</s> add import { ExtensionsStack } from './screens/ExtensionsStack'; </s> remove import { ModalProvider } from './ModalStackProvider';
</s> add import { ModalStackProvider } from './ModalStackProvider'; </s> add import { QueryProvider } from './QueryProvider'; </s> remove import { useModalStack } from '../providers/ModalStackProvider';
</s> add </s> add import { useModalStack } from '../providers/ModalStackProvider';
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/HomeScreen.tsx
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> }: HomeScreenProps) {
<mask> const modalStack = useModalStack();
<mask> const { data: devSessions, pollAsync, isFetching } = useDevSessions();
<mask>
<mask> const buildInfo = useBuildInfo();
<mask> const { appName, appIcon } = buildInfo;
<mask>
<mask> const crashReport = useCrashReport();
<mask>
<mask> const initialDevSessionData = React.useRef(devSessions);
<mask>
<mask> React.useEffect(() => {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add import { useBuildInfo } from '../providers/BuildInfoProvider'; </s> remove type AppHeaderProps = {
title?: string;
subtitle?: string;
appImageUri?: string;
onUserProfilePress: () => void;
};
</s> add export function AppHeader({ navigation }) {
const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo; </s> remove function ModalStackContainer() {
const modalStack = useModalStack();
</s> add export function ModalStackProvider({ children, modalStack = defaultModalStack }) { </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove function ModalScreen({ status, element, onPopEnd, onPushEnd }: ModalScreenProps) {
</s> add function ModalScreen({ status, data, onPopEnd, onPushEnd }: ModalScreenProps) {
const { element } = data; </s> remove export function useStackItems<T>(stack: IStack<T>) {
const [items, setItems] = React.useState(() => stack.getState().items);
</s> add export function useStackItems<T>(stack: Stack<T>) {
const [items, setItems] = React.useState<StackItem<T>[]>(stack.getState().items);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/HomeScreen.tsx
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> }, [fetchOnMount, pollInterval, pollAmount, pollAsync]);
<mask>
<mask> const onLoadUrl = (url: string) => {
<mask> loadApp(url).catch((error) => {
<mask> modalStack.push({
<mask> element: <LoadAppErrorModal message={error.message} />,
<mask> });
<mask> });
<mask> };
<mask>
<mask> const onDevSessionPress = async (devSession: DevSession) => {
<mask> onLoadUrl(devSession.url);
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove const onUserProfilePress = () => {
navigation.navigate('User Profile');
};
</s> add </s> remove const { getByText } = render(<DeepLinkModal pendingDeepLink="123" />, {
</s> add const { getAllByText } = render(<DeepLinkModal pendingDeepLink="123" />, { </s> remove modalStack.push({
element: <DeepLinkModal pendingDeepLink={url} />,
});
</s> add modalStack.push(() => <DeepLinkModal pendingDeepLink={url} />); </s> remove modalStack.push({
element: <DeepLinkModal pendingDeepLink={url} />,
});
</s> add modalStack.push(() => <DeepLinkModal pendingDeepLink={url} />); </s> remove modalStack.push({ element: <DevServerExplainerModal /> });
</s> add modalStack.push(() => <DevServerExplainerModal />);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/HomeScreen.tsx
|
keep keep keep keep replace replace replace replace keep keep keep keep keep
|
<mask> const onRefetchPress = () => {
<mask> pollAsync({ pollAmount, pollInterval });
<mask> };
<mask>
<mask> const onUserProfilePress = () => {
<mask> navigation.navigate('User Profile');
<mask> };
<mask>
<mask> const onAppPress = async (url: string) => {
<mask> onLoadUrl(url);
<mask> };
<mask>
<mask> const onDevServerQuestionPress = () => {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove modalStack.push({ element: <DevServerExplainerModal /> });
</s> add modalStack.push(() => <DevServerExplainerModal />); </s> add const onUserProfilePress = () => {
navigation.navigate('User Profile');
};
</s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove export function AppHeader({ title, subtitle, appImageUri, onUserProfilePress }: AppHeaderProps) {
const insets = useSafeAreaInsets();
</s> add </s> remove modalStack.push({
element: (
<LogoutConfirmationModal
onClosePress={() => modalStack.pop()}
onLogoutPress={() => {
actions.logout();
modalStack.pop();
}}
/>
),
});
</s> add modalStack.push(() => (
<LogoutConfirmationModal
onClosePress={() => modalStack.pop()}
onLogoutPress={async () => {
await actions.logout();
modalStack.pop();
}}
/>
)); </s> remove const unsubscribe = stack.subscribe(({ items }) => {
setItems(items);
</s> add const unsubscribe = stack.subscribe(({ state }) => {
setItems(state.items);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/HomeScreen.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> onLoadUrl(url);
<mask> };
<mask>
<mask> const onDevServerQuestionPress = () => {
<mask> modalStack.push({ element: <DevServerExplainerModal /> });
<mask> };
<mask>
<mask> const onCrashReportPress = () => {
<mask> navigation.navigate('Crash Report', crashReport);
<mask> };
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove const onUserProfilePress = () => {
navigation.navigate('User Profile');
};
</s> add </s> remove modalStack.push({
element: (
<LogoutConfirmationModal
onClosePress={() => modalStack.pop()}
onLogoutPress={() => {
actions.logout();
modalStack.pop();
}}
/>
),
});
</s> add modalStack.push(() => (
<LogoutConfirmationModal
onClosePress={() => modalStack.pop()}
onLogoutPress={async () => {
await actions.logout();
modalStack.pop();
}}
/>
)); </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove modalStack.push({
element: <DeepLinkModal pendingDeepLink={url} />,
});
</s> add modalStack.push(() => <DeepLinkModal pendingDeepLink={url} />); </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack();
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/HomeScreen.tsx
|
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> };
<mask>
<mask> return (
<mask> <View testID="DevLauncherMainScreen">
<mask> <View bg="default">
<mask> <AppHeader
<mask> title={appName}
<mask> appImageUri={appIcon}
<mask> subtitle="Development Build"
<mask> onUserProfilePress={onUserProfilePress}
<mask> />
<mask> </View>
<mask> <ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<mask> {crashReport && (
<mask> <View px="medium" py="small" mt="small">
<mask> <Button.ScaleOnPressContainer onPress={onCrashReportPress} bg="default" rounded="large">
<mask> <Row align="center" padding="medium" bg="default">
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <Divider />
</s> add return (
<View>
<AppHeader navigation={navigation} />
<ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<View flex="1">
{compatibleExtensions.length === 0 && (
<>
<Spacer.Vertical size="medium" />
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development build with additional
capabilities.
</Text>
</View> </s> remove <Spacer.Vertical size="large" />
</s> add <View px="medium" mt="8">
<Heading size="large">Settings</Heading>
</View> </s> remove <View>
<View style={{ height: insets.top }} />
</s> add <View bg="default"> </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none" roundedBottom="medium">
<View bg="default" py="small" px="small" roundedBottom="medium">
</s> add function onBranchPress(branchName: string) {
navigation.navigate('Updates', { branchName });
}
if (isLoading) {
return (
<View height="44" align="centered" mx="medium" rounded="large" bg="default">
<ActivityIndicator />
</View>
);
}
if (branches.length === 0) {
return (
<View mx="medium">
<View px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
<Spacer.Vertical size="small" />
<EmptyBranchesMessage branches={branches} incompatibleBranches={incompatibleBranches} />
</View>
);
}
return (
<View>
<View mx="medium">
<View py="small" px="small">
<Heading size="small" color="secondary">
EAS Updates
</Heading>
</View>
{branches?.slice(0, 2).map((branch, index) => {
const isFirst = index === 0;
return (
<View key={branch.name}>
<Button.ScaleOnPressContainer
bg="default"
onPress={() => onBranchPress(branch.name)}
roundedBottom="none"
roundedTop={isFirst ? 'large' : 'none'}>
<View
bg="default"
roundedTop={isFirst ? 'large' : 'none'}
roundedBottom="none"
py="small"
px="small">
<EASBranchRow branch={branch} />
</View>
</Button.ScaleOnPressContainer>
<Divider />
</View>
);
})}
{branches?.length > 0 && (
<Button.ScaleOnPressContainer
onPress={onSeeAllBranchesPress}
bg="default"
roundedTop="none"
roundedBottom="large">
<View bg="default" py="small" px="small" roundedTop="none" roundedBottom="large"> </s> remove return (
<SafeAreaView style={{ flex: 1 }}>
<View flex="1">
{extensions.length === 0 && (
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development app with additional capabilities.
</Text>
</View>
</s> add type ExtensionsScreenProps = {
navigation: StackNavigationProp<ExtensionsStackParamList>;
}; </s> remove </View>
</Button.ScaleOnPressContainer>
</s> add </>
)}
{usesEASUpdates && isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<EASUpdatesPreview navigation={navigation} />
<Spacer.Vertical size="medium" />
</>
)}
{usesEASUpdates && !isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<View mx="medium" padding="medium" bg="default" rounded="large">
<Text color="secondary" size="small">
Log in or create an account to get started with Extensions
</Text>
<Spacer.Vertical size="large" />
<View>
<Button.ScaleOnPressContainer
bg="tertiary"
rounded="medium"
onPress={onLoginPress}
accessibilityLabel="Log in">
<View py="small">
<Button.Text color="tertiary" weight="semibold" align="center">
Log In
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
<Spacer.Vertical size="small" />
<Button.ScaleOnPressContainer
bg="secondary"
rounded="medium"
onPress={onSignupPress}
accessibilityLabel="Sign Up">
<View py="small">
<Button.Text color="secondary" weight="semibold" align="center">
Sign Up
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
</View>
<Spacer.Vertical size="medium" />
</>
)}
{compatibleExtensions.length > 0 && (
<>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development build with additional
capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</>
)}
</View>
</ScrollView>
</View>
);
}
function EASUpdatesPreview({ navigation }: ExtensionsScreenProps) {
const { appId } = useUpdatesConfig();
const { isLoading, data: branches, incompatibleBranches } = useBranchesForApp(appId);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/HomeScreen.tsx
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> const hasCopiedContent = Boolean(clipboardContent);
<mask>
<mask> return (
<mask> <ScrollView testID="DevLauncherSettingsScreen">
<mask> <Spacer.Vertical size="large" />
<mask>
<mask> <View py="large" px="medium">
<mask> <View bg="default" rounded="large">
<mask> <Row px="medium" py="small" align="center">
<mask> <ShowMenuIcon />
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove <View bg="default">
<AppHeader
title={appName}
appImageUri={appIcon}
subtitle="Development Build"
onUserProfilePress={onUserProfilePress}
/>
</View>
</s> add <AppHeader navigation={navigation} /> </s> remove <Divider />
</s> add return (
<View>
<AppHeader navigation={navigation} />
<ScrollView contentContainerStyle={{ paddingBottom: scale['48'] }}>
<View flex="1">
{compatibleExtensions.length === 0 && (
<>
<Spacer.Vertical size="medium" />
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development build with additional
capabilities.
</Text>
</View> </s> remove return (
<SafeAreaView style={{ flex: 1 }}>
<View flex="1">
{extensions.length === 0 && (
<View bg="default" mx="medium" py="medium" px="medium" rounded="medium">
<View align="centered">
<ExtensionsIcon />
</View>
<Spacer.Vertical size="medium" />
<View px="small">
<Text size="small" align="center">
Extensions allow you to customize your development app with additional capabilities.
</Text>
</View>
</s> add type ExtensionsScreenProps = {
navigation: StackNavigationProp<ExtensionsStackParamList>;
}; </s> remove <View>
<View style={{ height: insets.top }} />
</s> add <View bg="default"> </s> remove </View>
</Button.ScaleOnPressContainer>
</s> add </>
)}
{usesEASUpdates && isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<EASUpdatesPreview navigation={navigation} />
<Spacer.Vertical size="medium" />
</>
)}
{usesEASUpdates && !isAuthenticated && (
<>
<Spacer.Vertical size="medium" />
<View mx="medium" padding="medium" bg="default" rounded="large">
<Text color="secondary" size="small">
Log in or create an account to get started with Extensions
</Text>
<Spacer.Vertical size="large" />
<View>
<Button.ScaleOnPressContainer
bg="tertiary"
rounded="medium"
onPress={onLoginPress}
accessibilityLabel="Log in">
<View py="small">
<Button.Text color="tertiary" weight="semibold" align="center">
Log In
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
<Spacer.Vertical size="small" />
<Button.ScaleOnPressContainer
bg="secondary"
rounded="medium"
onPress={onSignupPress}
accessibilityLabel="Sign Up">
<View py="small">
<Button.Text color="secondary" weight="semibold" align="center">
Sign Up
</Button.Text>
</View>
</Button.ScaleOnPressContainer>
</View>
</View>
<Spacer.Vertical size="medium" />
</>
)}
{compatibleExtensions.length > 0 && (
<>
<Spacer.Vertical size="medium" />
<View px="xl">
<Text size="small" color="secondary">
Extensions allow you to customize your development build with additional
capabilities.{' '}
<Text size="small" color="secondary">
Learn more.
</Text>
</Text>
</View>
</>
)}
</View>
</ScrollView>
</View>
);
}
function EASUpdatesPreview({ navigation }: ExtensionsScreenProps) {
const { appId } = useUpdatesConfig();
const { isLoading, data: branches, incompatibleBranches } = useBranchesForApp(appId); </s> remove <Button.ScaleOnPressContainer bg="default" rounded="none">
<View bg="default" py="small" px="small">
<Row>
<Row
style={{ backgroundColor: palette.blue['100'] }}
rounded="medium"
py="tiny"
px="1.5"
align="center">
<BranchIcon
style={{ maxHeight: 10, maxWidth: 12, resizeMode: 'contain' }}
resizeMethod="scale"
/>
<Spacer.Horizontal size="tiny" />
<Text size="small">Branch: staging</Text>
</Row>
<Spacer.Horizontal />
<ChevronRightIcon />
</Row>
</s> add <Spacer.Vertical size="small" />
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/SettingsScreen.tsx
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> actions.setSelectedAccount(account.id);
<mask> };
<mask>
<mask> const onLogoutPress = () => {
<mask> modalStack.push({
<mask> element: (
<mask> <LogoutConfirmationModal
<mask> onClosePress={() => modalStack.pop()}
<mask> onLogoutPress={() => {
<mask> actions.logout();
<mask> modalStack.pop();
<mask> }}
<mask> />
<mask> ),
<mask> });
<mask> };
<mask>
<mask> const onClosePress = () => {
<mask> navigation.goBack();
<mask> };
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove modalStack.push({ element: <DevServerExplainerModal /> });
</s> add modalStack.push(() => <DevServerExplainerModal />); </s> remove const onUserProfilePress = () => {
navigation.navigate('User Profile');
};
</s> add </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove <Animated.View
style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
pointerEvents={hasModal ? 'auto' : 'none'}>
<Pressable
onPress={() => {
modalStack.pop();
}}
style={[StyleSheet.absoluteFillObject]}>
{modals.map((item) => (
<ModalScreen
key={item.key}
{...item}
onClose={() => modalStack.pop()}
onPopEnd={() => modalStack.onPopEnd(item.key)}
onPushEnd={() => modalStack.onPushEnd(item.key)}
/>
))}
</Pressable>
</Animated.View>
</s> add <ModalStackContext.Provider value={{ push, pop }}>
{children}
<Animated.View
style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
pointerEvents={hasModal ? 'box-none' : 'none'}>
<Pressable
onPress={() => {
modalStack.pop();
}}
style={[StyleSheet.absoluteFillObject]}>
{modals.map((item) => (
<ModalScreen
key={item.key}
{...item}
onClose={item.pop}
onPopEnd={item.onPopEnd}
onPushEnd={item.onPushEnd}
/>
))}
</Pressable>
</Animated.View>
</ModalStackContext.Provider> </s> remove modalStack.push({
element: <LoadAppErrorModal message={error.message} />,
});
</s> add modalStack.push(() => <LoadAppErrorModal message={error.message} />); </s> remove modalStack.push({
element: <DeepLinkModal pendingDeepLink={url} />,
});
</s> add modalStack.push(() => <DeepLinkModal pendingDeepLink={url} />);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/screens/UserProfileScreen.tsx
|
keep add keep keep keep keep keep
|
<mask> import * as React from 'react';
<mask>
<mask> import { AppProviders, AppProvidersProps } from './providers/AppProviders';
<mask>
<mask> export * from '@testing-library/react-native';
<mask>
<mask> type AppProviderOptions = {
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove import { useSafeAreaInsets } from 'react-native-safe-area-context';
</s> add </s> remove import { useModalStack } from '../providers/ModalStackProvider';
</s> add </s> add View, </s> remove import { SafeAreaView } from 'react-native';
</s> add import { ScrollView } from 'react-native-gesture-handler'; </s> add import { useBuildInfo } from '../providers/BuildInfoProvider'; </s> add scale,
Divider,
Heading,
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/test-utils.tsx
|
keep keep keep keep replace keep
|
<mask>
<mask> const mockFetch = global.fetch as jest.Mock;
<mask>
<mask> export function mockFetchReturn(dataToReturn: any) {
<mask> return mockFetch.mockResolvedValueOnce({ ok: true, json: () => dataToReturn });
<mask> }
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove function subscribe(listener: any) {
</s> add function subscribe(listener: (state: StackEvent<T>) => void) { </s> remove const promise2 = await push(replaceOptions);
const promise1 = await pop(itemsToPop, 1);
return Promise.all([promise2, promise1]);
</s> add return item; </s> remove promises.push(promise);
</s> add item.promise = promise;
</s> remove const unsubscribe = stack.subscribe(({ items }) => {
setItems(items);
</s> add const unsubscribe = stack.subscribe(({ state }) => {
setItems(state.items); </s> remove const ModalContext = React.createContext(createAsyncStack<ModalProps>());
export const useModalStack = () => React.useContext(ModalContext);
export function ModalProvider({ children }) {
const modalStack = React.useRef(createAsyncStack<ModalProps>());
return (
<ModalContext.Provider value={modalStack.current}>
{children}
<ModalStackContainer />
</ModalContext.Provider>
);
}
</s> add const ModalStackContext = React.createContext<ModalStackContextProps | null>(null);
export const useModalStack = () => React.useContext(ModalStackContext);
const defaultModalStack = createAsyncStack(); </s> remove export function useStackItems<T>(stack: IStack<T>) {
const [items, setItems] = React.useState(() => stack.getState().items);
</s> add export function useStackItems<T>(stack: Stack<T>) {
const [items, setItems] = React.useState<StackItem<T>[]>(stack.getState().items);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/bundle/test-utils.tsx
|
keep add keep keep keep
|
<mask> - (void)copyToClipboard:(NSString *)content;
<mask>
<mask> @end
<mask>
<mask> NS_ASSUME_NONNULL_END
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove for (let i = 1; i <= amount; i++) {
const key = keys[keys.length - startIndex - i];
</s> add let startIndex = keys.length - 1;
for (let i = keys.length - 1; i >= 0; i--) {
const key = keys[i];
const item = lookup[key];
if (item && (item.status === 'settled' || item.status === 'pushing')) {
startIndex = i;
break;
}
}
for (let i = startIndex; i > startIndex - amount; i--) {
const key = keys[i]; </s> add // TODO - the logic related to getting the appId could be moved into the expo-updates package and used inside the dev launcher JS
var updatesUrl = getMetadataValue("expo.modules.updates.EXPO_UPDATE_URL")
var appId = ""
if (updatesUrl.isNotEmpty()) {
var uri = Uri.parse(updatesUrl)
appId = uri.lastPathSegment ?: ""
}
</s> remove }
</s> add }; </s> remove lookup[key] = {
...pushOptions,
</s> add const promise = new Promise<StackItem<T>>((resolve) => {
pushResolvers[key] = resolve;
});
const item: StackItem<T> = { </s> remove function push(pushOptions: IPushOptions<T>) {
const key = pushOptions.key || generateRouteKey();
if (keys.includes(key)) {
return Promise.resolve(key);
}
</s> add function push(data?: T) {
count += 1;
const key = '' + count; </s> remove const pushResolvers: Record<string, Function> = {};
</s> add const pushResolvers: Record<string, any> = {};
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/ios/EXDevLauncherController.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> const url = new URL(req.url, `http://${req.headers.host}`);
<mask> const platform = url.searchParams.get('platform');
<mask>
<mask> // When an asset is imported outside the project root, it has wrong path on Android
<mask> // So we fix the path to correct one
<mask> if (platform === 'android' && /\/assets\/.+\.png\?.+$/.test(req.url)) {
<mask> req.url = `/assets/../${req.url}`;
<mask> }
<mask>
<mask> return middleware(req, res, next);
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add // TODO - the logic related to getting the appId could be moved into the expo-updates package and used inside the dev launcher JS
var updatesUrl = getMetadataValue("expo.modules.updates.EXPO_UPDATE_URL")
var appId = ""
if (updatesUrl.isNotEmpty()) {
var uri = Uri.parse(updatesUrl)
appId = uri.lastPathSegment ?: ""
}
</s> remove function pop(amount = 1, startIndex = 0) {
const promises = [];
</s> add function pop(amount: number | string = 1) {
const items: StackItem[] = [];
if (typeof amount === 'string') {
const key = amount;
const item = lookup[key];
if (item) {
if (item.status === 'pushing') {
onPushEnd(key);
}
item.status = 'popping';
const promise = new Promise<StackItem<T>>((resolve) => {
popResolvers[key] = resolve;
});
item.promise = promise;
emit('popstart', key);
items.push(item);
}
return items;
} </s> remove for (let i = 1; i <= amount; i++) {
const key = keys[keys.length - startIndex - i];
</s> add let startIndex = keys.length - 1;
for (let i = keys.length - 1; i >= 0; i--) {
const key = keys[i];
const item = lookup[key];
if (item && (item.status === 'settled' || item.status === 'pushing')) {
startIndex = i;
break;
}
}
for (let i = startIndex; i > startIndex - amount; i--) {
const key = keys[i]; </s> add if (item.status === 'pushing') {
onPushEnd(key);
}
</s> remove export type IStackEvent = 'pushstart' | 'pushend' | 'popstart' | 'popend' | 'replace';
</s> add export type StackItemComponent<T = any> = React.JSXElementConstructor<T>; </s> remove status: 'pushing',
</s> add promise,
// @ts-ignore
data,
status: 'pushing' as Status,
pop: () => pop(`${key}`),
onPushEnd: () => onPushEnd(key),
onPopEnd: () => onPopEnd(key),
animatedValue: new Animated.Value(0),
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/metro.config.js
|
keep add keep keep keep keep
|
<mask> "babel-plugin-module-resolver": "^4.1.0",
<mask> "babel-preset-expo": "~9.0.0",
<mask> "expo-dev-client-components": "1.0.0",
<mask> "expo-module-scripts": "^2.0.0",
<mask> "graphql": "^16.0.1",
<mask> "graphql-request": "^3.6.1",
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove "react-native-primitives": "^0.1.3",
</s> add "react-query": "^3.34.16", </s> remove export type StackItemStatus = 'pushing' | 'popping' | 'settled';
export type ListenerFn<T> = ({
items,
}: {
action: IStackEvent;
key: string;
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
}) => void;
export type StackItem<T> = T & { key: string; status: StackItemStatus };
export type IReplaceOptions<T> = T & { replaceAmount?: number; key?: string };
export type IPushOptions<T> = T & { key?: string };
export interface IStack<T> {
push: (pushOptions: IPushOptions<T>) => Promise<string>;
pop: (amount?: number) => Promise<string[]>;
replace: (replaceOptions: IReplaceOptions<T>) => Promise<any>;
onPushEnd: (key: string) => void;
onPopEnd: (key: string) => void;
subscribe: (listener: ListenerFn<T>) => () => void;
getState: () => {
items: StackItem<T>[];
getItemByKey: (key: string) => T | undefined;
</s> add export type StackEvent<T = any> = {
state: StackState<T>;
event: {
action: StackAction;
key: string; </s> remove lookup[key] = {
...pushOptions,
</s> add const promise = new Promise<StackItem<T>>((resolve) => {
pushResolvers[key] = resolve;
});
const item: StackItem<T> = { </s> remove function push(pushOptions: IPushOptions<T>) {
const key = pushOptions.key || generateRouteKey();
if (keys.includes(key)) {
return Promise.resolve(key);
}
</s> add function push(data?: T) {
count += 1;
const key = '' + count; </s> remove const pushResolvers: Record<string, Function> = {};
</s> add const pushResolvers: Record<string, any> = {}; </s> add let count = 0;
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/package.json
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> "graphql": "^16.0.1",
<mask> "graphql-request": "^3.6.1",
<mask> "react": "17.0.2",
<mask> "react-native": "0.67.2",
<mask> "react-native-primitives": "^0.1.3",
<mask> "url": "^0.11.0"
<mask> },
<mask> "peerDependencies": {
<mask> "expo": "*"
<mask> },
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> add "date-fns": "^2.28.0", </s> remove border,
</s> add opacity: {
'1': { opacity: 1 },
'0.5': { opacity: 0.5 },
'0.75': { opacity: 0.75 },
'0': { opacity: 0 },
},
absolute: {
top: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
},
bottom: {
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
},
all: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
},
border: {
default: { borderColor: lightTheme.border.default, borderWidth: 1 },
hairline: { borderColor: lightTheme.border.default, borderWidth: StyleSheet.hairlineWidth },
warning: { borderColor: lightTheme.border.warning, borderWidth: 1 },
error: { borderColor: lightTheme.border.error, borderWidth: 1 },
}, </s> remove border,
</s> add opacity: {
'1': { opacity: 1 },
'0.5': { opacity: 0.5 },
'0.75': { opacity: 0.75 },
'0': { opacity: 0 },
},
absolute: {
top: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
},
bottom: {
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
},
all: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
},
border: {
default: { borderColor: lightTheme.border.default, borderWidth: 1 },
hairline: { borderColor: lightTheme.border.default, borderWidth: StyleSheet.hairlineWidth },
warning: { borderColor: lightTheme.border.warning, borderWidth: 1 },
error: { borderColor: lightTheme.border.error, borderWidth: 1 },
}, </s> add error: { borderColor: darkTheme.border.error, borderWidth: 1 }, </s> add error: { borderColor: darkTheme.border.error, borderWidth: 1 }, </s> remove return () => {
unsubscribe && unsubscribe();
};
}, [stack]);
</s> add return () => unsubscribe();
}, []);
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/package.json
|
keep add keep keep keep keep keep keep
|
<mask> jest.mock('./bundle/native-modules/DevLauncherAuth');
<mask> jest.mock('./bundle/native-modules/DevMenuPreferences');
<mask>
<mask> const MOCK_INITIAL_METRICS = {
<mask> frame: {
<mask> width: 320,
<mask> height: 640,
<mask> x: 0,
</s> [dev-launcher] implement EAS updates extension panel (#16718)
Co-authored-by: Eric Samelson <[email protected]> </s> remove border,
</s> add opacity: {
'1': { opacity: 1 },
'0.5': { opacity: 0.5 },
'0.75': { opacity: 0.75 },
'0': { opacity: 0 },
},
absolute: {
top: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
},
bottom: {
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
},
all: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
},
border: {
default: { borderColor: lightTheme.border.default, borderWidth: 1 },
hairline: { borderColor: lightTheme.border.default, borderWidth: StyleSheet.hairlineWidth },
warning: { borderColor: lightTheme.border.warning, borderWidth: 1 },
error: { borderColor: lightTheme.border.error, borderWidth: 1 },
}, </s> remove border,
</s> add opacity: {
'1': { opacity: 1 },
'0.5': { opacity: 0.5 },
'0.75': { opacity: 0.75 },
'0': { opacity: 0 },
},
absolute: {
top: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
},
bottom: {
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
},
all: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
},
border: {
default: { borderColor: lightTheme.border.default, borderWidth: 1 },
hairline: { borderColor: lightTheme.border.default, borderWidth: StyleSheet.hairlineWidth },
warning: { borderColor: lightTheme.border.warning, borderWidth: 1 },
error: { borderColor: lightTheme.border.error, borderWidth: 1 },
}, </s> remove const buildInfo = useBuildInfo();
const { appName, appIcon } = buildInfo;
</s> add </s> remove lookup[key] = {
...pushOptions,
</s> add const promise = new Promise<StackItem<T>>((resolve) => {
pushResolvers[key] = resolve;
});
const item: StackItem<T> = { </s> remove const { getByText, queryByText } = render(null, {
</s> add const { queryByText, queryAllByText } = render(null, { </s> remove const onUserProfilePress = () => {
navigation.navigate('User Profile');
};
</s> add
|
https://github.com/expo/expo/commit/43fd9ed37186e06fc75e7ed1b2d1f022a2d14d69
|
packages/expo-dev-launcher/setupTests.ts
|
keep keep add keep keep keep keep
|
<mask>
<mask> public class ScopedExpoNotificationPresentationModule extends ExpoNotificationPresentationModule {
<mask> private final ExperienceId mExperienceId;
<mask>
<mask> public ScopedExpoNotificationPresentationModule(Context context, ExperienceId experienceId) {
<mask> super(context);
<mask> mExperienceId = experienceId;
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedExpoNotificationPresentationModule.java
|
keep add keep keep keep keep
|
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> }
<mask>
<mask> @Override
<mask> protected NotificationRequest createNotificationRequest(String identifier, NotificationContent content, NotificationTrigger trigger) {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (request == null || !mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedExpoNotificationPresentationModule.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> @Override
<mask> protected ArrayList<Bundle> serializeNotifications(Collection<Notification> notifications) {
<mask> ArrayList<Bundle> serializedNotifications = new ArrayList<>();
<mask> for (Notification notification : notifications) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
<mask> serializedNotifications.add(NotificationSerializer.toBundle(notification));
<mask> }
<mask> }
<mask>
<mask> return serializedNotifications;
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedExpoNotificationPresentationModule.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> super.onReceiveResult(resultCode, resultData);
<mask> Collection<Notification> notifications = resultData.getParcelableArrayList(BaseNotificationsService.NOTIFICATIONS_KEY);
<mask> if (resultCode == BaseNotificationsService.SUCCESS_CODE && notifications != null) {
<mask> Notification notification = findNotification(notifications, identifier);
<mask> if (notification == null || !ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
<mask> promise.resolve(null);
<mask> return;
<mask> }
<mask>
<mask> doDismissNotificationAsync(identifier, promise);
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (request == null || !mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedExpoNotificationPresentationModule.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> Collection<Notification> notifications = resultData.getParcelableArrayList(BaseNotificationsService.NOTIFICATIONS_KEY);
<mask> if (resultCode == BaseNotificationsService.SUCCESS_CODE && notifications != null) {
<mask> ArrayList<String> toDismiss = new ArrayList<>();
<mask> for (Notification notification : notifications) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
<mask> toDismiss.add(notification.getNotificationRequest().getIdentifier());
<mask> }
<mask> }
<mask> dismissSelectedAsync(toDismiss.toArray(new String[0]), promise);
<mask> } else {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (notification == null || !ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (notification == null || !mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (request == null || !mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedExpoNotificationPresentationModule.java
|
keep keep keep add keep keep keep keep keep keep
|
<mask> import host.exp.exponent.notifications.ScopedNotificationsUtils;
<mask>
<mask> public class ScopedNotificationScheduler extends NotificationScheduler {
<mask> private final ExperienceId mExperienceId;
<mask>
<mask> public ScopedNotificationScheduler(Context context, ExperienceId experienceId) {
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
<mask> }
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationScheduler.java
|
keep add keep keep keep keep
|
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> }
<mask>
<mask> @Override
<mask> protected NotificationRequest createNotificationRequest(String identifier, NotificationContent content, NotificationTrigger notificationTrigger) {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (request == null || !mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationScheduler.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> @Override
<mask> protected Collection<Bundle> serializeScheduledNotificationRequests(Collection<NotificationRequest> requests) {
<mask> Collection<Bundle> serializedRequests = new ArrayList<>(requests.size());
<mask> for (NotificationRequest request : requests) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
<mask> serializedRequests.add(NotificationSerializer.toBundle(request));
<mask> }
<mask> }
<mask> return serializedRequests;
<mask> }
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (request == null || !mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationScheduler.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> protected void onReceiveResult(int resultCode, Bundle resultData) {
<mask> super.onReceiveResult(resultCode, resultData);
<mask> if (resultCode == ExpoNotificationSchedulerService.SUCCESS_CODE) {
<mask> NotificationRequest request = resultData.getParcelable(ExpoNotificationSchedulerService.NOTIFICATION_REQUESTS_KEY);
<mask> if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
<mask> promise.resolve(null);
<mask> }
<mask>
<mask> doCancelScheduledNotificationAsync(identifier, promise);
<mask> } else {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (notification == null || !ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (notification == null || !mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationScheduler.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return;
<mask> }
<mask> List<String> toRemove = new ArrayList<>();
<mask> for (NotificationRequest request : requests) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
<mask> toRemove.add(request.getIdentifier());
<mask> }
<mask> }
<mask>
<mask> if (toRemove.size() == 0) {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (request == null || !ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (request == null || !mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (notification == null || !ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (notification == null || !mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationScheduler.java
|
keep add keep keep keep keep keep keep
|
<mask> public class ScopedNotificationsEmitter extends NotificationsEmitter {
<mask> private ExperienceId mExperienceId;
<mask>
<mask> public ScopedNotificationsEmitter(Context context, ExperienceId experienceId) {
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
<mask> }
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils; </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsEmitter.java
|
keep add keep keep keep keep
|
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> }
<mask>
<mask> @Override
<mask> public void onNotificationReceived(Notification notification) {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) { </s> add private ScopedNotificationsUtils mScopedNotificationsUtils;
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsEmitter.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> @Override
<mask> public void onNotificationReceived(Notification notification) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
<mask> super.onNotificationReceived(notification);
<mask> }
<mask> }
<mask>
<mask> @Override
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsEmitter.java
|
keep keep keep keep replace keep keep keep keep
|
<mask> }
<mask>
<mask> @Override
<mask> public void onNotificationResponseReceived(NotificationResponse response) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
<mask> super.onNotificationResponseReceived(response);
<mask> }
<mask> }
<mask> }
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(request, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsEmitter.java
|
keep keep add keep keep keep keep keep keep
|
<mask>
<mask> public class ScopedNotificationsHandler extends NotificationsHandler {
<mask> private ExperienceId mExperienceId;
<mask>
<mask> public ScopedNotificationsHandler(Context context, ExperienceId experienceId) {
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
<mask> }
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils; </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils; </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context);
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsHandler.java
|
keep keep add keep keep keep keep
|
<mask> public ScopedNotificationsHandler(Context context, ExperienceId experienceId) {
<mask> super(context);
<mask> mExperienceId = experienceId;
<mask> }
<mask>
<mask> @Override
<mask> public void onNotificationReceived(Notification notification) {
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> add mScopedNotificationsUtils = new ScopedNotificationsUtils(context); </s> add private ScopedNotificationsUtils mScopedNotificationsUtils; </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> remove if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
</s> add if (mScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) { </s> add private final ScopedNotificationsUtils mScopedNotificationsUtils;
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsHandler.java
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> @Override
<mask> public void onNotificationReceived(Notification notification) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(notification, mExperienceId)) {
<mask> super.onNotificationReceived(notification);
<mask> }
<mask> }
<mask>
<mask> @Override
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsHandler.java
|
keep keep keep keep replace keep keep keep keep
|
<mask> }
<mask>
<mask> @Override
<mask> public void onNotificationResponseReceived(NotificationResponse response) {
<mask> if (ScopedNotificationsUtils.shouldHandleNotification(response.getNotification(), mExperienceId)) {
<mask> super.onNotificationResponseReceived(response);
<mask> }
<mask> }
<mask> }
</s> [android] backport changes from 29dec72170c94bf4ec1b472effbdeb530efdd8f8 to versioned abi38 code
|
https://github.com/expo/expo/commit/48139e7a57110f541d6fbf3b459adbd12b01f08c
|
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/host/exp/exponent/modules/universal/notifications/ScopedNotificationsHandler.java
|
keep keep add keep keep keep
|
<mask> <string>41.0.0</string>
<mask> <string>42.0.0</string>
<mask> <string>43.0.0</string>
<mask> </array>
<mask> </dict>
<mask> </plist>
</s> [ios] Add versioned code for SDK44 (#15450) </s> add <string>44.0.0</string> </s> add "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ABI44_0_0AccessibilityResources.bundle", </s> add "${PODS_CONFIGURATION_BUILD_DIR}/ABI44_0_0React-Core/ABI44_0_0AccessibilityResources.bundle",
|
https://github.com/expo/expo/commit/4899ef4dc7868029ddc8b6e556e74c5649355c6b
|
exponent-view-template/ios/exponent-view-template/Supporting/EXSDKVersions.plist
|
keep keep add keep keep keep keep
|
<mask> "${PODS_CONFIGURATION_BUILD_DIR}/ABI41_0_0React-Core/ABI41_0_0AccessibilityResources.bundle",
<mask> "${PODS_CONFIGURATION_BUILD_DIR}/ABI42_0_0React-Core/ABI42_0_0AccessibilityResources.bundle",
<mask> "${PODS_CONFIGURATION_BUILD_DIR}/ABI43_0_0React-Core/ABI43_0_0AccessibilityResources.bundle",
<mask> );
<mask> name = "[CP] Copy Pods Resources";
<mask> outputPaths = (
<mask> "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ComodoRsaDomainValidationCA.der",
</s> [ios] Add versioned code for SDK44 (#15450) </s> add <string>44.0.0</string> </s> add "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ABI44_0_0AccessibilityResources.bundle", </s> add <string>44.0.0</string>
|
https://github.com/expo/expo/commit/4899ef4dc7868029ddc8b6e556e74c5649355c6b
|
ios/Exponent.xcodeproj/project.pbxproj
|
keep keep keep add keep keep keep keep
|
<mask> "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/StripeUICore.bundle",
<mask> "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ABI41_0_0AccessibilityResources.bundle",
<mask> "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ABI42_0_0AccessibilityResources.bundle",
<mask> "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ABI43_0_0AccessibilityResources.bundle",
<mask> );
<mask> runOnlyForDeploymentPostprocessing = 0;
<mask> shellPath = /bin/sh;
<mask> shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Expo Go-Expo Go (versioned)/Pods-Expo Go-Expo Go (versioned)-resources.sh\"\n";
</s> [ios] Add versioned code for SDK44 (#15450) </s> add <string>44.0.0</string> </s> add "${PODS_CONFIGURATION_BUILD_DIR}/ABI44_0_0React-Core/ABI44_0_0AccessibilityResources.bundle", </s> add <string>44.0.0</string>
|
https://github.com/expo/expo/commit/4899ef4dc7868029ddc8b6e556e74c5649355c6b
|
ios/Exponent.xcodeproj/project.pbxproj
|
keep keep keep add keep keep keep
|
<mask> <array>
<mask> <string>41.0.0</string>
<mask> <string>42.0.0</string>
<mask> <string>43.0.0</string>
<mask> </array>
<mask> </dict>
<mask> </plist>
</s> [ios] Add versioned code for SDK44 (#15450) </s> add "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ABI44_0_0AccessibilityResources.bundle", </s> add "${PODS_CONFIGURATION_BUILD_DIR}/ABI44_0_0React-Core/ABI44_0_0AccessibilityResources.bundle", </s> add <string>44.0.0</string>
|
https://github.com/expo/expo/commit/4899ef4dc7868029ddc8b6e556e74c5649355c6b
|
ios/Exponent/Supporting/EXSDKVersions.plist
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> }
<mask> if (!isLoaded(fontFamily)) {
<mask> if (__DEV__) {
<mask> if (isLoading(fontFamily)) {
<mask> console.error(`You started loading the font "${fontFamily}", but used it before it finished loading.\n
<mask> - You need to wait for Font.loadAsync to complete before using the font.\n
<mask> - We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.`);
<mask> }
<mask> else {
<mask> console.error(`fontFamily "${fontFamily}" is not a system font and has not been loaded through Font.loadAsync.\n
<mask> - If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.\n
<mask> - If this is a custom font, be sure to load it with Font.loadAsync.`);
</s> [expo-font] Remove Expo.AppLoading reference (#11204) </s> remove `You started loading the font "${fontFamily}", but used it before it finished loading.\n
- You need to wait for Font.loadAsync to complete before using the font.\n
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.`
</s> add `You started loading the font "${fontFamily}", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.` </s> remove "You started loading the font \\"loading\\", but used it before it finished loading.
- You need to wait for Font.loadAsync to complete before using the font.
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
</s> add "You started loading the font \\"loading\\", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.", </s> remove "You started loading the font \\"loading\\", but used it before it finished loading.
- You need to wait for Font.loadAsync to complete before using the font.
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
</s> add "You started loading the font \\"loading\\", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.",
|
https://github.com/expo/expo/commit/49cc528829e1a109e1ffeaec3a0b9fee5c3570f5
|
packages/expo-font/build/Font.js
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> if (!isLoaded(fontFamily)) {
<mask> if (__DEV__) {
<mask> if (isLoading(fontFamily)) {
<mask> console.error(
<mask> `You started loading the font "${fontFamily}", but used it before it finished loading.\n
<mask> - You need to wait for Font.loadAsync to complete before using the font.\n
<mask> - We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.`
<mask> );
<mask> } else {
<mask> console.error(
<mask> `fontFamily "${fontFamily}" is not a system font and has not been loaded through Font.loadAsync.\n
<mask> - If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.\n
</s> [expo-font] Remove Expo.AppLoading reference (#11204) </s> remove console.error(`You started loading the font "${fontFamily}", but used it before it finished loading.\n
- You need to wait for Font.loadAsync to complete before using the font.\n
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.`);
</s> add console.error(`You started loading the font "${fontFamily}", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.`); </s> remove "You started loading the font \\"loading\\", but used it before it finished loading.
- You need to wait for Font.loadAsync to complete before using the font.
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
</s> add "You started loading the font \\"loading\\", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.", </s> remove "You started loading the font \\"loading\\", but used it before it finished loading.
- You need to wait for Font.loadAsync to complete before using the font.
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
</s> add "You started loading the font \\"loading\\", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.",
|
https://github.com/expo/expo/commit/49cc528829e1a109e1ffeaec3a0b9fee5c3570f5
|
packages/expo-font/src/Font.ts
|
keep keep keep keep replace replace replace replace replace keep keep keep keep
|
<mask> `;
<mask>
<mask> exports[`within Expo client processFontFamily defaults still-loading fonts to the system font 1`] = `
<mask> Array [
<mask> "You started loading the font \\"loading\\", but used it before it finished loading.
<mask>
<mask> - You need to wait for Font.loadAsync to complete before using the font.
<mask>
<mask> - We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
<mask> ]
<mask> `;
<mask>
<mask> exports[`within Expo client processFontFamily scopes loaded names of loaded fonts 1`] = `"ExpoFont-testsession-test-font"`;
</s> [expo-font] Remove Expo.AppLoading reference (#11204) </s> remove console.error(`You started loading the font "${fontFamily}", but used it before it finished loading.\n
- You need to wait for Font.loadAsync to complete before using the font.\n
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.`);
</s> add console.error(`You started loading the font "${fontFamily}", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.`); </s> remove `You started loading the font "${fontFamily}", but used it before it finished loading.\n
- You need to wait for Font.loadAsync to complete before using the font.\n
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.`
</s> add `You started loading the font "${fontFamily}", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.` </s> remove "You started loading the font \\"loading\\", but used it before it finished loading.
- You need to wait for Font.loadAsync to complete before using the font.
- We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
</s> add "You started loading the font \\"loading\\", but used it before it finished loading. You need to wait for Font.loadAsync to complete before using the font.",
|
https://github.com/expo/expo/commit/49cc528829e1a109e1ffeaec3a0b9fee5c3570f5
|
packages/expo-font/src/__tests__/__snapshots__/Font-test.native.ts.snap.android
|
keep keep keep keep replace replace replace replace replace keep keep keep keep
|
<mask> `;
<mask>
<mask> exports[`within Expo client processFontFamily defaults still-loading fonts to the system font 1`] = `
<mask> Array [
<mask> "You started loading the font \\"loading\\", but used it before it finished loading.
<mask>
<mask> - You need to wait for Font.loadAsync to complete before using the font.
<mask>
<mask> - We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.",
<mask> ]
<mask> `;
<mask>
<mask> exports[`within Expo client processFontFamily scopes loaded names of loaded fonts 1`] = `"ExpoFont-testsession-test-font"`;
</s> [expo-font] Remove Expo.AppLoading reference (#11204)
|
https://github.com/expo/expo/commit/49cc528829e1a109e1ffeaec3a0b9fee5c3570f5
|
packages/expo-font/src/__tests__/__snapshots__/Font-test.native.ts.snap.ios
|
keep keep add keep keep keep keep
|
<mask> */
<mask> keyid?: string;
<mask> };
<mask> };
<mask> /**
<mask> * Provide overrides by locale for System Dialog prompts like Permissions Boxes
<mask> */
</s> [config-types] Restore missing requestHeader property (#20373)
# Why
Fix breakages from #20287
# How
- Restore the `requestHeaders` property from the `updates` section of
config-types
- Restore `googleSignIn` temporarily until `@expo/config-plugins` is
fixed to remove a remaining dependency on this property
# Test Plan
Execute
```
cd packages/\@expo/config-plugins
yarn build
```
and no errors relating to these properties should appear.
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [x] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [x] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin). </s> add /**
* @deprecated Use `ios.googleServicesFile` instead.
*/
googleSignIn?: {
/**
* @deprecated Use `ios.googleServicesFile` instead.
*/
reservedClientId?: string;
}; </s> add /**
* Extra HTTP headers to include in HTTP requests made by expo-updates. These may override preset headers.
*/
requestHeaders?: Record<string, string>; </s> add /**
* @deprecated Use `ios.googleServicesFile` instead.
*/
googleSignIn?: {
/**
* @deprecated Use `ios.googleServicesFile` instead.
*/
reservedClientId?: string;
};
|
https://github.com/expo/expo/commit/4a9aeb4a79b3d09d229fcb6c58f1a1c5e72e4f3f
|
packages/@expo/config-types/build/ExpoConfig.d.ts
|
keep add keep keep keep keep keep keep
|
<mask> */
<mask> googleMobileAdsAutoInit?: boolean;
<mask> };
<mask> /**
<mask> * [Firebase Configuration File](https://support.google.com/firebase/answer/7015592) Location of the `GoogleService-Info.plist` file for configuring Firebase.
<mask> */
<mask> googleServicesFile?: string;
<mask> /**
</s> [config-types] Restore missing requestHeader property (#20373)
# Why
Fix breakages from #20287
# How
- Restore the `requestHeaders` property from the `updates` section of
config-types
- Restore `googleSignIn` temporarily until `@expo/config-plugins` is
fixed to remove a remaining dependency on this property
# Test Plan
Execute
```
cd packages/\@expo/config-plugins
yarn build
```
and no errors relating to these properties should appear.
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [x] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [x] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin). </s> add /**
* Extra HTTP headers to include in HTTP requests made by expo-updates. These may override preset headers.
*/
requestHeaders?: Record<string, string>; </s> add /**
* Extra HTTP headers to include in HTTP requests made by expo-updates. These may override preset headers.
*/
requestHeaders?: Record<string, string>; </s> add /**
* @deprecated Use `ios.googleServicesFile` instead.
*/
googleSignIn?: {
/**
* @deprecated Use `ios.googleServicesFile` instead.
*/
reservedClientId?: string;
};
|
https://github.com/expo/expo/commit/4a9aeb4a79b3d09d229fcb6c58f1a1c5e72e4f3f
|
packages/@expo/config-types/build/ExpoConfig.d.ts
|
keep add keep keep keep keep keep
|
<mask> keyid?: string;
<mask> };
<mask> };
<mask> /**
<mask> * Provide overrides by locale for System Dialog prompts like Permissions Boxes
<mask> */
<mask> locales?: {
</s> [config-types] Restore missing requestHeader property (#20373)
# Why
Fix breakages from #20287
# How
- Restore the `requestHeaders` property from the `updates` section of
config-types
- Restore `googleSignIn` temporarily until `@expo/config-plugins` is
fixed to remove a remaining dependency on this property
# Test Plan
Execute
```
cd packages/\@expo/config-plugins
yarn build
```
and no errors relating to these properties should appear.
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [x] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [x] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin). </s> add /**
* @deprecated Use `ios.googleServicesFile` instead.
*/
googleSignIn?: {
/**
* @deprecated Use `ios.googleServicesFile` instead.
*/
reservedClientId?: string;
}; </s> add /**
* Extra HTTP headers to include in HTTP requests made by expo-updates. These may override preset headers.
*/
requestHeaders?: Record<string, string>; </s> add /**
* @deprecated Use `ios.googleServicesFile` instead.
*/
googleSignIn?: {
/**
* @deprecated Use `ios.googleServicesFile` instead.
*/
reservedClientId?: string;
};
|
https://github.com/expo/expo/commit/4a9aeb4a79b3d09d229fcb6c58f1a1c5e72e4f3f
|
packages/@expo/config-types/src/ExpoConfig.ts
|
keep keep add keep keep keep keep keep keep
|
<mask> * A boolean indicating whether to initialize Google App Measurement and begin sending user-level event data to Google immediately when the app starts. The default in Expo (Go and in standalone apps) is `false`. [Sets the opposite of the given value to the following key in `Info.plist`.](https://developers.google.com/admob/ios/eu-consent#delay_app_measurement_optional)
<mask> */
<mask> googleMobileAdsAutoInit?: boolean;
<mask> };
<mask> /**
<mask> * [Firebase Configuration File](https://support.google.com/firebase/answer/7015592) Location of the `GoogleService-Info.plist` file for configuring Firebase.
<mask> */
<mask> googleServicesFile?: string;
<mask> /**
</s> [config-types] Restore missing requestHeader property (#20373)
# Why
Fix breakages from #20287
# How
- Restore the `requestHeaders` property from the `updates` section of
config-types
- Restore `googleSignIn` temporarily until `@expo/config-plugins` is
fixed to remove a remaining dependency on this property
# Test Plan
Execute
```
cd packages/\@expo/config-plugins
yarn build
```
and no errors relating to these properties should appear.
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [x] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [x] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin). </s> add /**
* Extra HTTP headers to include in HTTP requests made by expo-updates. These may override preset headers.
*/
requestHeaders?: Record<string, string>; </s> add /**
* Extra HTTP headers to include in HTTP requests made by expo-updates. These may override preset headers.
*/
requestHeaders?: Record<string, string>; </s> add /**
* @deprecated Use `ios.googleServicesFile` instead.
*/
googleSignIn?: {
/**
* @deprecated Use `ios.googleServicesFile` instead.
*/
reservedClientId?: string;
};
|
https://github.com/expo/expo/commit/4a9aeb4a79b3d09d229fcb6c58f1a1c5e72e4f3f
|
packages/@expo/config-types/src/ExpoConfig.ts
|
keep keep add keep
|
<mask> */
<mask> extern NSString *const OIDOAuthExceptionInvalidAuthorizationFlow;
<mask>
<mask> NS_ASSUME_NONNULL_END
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL = @"A OIDTokenRequest was "
"created with a grant_type that requires a redirectURL, but a null redirectURL was given";
</s> add /** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression
* or FBSDKAppEventNameAdClick event.
* E.g. "banner", "interstitial", "rewarded_video", "native" */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameAdType;
/** Parameter key used to specify the unique ID for all events within a subscription
* in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID; </s> add /*! @brief String representing the set of characters that are allowed as is for the
application/x-www-form-urlencoded encoding algorithm.
*/
static NSString *const kFormUrlEncodedAllowedCharacters =
@" *-._0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
</s> add /*! @brief Truncated intput string after first 6 characters followed by ellipses
@param inputString The input string.
@return Truncated string.
*/
+ (nullable NSString *)redact:(nullable NSString *)inputString;
/*! @brief Form url encode the input string by applying application/x-www-form-urlencoded algorithm
@param inputString The input string.
@return The encoded string.
*/
+ (NSString*)formUrlEncode:(NSString*)inputString;
</s> remove redirectURL:(NSURL *)redirectURL
</s> add redirectURL:(nullable NSURL *)redirectURL </s> remove redirectURL:(NSURL *)redirectURL
</s> add redirectURL:(nullable NSURL *)redirectURL
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDError.h
|
keep keep add keep keep keep keep
|
<mask> NSString *const OIDOAuthExceptionInvalidAuthorizationFlow = @"An OAuth redirect was sent to a "
<mask> "OIDAuthorizationFlowSession after it already completed.";
<mask>
<mask> NSString *const OIDOAuthErrorResponseErrorKey = @"OIDOAuthErrorResponseErrorKey";
<mask>
<mask> NSString *const OIDOAuthErrorFieldError = @"error";
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add /*! @brief The text for the exception which occurs when a Token Request is constructed
with a null redirectURL for a grant_type that requires a nonnull Redirect
*/
extern NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL;
</s> add /*! @brief String representing the set of characters that are allowed as is for the
application/x-www-form-urlencoded encoding algorithm.
*/
static NSString *const kFormUrlEncodedAllowedCharacters =
@" *-._0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
</s> add /** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression
* or FBSDKAppEventNameAdClick event.
* E.g. "banner", "interstitial", "rewarded_video", "native" */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameAdType;
/** Parameter key used to specify the unique ID for all events within a subscription
* in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID; </s> add BOOL uninstallTrackingEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesUninstallTrackingEnabled); </s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
} </s> add NSString *userData = [FBSDKAppEvents getUserData];
if (userData){
parameters[@"ud"] = userData;
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDError.m
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> /*! @brief The client's redirect URI.
<mask> @remarks redirect_uri
<mask> @see https://tools.ietf.org/html/rfc6749#section-4.1.3
<mask> */
<mask> @property(nonatomic, readonly) NSURL *redirectURL;
<mask>
<mask> /*! @brief The client identifier.
<mask> @remarks client_id
<mask> @see https://tools.ietf.org/html/rfc6749#section-4.1.3
<mask> */
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add /*! @brief Truncated intput string after first 6 characters followed by ellipses
@param inputString The input string.
@return Truncated string.
*/
+ (nullable NSString *)redact:(nullable NSString *)inputString;
/*! @brief Form url encode the input string by applying application/x-www-form-urlencoded algorithm
@param inputString The input string.
@return The encoded string.
*/
+ (NSString*)formUrlEncode:(NSString*)inputString;
</s> add /*! @brief The text for the exception which occurs when a Token Request is constructed
with a null redirectURL for a grant_type that requires a nonnull Redirect
*/
extern NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL;
</s> add /*! @brief String representing the set of characters that are allowed as is for the
application/x-www-form-urlencoded encoding algorithm.
*/
static NSString *const kFormUrlEncodedAllowedCharacters =
@" *-._0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
</s> remove - See:setLoggingOverrideAppID:
</s> add @see setLoggingOverrideAppID: </s> remove - See:[UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */
</s> add @see [UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ </s> remove - See:FBSDKGraphErrorRecoveryProcessor
</s> add @see FBSDKGraphErrorRecoveryProcessor
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDTokenRequest.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> */
<mask> - (instancetype)initWithConfiguration:(OIDServiceConfiguration *)configuration
<mask> grantType:(NSString *)grantType
<mask> authorizationCode:(nullable NSString *)code
<mask> redirectURL:(NSURL *)redirectURL
<mask> clientID:(NSString *)clientID
<mask> clientSecret:(nullable NSString *)clientSecret
<mask> scopes:(nullable NSArray<NSString *> *)scopes
<mask> refreshToken:(nullable NSString *)refreshToken
<mask> codeVerifier:(nullable NSString *)codeVerifier
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove redirectURL:(NSURL *)redirectURL
</s> add redirectURL:(nullable NSURL *)redirectURL </s> add NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL = @"A OIDTokenRequest was "
"created with a grant_type that requires a redirectURL, but a null redirectURL was given";
</s> add BOOL uninstallTrackingEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesUninstallTrackingEnabled); </s> add /*! @brief The text for the exception which occurs when a Token Request is constructed
with a null redirectURL for a grant_type that requires a nonnull Redirect
*/
extern NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL;
</s> add /*! @brief String representing the set of characters that are allowed as is for the
application/x-www-form-urlencoded encoding algorithm.
*/
static NSString *const kFormUrlEncodedAllowedCharacters =
@" *-._0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
</s> remove - Parameter string: The base-64 encoded string.
- Returns: NSString with the decoded UTF-8 value.
</s> add @param string The base-64 encoded string.
@return NSString with the decoded UTF-8 value.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDTokenRequest.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> */
<mask> - (instancetype)initWithConfiguration:(OIDServiceConfiguration *)configuration
<mask> grantType:(NSString *)grantType
<mask> authorizationCode:(nullable NSString *)code
<mask> redirectURL:(NSURL *)redirectURL
<mask> clientID:(NSString *)clientID
<mask> clientSecret:(nullable NSString *)clientSecret
<mask> scope:(nullable NSString *)scope
<mask> refreshToken:(nullable NSString *)refreshToken
<mask> codeVerifier:(nullable NSString *)codeVerifier
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove redirectURL:(NSURL *)redirectURL
</s> add redirectURL:(nullable NSURL *)redirectURL </s> add NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL = @"A OIDTokenRequest was "
"created with a grant_type that requires a redirectURL, but a null redirectURL was given";
</s> add BOOL uninstallTrackingEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesUninstallTrackingEnabled); </s> add /*! @brief The text for the exception which occurs when a Token Request is constructed
with a null redirectURL for a grant_type that requires a nonnull Redirect
*/
extern NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL;
</s> add /*! @brief String representing the set of characters that are allowed as is for the
application/x-www-form-urlencoded encoding algorithm.
*/
static NSString *const kFormUrlEncodedAllowedCharacters =
@" *-._0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
</s> remove - Parameter string: The base-64 encoded string.
- Returns: NSString with the decoded UTF-8 value.
</s> add @param string The base-64 encoded string.
@return NSString with the decoded UTF-8 value.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDTokenRequest.h
|
keep keep keep add keep keep keep
|
<mask> @return The SHA256 data.
<mask> */
<mask> + (NSData *)sha265:(NSString *)inputString;
<mask>
<mask> @end
<mask>
<mask> NS_ASSUME_NONNULL_END
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add /**
Get SHA256 hased string of NSString/NSData
@param input The data that needs to be hashed, it could be NSString or NSData.
*/
+ (NSString *)SHA256Hash:(NSObject *)input;
</s> remove - Parameter string: The base-64 encoded string.
- Returns: NSString with the decoded UTF-8 value.
</s> add @param string The base-64 encoded string.
@return NSString with the decoded UTF-8 value. </s> remove - Parameter deviceToken: Device token data.
</s> add @param deviceToken Device token data. </s> remove - Returns: The kSecClass value or nil.
</s> add @return The kSecClass value or nil. </s> remove - Parameter string: The base-64 encoded string.
- Returns: NSData containing the decoded bytes.
</s> add @param string The base-64 encoded string.
@return NSData containing the decoded bytes. </s> remove - Parameter string: The string to be encoded.
- Returns: The base-64 encoded string.
</s> add @param string The string to be encoded.
@return The base-64 encoded string.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDTokenUtilities.h
|
keep keep add keep keep keep keep
|
<mask>
<mask> #import <CommonCrypto/CommonDigest.h>
<mask>
<mask> @implementation OIDTokenUtilities
<mask>
<mask> + (NSString *)encodeBase64urlNoPadding:(NSData *)data {
<mask> NSString *base64string = [data base64EncodedStringWithOptions:0];
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #import <CommonCrypto/CommonDigest.h>
</s> add /**
Get SHA256 hased string of NSString/NSData
@param input The data that needs to be hashed, it could be NSString or NSData.
*/
+ (NSString *)SHA256Hash:(NSObject *)input;
</s> remove - Parameter string: The base-64 encoded string.
- Returns: NSString with the decoded UTF-8 value.
</s> add @param string The base-64 encoded string.
@return NSString with the decoded UTF-8 value. </s> remove #define FBSDK_VERSION_STRING @"4.34.0"
#define FBSDK_TARGET_PLATFORM_VERSION @"v3.0"
</s> add #define FBSDK_VERSION_STRING @"4.36.0"
#define FBSDK_TARGET_PLATFORM_VERSION @"v3.1" </s> remove if (![[FBSDKServerConfigurationManager cachedServerConfiguration] isDefaults]) {
</s> add if (![[FBSDKServerConfigurationManager cachedServerConfiguration] isDefaults]
&& [[NSDate date] timeIntervalSinceDate:[FBSDKServerConfigurationManager cachedServerConfiguration].timestamp]
< FBSDK_SERVER_CONFIGURATION_MANAGER_CACHE_TIMEOUT) { </s> add NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL = @"A OIDTokenRequest was "
"created with a grant_type that requires a redirectURL, but a null redirectURL was given";
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/AppAuth/Source/OIDTokenUtilities.m
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> const int kDenominatorLog = 3;
<mask> const int kDenominator = 1 << kDenominatorLog;
<mask> // Move the remaining decimals into the exponent.
<mask> exponent += remaining_decimals;
<mask> int error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
<mask>
<mask> int old_e = input.e();
<mask> input.Normalize();
<mask> error <<= old_e - input.e();
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove const size_type n1(size()), n2(traits_type::length(s));
</s> add const size_type n1(size()), n2(traitsLength(s)); </s> remove // Could forward to compare(0, size(), s, traits_type::length(s))
</s> add // Could forward to compare(0, size(), s, traitsLength(s)) </s> remove int fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0664);
</s> add int fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, FLAGS_logfile_mode); </s> remove MutexLock l(&vmodule_lock); // protect whole read-modify-write
for (const VModuleInfo* info = vmodule_list;
info != NULL; info = info->next) {
if (info->module_pattern == module_pattern) {
if (!found) {
</s> add {
MutexLock l(&vmodule_lock); // protect whole read-modify-write
for (const VModuleInfo* info = vmodule_list;
info != NULL; info = info->next) {
if (info->module_pattern == module_pattern) {
if (!found) {
result = info->vlog_level;
found = true;
}
info->vlog_level = log_level;
} else if (!found &&
SafeFNMatch_(info->module_pattern.c_str(),
info->module_pattern.size(),
module_pattern, pattern_len)) { </s> remove const char* base_filename, int line, const tm* tm_time,
</s> add const char* /*base_filename*/, int /*line*/,
const tm* /*tm_time*/, </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/DoubleConversion/double-conversion/strtod.cc
|
keep add keep keep keep keep
|
<mask> defined(__AARCH64EL__)
<mask> #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
<mask> #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
<mask> #if defined(_WIN32)
<mask> // Windows uses a 64bit wide floating point stack.
<mask> #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
</s> add #if !defined(FOLLY_ALLOW_TFO)
#if defined(__linux__) || defined(__APPLE__) </s> add #if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
#define DCHECK_IS_ON() 0
#else
#define DCHECK_IS_ON() 1
#endif
</s> add #if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
#define DCHECK_IS_ON() 0
#else
#define DCHECK_IS_ON() 1
#endif
</s> remove #elif defined(__APPLE__) || (defined(__linux) && defined(__PPC64__))
</s> add #elif defined(__APPLE__) || ((defined(__linux) || defined(__linux__)) && defined(__PPC64__)) </s> add #endif
#endif
#ifndef GOOGLE_PREDICT_FALSE
#if 1
#define GOOGLE_PREDICT_FALSE(x) (__builtin_expect(x, 0))
#else </s> remove #define GOOGLE_PREDICT_FALSE(x) (__builtin_expect(x, 0))
#define GOOGLE_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/DoubleConversion/double-conversion/utils.h
|
keep keep keep keep replace replace keep replace keep keep keep
|
<mask> + (instancetype)new NS_UNAVAILABLE;
<mask>
<mask> /**
<mask> Initializes a new instance.
<mask> - Parameter tokenString: the opaque token string.
<mask> - Parameter permissions: the granted permissions. Note this is converted to NSSet and is only
<mask> an NSArray for the convenience of literal syntax.
<mask> - Parameter declinedPermissions: the declined permissions. Note this is converted to NSSet and is only
<mask> an NSArray for the convenience of literal syntax.
<mask> - Parameter appID: the app ID.
<mask> - Parameter userID: the user ID.
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter appID: the app ID.
- Parameter userID: the user ID.
- Parameter expirationDate: the optional expiration date (defaults to distantFuture).
- Parameter refreshDate: the optional date the token was last refreshed (defaults to today).
</s> add @param appID the app ID.
@param userID the user ID.
@param expirationDate the optional expiration date (defaults to distantFuture).
@param refreshDate the optional date the token was last refreshed (defaults to today). </s> remove - Parameter permissions: the optional array of permissions. Note this is converted to NSSet and is only
</s> add @param permissions the optional array of permissions. Note this is converted to NSSet and is only </s> remove - Parameter permissions: the optional array of permissions. Note this is converted to NSSet and is only
</s> add @param permissions the optional array of permissions. Note this is converted to NSSet and is only </s> remove - Parameter handler: the callback.
</s> add @param handler the callback. </s> remove - Parameter handler: the callback.
</s> add @param handler the callback.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
|
keep keep keep keep replace replace replace replace keep keep keep keep keep
|
<mask> - Parameter permissions: the granted permissions. Note this is converted to NSSet and is only
<mask> an NSArray for the convenience of literal syntax.
<mask> - Parameter declinedPermissions: the declined permissions. Note this is converted to NSSet and is only
<mask> an NSArray for the convenience of literal syntax.
<mask> - Parameter appID: the app ID.
<mask> - Parameter userID: the user ID.
<mask> - Parameter expirationDate: the optional expiration date (defaults to distantFuture).
<mask> - Parameter refreshDate: the optional date the token was last refreshed (defaults to today).
<mask>
<mask> This initializer should only be used for advanced apps that
<mask> manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager`
<mask> along with `+currentAccessToken`.
<mask> */
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter declinedPermissions: the declined permissions. Note this is converted to NSSet and is only
</s> add @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only </s> remove - Parameter tokenString: the opaque token string.
- Parameter permissions: the granted permissions. Note this is converted to NSSet and is only
</s> add @param tokenString the opaque token string.
@param permissions the granted permissions. Note this is converted to NSSet and is only </s> remove - Parameter permissions: the optional array of permissions. Note this is converted to NSSet and is only
</s> add @param permissions the optional array of permissions. Note this is converted to NSSet and is only </s> remove - Parameter permissions: the optional array of permissions. Note this is converted to NSSet and is only
</s> add @param permissions the optional array of permissions. Note this is converted to NSSet and is only </s> remove - Parameter handler: the callback.
</s> add @param handler the callback. </s> remove - Parameter handler: the callback.
</s> add @param handler the callback.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> NS_DESIGNATED_INITIALIZER;
<mask>
<mask> /**
<mask> Convenience getter to determine if a permission has been granted
<mask> - Parameter permission: The permission to check.
<mask> */
<mask> - (BOOL)hasGranted:(NSString *)permission;
<mask>
<mask> /**
<mask> Compares the receiver to another FBSDKAccessToken
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter token: The other token
- Returns: YES if the receiver's values are equal to the other token's values; otherwise NO
</s> add @param token The other token
@return YES if the receiver's values are equal to the other token's values; otherwise NO </s> remove - Parameter completionHandler: an optional callback handler that can surface any errors related to permission refreshing.
</s> add @param completionHandler an optional callback handler that can surface any errors related to permission refreshing. </s> remove - Parameter handler: The completion handler to call when the renewal is completed. This can be invoked on an arbitrary thread.
</s> add @param handler The completion handler to call when the renewal is completed. This can be invoked on an arbitrary thread. </s> remove - Parameter data: The attachment data (retained, not copied)
- Parameter filename: The filename for the attachment
- Parameter contentType: The content type for the attachment
</s> add @param data The attachment data (retained, not copied)
@param filename The filename for the attachment
@param contentType The content type for the attachment </s> remove - Parameter appURLSchemeSuffix: The url scheme suffix to be used by the SDK.
</s> add @param appURLSchemeSuffix The url scheme suffix to be used by the SDK. </s> remove - Parameter processor: the processor instance.
- Parameter didRecover: YES if the recovery was successful.
- Parameter error: the error that that was attempted to be recovered from.
</s> add @param processor the processor instance.
@param didRecover YES if the recovery was successful.
@param error the error that that was attempted to be recovered from.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> - (BOOL)hasGranted:(NSString *)permission;
<mask>
<mask> /**
<mask> Compares the receiver to another FBSDKAccessToken
<mask> - Parameter token: The other token
<mask> - Returns: YES if the receiver's values are equal to the other token's values; otherwise NO
<mask> */
<mask> - (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token;
<mask>
<mask> /**
<mask> Returns the "global" access token that represents the currently logged in user.
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter token: The access token to set.
</s> add @param token The access token to set. </s> remove - Parameter permission: The permission to check.
</s> add @param permission The permission to check. </s> remove - Parameter accessToken: The optional access token to log the event as.
</s> add @param accessToken The optional access token to log the event as. </s> remove - Parameter version: The version to test against.
- Returns: YES if the linked UIKit version is greater than or equal to the specified version, otherwise NO.
</s> add @param version The version to test against.
@return YES if the linked UIKit version is greater than or equal to the specified version, otherwise NO. </s> remove - Parameter accessToken: The optional access token to log the event as.
</s> add @param accessToken The optional access token to log the event as. </s> remove - Parameter version: The version to test against.
- Returns: YES if the runtime UIKit version is greater than or equal to the specified version, otherwise NO.
</s> add @param version The version to test against.
@return YES if the runtime UIKit version is greater than or equal to the specified version, otherwise NO.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> + (BOOL)currentAccessTokenIsActive;
<mask>
<mask> /**
<mask> Sets the "global" access token that represents the currently logged in user.
<mask> - Parameter token: The access token to set.
<mask>
<mask> This will broadcast a notification and save the token to the app keychain.
<mask> */
<mask> + (void)setCurrentAccessToken:(FBSDKAccessToken *)token;
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter token: The other token
- Returns: YES if the receiver's values are equal to the other token's values; otherwise NO
</s> add @param token The other token
@return YES if the receiver's values are equal to the other token's values; otherwise NO </s> remove - Parameter accessToken: The access token to use to establish the user's identity for users logged into Facebook through this app.
</s> add @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. </s> remove - Parameter token: the access token
- Parameter isCancelled: whether the login was cancelled by the user
- Parameter grantedPermissions: the set of granted permissions
- Parameter declinedPermissions: the set of declined permissions
</s> add @param token the access token
@param isCancelled whether the login was cancelled by the user
@param grantedPermissions the set of granted permissions
@param declinedPermissions the set of declined permissions </s> remove - Parameter accessToken: The optional access token to log the event as.
</s> add @param accessToken The optional access token to log the event as. </s> remove - Parameter accessToken: The optional access token to log the event as.
</s> add @param accessToken The optional access token to log the event as. </s> remove - Parameter deviceToken: Device token data.
</s> add @param deviceToken Device token data.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> /**
<mask> Refresh the current access token's permission state and extend the token's expiration date,
<mask> if possible.
<mask> - Parameter completionHandler: an optional callback handler that can surface any errors related to permission refreshing.
<mask>
<mask> On a successful refresh, the currentAccessToken will be updated so you typically only need to
<mask> observe the `FBSDKAccessTokenDidChangeNotification` notification.
<mask>
<mask> If a token is already expired, it cannot be refreshed.
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter enable: YES is observing
</s> add @param enable YES is observing </s> remove - Parameter appID: the app ID.
- Parameter userID: the user ID.
- Parameter expirationDate: the optional expiration date (defaults to distantFuture).
- Parameter refreshDate: the optional date the token was last refreshed (defaults to today).
</s> add @param appID the app ID.
@param userID the user ID.
@param expirationDate the optional expiration date (defaults to distantFuture).
@param refreshDate the optional date the token was last refreshed (defaults to today). </s> remove - Parameter token: The other token
- Returns: YES if the receiver's values are equal to the other token's values; otherwise NO
</s> add @param token The other token
@return YES if the receiver's values are equal to the other token's values; otherwise NO </s> remove - Parameter handler: the handler to be invoked if there is deferred App Link data
</s> add @param handler the handler to be invoked if there is deferred App Link data </s> remove - Parameter handler: the callback to invoke which will return an array of `FBAccessTokenData` instances or an `NSError`.
</s> add @param handler the callback to invoke which will return an array of `FBAccessTokenData` instances or an `NSError`. </s> remove - Parameter error: the error to process.
- Parameter request: the related request that may be reissued.
- Parameter delegate: the delegate that will be retained until recovery is complete.
</s> add @param error the error to process.
@param request the related request that may be reissued.
@param delegate the delegate that will be retained until recovery is complete.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask>
<mask> /** No-valued parameter value to be used with parameter keys that need a Yes/No value */
<mask> FBSDK_EXTERN NSString *const FBSDKAppEventParameterValueNo;
<mask>
<mask>
<mask> /**
<mask>
<mask>
<mask> Client-side event logging for specialized application analytics available through Facebook App Insights
<mask> and for use with Facebook Ads conversion tracking and optimization.
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> add /**
Flag which controls the fb_codeless_debug logging event
If not explicitly set, the default is 1 - true
*/
+ (NSNumber *)codelessDebugLogEnabled;
/**
Set the flag which controls the fb_codeless_debug logging event
@param CodelessDebugLogEnabled Flag value, expressed as a value from 0 - false or 1 - true.
*/
+ (void)setCodelessDebugLogEnabled:(NSNumber *)CodelessDebugLogEnabled;
</s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter AutoLogAppEventsEnabled: Flag value, expressed as a value from 0 - false or 1 - true.
</s> add @param AutoLogAppEventsEnabled Flag value, expressed as a value from 0 - false or 1 - true.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> /**
<mask>
<mask> Log an event with just an eventName.
<mask>
<mask> - Parameter eventName: The name of the event to record. Limitations on number of events and name length
<mask> are given in the `FBSDKAppEvents` documentation.
<mask>
<mask> */
<mask> + (void)logEvent:(NSString *)eventName;
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name length
</s> add @param eventName The name of the event to record. Limitations on number of events and name length </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> /**
<mask>
<mask> Log an event with an eventName and a numeric value to be aggregated with other events of this name.
<mask>
<mask> - Parameter eventName: The name of the event to record. Limitations on number of events and name length
<mask> are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants.
<mask>
<mask> - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
<mask> the cumulative and average value of this amount.
<mask> */
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> - Parameter eventName: The name of the event to record. Limitations on number of events and name length
<mask> are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants.
<mask>
<mask> - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
<mask> the cumulative and average value of this amount.
<mask> */
<mask> + (void)logEvent:(NSString *)eventName
<mask> valueToSum:(double)valueToSum;
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name length
</s> add @param eventName The name of the event to record. Limitations on number of events and name length </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> Log an event with an eventName and a set of key/value pairs in the parameters dictionary.
<mask> Parameter limitations are described above.
<mask>
<mask> - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
<mask> are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants.
<mask>
<mask> - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
<mask> be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of
<mask> parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
<mask> are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants.
<mask>
<mask> - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
<mask> be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of
<mask> parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names
<mask> are provided in `FBSDKAppEventParameterName*` constants.
<mask> */
<mask> + (void)logEvent:(NSString *)eventName
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove - Parameter eventName: The name of the event to record. Limitations on number of events and name construction
</s> add @param eventName The name of the event to record. Limitations on number of events and name construction </s> remove - Parameter valueToSum: Amount to be aggregated into all events of this eventName, and App Insights will report
</s> add @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter parameters: Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
</s> add @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must </s> remove - Parameter accessToken: The optional access token to log the event as.
</s> add @param accessToken The optional access token to log the event as.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.