Skip to content

Commit

Permalink
Multi-platform support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Mar 28, 2024
1 parent 7b6651b commit 0cf03ba
Show file tree
Hide file tree
Showing 42 changed files with 2,005,719 additions and 1,662 deletions.
21 changes: 21 additions & 0 deletions Projects/Configurations/Multiplatform.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// add support for all platforms
SUPPORTED_PLATFORMS = macosx iphonesimulator iphoneos appletvsimulator appletvos xrsimulator xros watchsimulator watchos

// support all devices types:
// 1: iPhone
// 2: iPad
// 3: TV
// 4: Watch
// 5: ???
// 6: Unscaled Catalyst
// 7: Vision
TARGETED_DEVICE_FAMILY = 1,2,3,4,6,7

//:configuration = Debug
INFOPLIST_KEY_UISupportedInterfaceOrientations[sdk=watch*] = UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad[sdk=iphone*] = UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone[sdk=iphone*] = UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight

SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES

10 changes: 10 additions & 0 deletions Projects/Configurations/NeonExample.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "Configurations/MultiPlatform.xcconfig"

CODE_SIGN_ENTITLEMENTS = ${TARGET_NAME}/${TARGET_NAME}.entitlements
DEVELOPMENT_ASSET_PATHS = ${TARGET_NAME}/Preview\ Content
GENERATE_INFOPLIST_FILE = YES
//INFOPLIST_FILE = ${TARGET_NAME}/Info.plist
INFOPLIST_KEY_WKWatchOnly[sdk=watch*] = YES
LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks
LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = @executable_path/../Frameworks
SKIP_INSTALL = NO
8 changes: 8 additions & 0 deletions Projects/Configurations/Project-Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "Project.xcconfig"

ENABLE_TESTABILITY = YES
GCC_OPTIMIZATION_LEVEL = 0
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG
SWIFT_COMPILATION_MODE = $(inherited)
SWIFT_OPTIMIZATION_LEVEL = -Onone
29 changes: 29 additions & 0 deletions Projects/Configurations/Project.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ALWAYS_SEARCH_USER_PATHS = NO
CLANG_ENABLE_MODULES = YES
CLANG_ENABLE_OBJC_ARC = YES
CLANG_ENABLE_OBJC_WEAK = YES
CODE_SIGN_IDENTITY = Apple Development
CODE_SIGN_STYLE = Automatic
CURRENT_PROJECT_DISPLAY_VERSION = 1.0.0
CURRENT_PROJECT_VERSION = 1
DEAD_CODE_STRIPPING = YES
ENABLE_HARDENED_RUNTIME = YES
IPHONEOS_DEPLOYMENT_TARGET = 15.0
MACOSX_DEPLOYMENT_TARGET = 12.0
MARKETING_VERSION = $CURRENT_PROJECT_DISPLAY_VERSION
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_ID_PREFIX)com.chimehq.${PRODUCT_MODULE_NAME}
PRODUCT_MODULE_NAME = ${TARGET_NAME}
PRODUCT_NAME = $(TARGET_NAME)
PRODUCT_NAME = ${TARGET_NAME}
SKIP_INSTALL = YES
SWIFT_COMPILATION_MODE = wholemodule
SWIFT_STRICT_CONCURRENCY = complete
SWIFT_VERSION = 5.0
TVOS_DEPLOYMENT_TARGET = 15.0
VISIONOS_DEPLOYMENT_TARGET = 1.0
WATCHOS_DEPLOYMENT_TARGET = 10.0

// missing stuff?
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor
23 changes: 0 additions & 23 deletions Projects/NeonExample-iOS/AppDelegate.swift

This file was deleted.

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions Projects/NeonExample-iOS/Base.lproj/LaunchScreen.storyboard

This file was deleted.

24 changes: 0 additions & 24 deletions Projects/NeonExample-iOS/Base.lproj/Main.storyboard

This file was deleted.

25 changes: 0 additions & 25 deletions Projects/NeonExample-iOS/Info.plist

This file was deleted.

40 changes: 0 additions & 40 deletions Projects/NeonExample-iOS/SceneDelegate.swift

This file was deleted.

66 changes: 0 additions & 66 deletions Projects/NeonExample-iOS/ViewController.swift

This file was deleted.

Loading

0 comments on commit 0cf03ba

Please sign in to comment.