Skip to content

Commit

Permalink
Cardboard SDK v1.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyunh0929 committed May 14, 2024
1 parent 672a1b6 commit 596352d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hellocardboard-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
minSdkVersion 26
targetSdkVersion 33
versionCode 1
versionName "1.24.0"
versionName "1.25.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
Expand Down
4 changes: 2 additions & 2 deletions hellocardboard-ios/HelloCardboard-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.24.0</string>
<string>1.25.0</string>
<key>CFBundleVersion</key>
<string>1.24.0</string>
<string>1.25.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSCameraUsageDescription</key>
Expand Down
7 changes: 4 additions & 3 deletions hellocardboard-ios/HelloCardboardAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ - (BOOL)application:(UIApplication *)application
return YES;
}

// Make the navigation controller defer the check of supported orientation to its topmost view
// controller. This allows |CardboardViewController| to lock the orientation in VR mode.
// Make the navigation controller defer the check of supported orientation to its visible view
// controller. This allows |CardboardViewController| to lock the orientation in VR mode and allow
// all orientations for QRScanViewController.
- (UIInterfaceOrientationMask)navigationControllerSupportedInterfaceOrientations:
(UINavigationController *)navigationController {
return [navigationController.topViewController supportedInterfaceOrientations];
return [navigationController.visibleViewController supportedInterfaceOrientations];
}

@end
4 changes: 4 additions & 0 deletions sdk/qrcode/ios/qr_scan_view_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ - (UIInterfaceOrientation)viewOrientation {
return [UIApplication sharedApplication].statusBarOrientation;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}

- (AVCaptureVideoOrientation)videoOrientation {
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
switch (orientation) {
Expand Down
6 changes: 3 additions & 3 deletions sdk/sensors/ios/sensor_event_producer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
struct DeviceSensor {};

template <>
struct cardboard::DeviceSensor<AccelerometerData> {
struct DeviceSensor<AccelerometerData> {
std::unique_ptr<DeviceAccelerometerSensor> value;
};

template <>
struct cardboard::DeviceSensor<GyroscopeData> {
struct DeviceSensor<GyroscopeData> {
std::unique_ptr<DeviceGyroscopeSensor> value;
};

template <typename DataType>
struct cardboard::SensorEventProducer<DataType>::EventProducer {
struct SensorEventProducer<DataType>::EventProducer {
EventProducer() : run_thread(false) {}

// Sensor to poll for data.
Expand Down
8 changes: 8 additions & 0 deletions third_party/unity_plugin_api/bluze.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ buildable_unit: {
on_demand_frequency: EVERY_4_HOURS
}
}
continuous_tests: {
name: "third_party.unity.pluginapi"
buildable_unit_name: "third_party.unity.pluginapi"
}
continuous_tests: {
name: "third_party.unity.pluginapi.opt"
buildable_unit_name: "third_party.unity.pluginapi.opt"
}

0 comments on commit 596352d

Please sign in to comment.