diff --git a/Demo/demo-SPM/Shared/Assets.xcassets/AccentColor.colorset/Contents.json b/Demo/demo-SPM/Shared/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 000000000..eb8789700 --- /dev/null +++ b/Demo/demo-SPM/Shared/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/demo-SPM/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json b/Demo/demo-SPM/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..c136eaff7 --- /dev/null +++ b/Demo/demo-SPM/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,148 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/demo-SPM/Shared/Assets.xcassets/Contents.json b/Demo/demo-SPM/Shared/Assets.xcassets/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/Demo/demo-SPM/Shared/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/demo-SPM/Shared/ContentView.swift b/Demo/demo-SPM/Shared/ContentView.swift new file mode 100644 index 000000000..a943d2fff --- /dev/null +++ b/Demo/demo-SPM/Shared/ContentView.swift @@ -0,0 +1,35 @@ +// +// ContentView.swift +// Shared +// +// Created by kintan on 2021/5/3. +// + +import SwiftUI +import KSPlayer +struct ContentView: View { + var body: some View { + Text("Hello, world!") + .padding() + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} + +struct StructPlayerView: UIViewRepresentable { + typealias UIViewType = VideoPlayerView + var resource: KSPlayerResource? + func makeUIView(context _: UIViewRepresentableContext) -> VideoPlayerView { + IOSVideoPlayerView() + } + + func updateUIView(_ uiView: VideoPlayerView, context _: UIViewRepresentableContext) { + if let resource = resource { + uiView.set(resource: resource) + } + } +} diff --git a/Demo/demo-SPM/Shared/demo_SPMApp.swift b/Demo/demo-SPM/Shared/demo_SPMApp.swift new file mode 100644 index 000000000..62da30762 --- /dev/null +++ b/Demo/demo-SPM/Shared/demo_SPMApp.swift @@ -0,0 +1,17 @@ +// +// demo_SPMApp.swift +// Shared +// +// Created by kintan on 2021/5/3. +// + +import SwiftUI + +@main +struct demo_SPMApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/Demo/demo-SPM/demo-SPM.xcodeproj/project.pbxproj b/Demo/demo-SPM/demo-SPM.xcodeproj/project.pbxproj new file mode 100644 index 000000000..a0da8b201 --- /dev/null +++ b/Demo/demo-SPM/demo-SPM.xcodeproj/project.pbxproj @@ -0,0 +1,471 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + AC77DFC326402329001351AE /* demo_SPMApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC77DFB026402327001351AE /* demo_SPMApp.swift */; }; + AC77DFC426402329001351AE /* demo_SPMApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC77DFB026402327001351AE /* demo_SPMApp.swift */; }; + AC77DFC526402329001351AE /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC77DFB126402327001351AE /* ContentView.swift */; }; + AC77DFC626402329001351AE /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC77DFB126402327001351AE /* ContentView.swift */; }; + AC77DFC726402329001351AE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AC77DFB226402329001351AE /* Assets.xcassets */; }; + AC77DFC826402329001351AE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AC77DFB226402329001351AE /* Assets.xcassets */; }; + AC77DFDC26402464001351AE /* KSPlayer in Frameworks */ = {isa = PBXBuildFile; productRef = AC77DFDB26402464001351AE /* KSPlayer */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + AC77DFB026402327001351AE /* demo_SPMApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = demo_SPMApp.swift; sourceTree = ""; }; + AC77DFB126402327001351AE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + AC77DFB226402329001351AE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + AC77DFB726402329001351AE /* demo-SPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "demo-SPM.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + AC77DFBA26402329001351AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + AC77DFBF26402329001351AE /* demo-SPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "demo-SPM.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + AC77DFC126402329001351AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + AC77DFC226402329001351AE /* macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = macOS.entitlements; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + AC77DFB426402329001351AE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + AC77DFDC26402464001351AE /* KSPlayer in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + AC77DFBC26402329001351AE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + AC77DFAA26402327001351AE = { + isa = PBXGroup; + children = ( + AC77DFAF26402327001351AE /* Shared */, + AC77DFB926402329001351AE /* iOS */, + AC77DFC026402329001351AE /* macOS */, + AC77DFB826402329001351AE /* Products */, + ); + sourceTree = ""; + }; + AC77DFAF26402327001351AE /* Shared */ = { + isa = PBXGroup; + children = ( + AC77DFB026402327001351AE /* demo_SPMApp.swift */, + AC77DFB126402327001351AE /* ContentView.swift */, + AC77DFB226402329001351AE /* Assets.xcassets */, + ); + path = Shared; + sourceTree = ""; + }; + AC77DFB826402329001351AE /* Products */ = { + isa = PBXGroup; + children = ( + AC77DFB726402329001351AE /* demo-SPM.app */, + AC77DFBF26402329001351AE /* demo-SPM.app */, + ); + name = Products; + sourceTree = ""; + }; + AC77DFB926402329001351AE /* iOS */ = { + isa = PBXGroup; + children = ( + AC77DFBA26402329001351AE /* Info.plist */, + ); + path = iOS; + sourceTree = ""; + }; + AC77DFC026402329001351AE /* macOS */ = { + isa = PBXGroup; + children = ( + AC77DFC126402329001351AE /* Info.plist */, + AC77DFC226402329001351AE /* macOS.entitlements */, + ); + path = macOS; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + AC77DFB626402329001351AE /* demo-SPM (iOS) */ = { + isa = PBXNativeTarget; + buildConfigurationList = AC77DFCB26402329001351AE /* Build configuration list for PBXNativeTarget "demo-SPM (iOS)" */; + buildPhases = ( + AC77DFB326402329001351AE /* Sources */, + AC77DFB426402329001351AE /* Frameworks */, + AC77DFB526402329001351AE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "demo-SPM (iOS)"; + packageProductDependencies = ( + AC77DFDB26402464001351AE /* KSPlayer */, + ); + productName = "demo-SPM (iOS)"; + productReference = AC77DFB726402329001351AE /* demo-SPM.app */; + productType = "com.apple.product-type.application"; + }; + AC77DFBE26402329001351AE /* demo-SPM (macOS) */ = { + isa = PBXNativeTarget; + buildConfigurationList = AC77DFCE26402329001351AE /* Build configuration list for PBXNativeTarget "demo-SPM (macOS)" */; + buildPhases = ( + AC77DFBB26402329001351AE /* Sources */, + AC77DFBC26402329001351AE /* Frameworks */, + AC77DFBD26402329001351AE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "demo-SPM (macOS)"; + productName = "demo-SPM (macOS)"; + productReference = AC77DFBF26402329001351AE /* demo-SPM.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + AC77DFAB26402327001351AE /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1240; + LastUpgradeCheck = 1240; + TargetAttributes = { + AC77DFB626402329001351AE = { + CreatedOnToolsVersion = 12.4; + }; + AC77DFBE26402329001351AE = { + CreatedOnToolsVersion = 12.4; + }; + }; + }; + buildConfigurationList = AC77DFAE26402327001351AE /* Build configuration list for PBXProject "demo-SPM" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = AC77DFAA26402327001351AE; + packageReferences = ( + AC77DFDA26402464001351AE /* XCRemoteSwiftPackageReference "." */, + ); + productRefGroup = AC77DFB826402329001351AE /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + AC77DFB626402329001351AE /* demo-SPM (iOS) */, + AC77DFBE26402329001351AE /* demo-SPM (macOS) */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + AC77DFB526402329001351AE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AC77DFC726402329001351AE /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + AC77DFBD26402329001351AE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AC77DFC826402329001351AE /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + AC77DFB326402329001351AE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AC77DFC526402329001351AE /* ContentView.swift in Sources */, + AC77DFC326402329001351AE /* demo_SPMApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + AC77DFBB26402329001351AE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AC77DFC626402329001351AE /* ContentView.swift in Sources */, + AC77DFC426402329001351AE /* demo_SPMApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + AC77DFC926402329001351AE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + AC77DFCA26402329001351AE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + AC77DFCC26402329001351AE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; + DEVELOPMENT_TEAM = LY6BSMT7G9; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = iOS/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "kintan.demo-SPM"; + PRODUCT_NAME = "demo-SPM"; + PROVISIONING_PROFILE_SPECIFIER = husihua_syspolicyd_Wildcard_8HG3E6QPJU; + SDKROOT = iphoneos; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + AC77DFCD26402329001351AE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; + DEVELOPMENT_TEAM = LY6BSMT7G9; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = iOS/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "kintan.demo-SPM"; + PRODUCT_NAME = "demo-SPM"; + PROVISIONING_PROFILE_SPECIFIER = husihua_syspolicyd_Wildcard_8HG3E6QPJU; + SDKROOT = iphoneos; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + AC77DFCF26402329001351AE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = macOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 11.0; + PRODUCT_BUNDLE_IDENTIFIER = "kintan.demo-SPM"; + PRODUCT_NAME = "demo-SPM"; + SDKROOT = macosx; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + AC77DFD026402329001351AE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = macOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 11.0; + PRODUCT_BUNDLE_IDENTIFIER = "kintan.demo-SPM"; + PRODUCT_NAME = "demo-SPM"; + SDKROOT = macosx; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + AC77DFAE26402327001351AE /* Build configuration list for PBXProject "demo-SPM" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AC77DFC926402329001351AE /* Debug */, + AC77DFCA26402329001351AE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AC77DFCB26402329001351AE /* Build configuration list for PBXNativeTarget "demo-SPM (iOS)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AC77DFCC26402329001351AE /* Debug */, + AC77DFCD26402329001351AE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AC77DFCE26402329001351AE /* Build configuration list for PBXNativeTarget "demo-SPM (macOS)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AC77DFCF26402329001351AE /* Debug */, + AC77DFD026402329001351AE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + AC77DFDA26402464001351AE /* XCRemoteSwiftPackageReference "." */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = ../..; + requirement = { + branch = develop; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + AC77DFDB26402464001351AE /* KSPlayer */ = { + isa = XCSwiftPackageProductDependency; + package = AC77DFDA26402464001351AE /* XCRemoteSwiftPackageReference "." */; + productName = KSPlayer; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = AC77DFAB26402327001351AE /* Project object */; +} diff --git a/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..919434a62 --- /dev/null +++ b/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 000000000..f6b9cd2f4 --- /dev/null +++ b/Demo/demo-SPM/demo-SPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "KSPlayer", + "repositoryURL": "/Users/kintan/Documents/GitLab/KSPlayer", + "state": { + "branch": "develop", + "revision": "dbc50f437639992e5ab358d7de6ac56b75ec7ff4", + "version": null + } + } + ] + }, + "version": 1 +} diff --git a/Demo/demo-SPM/iOS/Info.plist b/Demo/demo-SPM/iOS/Info.plist new file mode 100644 index 000000000..efc211a0c --- /dev/null +++ b/Demo/demo-SPM/iOS/Info.plist @@ -0,0 +1,50 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + + UIApplicationSupportsIndirectInputEvents + + UILaunchScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Demo/demo-SPM/macOS/Info.plist b/Demo/demo-SPM/macOS/Info.plist new file mode 100644 index 000000000..bacbc5688 --- /dev/null +++ b/Demo/demo-SPM/macOS/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + + diff --git a/Demo/demo-SPM/macOS/macOS.entitlements b/Demo/demo-SPM/macOS/macOS.entitlements new file mode 100644 index 000000000..f2ef3ae02 --- /dev/null +++ b/Demo/demo-SPM/macOS/macOS.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/Demo/demo-SwiftUI/demo-SwiftUI/ContentView.swift b/Demo/demo-SwiftUI/demo-SwiftUI/ContentView.swift index 72c55fd81..65367c5e7 100644 --- a/Demo/demo-SwiftUI/demo-SwiftUI/ContentView.swift +++ b/Demo/demo-SwiftUI/demo-SwiftUI/ContentView.swift @@ -124,7 +124,7 @@ struct MasterView: View { } } -struct ContentView_Prreviews: PreviewProvider { +struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() }