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:
@@ -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.
BIN
Binary file not shown.
@@ -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"
|
||||
|
||||
@@ -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}".`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user