Skip to content

Commit 92b2802

Browse files
committed
barcode gen, embed files
1 parent 9fa3375 commit 92b2802

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

applications/external/barcode_gen/application.fam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ App(
88
fap_category="Tools",
99
fap_icon="images/barcode_10.png",
1010
fap_icon_assets="images",
11-
fap_icon_assets_symbol="barcode_app",
11+
fap_file_assets="barcode_encoding_files",
1212
fap_author="@Kingal1337",
1313
fap_weburl="https://github.com/Kingal1337/flipper-barcode-generator",
14-
fap_version="1.0",
14+
fap_version="1.1",
1515
fap_description="App allows you to display various barcodes on flipper screen",
1616
)

applications/external/barcode_gen/barcode_app.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,17 @@
2323
#define BARCODE_HEIGHT 50
2424
#define BARCODE_Y_START 3
2525

26-
//the folder where the encodings are located
27-
#define BARCODE_DATA_FILE_DIR_PATH EXT_PATH("apps_data/barcode_data")
28-
2926
//the folder where the codabar encoding table is located
30-
#define CODABAR_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/codabar_encodings.txt"
27+
#define CODABAR_DICT_FILE_PATH APP_ASSETS_PATH("codabar_encodings.txt")
3128

3229
//the folder where the code 39 encoding table is located
33-
#define CODE39_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/code39_encodings.txt"
30+
#define CODE39_DICT_FILE_PATH APP_ASSETS_PATH("code39_encodings.txt")
3431

3532
//the folder where the code 128 encoding table is located
36-
#define CODE128_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/code128_encodings.txt"
33+
#define CODE128_DICT_FILE_PATH APP_ASSETS_PATH("code128_encodings.txt")
3734

3835
//the folder where the code 128 C encoding table is located
39-
#define CODE128C_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/code128c_encodings.txt"
36+
#define CODE128C_DICT_FILE_PATH APP_ASSETS_PATH("code128c_encodings.txt")
4037

4138
//the folder where the user stores their barcodes
4239
#define DEFAULT_USER_BARCODES EXT_PATH("apps_data/barcodes")

assets/resources/apps_data/barcode_data/codabar_encodings.txt renamed to applications/external/barcode_gen/barcode_encoding_files/codabar_encodings.txt

File renamed without changes.

assets/resources/apps_data/barcode_data/code128_encodings.txt renamed to applications/external/barcode_gen/barcode_encoding_files/code128_encodings.txt

File renamed without changes.

assets/resources/apps_data/barcode_data/code128c_encodings.txt renamed to applications/external/barcode_gen/barcode_encoding_files/code128c_encodings.txt

File renamed without changes.

assets/resources/apps_data/barcode_data/code39_encodings.txt renamed to applications/external/barcode_gen/barcode_encoding_files/code39_encodings.txt

File renamed without changes.

0 commit comments

Comments
 (0)