Fix: Set copyAsset to true in expo-media-library to avoid SecurityException prompt on Android 11+ ; Bump to 23.01.7

This commit is contained in:
2026-06-13 11:59:51 +02:00
parent 313a69e677
commit cdfd1a2e2b
5 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -92,8 +92,8 @@ android {
applicationId 'de.orfel.schnappix'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 6
versionName "23.01.6"
versionCode 7
versionName "23.01.7"
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
}
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -3,7 +3,7 @@
"newArchEnabled": true,
"name": "Schnappix",
"slug": "Schnappix",
"version": "23.01.6",
"version": "23.01.7",
"orientation": "landscape",
"icon": "./Icon.png",
"userInterfaceStyle": "dark",
@@ -13,7 +13,7 @@
},
"android": {
"package": "de.orfel.schnappix",
"versionCode": 6,
"versionCode": 7,
"adaptiveIcon": {
"backgroundColor": "#050510",
"foregroundImage": "./Icon-padded.png"
+2 -2
View File
@@ -72,11 +72,11 @@ export async function saveToGallery(localUri: string, type: 'Raw' | 'Collage', e
if (!album) {
// 3. If it doesn't exist, create it with our asset
await createAlbumAsync(ALBUM_NAME, asset, false);
await createAlbumAsync(ALBUM_NAME, asset, true);
logger.log(`Created new album "${ALBUM_NAME}" and copied photo.`);
} else {
// 4. If it exists, add our asset to it
await addAssetsToAlbumAsync([asset], album, false);
await addAssetsToAlbumAsync([asset], album, true);
logger.log(`Copied photo to existing album "${ALBUM_NAME}".`);
}