Skip to content

Commit

Permalink
ARCore iOS SDK v1.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictornvictor authored and sammcd committed Dec 12, 2019
1 parent 5689930 commit ae50aa7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Examples/AugmentedFacesExample/Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
target 'AugmentedFacesExample'
platform :ios, '11.0'
pod 'ARCore/AugmentedFaces', '~> 1.13.0'
pod 'ARCore/AugmentedFaces', '~> 1.14.0'
12 changes: 7 additions & 5 deletions Examples/CloudAnchorExample/CloudAnchorExample/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@

#import "AppDelegate.h"

#import "ExampleViewController.h"

#import <FirebaseCore/FirebaseCore.h>

#import "ExampleViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[UIApplication sharedApplication].idleTimerDisabled = YES;
Expand All @@ -35,8 +35,10 @@ - (BOOL)application:(UIApplication *)application

[FIRApp configure];

UIStoryboard* storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ExampleViewController* viewController = [storyBoard instantiateInitialViewController];
UIStoryboard *storyBoard =
[UIStoryboard storyboardWithName:@"Main" bundle:nil];
ExampleViewController *viewController =
[storyBoard instantiateInitialViewController];
self.window.rootViewController = viewController;

[self.window makeKeyAndVisible];
Expand All @@ -45,7 +47,7 @@ - (BOOL)application:(UIApplication *)application
}

- (UIInterfaceOrientationMask)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(UIWindow *)window {
supportedInterfaceOrientationsForWindow:(UIWindow *)window {
return UIInterfaceOrientationMaskPortrait;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "CloudAnchorManager.h"

#import <Foundation/Foundation.h>

#import <ARCore/ARCore.h>
#import <FirebaseDatabase/FirebaseDatabase.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

#import <UIKit/UIKit.h>
#import <SceneKit/SceneKit.h>
#import <ARKit/ARKit.h>
#import <SceneKit/SceneKit.h>
#import <UIKit/UIKit.h>

@interface ExampleViewController : UIViewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

#import "ExampleViewController.h"

#import "CloudAnchorManager.h"

#import <dispatch/dispatch.h>

#import <ARKit/ARKit.h>
#import <ARCore/ARCore.h>
#import <ModelIO/ModelIO.h>
#import <SceneKit/ModelIO.h>

#import "CloudAnchorManager.h"
#import <ARCore/ARCore.h>

typedef NS_ENUM(NSInteger, HelloARState) {
HelloARStateDefault,
Expand Down Expand Up @@ -102,9 +103,9 @@ - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
CGPoint touchLocation = [touch locationInView:self.sceneView];

NSArray *hitTestResults =
[self.sceneView hitTest:touchLocation
types:ARHitTestResultTypeExistingPlaneUsingExtent |
ARHitTestResultTypeEstimatedHorizontalPlane];
[self.sceneView hitTest:touchLocation
types:ARHitTestResultTypeExistingPlaneUsingExtent |
ARHitTestResultTypeEstimatedHorizontalPlane];

if (hitTestResults.count > 0) {
ARHitTestResult *result = [hitTestResults firstObject];
Expand Down Expand Up @@ -324,8 +325,8 @@ - (NSString *)cloudStateString:(GARCloudAnchorState)cloudState {
return @"ErrorResolvingSdkVersionTooNew";
case GARCloudAnchorStateErrorResolvingSdkVersionTooOld:
return @"ErrorResolvingSdkVersionTooOld";
case GARCloudAnchorStateErrorServiceUnavailable:
return @"ErrorServiceUnavailable";
case GARCloudAnchorStateErrorHostingServiceUnavailable:
return @"ErrorHostingServiceUnavailable";
default:
return @"Unknown";
}
Expand Down Expand Up @@ -469,7 +470,7 @@ - (void)renderer:(id<SCNSceneRenderer>)renderer
SCNPlane *plane = [SCNPlane planeWithWidth:width height:height];

plane.materials.firstObject.diffuse.contents =
[UIColor colorWithRed:0.0f green:0.0f blue:1.0f alpha:0.3f];
[UIColor colorWithRed:0.0f green:0.0f blue:1.0f alpha:0.7f];

SCNNode *planeNode = [SCNNode nodeWithGeometry:plane];

Expand Down
2 changes: 0 additions & 2 deletions Examples/CloudAnchorExample/CloudAnchorExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Cloud Anchor Example</string>
<key>CFBundleExecutable</key>
Expand Down
Binary file not shown.
7 changes: 4 additions & 3 deletions Examples/CloudAnchorExample/CloudAnchorExample/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
* limitations under the License.
*/

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import <UIKit/UIKit.h>

int main(int argc, char * argv[]) {
int main(int argc, char *argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
return UIApplicationMain(argc, argv, nil,
NSStringFromClass([AppDelegate class]));
}
}
2 changes: 1 addition & 1 deletion Examples/CloudAnchorExample/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
target 'CloudAnchorExample'
platform :ios, '11.0'
pod 'ARCore/CloudAnchors', '~> 1.13.0'
pod 'ARCore/CloudAnchors', '~> 1.14.0'
pod 'Firebase/Core', '~> 4.11'
pod 'Firebase/Database', '~> 4.11'

0 comments on commit ae50aa7

Please sign in to comment.