Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ jobs:
continue-on-error: false

- name: Run tests
## Ignoring formulus-formplayer testing for Q2
## run: npm test -- --coverage --watchAll=false
continue-on-error: true # We want to continue even if tests fail since tests are not set yet
run: npm test -- --coverage --watchAll=false
continue-on-error: true # Tests not fully set up yet

- name: Build
run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion formulus/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ edgeToEdgeEnabled=false

# Gradle performance optimizations (reduced for low-memory builds)
org.gradle.caching=true
org.gradle.configureondemand=true
org.gradle.configureondemand=false
org.gradle.daemon=true
org.gradle.parallel=false
org.gradle.workers.max=2
Expand Down
2 changes: 2 additions & 0 deletions formulus/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export default tseslint.config(
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
Expand Down
57 changes: 41 additions & 16 deletions formulus/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions formulus/src/components/QRScannerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ interface QRScannerModalProps {
// Only load QRScannerModalImpl if VisionCamera native module is linked
let QRScannerModalImpl: React.ComponentType<QRScannerModalProps> | null = null;
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { NativeModules } = require('react-native');
if (NativeModules.CameraView) {
// eslint-disable-next-line @typescript-eslint/no-require-imports
QRScannerModalImpl = require('./QRScannerModalImpl').default;
}
} catch (e) {
Expand Down Expand Up @@ -87,8 +89,8 @@ const QRScannerModal: React.FC<QRScannerModalProps> = props => {
<View style={styles.container}>
<View style={styles.fallbackContainer}>
<Text style={styles.fallbackText}>
QR scanner not available. Camera module (react-native-vision-camera) is
not linked. Re-enable it in react-native.config.js and rebuild.
QR scanner not available. Camera module (react-native-vision-camera)
is not linked. Re-enable it in react-native.config.js and rebuild.
</Text>
<TouchableOpacity style={styles.button} onPress={props.onClose}>
<Text style={styles.buttonText}>Close</Text>
Expand Down
Loading
Loading