Revision | 953a6f150f02a7aea23b0c1fdddf61e905ea3a3a (tree) |
---|---|
Time | 2023-07-07 01:44:20 |
Author | sebastian_bugiu |
Commiter | sebastian_bugiu |
Disabled config.allowIpod as it also loaded OpenAL framework which we don't have on xrOS.
@@ -7,6 +7,8 @@ | ||
7 | 7 | objects = { |
8 | 8 | |
9 | 9 | /* Begin PBXBuildFile section */ |
10 | + 9E5026292A5723DE00AA3406 /* HotshotFramework.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */; }; | |
11 | + 9E50262A2A5723E900AA3406 /* HotshotFramework.xcframework in Copy Frameworks (1 item) */ = {isa = PBXBuildFile; fileRef = 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |
10 | 12 | 9E8C2B812A483C9600C4A88A /* RealityKitContent in Frameworks */ = {isa = PBXBuildFile; productRef = 9E8C2B802A483C9600C4A88A /* RealityKitContent */; }; |
11 | 13 | 9E8C2B832A483C9600C4A88A /* HotshotVRApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B822A483C9600C4A88A /* HotshotVRApp.swift */; }; |
12 | 14 | 9E8C2B852A483C9600C4A88A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B842A483C9600C4A88A /* ContentView.swift */; }; |
@@ -15,8 +17,6 @@ | ||
15 | 17 | 9E8C2B8C2A483C9700C4A88A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9E8C2B8B2A483C9700C4A88A /* Preview Assets.xcassets */; }; |
16 | 18 | 9E8C2B952A49559B00C4A88A /* OgreContentConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B942A49559B00C4A88A /* OgreContentConfiguration.swift */; }; |
17 | 19 | 9E8C2B9B2A49D30800C4A88A /* HotshotNativeApp.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B9A2A49D30800C4A88A /* HotshotNativeApp.m */; }; |
18 | - 9E8C2BE62A54A7EC00C4A88A /* HotshotFramework.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */; }; | |
19 | - 9E8C2BE72A54A7F100C4A88A /* HotshotFramework.xcframework in Copy Frameworks (1 item) */ = {isa = PBXBuildFile; fileRef = 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |
20 | 20 | /* End PBXBuildFile section */ |
21 | 21 | |
22 | 22 | /* Begin PBXCopyFilesBuildPhase section */ |
@@ -26,7 +26,7 @@ | ||
26 | 26 | dstPath = ""; |
27 | 27 | dstSubfolderSpec = 10; |
28 | 28 | files = ( |
29 | - 9E8C2BE72A54A7F100C4A88A /* HotshotFramework.xcframework in Copy Frameworks (1 item) */, | |
29 | + 9E50262A2A5723E900AA3406 /* HotshotFramework.xcframework in Copy Frameworks (1 item) */, | |
30 | 30 | ); |
31 | 31 | name = "Copy Frameworks (1 item)"; |
32 | 32 | runOnlyForDeploymentPostprocessing = 0; |
@@ -34,6 +34,7 @@ | ||
34 | 34 | /* End PBXCopyFilesBuildPhase section */ |
35 | 35 | |
36 | 36 | /* Begin PBXFileReference section */ |
37 | + 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = HotshotFramework.xcframework; sourceTree = "<group>"; }; | |
37 | 38 | 9E8C2B7B2A483C9600C4A88A /* HotshotVR.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HotshotVR.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
38 | 39 | 9E8C2B7F2A483C9600C4A88A /* RealityKitContent */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = RealityKitContent; sourceTree = "<group>"; }; |
39 | 40 | 9E8C2B822A483C9600C4A88A /* HotshotVRApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HotshotVRApp.swift; sourceTree = "<group>"; }; |
@@ -45,7 +46,6 @@ | ||
45 | 46 | 9E8C2B992A49D30800C4A88A /* HotshotVR-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HotshotVR-Bridging-Header.h"; sourceTree = "<group>"; }; |
46 | 47 | 9E8C2B9A2A49D30800C4A88A /* HotshotNativeApp.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HotshotNativeApp.m; sourceTree = "<group>"; }; |
47 | 48 | 9E8C2B9C2A49D37A00C4A88A /* HotshotNativeApp.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HotshotNativeApp.h; sourceTree = "<group>"; }; |
48 | - 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = HotshotFramework.xcframework; sourceTree = "<group>"; }; | |
49 | 49 | /* End PBXFileReference section */ |
50 | 50 | |
51 | 51 | /* Begin PBXFrameworksBuildPhase section */ |
@@ -53,7 +53,7 @@ | ||
53 | 53 | isa = PBXFrameworksBuildPhase; |
54 | 54 | buildActionMask = 2147483647; |
55 | 55 | files = ( |
56 | - 9E8C2BE62A54A7EC00C4A88A /* HotshotFramework.xcframework in Frameworks */, | |
56 | + 9E5026292A5723DE00AA3406 /* HotshotFramework.xcframework in Frameworks */, | |
57 | 57 | 9E8C2B812A483C9600C4A88A /* RealityKitContent in Frameworks */, |
58 | 58 | ); |
59 | 59 | runOnlyForDeploymentPostprocessing = 0; |
@@ -114,7 +114,7 @@ | ||
114 | 114 | 9E8C2B962A4988BB00C4A88A /* Frameworks */ = { |
115 | 115 | isa = PBXGroup; |
116 | 116 | children = ( |
117 | - 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */, | |
117 | + 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */, | |
118 | 118 | ); |
119 | 119 | name = Frameworks; |
120 | 120 | sourceTree = "<group>"; |
@@ -20,6 +20,7 @@ | ||
20 | 20 | NSLog("didFinishLaunchingWithOptions called") |
21 | 21 | var sdk:HotshotFrameworkDemo! |
22 | 22 | sdk = HotshotFrameworkDemo() |
23 | +// HotshotFrameworkDemo.hello() | |
23 | 24 | sdk.finishedLaunching(application) |
24 | 25 | NSLog("RoboVM version %@", sdk.roboVmVersion()) |
25 | 26 | return true; |
@@ -44,11 +45,15 @@ | ||
44 | 45 | |
45 | 46 | let mtlDevice = layerRenderer.device |
46 | 47 | var hotshotNativeApp = HotshotNativeApp() |
47 | - hotshotNativeApp.load() | |
48 | +// sdk.finishedLaunching(application) | |
49 | +// hotshotNativeApp.load() | |
48 | 50 | // MTLDevice mDevice = MTLCreateSystemDefaultDevice() |
49 | 51 | let renderThread = Thread { |
50 | 52 | // let engine = myEngineCreate(layerRenderer) |
51 | 53 | // myEngineRenderLoop(engine) |
54 | +// while (true) { | |
55 | +// sdk.finishedLaunching(application) | |
56 | +// } | |
52 | 57 | } |
53 | 58 | renderThread.name = "Render Thread" |
54 | 59 | renderThread.start() |
@@ -794,7 +794,9 @@ | ||
794 | 794 | miscParams.put("FSAA", ""); |
795 | 795 | miscParams.put("vsync", ""); |
796 | 796 | |
797 | - initializeNotchHeight(); | |
797 | + if (MainApp.SUBPLATFORM != MainApp.Platform.XROS) { | |
798 | + initializeNotchHeight(); | |
799 | + } | |
798 | 800 | } |
799 | 801 | |
800 | 802 | if (getNotchHeight() > 0.0) { |
@@ -170,6 +170,7 @@ | ||
170 | 170 | // Change here when building for specific platform. |
171 | 171 | // Cannot have same code on all platforms so the switch is necessary |
172 | 172 | public static Platform PLATFORM;// = Platform.DESKTOP; |
173 | + public static Platform SUBPLATFORM; | |
173 | 174 | public static DesktopPlatform DESKTOP_PLATFORM; |
174 | 175 | public static final int FEATURES_ENABLED = Features.createFeatures(Features.MULTIPLAYER); |
175 | 176 | public static final boolean DEV = true; |
@@ -3,7 +3,8 @@ | ||
3 | 3 | |
4 | 4 | sourceSets.main.java.srcDirs = [ "src/" ] |
5 | 5 | |
6 | -sourceCompatibility = '1.8' | |
6 | +sourceCompatibility = 1.8 | |
7 | +targetCompatibility = 1.8 | |
7 | 8 | [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |
8 | 9 | |
9 | 10 | ext { |
@@ -43,6 +43,7 @@ | ||
43 | 43 | // } |
44 | 44 | // }); |
45 | 45 | MainApp.PLATFORM = MainApp.Platform.IOS; |
46 | + MainApp.SUBPLATFORM = MainApp.Platform.XROS; | |
46 | 47 | iosLauncher = new IOSLauncher(); |
47 | 48 | |
48 | 49 | } |
@@ -72,6 +73,12 @@ | ||
72 | 73 | */ |
73 | 74 | @Method(selector = "hello") |
74 | 75 | public static void sayHello() { |
76 | + String s = null; | |
77 | + try { | |
78 | + s.toString(); | |
79 | + } catch (NullPointerException e) { | |
80 | + e.printStackTrace(); | |
81 | + } | |
75 | 82 | System.out.println("Hello world from RoboVM framework"); |
76 | 83 | } |
77 | 84 |
@@ -51,7 +51,10 @@ | ||
51 | 51 | // config.useWakelock = true; |
52 | 52 | // config.hideStatusBar = true; |
53 | 53 | // config.useImmersiveMode = true; |
54 | + // COMMENT NEXT 2 LINES FOR AUDIO ON IOS!!! | |
54 | 55 | config.useAudio = false; |
56 | + config.allowIpod = false; | |
57 | + | |
55 | 58 | config.colorFormat = GLKViewDrawableColorFormat.RGBA8888; |
56 | 59 | config.depthFormat = GLKViewDrawableDepthFormat._24; |
57 | 60 | config.hdpiMode = HdpiMode.Pixels; |