make chkgfx ios stub

This commit is contained in:
Михаил Капелько committed 2026-10-22 06:39:47 +03:00
1 parent b00aac5042
commit 3ae9275dd4
15 files changed
+96 -3

No files matched your search

+4
View File
@@ -3,3 +3,7 @@
* macOS
`brew install raylib`
* iOS
`brew install xcodegen`
+1
View File
@@ -0,0 +1 @@
../../mac/view/ChkgfxView.swift
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "AppIcon.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
+26
View File
@@ -0,0 +1,26 @@
<?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>CFBundleName</key>
<string>OGS chkgfx</string>
<key>CFBundleDisplayName</key>
<string>OGS chkgfx</string>
<key>CFBundleIdentifier</key>
<string>org.opengamestudio.chkgfx</string>
<key>CFBundleExecutable</key>
<string>ogs-chkgfx</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UILaunchScreen</key>
<dict/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
+14
View File
@@ -0,0 +1,14 @@
name: OGS chkgfx
options:
bundleIdPrefix: org.opengamestudio
targets:
ogs-chkgfx:
type: application
platform: iOS
deploymentTarget: "15.0"
sources:
- path: Assets.xcassets
- path: src
settings:
base:
INFOPLIST_FILE: Info.plist
+19
View File
@@ -0,0 +1,19 @@
import UIKit
final class AppDelegate:
NSObject,
UIApplicationDelegate
{
let chkgfx = ChkgfxComponent()
let chkgfxVM = ChkgfxVM()
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
otherSetupConsoleLogging(chkgfx.ctrl, "Chkgfx")
chkgfx.setup()
return true
}
}
+12
View File
@@ -0,0 +1,12 @@
import SwiftUI
@main
struct ChkgfxApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
var body: some Scene {
WindowGroup {
ChkgfxView(appDelegate.chkgfxVM)
}
}
}
+1
View File
@@ -0,0 +1 @@
../../../../components/chkgfx/chkgfx.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/chkgfx/chkgfxVM.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/chkgfx/ios/view/ChkgfxView.swift
+1
View File
@@ -0,0 +1 @@
../../ver-mac/src/dialect.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/other/other.swift
-1
View File
@@ -1,4 +1,3 @@
import AppKit
import SwiftUI
@main
@@ -1,8 +1,7 @@
import AppKit
import SwiftUI
@main
struct GameApp: App {
struct MahjongApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
var body: some Scene {