diff --git a/Plugins/NativeGallery/README.txt b/Plugins/NativeGallery/README.txt index cf0a554..036e888 100644 --- a/Plugins/NativeGallery/README.txt +++ b/Plugins/NativeGallery/README.txt @@ -1,4 +1,4 @@ -= Native Gallery for Android & iOS (v1.7.8) = += Native Gallery for Android & iOS (v1.7.9) = Documentation: https://github.com/yasirkula/UnityNativeGallery FAQ: https://github.com/yasirkula/UnityNativeGallery#faq diff --git a/Plugins/NativeGallery/iOS/NativeGallery.mm b/Plugins/NativeGallery/iOS/NativeGallery.mm index adc837b..8655160 100644 --- a/Plugins/NativeGallery/iOS/NativeGallery.mm +++ b/Plugins/NativeGallery/iOS/NativeGallery.mm @@ -140,12 +140,12 @@ + (int)requestPermission:(BOOL)readPermission permissionFreeMode:(BOOL)permissio // version < iOS 8: request permission using AssetsLibrary framework (Photos framework not available) result = [self requestPermissionOld:asyncMode]; } +#endif if( asyncMode && result >= 0 ) // Result returned immediately, forward it UnitySendMessage( "NGPermissionCallbackiOS", "OnPermissionRequested", [self getCString:[NSString stringWithFormat:@"%d", result]] ); return result; -#endif } #if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000 diff --git a/package.json b/package.json index 1fa3d15..c34468e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.yasirkula.nativegallery", "displayName": "Native Gallery", - "version": "1.7.8", + "version": "1.7.9", "documentationUrl": "https://github.com/yasirkula/UnityNativeGallery", "changelogUrl": "https://github.com/yasirkula/UnityNativeGallery/releases", "licensesUrl": "https://github.com/yasirkula/UnityNativeGallery/blob/master/LICENSE.txt",