Fix print network request failed (usesCleartextTraffic) and downgrade getAlbumAsync error to warning
This commit is contained in:
1 parent
98e5e86a2a
commit
323402676b
3 files changed
+5
-4
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
"newArchEnabled": true,
|
"newArchEnabled": true,
|
||||||
"name": "Schnappix",
|
"name": "Schnappix",
|
||||||
"slug": "Schnappix",
|
"slug": "Schnappix",
|
||||||
"version": "23.01.18",
|
"version": "23.01.19",
|
||||||
"orientation": "landscape",
|
"orientation": "landscape",
|
||||||
"icon": "./Icon.png",
|
"icon": "./Icon.png",
|
||||||
"userInterfaceStyle": "dark",
|
"userInterfaceStyle": "dark",
|
||||||
@@ -13,7 +13,8 @@
|
|||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"package": "de.orfel.schnappix",
|
"package": "de.orfel.schnappix",
|
||||||
"versionCode": 18,
|
"versionCode": 19,
|
||||||
|
"usesCleartextTraffic": true,
|
||||||
"adaptiveIcon": {
|
"adaptiveIcon": {
|
||||||
"backgroundColor": "#050510",
|
"backgroundColor": "#050510",
|
||||||
"foregroundImage": "./Icon-padded.png"
|
"foregroundImage": "./Icon-padded.png"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "schnappix",
|
"name": "schnappix",
|
||||||
"version": "23.01.18",
|
"version": "23.01.19",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export async function saveToGallery(localUri: string, type: 'Raw' | 'Collage', e
|
|||||||
|
|
||||||
return asset.uri;
|
return asset.uri;
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
logger.error(`Error saving asset to album ${ALBUM_NAME}: ${e?.message || e}`);
|
logger.warn(`Could not save asset to album ${ALBUM_NAME} (likely due to write-only permissions on Android 13+). Photo is still saved in main gallery: ${e?.message || e}`);
|
||||||
return asset.uri;
|
return asset.uri;
|
||||||
} finally {
|
} finally {
|
||||||
// Cleanup our temp renamed file
|
// Cleanup our temp renamed file
|
||||||
|
|||||||
Reference in new issue
Block a user