Skip to content

Commit 3d47d32

Browse files
authored
Fix Podspec (#18)
* fix podspec * fix indentation * podspec linting only on release * remove bigsur * update GA nodes * change macos14
1 parent daebeab commit 3d47d32

File tree

3 files changed

+48
-42
lines changed

3 files changed

+48
-42
lines changed

.github/workflows/ci.yml

+28-24
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,6 @@ on:
99
- '*'
1010

1111
jobs:
12-
build-big-sur:
13-
strategy:
14-
matrix:
15-
xcode:
16-
- '12.5.1'
17-
runs-on: macos-11
18-
steps:
19-
- uses: actions/checkout@v2
20-
- name: Select Xcode ${{ matrix.xcode }}
21-
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
22-
- name: Run Build
23-
run: swift build
24-
unit_test-big-sur:
25-
strategy:
26-
matrix:
27-
xcode:
28-
- '12.5.1'
29-
runs-on: macos-11
30-
steps:
31-
- uses: actions/checkout@v2
32-
- name: Select Xcode ${{ matrix.xcode }}
33-
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
34-
- name: Run tests
35-
run: swift test --enable-test-discovery --enable-code-coverage | xcpretty
3612
build-monterey:
3713
strategy:
3814
matrix:
@@ -70,6 +46,7 @@ jobs:
7046
matrix:
7147
xcode:
7248
- '14.3.1'
49+
- '15.2'
7350
runs-on: macos-13
7451
steps:
7552
- uses: actions/checkout@v2
@@ -82,7 +59,34 @@ jobs:
8259
matrix:
8360
xcode:
8461
- '14.3.1'
62+
- '15.2'
8563
runs-on: macos-13
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Select Xcode ${{ matrix.xcode }}
67+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
68+
- name: Run tests
69+
run: swift test --enable-test-discovery --enable-code-coverage | xcpretty
70+
build-sonoma:
71+
strategy:
72+
matrix:
73+
xcode:
74+
- '15.4'
75+
- '16.1'
76+
runs-on: macos-14
77+
steps:
78+
- uses: actions/checkout@v2
79+
- name: Select Xcode ${{ matrix.xcode }}
80+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
81+
- name: Run Build
82+
run: swift build
83+
unit_test-sonoma:
84+
strategy:
85+
matrix:
86+
xcode:
87+
- '15.4'
88+
- '16.1'
89+
runs-on: macos-14
8690
steps:
8791
- uses: actions/checkout@v2
8892
- name: Select Xcode ${{ matrix.xcode }}

.github/workflows/podspec.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Podspec
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- '*'
4+
release:
5+
types: [created, published]
106

117
jobs:
128
linting:

TPTweak.podspec

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
Pod::Spec.new do |spec|
2-
spec.name = "TPTweak"
3-
spec.version = "2.0.2"
4-
spec.summary = "TPTweak is a debugging tool to help adjust your iOS app on the fly without recompile"
2+
spec.name = "TPTweak"
3+
spec.version = "2.0.2"
4+
spec.summary = "TPTweak is a debugging tool to help adjust your iOS app on the fly without recompile"
55

6-
spec.license = { :type => "Apache 2.0", :file => "LICENSE.md" }
7-
spec.author = { "Wendy Liga" => "wendy.liga@tokopedia.com" }
8-
spec.homepage = "https://github.com/tokopedia/ios-tptweak"
6+
spec.license = { :type => "Apache 2.0", :file => "LICENSE.md" }
7+
spec.author = { "Wendy Liga" => "wendy.liga@tokopedia.com" }
8+
spec.homepage = "https://github.com/tokopedia/ios-tptweak"
99

10-
spec.platform = :ios, "11.0"
11-
spec.swift_versions = ["5.4"]
12-
spec.source = { :git => "https://github.com/tokopedia/ios-tptweak.git", :tag => "#{spec.version}" }
13-
spec.source_files = "Sources/TPTweak/**/*.swift"
10+
spec.platform = :ios, "11.0"
11+
spec.swift_versions = ["5.4"]
12+
spec.source = { :git => "https://github.com/tokopedia/ios-tptweak.git", :tag => "#{spec.version}" }
13+
spec.source_files = "Sources/TPTweak/**/*.swift"
14+
spec.default_subspec = "Core"
1415

15-
spec.subspec 'DevTools' do |sp|
16-
sp.compiler_flags = '-DUSE_DEVTOOLS'
16+
spec.subspec 'Core' do |ss|
17+
ss.source_files = "Sources/TPTweak/"
18+
end
19+
20+
spec.subspec 'DevTools' do |ss|
21+
ss.compiler_flags = "-DUSE_DEVTOOLS"
22+
ss.source_files = "Sources/TPTweak/"
1723
end
1824
end

0 commit comments

Comments
 (0)