From aadfe206f3233032d8742a17c1f21d4750946a41 Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 16 Jul 2025 14:54:44 +0700 Subject: aaaarggh!!! --- ios/client/AppDelegate.swift | 70 ++++++++++++++++++ .../AppIcon.appiconset/App-Icon-1024x1024@1x.png | Bin 0 -> 59468 bytes .../AppIcon.appiconset/Contents.json | 14 ++++ ios/client/Images.xcassets/Contents.json | 6 ++ .../SplashScreenBackground.colorset/Contents.json | 20 ++++++ .../SplashScreenLogo.imageset/Contents.json | 23 ++++++ .../SplashScreenLogo.imageset/image.png | Bin 0 -> 14711 bytes .../SplashScreenLogo.imageset/image@2x.png | Bin 0 -> 32766 bytes .../SplashScreenLogo.imageset/image@3x.png | Bin 0 -> 52602 bytes ios/client/Info.plist | 79 +++++++++++++++++++++ ios/client/SplashScreen.storyboard | 42 +++++++++++ ios/client/Supporting/Expo.plist | 12 ++++ ios/client/client-Bridging-Header.h | 3 + ios/client/client.entitlements | 5 ++ 14 files changed, 274 insertions(+) create mode 100644 ios/client/AppDelegate.swift create mode 100644 ios/client/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png create mode 100644 ios/client/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 ios/client/Images.xcassets/Contents.json create mode 100644 ios/client/Images.xcassets/SplashScreenBackground.colorset/Contents.json create mode 100644 ios/client/Images.xcassets/SplashScreenLogo.imageset/Contents.json create mode 100644 ios/client/Images.xcassets/SplashScreenLogo.imageset/image.png create mode 100644 ios/client/Images.xcassets/SplashScreenLogo.imageset/image@2x.png create mode 100644 ios/client/Images.xcassets/SplashScreenLogo.imageset/image@3x.png create mode 100644 ios/client/Info.plist create mode 100644 ios/client/SplashScreen.storyboard create mode 100644 ios/client/Supporting/Expo.plist create mode 100644 ios/client/client-Bridging-Header.h create mode 100644 ios/client/client.entitlements (limited to 'ios/client') diff --git a/ios/client/AppDelegate.swift b/ios/client/AppDelegate.swift new file mode 100644 index 0000000..a7887e1 --- /dev/null +++ b/ios/client/AppDelegate.swift @@ -0,0 +1,70 @@ +import Expo +import React +import ReactAppDependencyProvider + +@UIApplicationMain +public class AppDelegate: ExpoAppDelegate { + var window: UIWindow? + + var reactNativeDelegate: ExpoReactNativeFactoryDelegate? + var reactNativeFactory: RCTReactNativeFactory? + + public override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil + ) -> Bool { + let delegate = ReactNativeDelegate() + let factory = ExpoReactNativeFactory(delegate: delegate) + delegate.dependencyProvider = RCTAppDependencyProvider() + + reactNativeDelegate = delegate + reactNativeFactory = factory + bindReactNativeFactory(factory) + +#if os(iOS) || os(tvOS) + window = UIWindow(frame: UIScreen.main.bounds) + factory.startReactNative( + withModuleName: "main", + in: window, + launchOptions: launchOptions) +#endif + + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } + + // Linking API + public override func application( + _ app: UIApplication, + open url: URL, + options: [UIApplication.OpenURLOptionsKey: Any] = [:] + ) -> Bool { + return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options) + } + + // Universal Links + public override func application( + _ application: UIApplication, + continue userActivity: NSUserActivity, + restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void + ) -> Bool { + let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler) + return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result + } +} + +class ReactNativeDelegate: ExpoReactNativeFactoryDelegate { + // Extension point for config-plugins + + override func sourceURL(for bridge: RCTBridge) -> URL? { + // needed to return the correct URL for expo-dev-client. + bridge.bundleURL ?? bundleURL() + } + + override func bundleURL() -> URL? { +#if DEBUG + return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry") +#else + return Bundle.main.url(forResource: "main", withExtension: "jsbundle") +#endif + } +} diff --git a/ios/client/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png b/ios/client/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png new file mode 100644 index 0000000..2732229 Binary files /dev/null and b/ios/client/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png differ diff --git a/ios/client/Images.xcassets/AppIcon.appiconset/Contents.json b/ios/client/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..90d8d4c --- /dev/null +++ b/ios/client/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images": [ + { + "filename": "App-Icon-1024x1024@1x.png", + "idiom": "universal", + "platform": "ios", + "size": "1024x1024" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} \ No newline at end of file diff --git a/ios/client/Images.xcassets/Contents.json b/ios/client/Images.xcassets/Contents.json new file mode 100644 index 0000000..ed285c2 --- /dev/null +++ b/ios/client/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "expo" + } +} diff --git a/ios/client/Images.xcassets/SplashScreenBackground.colorset/Contents.json b/ios/client/Images.xcassets/SplashScreenBackground.colorset/Contents.json new file mode 100644 index 0000000..15f02ab --- /dev/null +++ b/ios/client/Images.xcassets/SplashScreenBackground.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors": [ + { + "color": { + "components": { + "alpha": "1.000", + "blue": "1.00000000000000", + "green": "1.00000000000000", + "red": "1.00000000000000" + }, + "color-space": "srgb" + }, + "idiom": "universal" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} \ No newline at end of file diff --git a/ios/client/Images.xcassets/SplashScreenLogo.imageset/Contents.json b/ios/client/Images.xcassets/SplashScreenLogo.imageset/Contents.json new file mode 100644 index 0000000..f65c008 --- /dev/null +++ b/ios/client/Images.xcassets/SplashScreenLogo.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images": [ + { + "idiom": "universal", + "filename": "image.png", + "scale": "1x" + }, + { + "idiom": "universal", + "filename": "image@2x.png", + "scale": "2x" + }, + { + "idiom": "universal", + "filename": "image@3x.png", + "scale": "3x" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} \ No newline at end of file diff --git a/ios/client/Images.xcassets/SplashScreenLogo.imageset/image.png b/ios/client/Images.xcassets/SplashScreenLogo.imageset/image.png new file mode 100644 index 0000000..635530a Binary files /dev/null and b/ios/client/Images.xcassets/SplashScreenLogo.imageset/image.png differ diff --git a/ios/client/Images.xcassets/SplashScreenLogo.imageset/image@2x.png b/ios/client/Images.xcassets/SplashScreenLogo.imageset/image@2x.png new file mode 100644 index 0000000..d4e41ea Binary files /dev/null and b/ios/client/Images.xcassets/SplashScreenLogo.imageset/image@2x.png differ diff --git a/ios/client/Images.xcassets/SplashScreenLogo.imageset/image@3x.png b/ios/client/Images.xcassets/SplashScreenLogo.imageset/image@3x.png new file mode 100644 index 0000000..67ee127 Binary files /dev/null and b/ios/client/Images.xcassets/SplashScreenLogo.imageset/image@3x.png differ diff --git a/ios/client/Info.plist b/ios/client/Info.plist new file mode 100644 index 0000000..e4d4c1b --- /dev/null +++ b/ios/client/Info.plist @@ -0,0 +1,79 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + client + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleURLTypes + + + CFBundleURLSchemes + + client + com.tugsor.client + + + + CFBundleVersion + 1 + LSMinimumSystemVersion + 12.0 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSAllowsLocalNetworking + + + NSUserActivityTypes + + $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route + + UILaunchStoryboardName + SplashScreen + UIRequiredDeviceCapabilities + + arm64 + + UIRequiresFullScreen + + UIStatusBarStyle + UIStatusBarStyleDefault + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIUserInterfaceStyle + Automatic + UIViewControllerBasedStatusBarAppearance + + + \ No newline at end of file diff --git a/ios/client/SplashScreen.storyboard b/ios/client/SplashScreen.storyboard new file mode 100644 index 0000000..158767f --- /dev/null +++ b/ios/client/SplashScreen.storyboard @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios/client/Supporting/Expo.plist b/ios/client/Supporting/Expo.plist new file mode 100644 index 0000000..750be02 --- /dev/null +++ b/ios/client/Supporting/Expo.plist @@ -0,0 +1,12 @@ + + + + + EXUpdatesCheckOnLaunch + ALWAYS + EXUpdatesEnabled + + EXUpdatesLaunchWaitMs + 0 + + \ No newline at end of file diff --git a/ios/client/client-Bridging-Header.h b/ios/client/client-Bridging-Header.h new file mode 100644 index 0000000..8361941 --- /dev/null +++ b/ios/client/client-Bridging-Header.h @@ -0,0 +1,3 @@ +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// diff --git a/ios/client/client.entitlements b/ios/client/client.entitlements new file mode 100644 index 0000000..f683276 --- /dev/null +++ b/ios/client/client.entitlements @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file -- cgit v1.2.3