mirror of
https://github.com/urosran/cally.git
synced 2025-07-14 09:17:19 +00:00
CICD test
This commit is contained in:
40
.github/workflows/ci-cd.yml
vendored
Executable file
40
.github/workflows/ci-cd.yml
vendored
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
name: CI/CD Workflow
|
||||||
|
|
||||||
|
env:
|
||||||
|
EXPO_ASC_API_KEY_PATH: ../AuthKey_F7ZX3C8C69.p8
|
||||||
|
EXPO_ASC_KEY_ID: F7ZX3C8C69
|
||||||
|
EXPO_ASC_ISSUER_ID: f7d6175c-75fe-416c-b6d1-0bc9eaf87415
|
||||||
|
EXPO_APPLE_TEAM_ID: MV9C3PHV87
|
||||||
|
EXPO_APPLE_TEAM_TYPE: INDIVIDUAL
|
||||||
|
EXPO_TOKEN: qt2h_4xhuhFB-ArysIkzgpsBtWOrrZ-c_So_S9ch
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Install and build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Setup Expo and EAS
|
||||||
|
uses: expo/expo-github-action@v8
|
||||||
|
with:
|
||||||
|
eas-version: latest
|
||||||
|
token: ${{ secrets.EXPO_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Prebuild, Build and Submit
|
||||||
|
run: npm run prebuild-build-submit-cicd
|
5
app.json
5
app.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"expo": {
|
"expo": {
|
||||||
"name": "cally",
|
"name": "Cally - Planner",
|
||||||
"slug": "cally",
|
"slug": "cally",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
@ -15,7 +15,8 @@
|
|||||||
"ios": {
|
"ios": {
|
||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"bundleIdentifier": "com.cally.app",
|
"bundleIdentifier": "com.cally.app",
|
||||||
"googleServicesFile": "./ios/GoogleService-Info.plist"
|
"googleServicesFile": "./ios/GoogleService-Info.plist",
|
||||||
|
"buildNumber": "5"
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"adaptiveIcon": {
|
"adaptiveIcon": {
|
||||||
|
@ -1,67 +1,69 @@
|
|||||||
import { View, Text, Button, TextField, ButtonSize } from "react-native-ui-lib";
|
import {Button, ButtonSize, Text, TextField, View} from "react-native-ui-lib";
|
||||||
import React, { useState } from "react";
|
import React, {useState} from "react";
|
||||||
import { useSignIn } from "@/hooks/firebase/useSignIn";
|
import {useSignIn} from "@/hooks/firebase/useSignIn";
|
||||||
import { StyleSheet } from "react-native";
|
import {StyleSheet} from "react-native";
|
||||||
|
|
||||||
const SignInPage = (props: { setRegister: () => any }) => {
|
const SignInPage = (props: { setRegister: () => any }) => {
|
||||||
const [email, setEmail] = useState<string>("");
|
const [email, setEmail] = useState<string>("");
|
||||||
const [password, setPassword] = useState<string>("");
|
const [password, setPassword] = useState<string>("");
|
||||||
|
|
||||||
const { mutateAsync: signIn, error, isError } = useSignIn();
|
const {mutateAsync: signIn, error, isError} = useSignIn();
|
||||||
|
|
||||||
const handleSignIn = async () => {
|
const handleSignIn = async () => {
|
||||||
await signIn({ email, password });
|
await signIn({email, password});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View padding-10 centerV height={"100%"}>
|
<View padding-10 centerV height={"100%"}>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Email"
|
placeholder="Email"
|
||||||
value={email}
|
value={email}
|
||||||
onChangeText={setEmail}
|
onChangeText={setEmail}
|
||||||
style={styles.textfield}
|
style={styles.textfield}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
value={password}
|
value={password}
|
||||||
onChangeText={setPassword}
|
onChangeText={setPassword}
|
||||||
secureTextEntry
|
secureTextEntry
|
||||||
style={styles.textfield}
|
style={styles.textfield}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
label="Login"
|
label="Login"
|
||||||
onPress={handleSignIn}
|
onPress={handleSignIn}
|
||||||
style={{ marginBottom: 20 }}
|
style={{marginBottom: 20}}
|
||||||
backgroundColor="#fd1775"
|
backgroundColor="#fd1775"
|
||||||
/>
|
/>
|
||||||
{isError && <Text center style={{ marginBottom: 20 }}>{`${error}`}</Text>}
|
{isError && <Text center style={{marginBottom: 20}}>{`${error}`}</Text>}
|
||||||
<View row centerH>
|
|
||||||
<Text center style={{ marginBottom: 5 }}>
|
<View row centerH marginB-5 gap-5>
|
||||||
Don't have an account?
|
<Text text70>
|
||||||
</Text>
|
Don't have an account?
|
||||||
<Button
|
</Text>
|
||||||
onPress={props.setRegister}
|
<Button
|
||||||
label="Sign Up"
|
onPress={props.setRegister}
|
||||||
link
|
label="Sign Up"
|
||||||
size={ButtonSize.xSmall}
|
link
|
||||||
padding-0
|
size={ButtonSize.xSmall}
|
||||||
margin-0
|
padding-0
|
||||||
left
|
margin-0
|
||||||
color="#fd1775"
|
text70
|
||||||
/>
|
left
|
||||||
</View>
|
color="#fd1775"
|
||||||
</View>
|
/>
|
||||||
);
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
textfield: {
|
textfield: {
|
||||||
backgroundColor: "white",
|
backgroundColor: "white",
|
||||||
marginVertical: 10,
|
marginVertical: 10,
|
||||||
padding: 30,
|
padding: 30,
|
||||||
height: 45,
|
height: 45,
|
||||||
borderRadius: 50,
|
borderRadius: 50,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default SignInPage;
|
export default SignInPage;
|
||||||
|
@ -1,85 +1,78 @@
|
|||||||
import React, { useState } from "react";
|
import React, {useState} from "react";
|
||||||
import {
|
import {Button, ButtonSize, Text, TextField, View,} from "react-native-ui-lib";
|
||||||
Checkbox,
|
import {useSignUp} from "@/hooks/firebase/useSignUp";
|
||||||
Button,
|
import {ProfileType} from "@/contexts/AuthContext";
|
||||||
View,
|
import {StyleSheet} from "react-native";
|
||||||
Text,
|
import {AntDesign} from "@expo/vector-icons";
|
||||||
TextField,
|
|
||||||
ButtonSize,
|
|
||||||
} from "react-native-ui-lib";
|
|
||||||
import { useSignUp } from "@/hooks/firebase/useSignUp";
|
|
||||||
import { ProfileType } from "@/contexts/AuthContext";
|
|
||||||
import { StyleSheet } from "react-native";
|
|
||||||
import { AntDesign } from "@expo/vector-icons";
|
|
||||||
|
|
||||||
const SignUpPage = (props: { unsetRegister: () => any }) => {
|
const SignUpPage = (props: { unsetRegister: () => any }) => {
|
||||||
const [email, setEmail] = useState<string>("");
|
const [email, setEmail] = useState<string>("");
|
||||||
const [firstName, setFirstName] = useState<string>("");
|
const [firstName, setFirstName] = useState<string>("");
|
||||||
const [lastName, setLastName] = useState<string>("");
|
const [lastName, setLastName] = useState<string>("");
|
||||||
const [password, setPassword] = useState<string>("");
|
const [password, setPassword] = useState<string>("");
|
||||||
const [isParent, setIsParent] = useState<boolean>(true);
|
const [isParent, setIsParent] = useState<boolean>(true);
|
||||||
const [isChild, setIsChild] = useState<boolean>(false);
|
const [isChild, setIsChild] = useState<boolean>(false);
|
||||||
const [isCaregiver, setIsCaregiver] = useState<boolean>(false);
|
const [isCaregiver, setIsCaregiver] = useState<boolean>(false);
|
||||||
const [profileType, setProfileType] = useState<ProfileType>(
|
const [profileType, setProfileType] = useState<ProfileType>(
|
||||||
ProfileType.PARENT
|
ProfileType.PARENT
|
||||||
);
|
);
|
||||||
const { mutateAsync: signUp } = useSignUp();
|
const {mutateAsync: signUp} = useSignUp();
|
||||||
|
|
||||||
const handleSignUp = async () => {
|
const handleSignUp = async () => {
|
||||||
await signUp({ email, password, firstName, lastName });
|
await signUp({email, password, firstName, lastName});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View padding-10>
|
<View padding-10>
|
||||||
<Text text30 center>
|
<Text text30 center>
|
||||||
Get started with Kali
|
Get started with Kali
|
||||||
</Text>
|
</Text>
|
||||||
<Text>Please enter your details.</Text>
|
<Text center>Please enter your details.</Text>
|
||||||
<TextField
|
<TextField
|
||||||
marginT-60
|
marginT-60
|
||||||
placeholder="First name"
|
placeholder="First name"
|
||||||
value={firstName}
|
value={firstName}
|
||||||
onChangeText={setFirstName}
|
onChangeText={setFirstName}
|
||||||
style={styles.textfield}
|
style={styles.textfield}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Last name"
|
placeholder="Last name"
|
||||||
value={lastName}
|
value={lastName}
|
||||||
onChangeText={setLastName}
|
onChangeText={setLastName}
|
||||||
style={styles.textfield}
|
style={styles.textfield}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Email"
|
placeholder="Email"
|
||||||
value={email}
|
value={email}
|
||||||
onChangeText={setEmail}
|
onChangeText={setEmail}
|
||||||
style={styles.textfield}
|
style={styles.textfield}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
value={password}
|
value={password}
|
||||||
onChangeText={setPassword}
|
onChangeText={setPassword}
|
||||||
secureTextEntry
|
secureTextEntry
|
||||||
style={styles.textfield}
|
style={styles.textfield}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
label="Register"
|
label="Register"
|
||||||
onPress={handleSignUp}
|
onPress={handleSignUp}
|
||||||
style={{ marginBottom: 10, backgroundColor: "#fd1775" }}
|
style={{marginBottom: 10, backgroundColor: "#fd1775"}}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
label="Sign up with Google"
|
label="Sign up with Google"
|
||||||
backgroundColor="white"
|
backgroundColor="white"
|
||||||
color="black"
|
color="black"
|
||||||
iconSource={() => (
|
iconSource={() => (
|
||||||
<AntDesign
|
<AntDesign
|
||||||
name="google"
|
name="google"
|
||||||
size={24}
|
size={24}
|
||||||
color="black"
|
color="black"
|
||||||
style={{ marginRight: 15 }}
|
style={{marginRight: 15}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
{/*<Text style={{ marginBottom: 10 }}>Choose Profile Type:</Text>
|
{/*<Text style={{ marginBottom: 10 }}>Choose Profile Type:</Text>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label="Parent"
|
label="Parent"
|
||||||
value={isParent}
|
value={isParent}
|
||||||
@ -118,32 +111,35 @@ const SignUpPage = (props: { unsetRegister: () => any }) => {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>*/}
|
/>*/}
|
||||||
<View row centerH>
|
<View row centerH marginT-10 marginB-5 gap-5>
|
||||||
<Text text70 center style={{ marginBottom: 5, marginTop: 10 }}>
|
<Text text70 center>
|
||||||
Already have an account?
|
Already have an account?
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
|
||||||
label="Sign In"
|
|
||||||
margin-0
|
<Button
|
||||||
link
|
label="Sign In"
|
||||||
color="#fd1775"
|
flexS
|
||||||
size={ButtonSize.small}
|
margin-0
|
||||||
text200
|
link
|
||||||
onPress={props.unsetRegister}
|
color="#fd1775"
|
||||||
/>
|
size={ButtonSize.small}
|
||||||
</View>
|
text70
|
||||||
</View>
|
onPress={props.unsetRegister}
|
||||||
);
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default SignUpPage;
|
export default SignUpPage;
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
textfield: {
|
textfield: {
|
||||||
backgroundColor: "white",
|
backgroundColor: "white",
|
||||||
marginVertical: 10,
|
marginVertical: 10,
|
||||||
padding: 30,
|
padding: 30,
|
||||||
height: 45,
|
height: 45,
|
||||||
borderRadius: 50,
|
borderRadius: 50,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -953,6 +953,8 @@ PODS:
|
|||||||
- BoringSSL-GRPC/Implementation (0.0.32):
|
- BoringSSL-GRPC/Implementation (0.0.32):
|
||||||
- BoringSSL-GRPC/Interface (= 0.0.32)
|
- BoringSSL-GRPC/Interface (= 0.0.32)
|
||||||
- BoringSSL-GRPC/Interface (0.0.32)
|
- BoringSSL-GRPC/Interface (0.0.32)
|
||||||
|
- BVLinearGradient (2.8.3):
|
||||||
|
- React-Core
|
||||||
- DoubleConversion (1.1.6)
|
- DoubleConversion (1.1.6)
|
||||||
- EXConstants (16.0.2):
|
- EXConstants (16.0.2):
|
||||||
- ExpoModulesCore
|
- ExpoModulesCore
|
||||||
@ -2707,11 +2709,14 @@ PODS:
|
|||||||
- ReactCommon/turbomodule/bridging
|
- ReactCommon/turbomodule/bridging
|
||||||
- ReactCommon/turbomodule/core
|
- ReactCommon/turbomodule/core
|
||||||
- Yoga
|
- Yoga
|
||||||
|
- RNSVG (15.6.0):
|
||||||
|
- React-Core
|
||||||
- SocketRocket (0.7.0)
|
- SocketRocket (0.7.0)
|
||||||
- Yoga (0.0.0)
|
- Yoga (0.0.0)
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
|
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
|
||||||
|
- BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
|
||||||
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
||||||
- EXConstants (from `../node_modules/expo-constants/ios`)
|
- EXConstants (from `../node_modules/expo-constants/ios`)
|
||||||
- EXJSONUtils (from `../node_modules/expo-json-utils/ios`)
|
- EXJSONUtils (from `../node_modules/expo-json-utils/ios`)
|
||||||
@ -2796,6 +2801,7 @@ DEPENDENCIES:
|
|||||||
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
|
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
|
||||||
- RNReanimated (from `../node_modules/react-native-reanimated`)
|
- RNReanimated (from `../node_modules/react-native-reanimated`)
|
||||||
- RNScreens (from `../node_modules/react-native-screens`)
|
- RNScreens (from `../node_modules/react-native-screens`)
|
||||||
|
- RNSVG (from `../node_modules/react-native-svg`)
|
||||||
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
|
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
|
||||||
|
|
||||||
SPEC REPOS:
|
SPEC REPOS:
|
||||||
@ -2833,6 +2839,8 @@ SPEC REPOS:
|
|||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
boost:
|
boost:
|
||||||
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
|
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
|
||||||
|
BVLinearGradient:
|
||||||
|
:path: "../node_modules/react-native-linear-gradient"
|
||||||
DoubleConversion:
|
DoubleConversion:
|
||||||
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
|
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
|
||||||
EXConstants:
|
EXConstants:
|
||||||
@ -2998,6 +3006,8 @@ EXTERNAL SOURCES:
|
|||||||
:path: "../node_modules/react-native-reanimated"
|
:path: "../node_modules/react-native-reanimated"
|
||||||
RNScreens:
|
RNScreens:
|
||||||
:path: "../node_modules/react-native-screens"
|
:path: "../node_modules/react-native-screens"
|
||||||
|
RNSVG:
|
||||||
|
:path: "../node_modules/react-native-svg"
|
||||||
Yoga:
|
Yoga:
|
||||||
:path: "../node_modules/react-native/ReactCommon/yoga"
|
:path: "../node_modules/react-native/ReactCommon/yoga"
|
||||||
|
|
||||||
@ -3005,6 +3015,7 @@ SPEC CHECKSUMS:
|
|||||||
abseil: d121da9ef7e2ff4cab7666e76c5a3e0915ae08c3
|
abseil: d121da9ef7e2ff4cab7666e76c5a3e0915ae08c3
|
||||||
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
|
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
|
||||||
BoringSSL-GRPC: 1e2348957acdbcad360b80a264a90799984b2ba6
|
BoringSSL-GRPC: 1e2348957acdbcad360b80a264a90799984b2ba6
|
||||||
|
BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3
|
||||||
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
|
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
|
||||||
EXConstants: 409690fbfd5afea964e5e9d6c4eb2c2b59222c59
|
EXConstants: 409690fbfd5afea964e5e9d6c4eb2c2b59222c59
|
||||||
EXJSONUtils: 30c17fd9cc364d722c0946a550dfbf1be92ef6a4
|
EXJSONUtils: 30c17fd9cc364d722c0946a550dfbf1be92ef6a4
|
||||||
@ -3113,6 +3124,7 @@ SPEC CHECKSUMS:
|
|||||||
RNGestureHandler: 20a4307fd21cbff339abfcfa68192f3f0a6a518b
|
RNGestureHandler: 20a4307fd21cbff339abfcfa68192f3f0a6a518b
|
||||||
RNReanimated: d51431fd3597a8f8320319dce8e42cee82a5445f
|
RNReanimated: d51431fd3597a8f8320319dce8e42cee82a5445f
|
||||||
RNScreens: 30249f9331c3b00ae7cb7922e11f58b3ed369c07
|
RNScreens: 30249f9331c3b00ae7cb7922e11f58b3ed369c07
|
||||||
|
RNSVG: 5da7a24f31968ec74f0b091e3440080f347e279b
|
||||||
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
|
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
|
||||||
Yoga: bd92064a0d558be92786820514d74fc4dddd1233
|
Yoga: bd92064a0d558be92786820514d74fc4dddd1233
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user