Cardboard SDK v1.3.0 (2020-10-20)
Breaking & behavioral changes
None.
New APIs and capabilities
- Added new
CardboardDistortionRendererconstructors for to support multiple rendering APIs in a future release. Only OpenGL ES 2 is currently implemented. - Added validation for pointers passed in to each API function before dereferencing them. Invalid parameters get logged to the debug console.
- Added validation that Cardboard_initializeAndroid() has been called before any other API function is. Invalid calls get logged to the debug console.
- Updated iOS sample app to work with iOS 14.
- Changed Android minimum SDK version to 16 from 19 in Android SDK.
- Changed Android target API version to 30 from 28 in Android SDK and sample app.
Deprecations
CardboardDistortionRenderer_createhas been removed. CallCardboardOpenGlEs2DistortionRenderer_createinstead.
Other changes
- Merged #91: Added Android Studio styling.
- Fixed #29: Repository contains a gitignore file.
- Added support for apps that use Cronet for network operations. See
CronetEngine.createURLStreamHandlerFactoryfor specifics. - Changed use of
Contextin Android specific code to work with anyContextthat has aWindowManagerwhere previously it only worked withContextobjects of typeActivity. This helps when dependency injection frameworks like Dagger. - Improved Android API compatibility to get screen pixel density.
- Added a toast explaining when barcode detection libraries are not available and a WiFi update of Google Play Services is required.
Bug fixes
- Fixed #29: A .gitignore file has been added to the SDK repository.
- Fixed #33: Unity XR plugin no longer requires both iOS and Android Unity modules to be installed.
- Fixed #34: On Android, Unity projects entering XR mode won't crash anymore if Cardboard XR Plugin is not enabled in Player Settings > XR Plug-in Management.
- Fixed #50: Unity XR plugin displays gear and close textures after loading a new scene.
- Fixed #55, merged #2: Unity XR plugin no longer throws an error when building for platforms other than Android or iOS.
- Fixed #59 and #98: Unity XR plugin can be turned on and off at runtime.
- Fixed #89: QR code scanner accepts both TEXT and URL barcode types.