Skip to content

Commit

Permalink
refactor: Remove unused ressouces inside enioka_scan and enioka_scan_…
Browse files Browse the repository at this point in the history
…camera
  • Loading branch information
VincentKobz committed Apr 17, 2024
1 parent 5028b95 commit bae9a80
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 259 deletions.
94 changes: 0 additions & 94 deletions enioka_scan/src/main/res/layout/activity_main_alt.xml

This file was deleted.

5 changes: 0 additions & 5 deletions enioka_scan/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<string name="scanner_status_SERVICE_SDK_SEARCH_OVER">Tous les fournisseurs de scanners matériels ont répondu</string>

<!-- Others -->
<string name="scanner_camera_no_camera">Aucune caméra disponible. Veuillez brancher votre lecteur laser. L\'application va s\'arrêter.</string>
<string name="scanner_camera_open_error">Veuillez vérifier qu\'aucune autre application n\'utilise la caméra (comme ScanWedge, DataWedge…). Vérifiez aussi que la caméra fnction dans l\'application idoine.</string>
<string name="scanner_camera_open_error_title">Impossible de se connecter à la caméra</string>
<string name="activity_scan_barcode_value_placeholder">10AL9271B2I8</string>
<string name="activity_scan_scanner_not_initialized">Initialisation du scanner non commencée</string>
<string name="app_name">EniokaScan</string>
Expand All @@ -33,6 +30,4 @@
<string name="fragment_scan_manual_title">Saisie manuelle</string>
<string name="activity_scan_no_compatible_sdk">Aucun scanner compatible n\'est disponible sur cet appareil</string>
<string name="service_description">Service d\'assistance à la gestion des scanners</string>
<string name="activity_scan_use_zxing">ZXing</string>
<string name="activity_scan_pause_camera">Pause</string>
</resources>
7 changes: 0 additions & 7 deletions enioka_scan/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,11 @@
<!-- Scanner status (Others) -->
<string name="scanner_status_no_camera">No camera available</string>

<!-- ZBar specific -->
<string name="scanner_camera_open_error_title">Cannot connect to camera service</string>
<string name="scanner_camera_open_error">"Please check that no other applications (including scan helpers like ScanWedge) are using the camera. Also check if the Android camera app is working.\nApplication will now crash."</string>
<string name="scanner_camera_no_camera">No fallback camera available on device. Please plugin your laser barcode scanner and restart application. Application will now crash.</string>

<!-- Helper activities -->
<string name="activity_scan_barcode_value_placeholder">10AL9271B2I8</string>
<string name="activity_scan_scanner_not_initialized">Scanner initialization not started</string>
<string name="scanner_using_bt_keyboard">Using Bluetooth scanner or keyboard</string>
<string name="activity_scan_no_compatible_sdk">There are no compatible scanners on this device</string>
<string name="activity_scan_use_zxing">ZXing</string>
<string name="activity_scan_pause_camera">Pause</string>

<!-- Helper manual scan fragment -->
<string name="fragment_scan_manual_title">Manual input</string>
Expand Down
1 change: 0 additions & 1 deletion enioka_scan_camera/.gitignore

This file was deleted.

4 changes: 3 additions & 1 deletion enioka_scan_camera/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
android:label="@string/app_name"
android:supportsRtl="true">

<activity android:name=".CameraCompatActivity" />
<activity
android:name=".CameraCompatActivity"
android:description="@string/activity_description" />
</application>
</manifest>
33 changes: 0 additions & 33 deletions enioka_scan_camera/src/main/res/layout/dropdown_item.xml

This file was deleted.

This file was deleted.

42 changes: 11 additions & 31 deletions enioka_scan_camera/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
@@ -1,38 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Scanner status -->
<string name="scanner_status_WAITING">Scanner en attente de connexion</string>
<string name="scanner_status_CONNECTING">Scanner en cours de connexion</string>
<string name="scanner_status_RECONNECTING">Scanner déconnecté mais en tentative de reconnexion</string>
<string name="scanner_status_CONNECTED">Scanner connecté</string>
<string name="scanner_status_INITIALIZING">Scanner en cours d\'initialisation</string>
<string name="scanner_status_INITIALIZED">Scanner initialisé</string>
<string name="scanner_status_READY">Scanner prêt à être utilisé</string>
<string name="scanner_status_SCANNING">Scanner en cours de scanning</string>
<string name="scanner_status_PAUSED">Scanner activé mais indisponible</string>
<string name="scanner_status_DISABLED">Scanner désactivé et indisponible</string>
<string name="scanner_status_FAILURE">Scanner non disponible suite à une erreur critique</string>
<string name="scanner_status_DISCONNECTED">Scanner déconnecté définitivement</string>
<string name="scanner_status_UNKNOWN">Scanner dans un état inconnu</string>
<string name="scanner_status_SERVICE_PROVIDER_SEARCH_OVER">ScannerService a terminé la découverte de providers de scanner</string>
<string name="scanner_status_SERVICE_SDK_SEARCH_NOCOMPATIBLE">Aucun scanner de code barre matériel compatible n\'est disponible sur cet appareil</string>
<string name="scanner_status_SERVICE_SDK_SEARCH_OVER">Tous les fournisseurs de scanners matériels ont répondu</string>

<!-- Others -->
<string name="scanner_camera_no_camera">Aucune caméra disponible. Veuillez brancher votre lecteur laser. L\'application va s\'arrêter.</string>
<string name="scanner_camera_open_error">Veuillez vérifier qu\'aucune autre application n\'utilise la caméra (comme ScanWedge, DataWedge…). Vérifiez aussi que la caméra fnction dans l\'application idoine.</string>
<string name="scanner_camera_open_error_title">Impossible de se connecter à la caméra</string>
<string name="activity_scan_barcode_value_placeholder">10AL9271B2I8</string>
<string name="activity_scan_scanner_not_initialized">Initialisation du scanner non commencée</string>
<string name="app_name">EniokaScan</string>
<string name="scanner_using_bt_keyboard">Utilisation d\'un clavier ou lecteur Bluetooth</string>
<string name="app_name">EniokaScan Camera</string>
<string name="activity_description">Service d\'assistance à l\'instanciation d\'une camera scanneur.</string>

<!-- Scanner status (Others) -->
<string name="scanner_status_no_camera">Aucune caméra disponible</string>
<string name="fragment_scan_manual_hint">00000000</string>
<string name="fragment_scan_manual_invite">Veuillez saisir la valeur du code barre, puis choisissez un élément parmi les résultats</string>
<string name="fragment_scan_manual_ok">Envoyer</string>
<string name="fragment_scan_manual_title">Saisie manuelle</string>
<string name="activity_scan_no_compatible_sdk">Aucun scanner compatible n\'est disponible sur cet appareil</string>
<string name="service_description">Service d\'assistance à la gestion des scanners</string>

<!-- ZBar specific -->
<string name="scanner_camera_open_error_title">Impossible de se connecter à la caméra</string>
<string name="scanner_camera_open_error">Veuillez vérifier qu\'aucune autre application n\'utilise la caméra (comme ScanWedge, DataWedge…). Vérifiez aussi que la caméra fnction dans l\'application idoine.</string>
<string name="scanner_camera_no_camera">Aucune caméra disponible. Veuillez brancher votre lecteur laser. L\'application va s\'arrêter.</string>

<!-- Helper activities -->
<string name="activity_scan_use_zxing">ZXing</string>
<string name="activity_scan_pause_camera">Pause</string>
</resources>
33 changes: 2 additions & 31 deletions enioka_scan_camera/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
<resources>
<string name="app_name">EniokaScan</string>
<string name="service_description">Helper service for scanner management</string>

<!-- Scanner status -->
<string name="scanner_status_WAITING">Scanner is waiting for a connection</string>
<string name="scanner_status_CONNECTING">Scanner is in the process of connecting</string>
<string name="scanner_status_RECONNECTING">Scanner disconnected but is trying to reconnect</string>
<string name="scanner_status_CONNECTED">Scanner has finished connecting</string>
<string name="scanner_status_INITIALIZING">Scanner is in the process of initializing</string>
<string name="scanner_status_INITIALIZED">Scanner has finished initializing</string>
<string name="scanner_status_READY">Scanner is ready to scan and waiting to be used</string>
<string name="scanner_status_SCANNING">Scanner is in the process of scanning</string>
<string name="scanner_status_PAUSED">Scanner is enabled but not ready to scan</string>
<string name="scanner_status_DISABLED">Scanner has been disabled and cannot be used</string>
<string name="scanner_status_FAILURE">Scanner is no longer available after a critical error occurred</string>
<string name="scanner_status_DISCONNECTED">Scanner disconnected and can no longer be used</string>
<string name="scanner_status_UNKNOWN">Scanner is in an unknown status</string>
<!-- Scanner Service status -->
<string name="scanner_status_SERVICE_PROVIDER_SEARCH_OVER">ScannerService finished discovering scanner providers</string>
<string name="scanner_status_SERVICE_SDK_SEARCH_NOCOMPATIBLE">There are no compatible hardware barcode scanners on this device</string>
<string name="scanner_status_SERVICE_SDK_SEARCH_OVER">All hardware scanner providers have reported for duty</string>
<string name="app_name">EniokaScan Camera</string>
<string name="activity_description">Helper service for camera scanner management</string>

<!-- Scanner status (Others) -->
<string name="scanner_status_no_camera">No camera available</string>
Expand All @@ -30,16 +11,6 @@
<string name="scanner_camera_no_camera">No fallback camera available on device. Please plugin your laser barcode scanner and restart application. Application will now crash.</string>

<!-- Helper activities -->
<string name="activity_scan_barcode_value_placeholder">10AL9271B2I8</string>
<string name="activity_scan_scanner_not_initialized">Scanner initialization not started</string>
<string name="scanner_using_bt_keyboard">Using Bluetooth scanner or keyboard</string>
<string name="activity_scan_no_compatible_sdk">There are no compatible scanners on this device</string>
<string name="activity_scan_use_zxing">ZXing</string>
<string name="activity_scan_pause_camera">Pause</string>

<!-- Helper manual scan fragment -->
<string name="fragment_scan_manual_title">Manual input</string>
<string name="fragment_scan_manual_invite">Please enter the barcode value, then select one item among the results</string>
<string name="fragment_scan_manual_hint">0000000000</string>
<string name="fragment_scan_manual_ok">Send</string>
</resources>

0 comments on commit bae9a80

Please sign in to comment.