enh
|
|
@ -6,3 +6,4 @@ apps/users-ui/src
|
|||
apps/admin-ui/app
|
||||
apps/users-ui/src
|
||||
**/package-lock.json
|
||||
test/
|
||||
|
|
|
|||
6
apps/admin-ui/.expo/types/router.d.ts
vendored
|
|
@ -158,6 +158,15 @@ export default function Dashboard() {
|
|||
iconColor: '#8B5CF6',
|
||||
iconBg: '#F3E8FF',
|
||||
},
|
||||
{
|
||||
title: 'Stocking Schedules',
|
||||
icon: 'schedule',
|
||||
description: 'Manage product stocking schedules',
|
||||
route: '/(drawer)/stocking-schedules',
|
||||
category: 'products',
|
||||
iconColor: '#0EA5E9',
|
||||
iconBg: '#E0F2FE',
|
||||
},
|
||||
{
|
||||
title: 'Stores',
|
||||
icon: 'store',
|
||||
|
|
|
|||
443
apps/admin-ui/app/(drawer)/stocking-schedules/index.tsx
Normal file
|
|
@ -0,0 +1,443 @@
|
|||
import React, { useState } from 'react';
|
||||
import { View, ScrollView, Alert, FlatList, TouchableOpacity } from 'react-native';
|
||||
import {
|
||||
theme,
|
||||
AppContainer,
|
||||
MyText,
|
||||
tw,
|
||||
useManualRefresh,
|
||||
useMarkDataFetchers,
|
||||
MyTouchableOpacity,
|
||||
RawBottomDialog,
|
||||
BottomDialog,
|
||||
} from 'common-ui';
|
||||
import { trpc } from '../../../src/trpc-client';
|
||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||
import { Ionicons, Entypo } from '@expo/vector-icons';
|
||||
import { LinearGradient } from 'expo-linear-gradient';
|
||||
|
||||
import AvailabilityScheduleForm from '../../../components/AvailabilityScheduleForm';
|
||||
|
||||
interface Schedule {
|
||||
id: number;
|
||||
scheduleName: string;
|
||||
time: string;
|
||||
action: 'in' | 'out';
|
||||
createdAt: string;
|
||||
lastUpdated: string;
|
||||
productIds: number[];
|
||||
groupIds: number[];
|
||||
productCount: number;
|
||||
groupCount: number;
|
||||
}
|
||||
|
||||
const ScheduleItem = ({
|
||||
schedule,
|
||||
onDelete,
|
||||
index,
|
||||
onViewProducts,
|
||||
onViewGroups,
|
||||
onReplicate,
|
||||
}: {
|
||||
schedule: Schedule;
|
||||
onDelete: (id: number) => void;
|
||||
index: number;
|
||||
onViewProducts: (productIds: number[]) => void;
|
||||
onViewGroups: (groupIds: number[]) => void;
|
||||
onReplicate: (schedule: Schedule) => void;
|
||||
}) => {
|
||||
const isIn = schedule.action === 'in';
|
||||
const [menuOpen, setMenuOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<View style={tw``}>
|
||||
<View style={tw`p-6`}>
|
||||
{/* Top Header: Name & Action Badge */}
|
||||
<View style={tw`flex-row justify-between items-start mb-4`}>
|
||||
<View style={tw`flex-row items-center flex-1`}>
|
||||
<View
|
||||
style={tw`w-12 h-12 rounded-2xl bg-brand50 items-center justify-center mr-4`}
|
||||
>
|
||||
<MaterialIcons
|
||||
name="schedule"
|
||||
size={24}
|
||||
color={theme.colors.brand600}
|
||||
/>
|
||||
</View>
|
||||
<View style={tw`flex-1`}>
|
||||
<MyText
|
||||
style={tw`text-slate-400 text-[10px] font-black uppercase tracking-widest`}
|
||||
>
|
||||
Schedule Name
|
||||
</MyText>
|
||||
<MyText
|
||||
style={tw`text-xl font-black text-slate-900`}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{schedule.scheduleName}
|
||||
</MyText>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<View style={tw`flex-row items-center`}>
|
||||
<View
|
||||
style={[
|
||||
tw`px-3 py-1.5 rounded-full flex-row items-center mr-2`,
|
||||
{ backgroundColor: isIn ? '#F0FDF4' : '#FFF1F2' },
|
||||
]}
|
||||
>
|
||||
<View
|
||||
style={[
|
||||
tw`w-1.5 h-1.5 rounded-full mr-2`,
|
||||
{ backgroundColor: isIn ? '#10B981' : '#E11D48' },
|
||||
]}
|
||||
/>
|
||||
<MyText
|
||||
style={[
|
||||
tw`text-[10px] font-black uppercase tracking-tighter`,
|
||||
{ color: isIn ? '#10B981' : '#E11D48' },
|
||||
]}
|
||||
>
|
||||
{isIn ? 'In Stock' : 'Out of Stock'}
|
||||
</MyText>
|
||||
</View>
|
||||
<TouchableOpacity
|
||||
onPress={() => setMenuOpen(true)}
|
||||
style={tw`p-1`}
|
||||
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
||||
>
|
||||
<Entypo name="dots-three-vertical" size={20} color="#9CA3AF" />
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{/* Menu Dialog */}
|
||||
<BottomDialog open={menuOpen} onClose={() => setMenuOpen(false)}>
|
||||
<View style={tw`p-4`}>
|
||||
<MyText style={tw`text-lg font-bold mb-4`}>{schedule.scheduleName}</MyText>
|
||||
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
setMenuOpen(false);
|
||||
onReplicate(schedule);
|
||||
}}
|
||||
style={tw`py-4 border-b border-gray-200`}
|
||||
>
|
||||
<View style={tw`flex-row items-center`}>
|
||||
<MaterialIcons name="content-copy" size={20} color="#4B5563" style={tw`mr-3`} />
|
||||
<MyText style={tw`text-base text-gray-800`}>Replicate items</MyText>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
setMenuOpen(false);
|
||||
Alert.alert('Coming Soon', 'Edit functionality will be available soon');
|
||||
}}
|
||||
style={tw`py-4 border-b border-gray-200`}
|
||||
>
|
||||
<View style={tw`flex-row items-center`}>
|
||||
<MaterialIcons name="edit" size={20} color="#4B5563" style={tw`mr-3`} />
|
||||
<MyText style={tw`text-base text-gray-800`}>Edit</MyText>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
setMenuOpen(false);
|
||||
onDelete(schedule.id);
|
||||
}}
|
||||
style={tw`py-4 border-b border-gray-200`}
|
||||
>
|
||||
<View style={tw`flex-row items-center`}>
|
||||
<MaterialIcons name="delete" size={20} color="#E11D48" style={tw`mr-3`} />
|
||||
<MyText style={tw`text-base text-red-500`}>Delete</MyText>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
onPress={() => setMenuOpen(false)}
|
||||
style={tw`py-4 mt-2`}
|
||||
>
|
||||
<View style={tw`flex-row items-center`}>
|
||||
<MaterialIcons name="close" size={20} color="#6B7280" style={tw`mr-3`} />
|
||||
<MyText style={tw`text-base text-gray-600`}>Cancel</MyText>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</BottomDialog>
|
||||
|
||||
{/* Middle: Time Banner */}
|
||||
<View
|
||||
style={tw`bg-slate-50 rounded-3xl p-4 flex-row items-center mb-4 border border-slate-100`}
|
||||
>
|
||||
<View
|
||||
style={tw`bg-white w-10 h-10 rounded-2xl items-center justify-center shadow-sm`}
|
||||
>
|
||||
<MaterialIcons name="access-time" size={20} color="#64748B" />
|
||||
</View>
|
||||
<View style={tw`ml-4 flex-1`}>
|
||||
<MyText style={tw`text-slate-900 font-extrabold text-sm`}>
|
||||
{schedule.time}
|
||||
</MyText>
|
||||
<MyText style={tw`text-slate-500 text-[10px] font-bold uppercase`}>
|
||||
Daily at this time
|
||||
</MyText>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{/* Stats & Actions */}
|
||||
<View style={tw`flex-row items-center justify-between`}>
|
||||
<View style={tw`flex-row items-center`}>
|
||||
<MyTouchableOpacity
|
||||
onPress={() => onViewProducts(schedule.productIds)}
|
||||
style={tw`flex-row items-center mr-4`}
|
||||
>
|
||||
<MaterialIcons name="shopping-bag" size={14} color="#94A3B8" />
|
||||
<MyText style={tw`text-xs font-bold text-brand600 ml-1.5`}>
|
||||
{schedule.productCount} Products
|
||||
</MyText>
|
||||
</MyTouchableOpacity>
|
||||
{schedule.groupCount > 0 && (
|
||||
<MyTouchableOpacity
|
||||
onPress={() => onViewGroups(schedule.groupIds)}
|
||||
style={tw`flex-row items-center`}
|
||||
>
|
||||
<MaterialIcons name="category" size={14} color="#94A3B8" />
|
||||
<MyText style={tw`text-xs font-bold text-brand600 ml-1.5`}>
|
||||
{schedule.groupCount} Groups
|
||||
</MyText>
|
||||
</MyTouchableOpacity>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export default function StockingSchedules() {
|
||||
const {
|
||||
data: schedules,
|
||||
isLoading,
|
||||
error,
|
||||
refetch,
|
||||
} = trpc.admin.productAvailabilitySchedules.getAll.useQuery();
|
||||
|
||||
const { data: productsData } = trpc.common.product.getAllProductsSummary.useQuery({});
|
||||
const { data: groupsData } = trpc.admin.product.getGroups.useQuery();
|
||||
|
||||
const deleteSchedule = trpc.admin.productAvailabilitySchedules.delete.useMutation();
|
||||
|
||||
const [showCreateForm, setShowCreateForm] = useState(false);
|
||||
|
||||
// Dialog state
|
||||
const [dialogOpen, setDialogOpen] = useState(false);
|
||||
const [dialogType, setDialogType] = useState<'products' | 'groups'>('products');
|
||||
const [selectedIds, setSelectedIds] = useState<number[]>([]);
|
||||
|
||||
// Replication state
|
||||
const [replicatingSchedule, setReplicatingSchedule] = useState<Schedule | null>(null);
|
||||
|
||||
useManualRefresh(refetch);
|
||||
|
||||
useMarkDataFetchers(() => {
|
||||
refetch();
|
||||
});
|
||||
|
||||
const handleCreate = () => {
|
||||
setShowCreateForm(true);
|
||||
};
|
||||
|
||||
const handleDelete = (id: number) => {
|
||||
Alert.alert(
|
||||
'Delete Schedule',
|
||||
'Are you sure you want to delete this schedule? This action cannot be undone.',
|
||||
[
|
||||
{ text: 'Cancel', style: 'cancel' },
|
||||
{
|
||||
text: 'Delete',
|
||||
style: 'destructive',
|
||||
onPress: () => {
|
||||
deleteSchedule.mutate(
|
||||
{ id },
|
||||
{
|
||||
onSuccess: () => {
|
||||
refetch();
|
||||
},
|
||||
onError: (error: any) => {
|
||||
Alert.alert('Error', error.message || 'Failed to delete schedule');
|
||||
},
|
||||
},
|
||||
);
|
||||
},
|
||||
},
|
||||
],
|
||||
);
|
||||
};
|
||||
|
||||
const handleViewProducts = (productIds: number[]) => {
|
||||
setDialogType('products');
|
||||
setSelectedIds(productIds);
|
||||
setDialogOpen(true);
|
||||
};
|
||||
|
||||
const handleViewGroups = (groupIds: number[]) => {
|
||||
setDialogType('groups');
|
||||
setSelectedIds(groupIds);
|
||||
setDialogOpen(true);
|
||||
};
|
||||
|
||||
const handleReplicate = (schedule: Schedule) => {
|
||||
setReplicatingSchedule(schedule);
|
||||
setShowCreateForm(true);
|
||||
};
|
||||
|
||||
const handleCloseForm = () => {
|
||||
setShowCreateForm(false);
|
||||
setReplicatingSchedule(null);
|
||||
};
|
||||
|
||||
// Get product/group names from IDs
|
||||
const getProductNames = () => {
|
||||
const allProducts = productsData?.products || [];
|
||||
return selectedIds.map(id => {
|
||||
const product = allProducts.find(p => p.id === id);
|
||||
return product?.name || `Product #${id}`;
|
||||
});
|
||||
};
|
||||
|
||||
const getGroupNames = () => {
|
||||
const allGroups = groupsData?.groups || [];
|
||||
return selectedIds.map(id => {
|
||||
const group = allGroups.find(g => g.id === id);
|
||||
return group?.groupName || `Group #${id}`;
|
||||
});
|
||||
};
|
||||
|
||||
if (showCreateForm) {
|
||||
return (
|
||||
<AvailabilityScheduleForm
|
||||
onClose={handleCloseForm}
|
||||
onSuccess={() => {
|
||||
refetch();
|
||||
handleCloseForm();
|
||||
}}
|
||||
initialProductIds={replicatingSchedule?.productIds}
|
||||
initialGroupIds={replicatingSchedule?.groupIds}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
<AppContainer>
|
||||
<View style={tw`flex-1 justify-center items-center`}>
|
||||
<MyText style={tw`text-gray-600`}>Loading schedules...</MyText>
|
||||
</View>
|
||||
</AppContainer>
|
||||
);
|
||||
}
|
||||
|
||||
if (error) {
|
||||
return (
|
||||
<AppContainer>
|
||||
<View style={tw`flex-1 justify-center items-center`}>
|
||||
<MyText style={tw`text-red-600`}>Error loading schedules</MyText>
|
||||
</View>
|
||||
</AppContainer>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppContainer>
|
||||
<View style={tw`flex-1 bg-white h-full`}>
|
||||
<ScrollView
|
||||
style={tw`flex-1`}
|
||||
contentContainerStyle={tw`pt-2 pb-32`}
|
||||
showsVerticalScrollIndicator={false}
|
||||
>
|
||||
{schedules && schedules.length === 0 ? (
|
||||
<View style={tw`flex-1 justify-center items-center py-20`}>
|
||||
<View
|
||||
style={tw`w-24 h-24 bg-slate-50 rounded-full items-center justify-center mb-6`}
|
||||
>
|
||||
<Ionicons name="time-outline" size={48} color="#94A3B8" />
|
||||
</View>
|
||||
<MyText
|
||||
style={tw`text-slate-900 text-xl font-black tracking-tight`}
|
||||
>
|
||||
No Schedules Yet
|
||||
</MyText>
|
||||
<MyText
|
||||
style={tw`text-slate-500 text-center mt-2 font-medium px-8`}
|
||||
>
|
||||
Start by creating your first availability schedule using the
|
||||
button below.
|
||||
</MyText>
|
||||
</View>
|
||||
) : (
|
||||
schedules?.map((schedule, index) => (
|
||||
<React.Fragment key={schedule.id}>
|
||||
<ScheduleItem
|
||||
schedule={schedule}
|
||||
index={index}
|
||||
onDelete={handleDelete}
|
||||
onViewProducts={handleViewProducts}
|
||||
onViewGroups={handleViewGroups}
|
||||
onReplicate={handleReplicate}
|
||||
/>
|
||||
{index < schedules.length - 1 && (
|
||||
<View style={tw`h-px bg-slate-200 w-full`} />
|
||||
)}
|
||||
</React.Fragment>
|
||||
))
|
||||
)}
|
||||
</ScrollView>
|
||||
</View>
|
||||
</AppContainer>
|
||||
<MyTouchableOpacity
|
||||
onPress={handleCreate}
|
||||
activeOpacity={0.95}
|
||||
style={tw`absolute bottom-8 right-6 shadow-2xl z-50`}
|
||||
>
|
||||
<LinearGradient
|
||||
colors={['#1570EF', '#194185']}
|
||||
start={{ x: 0, y: 0 }}
|
||||
end={{ x: 1, y: 1 }}
|
||||
style={tw`w-16 h-16 rounded-[24px] items-center justify-center shadow-lg shadow-brand300`}
|
||||
>
|
||||
<MaterialIcons name="add" size={32} color="white" />
|
||||
</LinearGradient>
|
||||
</MyTouchableOpacity>
|
||||
|
||||
{/* Products/Groups Dialog */}
|
||||
<RawBottomDialog open={dialogOpen} onClose={() => setDialogOpen(false)}>
|
||||
<View style={tw`p-4`}>
|
||||
<MyText style={tw`text-lg font-bold mb-4`}>
|
||||
{dialogType === 'products' ? 'Products' : 'Groups'}
|
||||
</MyText>
|
||||
<FlatList
|
||||
data={dialogType === 'products' ? getProductNames() : getGroupNames()}
|
||||
keyExtractor={(item, index) => index.toString()}
|
||||
renderItem={({ item }) => (
|
||||
<View style={tw`py-3 border-b border-gray-100`}>
|
||||
<MyText style={tw`text-base text-gray-800`}>{item}</MyText>
|
||||
</View>
|
||||
)}
|
||||
showsVerticalScrollIndicator={false}
|
||||
style={tw`max-h-80`}
|
||||
ListEmptyComponent={
|
||||
<View style={tw`py-8 items-center`}>
|
||||
<MyText style={tw`text-gray-500`}>
|
||||
No {dialogType} found
|
||||
</MyText>
|
||||
</View>
|
||||
}
|
||||
/>
|
||||
</View>
|
||||
</RawBottomDialog>
|
||||
</>
|
||||
);
|
||||
}
|
||||
237
apps/admin-ui/components/AvailabilityScheduleForm.tsx
Normal file
|
|
@ -0,0 +1,237 @@
|
|||
import React, { useState } from 'react';
|
||||
import { View, TouchableOpacity, Alert, ScrollView } from 'react-native';
|
||||
import { useFormik } from 'formik';
|
||||
import { MyText, tw, MyTextInput, MyTouchableOpacity, DateTimePickerMod } from 'common-ui';
|
||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||
import ProductsSelector from './ProductsSelector';
|
||||
import { trpc } from '../src/trpc-client';
|
||||
|
||||
interface AvailabilityScheduleFormProps {
|
||||
onClose: () => void;
|
||||
onSuccess: () => void;
|
||||
initialProductIds?: number[];
|
||||
initialGroupIds?: number[];
|
||||
}
|
||||
|
||||
const AvailabilityScheduleForm: React.FC<AvailabilityScheduleFormProps> = ({
|
||||
onClose,
|
||||
onSuccess,
|
||||
initialProductIds,
|
||||
initialGroupIds,
|
||||
}) => {
|
||||
const createSchedule = trpc.admin.productAvailabilitySchedules.create.useMutation();
|
||||
const { data: groupsData } = trpc.admin.product.getGroups.useQuery();
|
||||
|
||||
// Map groups data to match ProductsSelector types (convert price from string to number)
|
||||
const groups = (groupsData?.groups || []).map(group => ({
|
||||
...group,
|
||||
products: group.products.map(product => ({
|
||||
...product,
|
||||
price: parseFloat(product.price as unknown as string) || 0,
|
||||
})),
|
||||
}));
|
||||
|
||||
const formik = useFormik({
|
||||
initialValues: {
|
||||
scheduleName: '',
|
||||
timeDate: null as Date | null,
|
||||
action: 'in' as 'in' | 'out',
|
||||
productIds: initialProductIds || ([] as number[]),
|
||||
groupIds: initialGroupIds || ([] as number[]),
|
||||
},
|
||||
validate: (values) => {
|
||||
const errors: {[key: string]: string} = {};
|
||||
|
||||
if (!values.scheduleName.trim()) {
|
||||
errors.scheduleName = 'Schedule name is required';
|
||||
}
|
||||
|
||||
if (!values.timeDate) {
|
||||
errors.timeDate = 'Time is required';
|
||||
}
|
||||
|
||||
if (!values.action) {
|
||||
errors.action = 'Action is required';
|
||||
}
|
||||
|
||||
if (values.productIds.length === 0) {
|
||||
errors.productIds = 'At least one product must be selected';
|
||||
}
|
||||
|
||||
return errors;
|
||||
},
|
||||
onSubmit: async (values) => {
|
||||
try {
|
||||
// Convert Date to HH:MM string
|
||||
const hours = values.timeDate!.getHours().toString().padStart(2, '0');
|
||||
const minutes = values.timeDate!.getMinutes().toString().padStart(2, '0');
|
||||
const timeString = `${hours}:${minutes}`;
|
||||
|
||||
await createSchedule.mutateAsync({
|
||||
scheduleName: values.scheduleName,
|
||||
time: timeString,
|
||||
action: values.action,
|
||||
productIds: values.productIds,
|
||||
groupIds: values.groupIds,
|
||||
});
|
||||
|
||||
Alert.alert('Success', 'Schedule created successfully');
|
||||
onSuccess();
|
||||
onClose();
|
||||
} catch (error: any) {
|
||||
Alert.alert('Error', error.message || 'Failed to create schedule');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
const actionOptions = [
|
||||
{ label: 'In Stock', value: 'in' },
|
||||
{ label: 'Out of Stock', value: 'out' },
|
||||
];
|
||||
|
||||
return (
|
||||
<View style={tw`flex-1 bg-white`}>
|
||||
{/* Header */}
|
||||
<View style={tw`flex-row items-center justify-between p-4 border-b border-gray-200 bg-white`}>
|
||||
<MyText style={tw`text-xl font-bold text-gray-900`}>
|
||||
Create Availability Schedule
|
||||
</MyText>
|
||||
<MyTouchableOpacity onPress={onClose}>
|
||||
<MaterialIcons name="close" size={24} color="#6B7280" />
|
||||
</MyTouchableOpacity>
|
||||
</View>
|
||||
|
||||
<ScrollView style={tw`flex-1 p-4`} showsVerticalScrollIndicator={false}>
|
||||
{/* Schedule Name */}
|
||||
<View style={tw`mb-4`}>
|
||||
<MyText style={tw`text-sm font-medium text-gray-700 mb-2`}>
|
||||
Schedule Name
|
||||
</MyText>
|
||||
<MyTextInput
|
||||
placeholder="Enter schedule name"
|
||||
value={formik.values.scheduleName}
|
||||
onChangeText={formik.handleChange('scheduleName')}
|
||||
onBlur={formik.handleBlur('scheduleName')}
|
||||
style={tw`border rounded-lg p-3 ${
|
||||
formik.touched.scheduleName && formik.errors.scheduleName
|
||||
? 'border-red-500'
|
||||
: 'border-gray-300'
|
||||
}`}
|
||||
/>
|
||||
{formik.touched.scheduleName && formik.errors.scheduleName && (
|
||||
<MyText style={tw`text-red-500 text-xs mt-1`}>
|
||||
{formik.errors.scheduleName}
|
||||
</MyText>
|
||||
)}
|
||||
</View>
|
||||
|
||||
{/* Time */}
|
||||
<View style={tw`mb-4`}>
|
||||
<MyText style={tw`text-sm font-medium text-gray-700 mb-2`}>
|
||||
Time
|
||||
</MyText>
|
||||
<DateTimePickerMod
|
||||
value={formik.values.timeDate}
|
||||
setValue={(date) => formik.setFieldValue('timeDate', date)}
|
||||
timeOnly={true}
|
||||
showLabels={false}
|
||||
/>
|
||||
{formik.touched.timeDate && formik.errors.timeDate && (
|
||||
<MyText style={tw`text-red-500 text-xs mt-1`}>
|
||||
{formik.errors.timeDate}
|
||||
</MyText>
|
||||
)}
|
||||
</View>
|
||||
|
||||
{/* Action */}
|
||||
<View style={tw`mb-4`}>
|
||||
<MyText style={tw`text-sm font-medium text-gray-700 mb-2`}>
|
||||
Action
|
||||
</MyText>
|
||||
<View style={tw`flex-row gap-3`}>
|
||||
{actionOptions.map((option) => (
|
||||
<TouchableOpacity
|
||||
key={option.value}
|
||||
onPress={() => formik.setFieldValue('action', option.value)}
|
||||
style={tw`flex-1 flex-row items-center p-4 rounded-lg border ${
|
||||
formik.values.action === option.value
|
||||
? 'bg-blue-50 border-blue-500'
|
||||
: 'bg-white border-gray-300'
|
||||
}`}
|
||||
>
|
||||
<View
|
||||
style={tw`w-5 h-5 rounded-full border-2 mr-3 items-center justify-center ${
|
||||
formik.values.action === option.value
|
||||
? 'border-blue-500'
|
||||
: 'border-gray-300'
|
||||
}`}
|
||||
>
|
||||
{formik.values.action === option.value && (
|
||||
<View style={tw`w-3 h-3 rounded-full bg-blue-500`} />
|
||||
)}
|
||||
</View>
|
||||
<MyText
|
||||
style={tw`font-medium ${
|
||||
formik.values.action === option.value
|
||||
? 'text-blue-700'
|
||||
: 'text-gray-700'
|
||||
}`}
|
||||
>
|
||||
{option.label}
|
||||
</MyText>
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{/* Products and Groups */}
|
||||
<View style={tw`mb-4`}>
|
||||
<MyText style={tw`text-sm font-medium text-gray-700 mb-2`}>
|
||||
Products & Groups
|
||||
</MyText>
|
||||
<ProductsSelector
|
||||
value={formik.values.productIds}
|
||||
onChange={(value) => formik.setFieldValue('productIds', value)}
|
||||
groups={groups}
|
||||
selectedGroupIds={formik.values.groupIds}
|
||||
onGroupChange={(groupIds) => formik.setFieldValue('groupIds', groupIds)}
|
||||
showGroups={true}
|
||||
label="Select Products"
|
||||
placeholder="Select products for this schedule"
|
||||
/>
|
||||
{formik.touched.productIds && formik.errors.productIds && (
|
||||
<MyText style={tw`text-red-500 text-xs mt-1`}>
|
||||
{formik.errors.productIds}
|
||||
</MyText>
|
||||
)}
|
||||
</View>
|
||||
|
||||
{/* Spacer for bottom padding */}
|
||||
<View style={tw`h-24`} />
|
||||
</ScrollView>
|
||||
|
||||
{/* Footer Buttons */}
|
||||
<View style={tw`p-4 border-t border-gray-200 bg-white flex-row gap-3`}>
|
||||
<MyTouchableOpacity
|
||||
onPress={onClose}
|
||||
style={tw`flex-1 py-3 px-4 rounded-lg border border-gray-300 items-center`}
|
||||
>
|
||||
<MyText style={tw`font-medium text-gray-700`}>Cancel</MyText>
|
||||
</MyTouchableOpacity>
|
||||
<MyTouchableOpacity
|
||||
onPress={() => formik.handleSubmit()}
|
||||
disabled={formik.isSubmitting}
|
||||
style={tw`flex-1 py-3 px-4 rounded-lg bg-blue-600 items-center ${
|
||||
formik.isSubmitting ? 'opacity-50' : ''
|
||||
}`}
|
||||
>
|
||||
<MyText style={tw`font-medium text-white`}>
|
||||
{formik.isSubmitting ? 'Creating...' : 'Create Schedule'}
|
||||
</MyText>
|
||||
</MyTouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export default AvailabilityScheduleForm;
|
||||
14
apps/backend/drizzle/0077_wakeful_norrin_radd.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
CREATE TYPE "public"."product_availability_action" AS ENUM('in', 'out');--> statement-breakpoint
|
||||
CREATE TABLE "mf"."product_availability_schedules" (
|
||||
"id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "mf"."product_availability_schedules_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
|
||||
"time" varchar(10) NOT NULL,
|
||||
"schedule_name" varchar(255) NOT NULL,
|
||||
"action" "product_availability_action" NOT NULL,
|
||||
"product_ids" integer[] DEFAULT '{}' NOT NULL,
|
||||
"group_ids" integer[] DEFAULT '{}' NOT NULL,
|
||||
"created_at" timestamp DEFAULT now() NOT NULL,
|
||||
"last_updated" timestamp DEFAULT now() NOT NULL,
|
||||
CONSTRAINT "product_availability_schedules_schedule_name_unique" UNIQUE("schedule_name")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "mf"."product_info" ADD COLUMN "scheduled_availability" boolean DEFAULT true NOT NULL;
|
||||
3965
apps/backend/drizzle/meta/0077_snapshot.json
Normal file
|
|
@ -540,6 +540,13 @@
|
|||
"when": 1772637259874,
|
||||
"tag": "0076_sturdy_wolverine",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 77,
|
||||
"version": "7",
|
||||
"when": 1773927855512,
|
||||
"tag": "0077_wakeful_norrin_radd",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -93,6 +93,8 @@ export const units = mf.table('units', {
|
|||
unq_short_notation: unique('unique_short_notation').on(t.shortNotation),
|
||||
}));
|
||||
|
||||
export const productAvailabilityActionEnum = pgEnum('product_availability_action', ['in', 'out']);
|
||||
|
||||
export const productInfo = mf.table('product_info', {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity(),
|
||||
name: varchar({ length: 255 }).notNull(),
|
||||
|
|
@ -106,10 +108,22 @@ export const productInfo = mf.table('product_info', {
|
|||
isSuspended: boolean('is_suspended').notNull().default(false),
|
||||
isFlashAvailable: boolean('is_flash_available').notNull().default(false),
|
||||
flashPrice: numeric('flash_price', { precision: 10, scale: 2 }),
|
||||
createdAt: timestamp('created_at').notNull().defaultNow(),
|
||||
incrementStep: real('increment_step').notNull().default(1),
|
||||
productQuantity: real('product_quantity').notNull().default(1),
|
||||
storeId: integer('store_id').references(() => storeInfo.id),
|
||||
createdAt: timestamp('created_at').notNull().defaultNow(),
|
||||
incrementStep: real('increment_step').notNull().default(1),
|
||||
productQuantity: real('product_quantity').notNull().default(1),
|
||||
storeId: integer('store_id').references(() => storeInfo.id),
|
||||
scheduledAvailability: boolean('scheduled_availability').notNull().default(true),
|
||||
});
|
||||
|
||||
export const productAvailabilitySchedules = mf.table('product_availability_schedules', {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity(),
|
||||
time: varchar('time', { length: 10 }).notNull(),
|
||||
scheduleName: varchar('schedule_name', { length: 255 }).notNull().unique(),
|
||||
action: productAvailabilityActionEnum('action').notNull(),
|
||||
productIds: integer('product_ids').array().notNull().default([]),
|
||||
groupIds: integer('group_ids').array().notNull().default([]),
|
||||
createdAt: timestamp('created_at').notNull().defaultNow(),
|
||||
lastUpdated: timestamp('last_updated').notNull().defaultNow(),
|
||||
});
|
||||
|
||||
export const productGroupInfo = mf.table('product_group_info', {
|
||||
|
|
@ -687,3 +701,6 @@ export const userIncidentsRelations = relations(userIncidents, ({ one }) => ({
|
|||
order: one(orders, { fields: [userIncidents.orderId], references: [orders.id] }),
|
||||
addedBy: one(staffUsers, { fields: [userIncidents.addedBy], references: [staffUsers.id] }),
|
||||
}));
|
||||
|
||||
export const productAvailabilitySchedulesRelations = relations(productAvailabilitySchedules, ({}) => ({
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -1,85 +1,109 @@
|
|||
import * as cron from 'node-cron';
|
||||
import { db } from '@/src/db/db_index'
|
||||
import { productInfo, keyValStore } from '@/src/db/schema'
|
||||
import { inArray, eq } from 'drizzle-orm';
|
||||
import { CONST_KEYS } from '@/src/lib/const-keys'
|
||||
import { computeConstants } from '@/src/lib/const-store'
|
||||
import { productInfo, productAvailabilitySchedules } from '@/src/db/schema'
|
||||
import { inArray } from 'drizzle-orm';
|
||||
import { initializeAllStores } from '../stores/store-initializer';
|
||||
|
||||
// Module-level storage for cron jobs
|
||||
const scheduleJobs: Map<string, cron.ScheduledTask> = new Map();
|
||||
|
||||
const MUTTON_ITEMS = [
|
||||
12, //Lamb mutton
|
||||
14, // Mutton Boti
|
||||
35, //Mutton Kheema
|
||||
84, //Mutton Brain
|
||||
4, //Mutton
|
||||
86, //Mutton Chops
|
||||
87, //Mutton Soup bones
|
||||
85 //Mutton paya
|
||||
];
|
||||
|
||||
|
||||
|
||||
export const startAutomatedJobs = () => {
|
||||
// Job to disable flash delivery for mutton at 12 PM daily
|
||||
cron.schedule('0 12 * * *', async () => {
|
||||
try {
|
||||
console.log('Disabling flash delivery for products at 12 PM');
|
||||
await db
|
||||
.update(productInfo)
|
||||
.set({ isFlashAvailable: false })
|
||||
.where(inArray(productInfo.id, MUTTON_ITEMS));
|
||||
console.log('Flash delivery disabled successfully');
|
||||
} catch (error) {
|
||||
console.error('Error disabling flash delivery:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// Job to enable flash delivery for mutton at 6 AM daily
|
||||
cron.schedule('0 6 * * *', async () => {
|
||||
try {
|
||||
console.log('Enabling flash delivery for products at 5 AM');
|
||||
await db
|
||||
.update(productInfo)
|
||||
.set({ isFlashAvailable: true })
|
||||
.where(inArray(productInfo.id, MUTTON_ITEMS));
|
||||
console.log('Flash delivery enabled successfully');
|
||||
} catch (error) {
|
||||
console.error('Error enabling flash delivery:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// Job to disable flash delivery feature at 9 PM daily
|
||||
cron.schedule('0 21 * * *', async () => {
|
||||
try {
|
||||
console.log('Disabling flash delivery feature at 9 PM');
|
||||
await db
|
||||
.update(keyValStore)
|
||||
.set({ value: false })
|
||||
.where(eq(keyValStore.key, CONST_KEYS.isFlashDeliveryEnabled));
|
||||
await computeConstants(); // Refresh Redis cache
|
||||
console.log('Flash delivery feature disabled successfully');
|
||||
} catch (error) {
|
||||
console.error('Error disabling flash delivery feature:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// Job to enable flash delivery feature at 6 AM daily
|
||||
cron.schedule('0 6 * * *', async () => {
|
||||
try {
|
||||
console.log('Enabling flash delivery feature at 6 AM');
|
||||
await db
|
||||
.update(keyValStore)
|
||||
.set({ value: true })
|
||||
.where(eq(keyValStore.key, CONST_KEYS.isFlashDeliveryEnabled));
|
||||
await computeConstants(); // Refresh Redis cache
|
||||
console.log('Flash delivery feature enabled successfully');
|
||||
} catch (error) {
|
||||
console.error('Error enabling flash delivery feature:', error);
|
||||
}
|
||||
});
|
||||
|
||||
console.log('Automated jobs scheduled');
|
||||
// Stop all existing schedule-based jobs
|
||||
const stopAllScheduleJobs = () => {
|
||||
for (const [time, job] of scheduleJobs) {
|
||||
job.stop();
|
||||
console.log(`Stopped cron job for ${time}`);
|
||||
}
|
||||
scheduleJobs.clear();
|
||||
};
|
||||
|
||||
// Optional: Call on import if desired, or export and call in main app
|
||||
// startAutomatedJobs();
|
||||
// Main function to refresh jobs (called on init and after schedule changes)
|
||||
export const refreshScheduleJobs = async (): Promise<void> => {
|
||||
// Stop existing jobs
|
||||
stopAllScheduleJobs();
|
||||
|
||||
// Fetch all schedules from DB
|
||||
const schedules = await db.query.productAvailabilitySchedules.findMany();
|
||||
|
||||
if (schedules.length === 0) {
|
||||
console.log('No schedules found, no jobs created');
|
||||
return;
|
||||
}
|
||||
|
||||
// Group schedules by time
|
||||
const schedulesByTime = new Map<string, typeof schedules>();
|
||||
|
||||
for (const schedule of schedules) {
|
||||
if (!schedulesByTime.has(schedule.time)) {
|
||||
schedulesByTime.set(schedule.time, []);
|
||||
}
|
||||
schedulesByTime.get(schedule.time)!.push(schedule);
|
||||
}
|
||||
|
||||
// For each time slot, resolve conflicts and create job
|
||||
for (const [time, timeSchedules] of schedulesByTime) {
|
||||
// Sort by ID descending (highest ID = latest = wins in conflicts)
|
||||
const sortedSchedules = timeSchedules.sort((a, b) => b.id - a.id);
|
||||
|
||||
// Build final product states (later schedules override earlier ones)
|
||||
const productStates = new Map<number, 'in' | 'out'>();
|
||||
|
||||
for (const schedule of sortedSchedules) {
|
||||
for (const productId of schedule.productIds) {
|
||||
if (!productStates.has(productId)) {
|
||||
productStates.set(productId, schedule.action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Separate into in-stock and out-of-stock lists
|
||||
const toTurnOn: number[] = [];
|
||||
const toTurnOff: number[] = [];
|
||||
|
||||
for (const [productId, action] of productStates) {
|
||||
if (action === 'in') {
|
||||
toTurnOn.push(productId);
|
||||
} else {
|
||||
toTurnOff.push(productId);
|
||||
}
|
||||
}
|
||||
|
||||
// Create cron schedule from time (HH:mm to cron format)
|
||||
const [hours, minutes] = time.split(':');
|
||||
const cronExpression = `${minutes} ${hours} * * *`;
|
||||
|
||||
// Create and store the job
|
||||
const job = cron.schedule(cronExpression, async () => {
|
||||
console.log(`Running scheduled availability job for ${time}`);
|
||||
|
||||
// Batch update in single queries
|
||||
if (toTurnOn.length > 0) {
|
||||
await db.update(productInfo)
|
||||
.set({ isOutOfStock: false })
|
||||
.where(inArray(productInfo.id, toTurnOn));
|
||||
console.log(`[${time}] Turned ON ${toTurnOn.length} products`);
|
||||
}
|
||||
|
||||
if (toTurnOff.length > 0) {
|
||||
await db.update(productInfo)
|
||||
.set({ isOutOfStock: true })
|
||||
.where(inArray(productInfo.id, toTurnOff));
|
||||
console.log(`[${time}] Turned OFF ${toTurnOff.length} products`);
|
||||
}
|
||||
|
||||
initializeAllStores();
|
||||
});
|
||||
|
||||
scheduleJobs.set(time, job);
|
||||
console.log(`Created cron job for ${time} (${toTurnOn.length} ON, ${toTurnOff.length} OFF)`);
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize all automated jobs
|
||||
export const startAutomatedJobs = () => {
|
||||
// Only schedule-based jobs (flash delivery jobs removed)
|
||||
refreshScheduleJobs().catch(err => {
|
||||
console.error('Failed to initialize schedule jobs:', err);
|
||||
});
|
||||
|
||||
console.log('Automated jobs scheduled');
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { initializeUserNegativityStore } from '@/src/stores/user-negativity-stor
|
|||
import { startOrderHandler, startCancellationHandler, publishOrder } from '@/src/lib/post-order-handler'
|
||||
import { deleteOrders } from '@/src/lib/delete-orders'
|
||||
import { createAllCacheFiles } from '@/src/lib/cloud_cache'
|
||||
import { verifyProductsAvailabilityBySchedule } from './manage-scheduled-availability'
|
||||
|
||||
/**
|
||||
* Initialize all application services
|
||||
|
|
@ -18,7 +19,8 @@ import { createAllCacheFiles } from '@/src/lib/cloud_cache'
|
|||
export const initFunc = async (): Promise<void> => {
|
||||
try {
|
||||
console.log('Starting application initialization...');
|
||||
|
||||
|
||||
await verifyProductsAvailabilityBySchedule(false);
|
||||
await Promise.all([
|
||||
initializeAllStores(),
|
||||
initializeUserNegativityStore(),
|
||||
|
|
|
|||
129
apps/backend/src/lib/manage-scheduled-availability.ts
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
import { db } from '@/src/db/db_index'
|
||||
import { productInfo, productAvailabilitySchedules } from '@/src/db/schema'
|
||||
import { eq, inArray } from 'drizzle-orm';
|
||||
import { initializeAllStores } from '@/src/stores/store-initializer';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
/**
|
||||
* Get all products that should be in stock or out of stock based on current schedules
|
||||
* Only processes products that are actually involved in availability schedules
|
||||
* Automatically updates products that need to change their availability status
|
||||
* @returns Promise<{ inStock: number[], outOfStock: number[], changed: number[] }>
|
||||
*/
|
||||
export async function verifyProductsAvailabilityBySchedule(reInitialize:boolean = false): Promise<{
|
||||
inStock: number[];
|
||||
outOfStock: number[];
|
||||
changed: number[];
|
||||
}> {
|
||||
// Get all schedules
|
||||
const allSchedules = await db.query.productAvailabilitySchedules.findMany();
|
||||
|
||||
// Extract all unique product IDs from all schedules
|
||||
const allScheduledProductIds = new Set<number>();
|
||||
for (const schedule of allSchedules) {
|
||||
for (const productId of schedule.productIds) {
|
||||
allScheduledProductIds.add(productId);
|
||||
}
|
||||
}
|
||||
|
||||
// If no products are in any schedule, return empty arrays
|
||||
if (allScheduledProductIds.size === 0) {
|
||||
return { inStock: [], outOfStock: [], changed: [] };
|
||||
}
|
||||
|
||||
// Get current time
|
||||
const currentTime = dayjs().format('HH:mm');
|
||||
|
||||
const computedInStock: number[] = [];
|
||||
const computedOutOfStock: number[] = [];
|
||||
|
||||
// Process each product that is involved in schedules
|
||||
for (const productId of allScheduledProductIds) {
|
||||
// Find applicable schedules for this product
|
||||
const applicableSchedules = allSchedules.filter(schedule => {
|
||||
return schedule.productIds.includes(productId);
|
||||
});
|
||||
|
||||
// Filter active schedules (time <= current time)
|
||||
const activeSchedules = applicableSchedules.filter(schedule =>
|
||||
schedule.time <= currentTime
|
||||
);
|
||||
|
||||
if (activeSchedules.length === 0) {
|
||||
// No active schedule applies - skip this product
|
||||
// (we only care about products with active schedule rules)
|
||||
continue;
|
||||
}
|
||||
|
||||
// Get most recent schedule
|
||||
const mostRecentSchedule = activeSchedules.sort((a, b) => {
|
||||
if (a.time !== b.time) {
|
||||
return b.time.localeCompare(a.time);
|
||||
}
|
||||
return b.id - a.id;
|
||||
})[0];
|
||||
|
||||
// Categorize based on schedule action
|
||||
if (mostRecentSchedule.action === 'in') {
|
||||
computedInStock.push(productId);
|
||||
} else {
|
||||
computedOutOfStock.push(productId);
|
||||
}
|
||||
}
|
||||
|
||||
// Query products to check current availability status
|
||||
const allProductIds = [...computedInStock, ...computedOutOfStock];
|
||||
|
||||
if (allProductIds.length === 0) {
|
||||
return { inStock: [], outOfStock: [], changed: [] };
|
||||
}
|
||||
|
||||
const products = await db.query.productInfo.findMany({
|
||||
where: inArray(productInfo.id, allProductIds),
|
||||
});
|
||||
|
||||
// Find products that need to change
|
||||
const toMarkInStock: number[] = [];
|
||||
const toMarkOutOfStock: number[] = [];
|
||||
const changed: number[] = [];
|
||||
|
||||
for (const product of products) {
|
||||
const shouldBeInStock = computedInStock.includes(product.id);
|
||||
const currentlyOutOfStock = product.isOutOfStock;
|
||||
|
||||
if (shouldBeInStock && currentlyOutOfStock) {
|
||||
// Should be in stock but currently out of stock - needs change
|
||||
toMarkInStock.push(product.id);
|
||||
changed.push(product.id);
|
||||
} else if (!shouldBeInStock && !currentlyOutOfStock) {
|
||||
// Should be out of stock but currently in stock - needs change
|
||||
toMarkOutOfStock.push(product.id);
|
||||
changed.push(product.id);
|
||||
}
|
||||
}
|
||||
|
||||
// Batch update products in a single query
|
||||
if (toMarkInStock.length > 0) {
|
||||
await db.update(productInfo)
|
||||
.set({ isOutOfStock: false })
|
||||
.where(inArray(productInfo.id, toMarkInStock));
|
||||
}
|
||||
|
||||
if (toMarkOutOfStock.length > 0) {
|
||||
await db.update(productInfo)
|
||||
.set({ isOutOfStock: true })
|
||||
.where(inArray(productInfo.id, toMarkOutOfStock));
|
||||
}
|
||||
|
||||
// Reinitialize stores if any products changed
|
||||
if (changed.length > 0 && reInitialize) {
|
||||
console.log(`Reinitializing stores after availability changes for ${changed.length} products`);
|
||||
await initializeAllStores();
|
||||
}
|
||||
|
||||
return {
|
||||
inStock: computedInStock,
|
||||
outOfStock: computedOutOfStock,
|
||||
changed
|
||||
};
|
||||
}
|
||||
|
|
@ -14,6 +14,7 @@ import addressRouter from '@/src/trpc/apis/admin-apis/apis/address'
|
|||
import { bannerRouter } from '@/src/trpc/apis/admin-apis/apis/banner'
|
||||
import { userRouter } from '@/src/trpc/apis/admin-apis/apis/user'
|
||||
import { constRouter } from '@/src/trpc/apis/admin-apis/apis/const'
|
||||
import { productAvailabilitySchedulesRouter } from '@/src/trpc/apis/admin-apis/apis/product-availability-schedules'
|
||||
|
||||
export const adminRouter = router({
|
||||
complaint: complaintRouter,
|
||||
|
|
@ -30,6 +31,7 @@ export const adminRouter = router({
|
|||
banner: bannerRouter,
|
||||
user: userRouter,
|
||||
const: constRouter,
|
||||
productAvailabilitySchedules: productAvailabilitySchedulesRouter,
|
||||
});
|
||||
|
||||
export type AdminRouter = typeof adminRouter;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,154 @@
|
|||
import { router, protectedProcedure } from '@/src/trpc/trpc-index'
|
||||
import { z } from 'zod';
|
||||
import { db } from '@/src/db/db_index'
|
||||
import { productAvailabilitySchedules } from '@/src/db/schema'
|
||||
import { eq } from 'drizzle-orm';
|
||||
import { refreshScheduleJobs } from '@/src/lib/automatedJobs';
|
||||
|
||||
const createScheduleSchema = z.object({
|
||||
scheduleName: z.string().min(1, "Schedule name is required"),
|
||||
time: z.string().min(1, "Time is required").regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/, "Invalid time format. Use HH:MM"),
|
||||
action: z.enum(['in', 'out']),
|
||||
productIds: z.array(z.number().int().positive()).min(1, "At least one product is required"),
|
||||
groupIds: z.array(z.number().int().positive()).default([]),
|
||||
});
|
||||
|
||||
const updateScheduleSchema = z.object({
|
||||
id: z.number().int().positive(),
|
||||
updates: createScheduleSchema.partial().extend({
|
||||
scheduleName: z.string().min(1).optional(),
|
||||
productIds: z.array(z.number().int().positive()).optional(),
|
||||
groupIds: z.array(z.number().int().positive()).optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const productAvailabilitySchedulesRouter = router({
|
||||
create: protectedProcedure
|
||||
.input(createScheduleSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
const { scheduleName, time, action, productIds, groupIds } = input;
|
||||
|
||||
// Get staff user ID from auth middleware
|
||||
const staffUserId = ctx.staffUser?.id;
|
||||
if (!staffUserId) {
|
||||
throw new Error("Unauthorized");
|
||||
}
|
||||
|
||||
// Check if schedule name already exists
|
||||
const existingSchedule = await db.query.productAvailabilitySchedules.findFirst({
|
||||
where: eq(productAvailabilitySchedules.scheduleName, scheduleName),
|
||||
});
|
||||
if (existingSchedule) {
|
||||
throw new Error("Schedule name already exists");
|
||||
}
|
||||
|
||||
// Create schedule with arrays
|
||||
const scheduleResult = await db.insert(productAvailabilitySchedules).values({
|
||||
scheduleName,
|
||||
time,
|
||||
action,
|
||||
productIds,
|
||||
groupIds,
|
||||
}).returning();
|
||||
|
||||
// Refresh cron jobs to include new schedule
|
||||
await refreshScheduleJobs();
|
||||
|
||||
return scheduleResult[0];
|
||||
}),
|
||||
|
||||
getAll: protectedProcedure
|
||||
.query(async () => {
|
||||
const schedules = await db.query.productAvailabilitySchedules.findMany({
|
||||
orderBy: (productAvailabilitySchedules, { desc }) => [desc(productAvailabilitySchedules.createdAt)],
|
||||
});
|
||||
|
||||
return schedules.map(schedule => ({
|
||||
...schedule,
|
||||
productCount: schedule.productIds.length,
|
||||
groupCount: schedule.groupIds.length,
|
||||
}));
|
||||
}),
|
||||
|
||||
getById: protectedProcedure
|
||||
.input(z.object({ id: z.number().int().positive() }))
|
||||
.query(async ({ input }) => {
|
||||
const { id } = input;
|
||||
|
||||
const schedule = await db.query.productAvailabilitySchedules.findFirst({
|
||||
where: eq(productAvailabilitySchedules.id, id),
|
||||
});
|
||||
|
||||
if (!schedule) {
|
||||
throw new Error("Schedule not found");
|
||||
}
|
||||
|
||||
return schedule;
|
||||
}),
|
||||
|
||||
update: protectedProcedure
|
||||
.input(updateScheduleSchema)
|
||||
.mutation(async ({ input }) => {
|
||||
const { id, updates } = input;
|
||||
|
||||
// Check if schedule exists
|
||||
const existingSchedule = await db.query.productAvailabilitySchedules.findFirst({
|
||||
where: eq(productAvailabilitySchedules.id, id),
|
||||
});
|
||||
if (!existingSchedule) {
|
||||
throw new Error("Schedule not found");
|
||||
}
|
||||
|
||||
// Check schedule name uniqueness if being updated
|
||||
if (updates.scheduleName && updates.scheduleName !== existingSchedule.scheduleName) {
|
||||
const duplicateSchedule = await db.query.productAvailabilitySchedules.findFirst({
|
||||
where: eq(productAvailabilitySchedules.scheduleName, updates.scheduleName),
|
||||
});
|
||||
if (duplicateSchedule) {
|
||||
throw new Error("Schedule name already exists");
|
||||
}
|
||||
}
|
||||
|
||||
// Update schedule
|
||||
const updateData: any = {};
|
||||
if (updates.scheduleName !== undefined) updateData.scheduleName = updates.scheduleName;
|
||||
if (updates.time !== undefined) updateData.time = updates.time;
|
||||
if (updates.action !== undefined) updateData.action = updates.action;
|
||||
if (updates.productIds !== undefined) updateData.productIds = updates.productIds;
|
||||
if (updates.groupIds !== undefined) updateData.groupIds = updates.groupIds;
|
||||
updateData.lastUpdated = new Date();
|
||||
|
||||
const result = await db.update(productAvailabilitySchedules)
|
||||
.set(updateData)
|
||||
.where(eq(productAvailabilitySchedules.id, id))
|
||||
.returning();
|
||||
|
||||
if (result.length === 0) {
|
||||
throw new Error("Failed to update schedule");
|
||||
}
|
||||
|
||||
// Refresh cron jobs to reflect changes
|
||||
await refreshScheduleJobs();
|
||||
|
||||
return result[0];
|
||||
}),
|
||||
|
||||
delete: protectedProcedure
|
||||
.input(z.object({ id: z.number().int().positive() }))
|
||||
.mutation(async ({ input }) => {
|
||||
const { id } = input;
|
||||
|
||||
const result = await db.delete(productAvailabilitySchedules)
|
||||
.where(eq(productAvailabilitySchedules.id, id))
|
||||
.returning();
|
||||
|
||||
if (result.length === 0) {
|
||||
throw new Error("Schedule not found");
|
||||
}
|
||||
|
||||
// Refresh cron jobs to remove deleted schedule
|
||||
await refreshScheduleJobs();
|
||||
|
||||
return { message: "Schedule deleted successfully" };
|
||||
}),
|
||||
});
|
||||
30
apps/user-ui/ios/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# OSX
|
||||
#
|
||||
.DS_Store
|
||||
|
||||
# Xcode
|
||||
#
|
||||
build/
|
||||
*.pbxuser
|
||||
!default.pbxuser
|
||||
*.mode1v3
|
||||
!default.mode1v3
|
||||
*.mode2v3
|
||||
!default.mode2v3
|
||||
*.perspectivev3
|
||||
!default.perspectivev3
|
||||
xcuserdata
|
||||
*.xccheckout
|
||||
*.moved-aside
|
||||
DerivedData
|
||||
*.hmap
|
||||
*.ipa
|
||||
*.xcuserstate
|
||||
project.xcworkspace
|
||||
.xcode.env.local
|
||||
|
||||
# Bundle artifacts
|
||||
*.jsbundle
|
||||
|
||||
# CocoaPods
|
||||
/Pods/
|
||||
11
apps/user-ui/ios/.xcode.env
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# This `.xcode.env` file is versioned and is used to source the environment
|
||||
# used when running script phases inside Xcode.
|
||||
# To customize your local environment, you can create an `.xcode.env.local`
|
||||
# file that is not versioned.
|
||||
|
||||
# NODE_BINARY variable contains the PATH to the node executable.
|
||||
#
|
||||
# Customize the NODE_BINARY variable here.
|
||||
# For example, to use nvm with brew, add the following line
|
||||
# . "$(brew --prefix nvm)/nvm.sh" --no-use
|
||||
export NODE_BINARY=$(command -v node)
|
||||
575
apps/user-ui/ios/Freshyo.xcodeproj/project.pbxproj
Normal file
|
|
@ -0,0 +1,575 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 54;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
||||
2C37E4A97DE9153236FBD977 /* libPods-Freshyo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 670E20838A552645393ECDE3 /* libPods-Freshyo.a */; };
|
||||
3DB5AF8CEB50E9B519C1945A /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AE8FE303BD337943DF24ADD /* ExpoModulesProvider.swift */; };
|
||||
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
|
||||
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
|
||||
C2EA119F9840C959E30C0C86 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F89F5F0DD976A07FC22ED328 /* PrivacyInfo.xcprivacy */; };
|
||||
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F11748412D0307B40044C1D9 /* AppDelegate.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
13B07F961A680F5B00A75B9A /* Freshyo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Freshyo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Freshyo/Images.xcassets; sourceTree = "<group>"; };
|
||||
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Freshyo/Info.plist; sourceTree = "<group>"; };
|
||||
533FE749FF22482CD804789B /* Pods-Freshyo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Freshyo.release.xcconfig"; path = "Target Support Files/Pods-Freshyo/Pods-Freshyo.release.xcconfig"; sourceTree = "<group>"; };
|
||||
670E20838A552645393ECDE3 /* libPods-Freshyo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Freshyo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
71E91B3C5262453E20EB801E /* Pods-Freshyo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Freshyo.debug.xcconfig"; path = "Target Support Files/Pods-Freshyo/Pods-Freshyo.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
9AE8FE303BD337943DF24ADD /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-Freshyo/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
|
||||
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = Freshyo/SplashScreen.storyboard; sourceTree = "<group>"; };
|
||||
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
|
||||
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
||||
F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Freshyo/AppDelegate.swift; sourceTree = "<group>"; };
|
||||
F11748442D0722820044C1D9 /* Freshyo-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "Freshyo-Bridging-Header.h"; path = "Freshyo/Freshyo-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
F89F5F0DD976A07FC22ED328 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = Freshyo/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2C37E4A97DE9153236FBD977 /* libPods-Freshyo.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
13B07FAE1A68108700A75B9A /* Freshyo */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F11748412D0307B40044C1D9 /* AppDelegate.swift */,
|
||||
F11748442D0722820044C1D9 /* Freshyo-Bridging-Header.h */,
|
||||
BB2F792B24A3F905000567C9 /* Supporting */,
|
||||
13B07FB51A68108700A75B9A /* Images.xcassets */,
|
||||
13B07FB61A68108700A75B9A /* Info.plist */,
|
||||
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
|
||||
F89F5F0DD976A07FC22ED328 /* PrivacyInfo.xcprivacy */,
|
||||
);
|
||||
name = Freshyo;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
|
||||
670E20838A552645393ECDE3 /* libPods-Freshyo.a */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = Libraries;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
83CBB9F61A601CBA00E9B192 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
13B07FAE1A68108700A75B9A /* Freshyo */,
|
||||
832341AE1AAA6A7D00B99B32 /* Libraries */,
|
||||
83CBBA001A601CBA00E9B192 /* Products */,
|
||||
2D16E6871FA4F8E400B85C8A /* Frameworks */,
|
||||
E3148209ADF422EFF0DAB206 /* Pods */,
|
||||
C8B7E77731D28FFA9DF8E282 /* ExpoModulesProviders */,
|
||||
);
|
||||
indentWidth = 2;
|
||||
sourceTree = "<group>";
|
||||
tabWidth = 2;
|
||||
usesTabs = 0;
|
||||
};
|
||||
83CBBA001A601CBA00E9B192 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
13B07F961A680F5B00A75B9A /* Freshyo.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BB2F792B24A3F905000567C9 /* Supporting */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BB2F792C24A3F905000567C9 /* Expo.plist */,
|
||||
);
|
||||
name = Supporting;
|
||||
path = Freshyo/Supporting;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
C8B7E77731D28FFA9DF8E282 /* ExpoModulesProviders */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CBB239C12EB7FF4F975586AF /* Freshyo */,
|
||||
);
|
||||
name = ExpoModulesProviders;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CBB239C12EB7FF4F975586AF /* Freshyo */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9AE8FE303BD337943DF24ADD /* ExpoModulesProvider.swift */,
|
||||
);
|
||||
name = Freshyo;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E3148209ADF422EFF0DAB206 /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
71E91B3C5262453E20EB801E /* Pods-Freshyo.debug.xcconfig */,
|
||||
533FE749FF22482CD804789B /* Pods-Freshyo.release.xcconfig */,
|
||||
);
|
||||
name = Pods;
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
13B07F861A680F5B00A75B9A /* Freshyo */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Freshyo" */;
|
||||
buildPhases = (
|
||||
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
|
||||
A905FE4867FF14431C690736 /* [Expo] Configure project */,
|
||||
13B07F871A680F5B00A75B9A /* Sources */,
|
||||
13B07F8C1A680F5B00A75B9A /* Frameworks */,
|
||||
13B07F8E1A680F5B00A75B9A /* Resources */,
|
||||
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
|
||||
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
|
||||
8D3F262C776A137C7933AF6F /* [CP] Embed Pods Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Freshyo;
|
||||
productName = Freshyo;
|
||||
productReference = 13B07F961A680F5B00A75B9A /* Freshyo.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
83CBB9F71A601CBA00E9B192 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1130;
|
||||
TargetAttributes = {
|
||||
13B07F861A680F5B00A75B9A = {
|
||||
LastSwiftMigration = 1250;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Freshyo" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 83CBB9F61A601CBA00E9B192;
|
||||
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
13B07F861A680F5B00A75B9A /* Freshyo */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
13B07F8E1A680F5B00A75B9A /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
|
||||
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
|
||||
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
|
||||
C2EA119F9840C959E30C0C86 /* PrivacyInfo.xcprivacy in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Bundle React Native code and images";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios absolute | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n# Source .xcode.env.updates if it exists to allow\n# SKIP_BUNDLING to be unset if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.updates\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.updates\"\nfi\n# Source local changes to allow overrides\n# if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
|
||||
};
|
||||
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-Freshyo-checkManifestLockResult.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-resources.sh",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/AppAuth/AppAuthCore_Privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/EXApplication/ExpoApplication_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/EXNotifications/ExpoNotifications_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoDevice/ExpoDevice_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoSystemUI/ExpoSystemUI_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/GTMAppAuth/GTMAppAuth_Privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleSignIn/GoogleSignIn.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/PromisesObjC/FBLPromises_Privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/RNSVG/RNSVGFilters.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/ReachabilitySwift/ReachabilitySwift.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AppAuthCore_Privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoApplication_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoConstants_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoNotifications_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoDevice_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoFileSystem_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoSystemUI_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMAppAuth_Privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMSessionFetcher_Core_Privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleSignIn.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBLPromises_Privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNSVGFilters.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ReachabilitySwift.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
8D3F262C776A137C7933AF6F /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-frameworks.sh",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/razorpay-core-pod/Razorpay.framework/Razorpay",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/razorpay-core-pod/RazorpayCore.framework/RazorpayCore",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/razorpay-pod/RazorpayStandard.framework/RazorpayStandard",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Razorpay.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RazorpayCore.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RazorpayStandard.framework",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
A905FE4867FF14431C690736 /* [Expo] Configure project */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "[Expo] Configure project";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-Freshyo/expo-configure-project.sh\"\n";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
13B07F871A680F5B00A75B9A /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */,
|
||||
3DB5AF8CEB50E9B519C1945A /* ExpoModulesProvider.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
13B07F941A680F5B00A75B9A /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 71E91B3C5262453E20EB801E /* Pods-Freshyo.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Freshyo/Freshyo.entitlements;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
ENABLE_BITCODE = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
"FB_SONARKIT_ENABLED=1",
|
||||
);
|
||||
INFOPLIST_FILE = Freshyo/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
"-ObjC",
|
||||
"-lc++",
|
||||
);
|
||||
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.freshyotrial.app;
|
||||
PRODUCT_NAME = Freshyo;
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Freshyo/Freshyo-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
13B07F951A680F5B00A75B9A /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 533FE749FF22482CD804789B /* Pods-Freshyo.release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Freshyo/Freshyo.entitlements;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
INFOPLIST_FILE = Freshyo/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
"-ObjC",
|
||||
"-lc++",
|
||||
);
|
||||
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.freshyotrial.app;
|
||||
PRODUCT_NAME = Freshyo;
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Freshyo/Freshyo-Bridging-Header.h";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
83CBBA201A601CBA00E9B192 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
/usr/lib/swift,
|
||||
"$(inherited)",
|
||||
);
|
||||
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
" ",
|
||||
);
|
||||
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
|
||||
USE_HERMES = true;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
83CBBA211A601CBA00E9B192 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = YES;
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
/usr/lib/swift,
|
||||
"$(inherited)",
|
||||
);
|
||||
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
" ",
|
||||
);
|
||||
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
|
||||
SDKROOT = iphoneos;
|
||||
USE_HERMES = true;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Freshyo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
13B07F941A680F5B00A75B9A /* Debug */,
|
||||
13B07F951A680F5B00A75B9A /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Freshyo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
83CBBA201A601CBA00E9B192 /* Debug */,
|
||||
83CBBA211A601CBA00E9B192 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1130"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||
BuildableName = "Freshyo.app"
|
||||
BlueprintName = "Freshyo"
|
||||
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
|
||||
BuildableName = "FreshyoTests.xctest"
|
||||
BlueprintName = "FreshyoTests"
|
||||
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||
BuildableName = "Freshyo.app"
|
||||
BlueprintName = "Freshyo"
|
||||
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||
BuildableName = "Freshyo.app"
|
||||
BlueprintName = "Freshyo"
|
||||
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
10
apps/user-ui/ios/Freshyo.xcworkspace/contents.xcworkspacedata
generated
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Freshyo.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:Pods/Pods.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
70
apps/user-ui/ios/Freshyo/AppDelegate.swift
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
import Expo
|
||||
import React
|
||||
import ReactAppDependencyProvider
|
||||
|
||||
@UIApplicationMain
|
||||
public class AppDelegate: ExpoAppDelegate {
|
||||
var window: UIWindow?
|
||||
|
||||
var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
|
||||
var reactNativeFactory: RCTReactNativeFactory?
|
||||
|
||||
public override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
||||
) -> Bool {
|
||||
let delegate = ReactNativeDelegate()
|
||||
let factory = ExpoReactNativeFactory(delegate: delegate)
|
||||
delegate.dependencyProvider = RCTAppDependencyProvider()
|
||||
|
||||
reactNativeDelegate = delegate
|
||||
reactNativeFactory = factory
|
||||
bindReactNativeFactory(factory)
|
||||
|
||||
#if os(iOS) || os(tvOS)
|
||||
window = UIWindow(frame: UIScreen.main.bounds)
|
||||
factory.startReactNative(
|
||||
withModuleName: "main",
|
||||
in: window,
|
||||
launchOptions: launchOptions)
|
||||
#endif
|
||||
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
|
||||
// Linking API
|
||||
public override func application(
|
||||
_ app: UIApplication,
|
||||
open url: URL,
|
||||
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
|
||||
) -> Bool {
|
||||
return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options)
|
||||
}
|
||||
|
||||
// Universal Links
|
||||
public override func application(
|
||||
_ application: UIApplication,
|
||||
continue userActivity: NSUserActivity,
|
||||
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
|
||||
) -> Bool {
|
||||
let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
|
||||
return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
|
||||
}
|
||||
}
|
||||
|
||||
class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
|
||||
// Extension point for config-plugins
|
||||
|
||||
override func sourceURL(for bridge: RCTBridge) -> URL? {
|
||||
// needed to return the correct URL for expo-dev-client.
|
||||
bridge.bundleURL ?? bundleURL()
|
||||
}
|
||||
|
||||
override func bundleURL() -> URL? {
|
||||
#if DEBUG
|
||||
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
|
||||
#else
|
||||
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
|
||||
#endif
|
||||
}
|
||||
}
|
||||
3
apps/user-ui/ios/Freshyo/Freshyo-Bridging-Header.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
//
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
8
apps/user-ui/ios/Freshyo/Freshyo.entitlements
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
After Width: | Height: | Size: 336 KiB |
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"images": [
|
||||
{
|
||||
"filename": "App-Icon-1024x1024@1x.png",
|
||||
"idiom": "universal",
|
||||
"platform": "ios",
|
||||
"size": "1024x1024"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"version": 1,
|
||||
"author": "expo"
|
||||
}
|
||||
}
|
||||
6
apps/user-ui/ios/Freshyo/Images.xcassets/Contents.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "expo"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"colors": [
|
||||
{
|
||||
"color": {
|
||||
"components": {
|
||||
"alpha": "1.000",
|
||||
"blue": "1.00000000000000",
|
||||
"green": "1.00000000000000",
|
||||
"red": "1.00000000000000"
|
||||
},
|
||||
"color-space": "srgb"
|
||||
},
|
||||
"idiom": "universal"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"version": 1,
|
||||
"author": "expo"
|
||||
}
|
||||
}
|
||||
23
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"images": [
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "image.png",
|
||||
"scale": "1x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "image@2x.png",
|
||||
"scale": "2x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "image@3x.png",
|
||||
"scale": "3x"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"version": 1,
|
||||
"author": "expo"
|
||||
}
|
||||
}
|
||||
BIN
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/image.png
vendored
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/image@2x.png
vendored
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/image@3x.png
vendored
Normal file
|
After Width: | Height: | Size: 209 KiB |
136
apps/user-ui/ios/Freshyo/Info.plist
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Freshyo</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.2.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>freshyo</string>
|
||||
<string>com.freshyotrial.app</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>exp+freshyo</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.1.0</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
<string>ppemerchantsdkv1</string>
|
||||
<string>ppemerchantsdkv2</string>
|
||||
<string>ppemerchantsdkv3</string>
|
||||
<string>paytmmp</string>
|
||||
<string>gpay</string>
|
||||
</array>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>12.0</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<false/>
|
||||
<key>NSAllowsLocalNetworking</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>NSFaceIDUsageDescription</key>
|
||||
<string>Allow $(PRODUCT_NAME) to access your Face ID biometric data.</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>This app uses your location to decide if your place is serviceable or not.</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>This app uses photo library to allow users to upload pictures as a part or product's review and feedback.</string>
|
||||
<key>NSUserActivityTypes</key>
|
||||
<array>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route</string>
|
||||
</array>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>SplashScreen</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>UIRequiresFullScreen</key>
|
||||
<false/>
|
||||
<key>UIStatusBarStyle</key>
|
||||
<string>UIStatusBarStyleDefault</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UIUserInterfaceStyle</key>
|
||||
<string>Automatic</string>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
49
apps/user-ui/ios/Freshyo/PrivacyInfo.xcprivacy
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>C617.1</string>
|
||||
<string>0A2A.1</string>
|
||||
<string>3B52.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>CA92.1</string>
|
||||
<string>C56D.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>35F9.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>E174.1</string>
|
||||
<string>85F4.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
42
apps/user-ui/ios/Freshyo/SplashScreen.storyboard
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="EXPO-VIEWCONTROLLER-1">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
|
||||
<capability name="Named colors" minToolsVersion="9.0"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<scene sceneID="EXPO-SCENE-1">
|
||||
<objects>
|
||||
<viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
|
||||
<view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<imageView id="EXPO-SplashScreen" userLabel="SplashScreenLogo" image="SplashScreenLogo" contentMode="scaleAspectFit" clipsSubviews="true" userInteractionEnabled="false" translatesAutoresizingMaskIntoConstraints="false">
|
||||
<rect key="frame" x="96.5" y="326" width="200" height="200"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
|
||||
<constraints>
|
||||
<constraint firstItem="EXPO-SplashScreen" firstAttribute="centerX" secondItem="EXPO-ContainerView" secondAttribute="centerX" id="cad2ab56f97c5429bf29decf850647a4216861d4"/>
|
||||
<constraint firstItem="EXPO-SplashScreen" firstAttribute="centerY" secondItem="EXPO-ContainerView" secondAttribute="centerY" id="1a145271b085b6ce89b1405a310f5b1bb7656595"/>
|
||||
</constraints>
|
||||
<color key="backgroundColor" name="SplashScreenBackground"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="0.0" y="0.0"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="SplashScreenLogo" width="200" height="200"/>
|
||||
<namedColor name="SplashScreenBackground">
|
||||
<color alpha="1.000" blue="1.00000000000000" green="1.00000000000000" red="1.00000000000000" customColorSpace="sRGB" colorSpace="custom"/>
|
||||
</namedColor>
|
||||
</resources>
|
||||
</document>
|
||||
16
apps/user-ui/ios/Freshyo/Supporting/Expo.plist
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>EXUpdatesCheckOnLaunch</key>
|
||||
<string>ALWAYS</string>
|
||||
<key>EXUpdatesEnabled</key>
|
||||
<true/>
|
||||
<key>EXUpdatesLaunchWaitMs</key>
|
||||
<integer>0</integer>
|
||||
<key>EXUpdatesRuntimeVersion</key>
|
||||
<string>1.2.0</string>
|
||||
<key>EXUpdatesURL</key>
|
||||
<string>https://u.expo.dev/7f3e7611-f7a8-45f9-8a99-c2b1f6454d48</string>
|
||||
</dict>
|
||||
</plist>
|
||||
64
apps/user-ui/ios/Podfile
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
|
||||
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
|
||||
|
||||
require 'json'
|
||||
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
|
||||
|
||||
ENV['RCT_NEW_ARCH_ENABLED'] = '0' if podfile_properties['newArchEnabled'] == 'false'
|
||||
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
|
||||
|
||||
platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
|
||||
install! 'cocoapods',
|
||||
:deterministic_uuids => false
|
||||
|
||||
prepare_react_native_project!
|
||||
|
||||
target 'Freshyo' do
|
||||
use_expo_modules!
|
||||
|
||||
if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
|
||||
config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
|
||||
else
|
||||
config_command = [
|
||||
'npx',
|
||||
'expo-modules-autolinking',
|
||||
'react-native-config',
|
||||
'--json',
|
||||
'--platform',
|
||||
'ios'
|
||||
]
|
||||
end
|
||||
|
||||
config = use_native_modules!(config_command)
|
||||
|
||||
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
||||
use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
|
||||
|
||||
use_react_native!(
|
||||
:path => config[:reactNativePath],
|
||||
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
|
||||
# An absolute path to your application root.
|
||||
:app_path => "#{Pod::Config.instance.installation_root}/..",
|
||||
:privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
|
||||
)
|
||||
|
||||
post_install do |installer|
|
||||
react_native_post_install(
|
||||
installer,
|
||||
config[:reactNativePath],
|
||||
:mac_catalyst_enabled => false,
|
||||
:ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
|
||||
)
|
||||
|
||||
# This is necessary for Xcode 14, because it signs resource bundles by default
|
||||
# when building for devices.
|
||||
installer.target_installation_results.pod_target_installation_results
|
||||
.each do |pod_name, target_installation_result|
|
||||
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
|
||||
resource_bundle_target.build_configurations.each do |config|
|
||||
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
2822
apps/user-ui/ios/Podfile.lock
Normal file
5
apps/user-ui/ios/Podfile.properties.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"expo.jsEngine": "hermes",
|
||||
"EX_DEV_CLIENT_NETWORK_INSPECTOR": "true",
|
||||
"newArchEnabled": "true"
|
||||
}
|
||||
|
|
@ -64,9 +64,9 @@ const isDevMode = Constants.executionEnvironment !== "standalone";
|
|||
// const BASE_API_URL = 'http://10.0.2.2:4000';
|
||||
// const BASE_API_URL = 'http://192.168.100.101:4000';
|
||||
// const BASE_API_URL = 'http://192.168.1.5:4000';
|
||||
let BASE_API_URL = "https://mf.freshyo.in";
|
||||
// let BASE_API_URL = "https://mf.freshyo.in";
|
||||
// let BASE_API_URL = "https://freshyo.technocracy.ovh";
|
||||
// let BASE_API_URL = 'http://192.168.100.107:4000';
|
||||
let BASE_API_URL = 'http://192.168.100.108:4000';
|
||||
// let BASE_API_URL = 'http://192.168.29.176:4000';
|
||||
|
||||
// if(isDevMode) {
|
||||
|
|
|
|||
39
test/.detoxrc.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"testRunner": {
|
||||
"args": {
|
||||
"$0": "jest",
|
||||
"config": "jest.config.cjs"
|
||||
}
|
||||
},
|
||||
"apps": {
|
||||
"admin.ios": {
|
||||
"type": "ios.app",
|
||||
"binaryPath": "appBinaries/admin.app",
|
||||
"bundleId": "in.freshyo.adminui"
|
||||
},
|
||||
"user.ios": {
|
||||
"type": "ios.app",
|
||||
"binaryPath": "appBinaries/user.app",
|
||||
"bundleId": "com.freshyotrial.app"
|
||||
}
|
||||
|
||||
},
|
||||
"devices": {
|
||||
"simulator": {
|
||||
"type": "ios.simulator",
|
||||
"device": {
|
||||
"type": "iPhone 16 Pro Max"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"ios.user": {
|
||||
"device": "simulator",
|
||||
"app": "user.ios"
|
||||
},
|
||||
"ios.admin": {
|
||||
"device": "simulator",
|
||||
"app": "admin.ios"
|
||||
}
|
||||
}
|
||||
}
|
||||
34
test/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# dependencies (bun install)
|
||||
node_modules
|
||||
|
||||
# output
|
||||
out
|
||||
dist
|
||||
*.tgz
|
||||
|
||||
# code coverage
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# logs
|
||||
logs
|
||||
_.log
|
||||
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# caches
|
||||
.eslintcache
|
||||
.cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# IntelliJ based IDEs
|
||||
.idea
|
||||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
||||
BIN
test/Freshyo.app/AppAuthCore_Privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/AppIcon60x60@2x.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/Freshyo.app/AppIcon76x76@2x~ipad.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
test/Freshyo.app/Assets.car
Normal file
BIN
test/Freshyo.app/EXConstants.bundle/Info.plist
Normal file
1
test/Freshyo.app/EXConstants.bundle/app.config
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"name":"Freshyo","slug":"freshyo","version":"1.2.0","orientation":"portrait","icon":"./assets/images/freshyo-logo.png","scheme":"freshyo","userInterfaceStyle":"automatic","newArchEnabled":true,"ios":{"buildNumber":"1.1.0","supportsTablet":true,"bundleIdentifier":"com.freshyotrial.app","infoPlist":{"LSApplicationQueriesSchemes":["ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay","ppemerchantsdkv1","ppemerchantsdkv2","ppemerchantsdkv3","paytmmp","gpay"],"ITSAppUsesNonExemptEncryption":false,"NSPhotoLibraryUsageDescription":"This app uses photo library to allow users to upload pictures as a part or product's review and feedback.","NSLocationWhenInUseUsageDescription":"This app uses your location to decide if your place is serviceable or not."}},"android":{"softwareKeyboardLayoutMode":"resize","adaptiveIcon":{"foregroundImage":"./assets/images/freshyo-logo.png","backgroundColor":"#fff0f6"},"edgeToEdgeEnabled":true,"package":"in.freshyo.app","googleServicesFile":"./google-services.json"},"web":{"bundler":"metro","output":"static","favicon":"./assets/images/favicon.png"},"plugins":["expo-router",["expo-splash-screen",{"image":"./assets/images/freshyo-logo.png","imageWidth":200,"resizeMode":"contain","backgroundColor":"#ffffff"}],"expo-secure-store","expo-notifications"],"experiments":{"typedRoutes":true},"extra":{"router":{},"eas":{"projectId":"7f3e7611-f7a8-45f9-8a99-c2b1f6454d48"}},"runtimeVersion":{"policy":"appVersion"},"updates":{"url":"https://u.expo.dev/7f3e7611-f7a8-45f9-8a99-c2b1f6454d48"},"owner":"mohammedshafiuddin54","sdkVersion":"53.0.0","platforms":["ios","android","web"],"androidStatusBar":{"backgroundColor":"#ffffff"}}
|
||||
BIN
test/Freshyo.app/EXUpdates.bundle/Info.plist
Normal file
BIN
test/Freshyo.app/Expo.plist
Normal file
BIN
test/Freshyo.app/ExpoApplication_privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>C617.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/ExpoConstants_privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>CA92.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/ExpoDevice_privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>35F9.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/ExpoFileSystem_privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>0A2A.1</string>
|
||||
<string>3B52.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>E174.1</string>
|
||||
<string>85F4.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/ExpoNotifications_privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>CA92.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/ExpoSystemUI_privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>CA92.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/FBLPromises_Privacy.bundle/Info.plist
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/Frameworks/Razorpay.framework/Info.plist
Normal file
BIN
test/Freshyo.app/Frameworks/Razorpay.framework/Razorpay
Executable file
|
|
@ -0,0 +1,101 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
m2+OcUVS+NCF/RaQ0NMeexAJIbU=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict/>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/Frameworks/RazorpayCore.framework/Info.plist
Normal file
BIN
test/Freshyo.app/Frameworks/RazorpayCore.framework/RazorpayCore
Executable file
|
|
@ -0,0 +1,101 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
IgSq/mUvfi0nncHC2TAKVG0zPwA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict/>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 496 B |
|
|
@ -0,0 +1 @@
|
|||
12bd975b82f23eb997a3ee2df03e4e33
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!--
|
||||
PrivacyInfo.xcprivacy
|
||||
RazorpayIOS
|
||||
|
||||
Created by Vivek Rajesh Shindhe on 18/04/24.
|
||||
Copyright (c) 2024 Razorpay. All rights reserved.
|
||||
-->
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>CA92.1</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypePhysicalAddress</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypeCrashData</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypePhoneNumber</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>NSPrivacyCollectedDataTypeName</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string>Email address</string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<true/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
||||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
test/Freshyo.app/Frameworks/RazorpayStandard.framework/RazorpayStandard
Executable file
|
|
@ -0,0 +1,366 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Assets.car</key>
|
||||
<data>
|
||||
9EtCg2Ey2Zi4Ua584kuKWTJN01U=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/Info.plist</key>
|
||||
<data>
|
||||
DFcy10+V49NKtjJ4RLpByN10P1k=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/MagicXNavController.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
zRbA0UPDWTIRE/KMCArksV/vK2k=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/MagicXNavController.nib/runtime.nib</key>
|
||||
<data>
|
||||
zRbA0UPDWTIRE/KMCArksV/vK2k=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/OpinionatedAlertVC.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
0nbduMecK7uoslXovJgcjilOIB8=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/OpinionatedAlertVC.nib/runtime.nib</key>
|
||||
<data>
|
||||
0nbduMecK7uoslXovJgcjilOIB8=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/QhR-ml-Zo4-view-36U-4g-R9b.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
c8N/593lOrAw9wwSo2JSseKACUI=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/QhR-ml-Zo4-view-36U-4g-R9b.nib/runtime.nib</key>
|
||||
<data>
|
||||
GAbF07uihY0DE3w15+txJ0RlSNw=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/RBq-mH-fUs-view-vI7-59-shd.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
PcD+CIGNT4GNXBw18IEBAYmUl1A=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/RBq-mH-fUs-view-vI7-59-shd.nib/runtime.nib</key>
|
||||
<data>
|
||||
1LYMZo3gzNiKkp3f7Nzh+lgBbPg=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/RazorpayCheckoutVC.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
ENBWg/fxi+P7OShg+NGXd0X+mWQ=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/RazorpayCheckoutVC.nib/runtime.nib</key>
|
||||
<data>
|
||||
ENBWg/fxi+P7OShg+NGXd0X+mWQ=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/RazorpayMagicxVC.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
Ia0hGvI0wvIaseYa7wMvQf/q438=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/RazorpayMagicxVC.nib/runtime.nib</key>
|
||||
<data>
|
||||
Ia0hGvI0wvIaseYa7wMvQf/q438=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/UINavigationController-ODs-ga-9IN.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
09suesko3lo0ihguFnxyvFMqd6g=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/UINavigationController-ODs-ga-9IN.nib/runtime.nib</key>
|
||||
<data>
|
||||
09suesko3lo0ihguFnxyvFMqd6g=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/ytB-xX-zk3-view-vP9-Lh-TPB.nib/objects-11.0+.nib</key>
|
||||
<data>
|
||||
GuaLaOgcxzpvPP6jj7CE6UW1x54=
|
||||
</data>
|
||||
<key>Checkout.storyboardc/ytB-xX-zk3-view-vP9-Lh-TPB.nib/runtime.nib</key>
|
||||
<data>
|
||||
Ucg3HkU3DNFIfnKf6gQlzd/zqTg=
|
||||
</data>
|
||||
<key>CommonAssets/Razorpay_Logo.png</key>
|
||||
<data>
|
||||
C/QPifs1kjcxzxgwUgDFDlLjpRw=
|
||||
</data>
|
||||
<key>CommonAssets/check_mark.png</key>
|
||||
<data>
|
||||
6d4pPz33KoUobYRDPpGmnPiTVMs=
|
||||
</data>
|
||||
<key>CommonAssets/warning.png</key>
|
||||
<data>
|
||||
gxArEMTCcu4a+ueYNB3oMoIh48o=
|
||||
</data>
|
||||
<key>EncryptedOtpelf.js</key>
|
||||
<data>
|
||||
A893KbMpygzZy6/G1xrQkAudMxw=
|
||||
</data>
|
||||
<key>Hash.txt</key>
|
||||
<data>
|
||||
gN8QKnsfFYPlPa6NstmuiJETxJ8=
|
||||
</data>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
acRXxu68VWw8Pnzhk8Ky6zQaWHE=
|
||||
</data>
|
||||
<key>PrivacyInfo.xcprivacy</key>
|
||||
<data>
|
||||
62HpNLqPh8tKsg+iNP/pSbF2S6M=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Assets.car</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
HcTTFmbApmRduIkc+LudaGbZclscDoJ6VJdjQDMk5z8=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/Info.plist</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
XV+Km0uI0aCCx6b8FFBL8ctnAUqg/+iH2HKwpDJJDns=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/MagicXNavController.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
/FTBuwa4eqDE4oW65Wzg7NRMxsEk6lrbA5gEQvxHMm8=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/MagicXNavController.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
/FTBuwa4eqDE4oW65Wzg7NRMxsEk6lrbA5gEQvxHMm8=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/OpinionatedAlertVC.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
TB5d1qjY2vLAC2ml/4EBTkBy3xnnLZQe6gxyjAuM7Hs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/OpinionatedAlertVC.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
TB5d1qjY2vLAC2ml/4EBTkBy3xnnLZQe6gxyjAuM7Hs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/QhR-ml-Zo4-view-36U-4g-R9b.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
9gbR1Bca1fy1VmXM6YTr9iMj/H9FiV5FH80kOSCS5cA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/QhR-ml-Zo4-view-36U-4g-R9b.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
0aP4/XYhE9pTrC1von5mej2B5hZzviQdM4PQj/nojlY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/RBq-mH-fUs-view-vI7-59-shd.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
hg8U6PEGkuQ5LmSJ3QWnXPjAHQ9HR+iYMliJQBqIXsA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/RBq-mH-fUs-view-vI7-59-shd.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
xzfMa2B7p6qD36vy7gfDE7AfItGacEFMLkGs19efnI0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/RazorpayCheckoutVC.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
0D+N+GRb1ZrUQlq4dTQIQfubTWQC44SvjHUHVlVbgeg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/RazorpayCheckoutVC.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
0D+N+GRb1ZrUQlq4dTQIQfubTWQC44SvjHUHVlVbgeg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/RazorpayMagicxVC.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
l6Hz4xHGp/8dMGEWk8KuCnewyrV7Y1XGhWysBUgItFY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/RazorpayMagicxVC.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
l6Hz4xHGp/8dMGEWk8KuCnewyrV7Y1XGhWysBUgItFY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/UINavigationController-ODs-ga-9IN.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
bzY2zdca4b/GrxTr/LmNprdhD3SyIBsZG1W2z7TVW28=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/UINavigationController-ODs-ga-9IN.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
bzY2zdca4b/GrxTr/LmNprdhD3SyIBsZG1W2z7TVW28=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/ytB-xX-zk3-view-vP9-Lh-TPB.nib/objects-11.0+.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
I8p2+VocnQu/7nTAHxHwPLoZ9J+et+y957CgfHi+MQo=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Checkout.storyboardc/ytB-xX-zk3-view-vP9-Lh-TPB.nib/runtime.nib</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
h05YMT+1oAA6um16sH5KVB2c6toLm935YPmV2d/ZDU8=
|
||||
</data>
|
||||
</dict>
|
||||
<key>CommonAssets/Razorpay_Logo.png</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
udRErjoaEwN536HIEl+2sH6KQ0Q2KzlKwLYCkQlBGKE=
|
||||
</data>
|
||||
</dict>
|
||||
<key>CommonAssets/check_mark.png</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
s+l4gXoMSGUj0xR2eSdXwQTHoyRU5F4+aTSVjO+I8wU=
|
||||
</data>
|
||||
</dict>
|
||||
<key>CommonAssets/warning.png</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
S7OOo4xdlAEiEgfkEuic4ap4JZlhvtYIwFSHWu034SA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>EncryptedOtpelf.js</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
85Tocsg1aPekBFPeMKMV2IruNGVkOyyV6xlbQkQOH3A=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Hash.txt</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
B20CsAEe8H45a3Ivw23aBTWNU7qGh1JYKb/iAwwaIEQ=
|
||||
</data>
|
||||
</dict>
|
||||
<key>PrivacyInfo.xcprivacy</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
0GK4q+J5XVD2O8agumlONknk2PSlkzr97y/P84XeCyg=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
30
test/Freshyo.app/Frameworks/hermes.framework/Info.plist
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>hermes</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>dev.hermesengine.iphonesimulator</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string></string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.12.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0.12.0</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>15.1</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
4Hno0Ddszl7pNxmsMdj4eZ8APpg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict/>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||