Skip to content

Commit

Permalink
Fix Podspec (#18)
Browse files Browse the repository at this point in the history
* fix podspec

* fix indentation

* podspec linting only on release

* remove bigsur

* update GA nodes

* change macos14
  • Loading branch information
wendyliga authored Aug 27, 2024
1 parent daebeab commit 3d47d32
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 42 deletions.
52 changes: 28 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,6 @@ on:
- '*'

jobs:
build-big-sur:
strategy:
matrix:
xcode:
- '12.5.1'
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run Build
run: swift build
unit_test-big-sur:
strategy:
matrix:
xcode:
- '12.5.1'
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run tests
run: swift test --enable-test-discovery --enable-code-coverage | xcpretty
build-monterey:
strategy:
matrix:
Expand Down Expand Up @@ -70,6 +46,7 @@ jobs:
matrix:
xcode:
- '14.3.1'
- '15.2'
runs-on: macos-13
steps:
- uses: actions/checkout@v2
Expand All @@ -82,7 +59,34 @@ jobs:
matrix:
xcode:
- '14.3.1'
- '15.2'
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run tests
run: swift test --enable-test-discovery --enable-code-coverage | xcpretty
build-sonoma:
strategy:
matrix:
xcode:
- '15.4'
- '16.1'
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run Build
run: swift build
unit_test-sonoma:
strategy:
matrix:
xcode:
- '15.4'
- '16.1'
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: Select Xcode ${{ matrix.xcode }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/podspec.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Podspec

on:
push:
branches:
- main
pull_request:
branches:
- '*'
release:
types: [created, published]

jobs:
linting:
Expand Down
30 changes: 18 additions & 12 deletions TPTweak.podspec
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
Pod::Spec.new do |spec|
spec.name = "TPTweak"
spec.version = "2.0.2"
spec.summary = "TPTweak is a debugging tool to help adjust your iOS app on the fly without recompile"
spec.name = "TPTweak"
spec.version = "2.0.2"
spec.summary = "TPTweak is a debugging tool to help adjust your iOS app on the fly without recompile"

spec.license = { :type => "Apache 2.0", :file => "LICENSE.md" }
spec.author = { "Wendy Liga" => "[email protected]" }
spec.homepage = "https://github.com/tokopedia/ios-tptweak"
spec.license = { :type => "Apache 2.0", :file => "LICENSE.md" }
spec.author = { "Wendy Liga" => "[email protected]" }
spec.homepage = "https://github.com/tokopedia/ios-tptweak"

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

spec.subspec 'DevTools' do |sp|
sp.compiler_flags = '-DUSE_DEVTOOLS'
spec.subspec 'Core' do |ss|
ss.source_files = "Sources/TPTweak/"
end

spec.subspec 'DevTools' do |ss|
ss.compiler_flags = "-DUSE_DEVTOOLS"
ss.source_files = "Sources/TPTweak/"
end
end

0 comments on commit 3d47d32

Please sign in to comment.