Skip to content

Commit

Permalink
next dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
NjbSyd-SA committed Sep 29, 2024
1 parent 9651cce commit cac8e01
Show file tree
Hide file tree
Showing 28 changed files with 44 additions and 1,032 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ Config/FirebaseConfig.js
.idea/vcs.xml
/.vscode
android/
ios/
12 changes: 6 additions & 6 deletions BackEnd/DataHandlers/APIs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import axios from "axios";
// export const RailwayAPI = axios.create({
// baseURL: "https://cui-atd-companion-scrapper-production.up.railway.app/",
// });
// export const RenderAPI = axios.create({
// baseURL: "https://timetable-scrapper.onrender.com/",
// });
export const RenderAPI = axios.create({
baseURL: "https://cui-atd-companion-scrapper.onrender.com",
});
// export const DigitalOceanAPI = axios.create({
// baseURL: "https://server.cuitimeschedule.tech/",
// });
export const DigitalOceanAPI = axios.create({
baseURL: "http://192.168.1.13:3000/",
});
// export const LocalAPI = axios.create({
// baseURL: "http://192.168.1.13:3000/",
// });
6 changes: 3 additions & 3 deletions BackEnd/DataHandlers/ServerSideDataHandler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AsyncStorage from "@react-native-async-storage/async-storage";
import NetInfo from "@react-native-community/netinfo";

import { DigitalOceanAPI } from "./APIs";
import { RenderAPI } from "./APIs";
import {
setFreeslots,
setFreeslotsAvailable,
Expand All @@ -19,7 +19,7 @@ async function shouldUpdateDataFromServer() {
if (!(await NetInfo.fetch()).isInternetReachable) {
return false;
}
const res = await DigitalOceanAPI.post(`timetable/shouldUpdate`, {
const res = await RenderAPI.post(`timetable/shouldUpdate`, {
lastSyncDate,
});
const data = {
Expand Down Expand Up @@ -81,7 +81,7 @@ async function updateDataFromServerIfNeeded(setLoadingText) {

async function fetchDataFromMongoDB(URL) {
try {
const res = await DigitalOceanAPI.get(URL);
const res = await RenderAPI.get(URL);
return res.data;
} catch (e) {
throw e;
Expand Down
6 changes: 2 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"expo": {
"name": "CUI ATD Companion",
"version": "0.0.7",
"version": "0.0.8",
"slug": "cui_atd_companion",
"owner": "njbsyd",
"orientation": "default",
Expand All @@ -12,9 +12,7 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.companion.cui.dev"
Expand Down
30 changes: 0 additions & 30 deletions ios/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions ios/.xcode.env

This file was deleted.

Loading

0 comments on commit cac8e01

Please sign in to comment.