diff --git a/GrowingToolsKit.podspec b/GrowingToolsKit.podspec index ec03154..337d91d 100644 --- a/GrowingToolsKit.podspec +++ b/GrowingToolsKit.podspec @@ -22,11 +22,7 @@ TODO: Add long description of the pod here. s.ios.frameworks = 'UIKit', 'WebKit' s.source_files = 'Sources/GrowingToolsKit/GrowingToolsKit{.h,.m}' s.public_header_files = 'Sources/GrowingToolsKit/GrowingToolsKit.h' - s.default_subspec = 'UseInDebugOnly' - s.subspec 'UseInDebugOnly' do |subspec| - subspec.source_files = 'Sources/Core/UseInRelease/GrowingTKUseInDebugOnly.m' - subspec.dependency 'GrowingToolsKit/Default' - end + s.default_subspec = 'Default' s.subspec 'UseInRelease' do |subspec| subspec.source_files = 'Sources/GrowingToolsKit/GrowingToolsKit{.h,.m}', 'Sources/Core/UseInRelease/GrowingTKUseInRelease.m' @@ -47,7 +43,7 @@ TODO: Add long description of the pod here. end s.subspec 'SDK30202' do |sdk30202| - sdk30202.source_files = 'Sources/GrowingToolsKit/GrowingToolsKit{.h,.m}', 'Sources/Core/UseInRelease/GrowingTKUseInDebugOnly.m' + sdk30202.source_files = 'Sources/GrowingToolsKit/GrowingToolsKit{.h,.m}' sdk30202.public_header_files = 'Sources/GrowingToolsKit/GrowingToolsKit.h' sdk30202.dependency 'GrowingToolsKit/Default' sdk30202.pod_target_xcconfig = { @@ -58,7 +54,7 @@ TODO: Add long description of the pod here. end s.subspec 'SDK2nd' do |sdk2nd| - sdk2nd.source_files = 'Sources/GrowingToolsKit/GrowingToolsKit{.h,.m}', 'Sources/Core/UseInRelease/GrowingTKUseInDebugOnly.m' + sdk2nd.source_files = 'Sources/GrowingToolsKit/GrowingToolsKit{.h,.m}' sdk2nd.public_header_files = 'Sources/GrowingToolsKit/GrowingToolsKit.h' sdk2nd.dependency 'GrowingToolsKit/Default' sdk2nd.pod_target_xcconfig = { @@ -71,7 +67,7 @@ TODO: Add long description of the pod here. s.subspec 'Core' do |core| core.source_files = 'Sources/Core/**/*{.h,.m,.c,.cpp,.mm}' core.public_header_files = 'Sources/Core/Public/*.h' - core.exclude_files = 'Sources/Core/UseInRelease' + core.exclude_files = 'Sources/Core/UseInRelease/GrowingTKUseInRelease.m' core.resource_bundles = {'GrowingToolsKit' => ['Sources/Core/Resources/**/*']} end diff --git a/Package.swift b/Package.swift index 6d75bd2..181be96 100644 --- a/Package.swift +++ b/Package.swift @@ -29,7 +29,7 @@ let package = Package( products: [ .library( name: "GrowingToolsKit", - targets: ["GrowingToolsKit", "GrowingToolsKit_UseInDebugOnly"] + targets: ["GrowingToolsKit"] ), .library( name: "GrowingToolsKit_UseInRelease", @@ -73,7 +73,7 @@ let package = Package( name: "GrowingToolsKit_Core", dependencies: [], path: "Sources/Core", - exclude: ["UseInRelease"], + exclude: ["UseInRelease/GrowingTKUseInRelease.m"], resources: [ .process("Resources/gio_hybrid.min.js"), ], @@ -303,27 +303,12 @@ let package = Package( "GrowingToolsKit_Core", ], path: "Sources/Core/UseInRelease", - exclude: ["GrowingTKUseInDebugOnly.m"], + sources: ["GrowingTKUseInRelease.m"], cSettings: [ .headerSearchPath(".."), .headerSearchPath("../Categories/UIKit"), .headerSearchPath("../Tools"), ] ), - - .target( - name: "GrowingToolsKit_UseInDebugOnly", - dependencies: [ - "GrowingToolsKit_Core", - ], - path: "Sources/Core/UseInRelease", - exclude: ["GrowingTKUseInRelease.m"], - cSettings: [ - .headerSearchPath(".."), - .headerSearchPath("../Categories/UIKit"), - .headerSearchPath("../Tools"), - ] - ), - ] ) diff --git a/Sources/Core/UseInRelease/GrowingTKUseInRelease.m b/Sources/Core/UseInRelease/GrowingTKUseInRelease.m index 4eed854..86c3a58 100644 --- a/Sources/Core/UseInRelease/GrowingTKUseInRelease.m +++ b/Sources/Core/UseInRelease/GrowingTKUseInRelease.m @@ -19,10 +19,15 @@ #import "GrowingTKDefine.h" -@implementation GrowingTKUseInRelease +@implementation GrowingTKUseInRelease (UseInRelease) + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation" + (BOOL)activeOrNot { return YES; } +#pragma clang diagnostic pop + @end