Initial commit.

This commit is contained in:
2019-07-01 14:33:21 +02:00
parent 92a04d779e
commit baa2e0279d
1624 changed files with 3204958 additions and 0 deletions
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.unity3d.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,12 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#include "Preprocessor.h"
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
@@ -0,0 +1,37 @@
#import "Preprocessor.h"
#import <XCTest/XCTest.h>
#import "UnityAppController+Rendering.h"
@interface UnityTest : XCTestCase
@end
@implementation UnityTest
- (void)testRunUnity
{
XCTestExpectation *expectation = [self expectationWithDescription: @"testRunUnity"];
__block bool running = true;
id<UIApplicationDelegate> delegate = [(UIApplication*)[UIApplication sharedApplication] delegate];
[delegate performSelector: @selector(setQuitHandler:) withObject:^{
[expectation fulfill];
running = false;
}];
// When Apple TV device doesn't have attached monitor or TV it doesn't run display link. So we force
// player loop here.
#ifdef PLATFORM_TVOS
UnityAppController* unityApp = [(UIApplication*)[UIApplication sharedApplication] delegate];
while (running)
{
[unityApp repaint];
[[NSRunLoop mainRunLoop] runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 0.001f]];
}
#endif
[self waitForExpectationsWithTimeout: 1000000 handler: nil];
}
@end
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */