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'
|
applicationId 'de.orfel.schnappix'
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 6
|
versionCode 7
|
||||||
versionName "23.01.6"
|
versionName "23.01.7"
|
||||||
|
|
||||||
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
|
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
BIN
Binary file not shown.
@@ -3,7 +3,7 @@
|
|||||||
"newArchEnabled": true,
|
"newArchEnabled": true,
|
||||||
"name": "Schnappix",
|
"name": "Schnappix",
|
||||||
"slug": "Schnappix",
|
"slug": "Schnappix",
|
||||||
"version": "23.01.6",
|
"version": "23.01.7",
|
||||||
"orientation": "landscape",
|
"orientation": "landscape",
|
||||||
"icon": "./Icon.png",
|
"icon": "./Icon.png",
|
||||||
"userInterfaceStyle": "dark",
|
"userInterfaceStyle": "dark",
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"package": "de.orfel.schnappix",
|
"package": "de.orfel.schnappix",
|
||||||
"versionCode": 6,
|
"versionCode": 7,
|
||||||
"adaptiveIcon": {
|
"adaptiveIcon": {
|
||||||
"backgroundColor": "#050510",
|
"backgroundColor": "#050510",
|
||||||
"foregroundImage": "./Icon-padded.png"
|
"foregroundImage": "./Icon-padded.png"
|
||||||
|
|||||||
@@ -72,11 +72,11 @@ export async function saveToGallery(localUri: string, type: 'Raw' | 'Collage', e
|
|||||||
|
|
||||||
if (!album) {
|
if (!album) {
|
||||||
// 3. If it doesn't exist, create it with our asset
|
// 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.`);
|
logger.log(`Created new album "${ALBUM_NAME}" and copied photo.`);
|
||||||
} else {
|
} else {
|
||||||
// 4. If it exists, add our asset to it
|
// 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}".`);
|
logger.log(`Copied photo to existing album "${ALBUM_NAME}".`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user