From 3d47d323e744beabce6996546f9585e60d9407b9 Mon Sep 17 00:00:00 2001 From: Wendy Liga <16457495+wendyliga@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:45:11 +0700 Subject: [PATCH] Fix Podspec (#18) * fix podspec * fix indentation * podspec linting only on release * remove bigsur * update GA nodes * change macos14 --- .github/workflows/ci.yml | 52 +++++++++++++++++++---------------- .github/workflows/podspec.yml | 8 ++---- TPTweak.podspec | 30 ++++++++++++-------- 3 files changed, 48 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74a68ae..aef772c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -70,6 +46,7 @@ jobs: matrix: xcode: - '14.3.1' + - '15.2' runs-on: macos-13 steps: - uses: actions/checkout@v2 @@ -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 }} diff --git a/.github/workflows/podspec.yml b/.github/workflows/podspec.yml index 4775f4c..4c1ce41 100644 --- a/.github/workflows/podspec.yml +++ b/.github/workflows/podspec.yml @@ -1,12 +1,8 @@ name: Podspec on: - push: - branches: - - main - pull_request: - branches: - - '*' + release: + types: [created, published] jobs: linting: diff --git a/TPTweak.podspec b/TPTweak.podspec index 894a445..d8957f8 100644 --- a/TPTweak.podspec +++ b/TPTweak.podspec @@ -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" => "wendy.liga@tokopedia.com" } - spec.homepage = "https://github.com/tokopedia/ios-tptweak" + spec.license = { :type => "Apache 2.0", :file => "LICENSE.md" } + spec.author = { "Wendy Liga" => "wendy.liga@tokopedia.com" } + 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