Skip to content

Commit 1c5b502

Browse files
authored
Merge pull request #33 from xtruan/develop
Updates for new FW
2 parents 1fa9193 + a9b4ead commit 1c5b502

File tree

9 files changed

+16
-19
lines changed

9 files changed

+16
-19
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- develop
88

99
env:
10-
firmware_version: '0.88.0'
10+
firmware_version: '0.101.2'
1111

1212
jobs:
1313
build:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77

88
env:
9-
firmware_version: '0.88.0'
9+
firmware_version: '0.101.2'
1010

1111
jobs:
1212
build:

.github/workflows/ufbt_build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "FAP: Build for multiple SDK sources"
1+
name: "uFBT Build"
22
on:
33
push:
44
branches:
@@ -32,4 +32,4 @@ jobs:
3232
uses: actions/upload-artifact@v3
3333
with:
3434
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
35-
path: ${{ steps.build-app.outputs.fap-artifacts }}
35+
path: ${{ steps.build-app.outputs.fap-artifacts }}

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
[![Build](https://github.com/xtruan/FlipBIP/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/xtruan/FlipBIP/actions/workflows/build.yml)
44

55
## Crypto toolkit for Flipper Zero
6-
- Last built against `0.88.0` Flipper Zero firmware release
6+
- Last built against `0.101.2` Flipper Zero firmware release
77
- Using Trezor crypto libs from `core/v2.5.3` release
8-
- Included in [RogueMaster Custom Firmware](https://github.com/RogueMaster/flipperzero-firmware-wPlugins)
98
- NOTE: This app uses very close to the maximum Flipper Zero RAM. If you get `furi_check failed` on launch, try running again!
109

1110
### DONATE IF YOU FIND THE APP USEFUL
@@ -63,7 +62,7 @@ The application will be compiled and copied onto your device
6362
- Addresses are now generated at the same time as other pieces of wallet info
6463
- This slows down initial wallet load, but makes UI much more responsive
6564
- QR code files are now generated for each address and stored in the `apps_data/flipbip` directory
66-
- This app is required to view the QR code files: https://github.com/bmatcuk/flipperzero-qrcode (included in RM firmware)
65+
- This app is required to view the QR code files: https://github.com/bmatcuk/flipperzero-qrcode
6766
- NOTE: This happens during the `View Wallet` step; you must view a wallet after generating/importing a wallet in order to ensure the address QR files are correct
6867
- Broke out crypto functionality into its own library using `fap_private_libs` feature
6968

application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ App(
1717
fap_category="Tools",
1818
fap_author="Struan Clark (xtruan)",
1919
fap_weburl="https://github.com/xtruan/FlipBIP",
20-
fap_version=(1, 14),
20+
fap_version=(1, 15),
2121
fap_description="Crypto wallet for Flipper",
2222
)

flipbip.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ static void flipbip_scene_renew_dialog_callback(DialogExResult result, void* con
102102
static void flipbip_wallet_create(void* context) {
103103
FlipBip* app = context;
104104
furi_assert(app);
105-
scene_manager_set_scene_state(
106-
app->scene_manager, FlipBipSceneMenu, SubmenuIndexScene1New);
105+
scene_manager_set_scene_state(app->scene_manager, FlipBipSceneMenu, SubmenuIndexScene1New);
107106
scene_manager_next_scene(app->scene_manager, FlipBipSceneScene_1);
108107
}
109108

@@ -171,7 +170,8 @@ FlipBip* flipbip_app_alloc() {
171170
dialog_ex_set_context(app->renew_dialog, app);
172171
dialog_ex_set_left_button_text(app->renew_dialog, "No");
173172
dialog_ex_set_right_button_text(app->renew_dialog, "Yes");
174-
dialog_ex_set_header(app->renew_dialog, "Current wallet\nWill be lost.\nProceed?", 16, 12, AlignLeft, AlignTop);
173+
dialog_ex_set_header(
174+
app->renew_dialog, "Current wallet\nWill be lost.\nProceed?", 16, 12, AlignLeft, AlignTop);
175175
view_dispatcher_add_view(
176176
app->view_dispatcher, FlipBipViewRenewConfirm, dialog_ex_get_view(app->renew_dialog));
177177

flipbip.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "scenes/flipbip_scene.h"
1616
#include "views/flipbip_scene_1.h"
1717

18-
#define FLIPBIP_VERSION "v1.14"
18+
#define FLIPBIP_VERSION "v1.15"
1919

2020
#define COIN_BTC 0
2121
#define COIN_DOGE 3
@@ -24,8 +24,6 @@
2424

2525
#define TEXT_BUFFER_SIZE 256
2626

27-
28-
2927
typedef struct {
3028
Gui* gui;
3129
// NotificationApp* notification;
@@ -50,7 +48,7 @@ typedef struct {
5048
char import_mnemonic_text[TEXT_BUFFER_SIZE];
5149
char input_text[TEXT_BUFFER_SIZE];
5250

53-
void (* wallet_create)(void* context);
51+
void (*wallet_create)(void* context);
5452
} FlipBip;
5553

5654
typedef enum {

helpers/flipbip_file.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ bool flipbip_load_file(
3939
const char* file_name) {
4040
bool ret = false;
4141
const char* path;
42+
char path_buf[FILE_MAX_PATH_LEN] = {0};
4243
if(file_type == FlipBipFileKey) {
4344
path = FLIPBIP_KEY_PATH;
4445
} else if(file_type == FlipBipFileDat) {
4546
path = FLIPBIP_DAT_PATH;
4647
} else {
47-
char path_buf[FILE_MAX_PATH_LEN] = {0};
4848
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER); // 22
4949
strcpy(path_buf + strlen(path_buf), "/");
5050
strcpy(path_buf + strlen(path_buf), file_name);
@@ -96,12 +96,12 @@ bool flipbip_load_file(
9696
bool flipbip_has_file(const FlipBipFile file_type, const char* file_name, const bool remove) {
9797
bool ret = false;
9898
const char* path;
99+
char path_buf[FILE_MAX_PATH_LEN] = {0};
99100
if(file_type == FlipBipFileKey) {
100101
path = FLIPBIP_KEY_PATH;
101102
} else if(file_type == FlipBipFileDat) {
102103
path = FLIPBIP_DAT_PATH;
103104
} else {
104-
char path_buf[FILE_MAX_PATH_LEN] = {0};
105105
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER); // 22
106106
strcpy(path_buf + strlen(path_buf), "/");
107107
strcpy(path_buf + strlen(path_buf), file_name);
@@ -127,14 +127,14 @@ bool flipbip_save_file(
127127
bool ret = false;
128128
const char* path;
129129
const char* path_bak;
130+
char path_buf[FILE_MAX_PATH_LEN] = {0};
130131
if(file_type == FlipBipFileKey) {
131132
path = FLIPBIP_KEY_PATH;
132133
path_bak = FLIPBIP_KEY_PATH_BAK;
133134
} else if(file_type == FlipBipFileDat) {
134135
path = FLIPBIP_DAT_PATH;
135136
path_bak = FLIPBIP_DAT_PATH_BAK;
136137
} else {
137-
char path_buf[FILE_MAX_PATH_LEN] = {0};
138138
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER); // 22
139139
strcpy(path_buf + strlen(path_buf), "/");
140140
strcpy(path_buf + strlen(path_buf), file_name);

lib/crypto/base32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ char* base32_encode(
5151
int ret = base32_encode_character(out[i], alphabet);
5252

5353
if(ret == -1) {
54-
return false;
54+
return NULL;
5555
} else {
5656
out[i] = ret;
5757
}

0 commit comments

Comments
 (0)