ios2 attempt 2 #5
No files matched your search
@@ -3,3 +3,7 @@
|
|||||||
* macOS
|
* macOS
|
||||||
|
|
||||||
`brew install raylib`
|
`brew install raylib`
|
||||||
|
|
||||||
|
* iOS
|
||||||
|
|
||||||
|
`brew install xcodegen`
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
@main
|
||||||
|
struct ChkgfxApp: App {
|
||||||
|
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||||||
|
|
||||||
|
var body: some Scene {
|
||||||
|
WindowGroup {
|
||||||
|
ChkgfxView(appDelegate.chkgfxVM)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../components/chkgfx/chkgfx.swift
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../components/chkgfx/chkgfxVM.swift
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../components/chkgfx/ios/view/ChkgfxView.swift
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
../../ver-mac/src/dialect.swift
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../components/other/other.swift
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
import AppKit
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
@main
|
@main
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import AppKit
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct GameApp: App {
|
struct MahjongApp: App {
|
||||||
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||||||
|
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
Reference in new issue
Block a user