Cardboard SDK v1.4.0 (2020-12-04)
Breaking & behavioral changes
- Changed Android minimum SDK version to 18 from 16 in Android SDK, sample app, and Unity SDK. If you want to maintain minimum SDK version 16 for your app, you must remove OpenGL ES 3.0 support by making the following changes. All the locations can be found by searching for "#gles3":
- Set
minSdkVersionto 16 in build.gradle. - Change
glEsVersionto 0x00020000 in AndroidManifest.xml. - Remove
GLESv3-liboccurrences from CMakeLists.txt. - Remove the contents of opengl_es3_distortion_renderer.cc.
- (Unity only) Remove the call to
CardboardOpenGlEs3DistortionRenderer_createin cardboard_xr_unity.cc.
- Set
New APIs and capabilities
- Closed #40: Added OpenGL ES 3.0 support.
- Closed #144: Added support for 2020 iPhones (iPhone 12, iPhone 12 Mini, iPhone 12 Pro, and iPhone 12 Pro Max).
- Added new
UpdateScreenParamsmethod to the Unity API. This method should be called every frame while VR is enabled as a workaround for Unity bug #1288515. Once the bug is fixed by Unity, this method will be removed. - Added support for ProGuard on Android.
- Closed #53: Added sample showing how to enable and disable Cardboard in Unity at runtime.
- Added support for iPod touch 7th generation.
Deprecations
None.
Other changes
- Added more detailed logging of QR code scanning state changes on Android.
- Improves logging of the Java code for QR code scanning.
- Replaced
CameraSource.Builderclass by a public constructor inCameraSourceto simplify code maintenance.