Skip to content

Commit

Permalink
feat: release 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed Mar 7, 2023
1 parent 1ed58ea commit 50a7c23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 27 deletions.
12 changes: 4 additions & 8 deletions GrowingToolsKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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

Expand Down
21 changes: 3 additions & 18 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let package = Package(
products: [
.library(
name: "GrowingToolsKit",
targets: ["GrowingToolsKit", "GrowingToolsKit_UseInDebugOnly"]
targets: ["GrowingToolsKit"]
),
.library(
name: "GrowingToolsKit_UseInRelease",
Expand Down Expand Up @@ -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"),
],
Expand Down Expand Up @@ -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"),
]
),

]
)
7 changes: 6 additions & 1 deletion Sources/Core/UseInRelease/GrowingTKUseInRelease.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 50a7c23

Please sign in to comment.