Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pit scouting #30

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
366e81f
Pit scouting camera
alaninnovates Jan 1, 2024
ed2451f
Merge branch 'main' into merge-main-app-searchscreen
gaborszita Jan 3, 2024
34a2d4a
Merge remote-tracking branch 'origin/merge-main-app-searchscreen' int…
alaninnovates Jan 4, 2024
ca694d0
Implement pit scouting form
alaninnovates Jan 5, 2024
d45f7a1
ScoutReportsDB refers to match form FK when querying for forms
alaninnovates Jan 5, 2024
f994e46
Complete pit scouting
alaninnovates Jan 13, 2024
fb44421
Display images in pit scout viewer
alaninnovates Jan 13, 2024
90782b7
RLS policies for pit scouting
alaninnovates Jan 13, 2024
e4ec1b9
Add scouter's name to pit scouting
alaninnovates Jan 14, 2024
c121e46
Offline syncing for pit scouting
alaninnovates Jan 17, 2024
275c04c
Cancel buttons on camera page
alaninnovates Feb 14, 2024
dbacb98
Fix ios background fetch
alaninnovates Feb 28, 2024
fda2476
Fix background fetch on android
alaninnovates Feb 28, 2024
3048bd1
Stop/start background fetch
alaninnovates Feb 29, 2024
fcea0a4
Make camera work for android
gaborszita Feb 29, 2024
1dee9ef
Merge remote-tracking branch 'origin/pit-scouting' into pit-scouting
gaborszita Feb 29, 2024
e689d87
Merge remote-tracking branch 'origin/main' into pit-scouting
alaninnovates Mar 6, 2024
802bfba
Resolve conflicts? idk what this commit is
alaninnovates Mar 6, 2024
386bea6
Merge branch 'pit-scouting' of github.com:EagleScoutDev/EagleScout in…
alaninnovates Mar 6, 2024
caf443e
Supabase migrations for pit scouting
alaninnovates Mar 6, 2024
1ae2e8a
Fixes pit scouting forms from not being labelled as such in the datab…
Mar 7, 2024
ff7e753
Prevents user from submitting pit scouting report unless active compe…
Mar 7, 2024
c33e106
Fix loading pit scouting reports
alaninnovates Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />

<application
android:name=".MainApplication"
Expand Down
9 changes: 9 additions & 0 deletions app/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ buildscript {
classpath("com.facebook.react:react-native-gradle-plugin")
}
}

allprojects {
repositories {
maven {
// react-native-background-fetch
url("${project(':react-native-background-fetch').projectDir}/libs")
}
}
}
Original file line number Diff line number Diff line change
@@ -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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
3 changes: 2 additions & 1 deletion app/ios/EagleScout/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#import <React/RCTBundleURLProvider.h>
#import <CodePush/CodePush.h>
#import <TSBackgroundFetch/TSBackgroundFetch.h>

@implementation AppDelegate

Expand All @@ -11,7 +12,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};

[[TSBackgroundFetch sharedInstance] didFinishLaunching];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

Expand Down
12 changes: 12 additions & 0 deletions app/ios/EagleScout/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.transistorsoft.fetch</string>
</array>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
Expand All @@ -28,6 +32,8 @@
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
Expand All @@ -37,8 +43,14 @@
</dict>
</dict>
</dict>
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Camera.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen.storyboard</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
22 changes: 21 additions & 1 deletion app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ PODS:
- React-jsi (= 0.72.4)
- React-logger (= 0.72.4)
- React-perflogger (= 0.72.4)
- RNBackgroundFetch (4.2.2):
- React-Core
- RNCAsyncStorage (1.19.3):
- React-Core
- RNCClipboard (1.11.2):
Expand All @@ -522,10 +524,16 @@ PODS:
- React-RCTImage
- RNShare (10.0.2):
- React-Core
- RNStaticSafeAreaInsets (2.2.0):
- React-Core
- RNSVG (13.13.0):
- React-Core
- SocketRocket (0.6.1)
- SSZipArchive (2.2.3)
- VisionCamera (3.9.1):
- React
- React-callinvoker
- React-Core
- Yoga (1.14.0)
- YogaKit (1.18.1):
- Yoga (~> 1.14)
Expand Down Expand Up @@ -598,6 +606,7 @@ DEPENDENCIES:
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- RNBackgroundFetch (from `../node_modules/react-native-background-fetch`)
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
- "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)"
- "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)"
Expand All @@ -607,7 +616,9 @@ DEPENDENCIES:
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNShare (from `../node_modules/react-native-share`)
- RNStaticSafeAreaInsets (from `../node_modules/react-native-static-safe-area-insets`)
- RNSVG (from `../node_modules/react-native-svg`)
- VisionCamera (from `../node_modules/react-native-vision-camera`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand Down Expand Up @@ -718,6 +729,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/react/utils"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
RNBackgroundFetch:
:path: "../node_modules/react-native-background-fetch"
RNCAsyncStorage:
:path: "../node_modules/@react-native-async-storage/async-storage"
RNCClipboard:
Expand All @@ -736,8 +749,12 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-screens"
RNShare:
:path: "../node_modules/react-native-share"
RNStaticSafeAreaInsets:
:path: "../node_modules/react-native-static-safe-area-insets"
RNSVG:
:path: "../node_modules/react-native-svg"
VisionCamera:
:path: "../node_modules/react-native-vision-camera"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

Expand Down Expand Up @@ -799,6 +816,7 @@ SPEC CHECKSUMS:
React-runtimescheduler: 4941cc1b3cf08b792fbf666342c9fc95f1969035
React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a
ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d
RNBackgroundFetch: 35c7183f6eeff69396d42c4b206e1ae2a21e9327
RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb
RNCClipboard: 3f0451a8100393908bea5c5c5b16f96d45f30bfc
RNDateTimePicker: fc2e4f2795877d45e84d85659bebe627eba5c931
Expand All @@ -808,12 +826,14 @@ SPEC CHECKSUMS:
RNReanimated: ab1295f59541cb26000d394b4b4aea72cb7ca448
RNScreens: 85d3880b52d34db7b8eeebe2f1a0e807c05e69fa
RNShare: 859ff710211285676b0bcedd156c12437ea1d564
RNStaticSafeAreaInsets: 055ddbf5e476321720457cdaeec0ff2ba40ec1b8
RNSVG: ed492aaf3af9ca01bc945f7a149d76d62e73ec82
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
SSZipArchive: 62d4947b08730e4cda640473b0066d209ff033c9
VisionCamera: 52f98e7628f9deea3e311c3b6d4870bb44445e05
Yoga: 3efc43e0d48686ce2e8c60f99d4e6bd349aff981
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 5cbf7577c4133fbeb0fc325857b7ce1663a0757b

COCOAPODS: 1.14.3
COCOAPODS: 1.12.1
Loading