Skip to content

Commit

Permalink
Release 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
button-bot committed Apr 18, 2024
1 parent e69f9f4 commit ee23b82
Show file tree
Hide file tree
Showing 84 changed files with 13,651 additions and 216 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,35 @@ on:
branches: [master]
jobs:
test:
runs-on: macos-latest
runs-on: macos-14

strategy:
fail-fast: false
matrix:
tests: ['UnitTests', 'IntegrationTests']

steps:
- name: Clone Repo
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Gem Cache
uses: actions/cache@v1
uses: ruby/setup-ruby@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Cocoapod Cache
uses: actions/cache@v1
ruby-version: 2.7
bundler-cache: true

- name: CocoaPods Cache
uses: actions/cache@v4
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Bundle Install
run: bundle --path vendor/bundle
- name: Pod Install
run: |
bundle exec pod install
- name: Run Unit Tests
run: |
bundle exec fastlane test scheme:"UnitTests"
- name: Run Integration Tests
- name: ${{ matrix.tests }} Tests
run: |
bundle exec fastlane test scheme:"IntegrationTests"
bundle exec fastlane test scheme:${{ matrix.tests }} os:17.2 name:"iPhone 15 Pro"
4 changes: 3 additions & 1 deletion .jazzy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
theme: "fullwidth"
module: ButtonMerchant
author: Button
author_url: https://usebutton.com
podspec: "ButtonMerchant.podspec"
output: "docs/latest"
undocumented_text: ""
exclude:
- "Source/Extensions/*"

copyright: 'Copyright © 2018 Button, Inc. All rights reserved. (https://usebutton.com) under [MIT License](https://github.com/button/button-merchant-ios-private/blob/master/LICENSE).'
copyright: 'Copyright © 2024 Button, Inc. All rights reserved. (https://usebutton.com) under [MIT License](https://github.com/button/button-merchant-ios-private/blob/master/LICENSE).'
5 changes: 3 additions & 2 deletions ButtonMerchant.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ButtonMerchant'
s.version = '1.6.0'
s.version = '1.7.0'
s.summary = 'An open source client library for Button merchants.'
s.description = <<-DESC
The Button Merchant library is a light-weight, open-source method
Expand All @@ -18,6 +18,7 @@ and join the Button Marketplace.
s.swift_version = '5.0'

s.source_files = 'Source/**/*.{swift,h}'
s.resources = ["Source/Resources/PrivacyInfo.xcprivacy"]

s.pod_target_xcconfig = { "SWIFT_VERSION" => 5.0 }
s.pod_target_xcconfig = { "SWIFT_VERSION" => 5.3 }
end
20 changes: 16 additions & 4 deletions ButtonMerchant.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
9E2B4314206C12BC009F2886 /* URLSessionDataTaskExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E2B4312206C12BC009F2886 /* URLSessionDataTaskExtensions.swift */; };
9E2B4315206C12BC009F2886 /* URLSessionExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E2B4313206C12BC009F2886 /* URLSessionExtensions.swift */; };
9E2B4317206C1335009F2886 /* EncodableExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E2B4316206C1335009F2886 /* EncodableExtensions.swift */; };
9E334DB822C2A62300F697DE /* StringTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E334DB722C2A62300F697DE /* StringTests.swift */; };
9E4C496720616B040053E4CA /* CoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E4C496520616B040053E4CA /* CoreTests.swift */; };
9E4C496820616B040053E4CA /* ButtonDefaultsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E4C496620616B040053E4CA /* ButtonDefaultsTests.swift */; };
9E4C496B20616B130053E4CA /* TestUserDefaults.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E4C496920616B130053E4CA /* TestUserDefaults.swift */; };
Expand Down Expand Up @@ -117,9 +116,11 @@
DE865F962052FE5D00F4054D /* ButtonMerchant.h in Headers */ = {isa = PBXBuildFile; fileRef = DE865F862052FE5D00F4054D /* ButtonMerchant.h */; settings = {ATTRIBUTES = (Public, ); }; };
DE865FA620530BCE00F4054D /* ButtonMerchant.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE865F792052F90600F4054D /* ButtonMerchant.swift */; };
DE95967E20856626004BC9EA /* ASIdentifierManagerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE1706D820855676009FF30B /* ASIdentifierManagerExtensions.swift */; };
DE9BF6362BC63BA800CD9B38 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = DE9BF6352BC63BA800CD9B38 /* PrivacyInfo.xcprivacy */; };
DEA3F6B92108F0A8009E720E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DE5464DC2107CB6E001809F3 /* Main.storyboard */; };
DEA3F6BA2108F280009E720E /* MessageView.xib in Resources */ = {isa = PBXBuildFile; fileRef = DA4AF05420868015002C3E0E /* MessageView.xib */; };
DEA3F6BB2108F286009E720E /* MessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA4AF05220867FFB002C3E0E /* MessageView.swift */; };
DED9E4B22BD0D667004F24F3 /* ButtonMerchantDeprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = DED9E4B12BD0D667004F24F3 /* ButtonMerchantDeprecations.swift */; };
DEE61B2D20656A090039E47A /* XCTestExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEE61B2C20656A090039E47A /* XCTestExtensions.swift */; };
FB5AA6AD24D0A19B0057F3A0 /* ApplicationIdTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB5AA6AC24D0A19B0057F3A0 /* ApplicationIdTests.swift */; };
FB5AA6AE24D0BADD0057F3A0 /* ApplicationId.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB5AA6AA24D0A11D0057F3A0 /* ApplicationId.swift */; };
Expand Down Expand Up @@ -213,7 +214,6 @@
9E2B4312206C12BC009F2886 /* URLSessionDataTaskExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = URLSessionDataTaskExtensions.swift; sourceTree = "<group>"; };
9E2B4313206C12BC009F2886 /* URLSessionExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = URLSessionExtensions.swift; sourceTree = "<group>"; };
9E2B4316206C1335009F2886 /* EncodableExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EncodableExtensions.swift; sourceTree = "<group>"; };
9E334DB722C2A62300F697DE /* StringTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringTests.swift; sourceTree = "<group>"; };
9E4C496520616B040053E4CA /* CoreTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CoreTests.swift; sourceTree = "<group>"; };
9E4C496620616B040053E4CA /* ButtonDefaultsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ButtonDefaultsTests.swift; sourceTree = "<group>"; };
9E4C496920616B130053E4CA /* TestUserDefaults.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestUserDefaults.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -322,6 +322,8 @@
DE865F862052FE5D00F4054D /* ButtonMerchant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ButtonMerchant.h; sourceTree = "<group>"; };
DE865F8C2052FE5D00F4054D /* UnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
DE865FA2205304C700F4054D /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
DE9BF6352BC63BA800CD9B38 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
DED9E4B12BD0D667004F24F3 /* ButtonMerchantDeprecations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ButtonMerchantDeprecations.swift; sourceTree = "<group>"; };
DEE61B2C20656A090039E47A /* XCTestExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XCTestExtensions.swift; sourceTree = "<group>"; };
F3F48F5FBD0D52C07A253FB6 /* Pods-UnitTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UnitTests.debug.xcconfig"; path = "Target Support Files/Pods-UnitTests/Pods-UnitTests.debug.xcconfig"; sourceTree = "<group>"; };
FB5AA6AA24D0A11D0057F3A0 /* ApplicationId.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationId.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -553,6 +555,7 @@
9E56CE5822B8049C00E75884 /* StringExtensions.swift */,
FBEBC8CC2543557D00AAE9E5 /* UIApplicationExtensions.swift */,
DE59498C28F49FA200FD9737 /* ButtonMerchantExtensions.swift */,
DED9E4B12BD0D667004F24F3 /* ButtonMerchantDeprecations.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -638,7 +641,6 @@
children = (
DA29D891209CDC3100537806 /* URLSessionTests.swift */,
DA29D893209CF34D00537806 /* UIDeviceTests.swift */,
9E334DB722C2A62300F697DE /* StringTests.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -673,6 +675,7 @@
DE865F762052F90600F4054D /* Source */ = {
isa = PBXGroup;
children = (
DE8F54BD2BCDC8F800DB880B /* Resources */,
FBEBC8BA25434A5700AAE9E5 /* AppIntegrationVerification.swift */,
DE175A1920A09BB1005C97B9 /* Version */,
DE865F792052F90600F4054D /* ButtonMerchant.swift */,
Expand Down Expand Up @@ -712,6 +715,14 @@
name = "Supporting Files";
sourceTree = "<group>";
};
DE8F54BD2BCDC8F800DB880B /* Resources */ = {
isa = PBXGroup;
children = (
DE9BF6352BC63BA800CD9B38 /* PrivacyInfo.xcprivacy */,
);
path = Resources;
sourceTree = "<group>";
};
DEA3F6BC2108F6B9009E720E /* Shared */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -957,6 +968,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DE9BF6362BC63BA800CD9B38 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1184,6 +1196,7 @@
DE1706E020855F4C009FF30B /* LocaleExtensions.swift in Sources */,
DA4C8C7922D3D909000E15A9 /* ReportOrderRequest.swift in Sources */,
9E77202220605506005F740B /* ButtonDefaults.swift in Sources */,
DED9E4B22BD0D667004F24F3 /* ButtonMerchantDeprecations.swift in Sources */,
DE1706DD20855B22009FF30B /* UIScreenExtensions.swift in Sources */,
9EEF58DD208F9161009DA9B6 /* UserAgent.swift in Sources */,
9E145C90208F86E600B01ECD /* BundleExtensions.swift in Sources */,
Expand Down Expand Up @@ -1224,7 +1237,6 @@
DA29D896209CF38800537806 /* TestUTSName.swift in Sources */,
9E4C496C20616B130053E4CA /* TestButtonDefaults.swift in Sources */,
9EDED110208FA3930049A56A /* UserAgentTests.swift in Sources */,
9E334DB822C2A62300F697DE /* StringTests.swift in Sources */,
DA0FA2A3205C1EF2008296A6 /* TestCore.swift in Sources */,
DA29D894209CF34D00537806 /* UIDeviceTests.swift in Sources */,
FBEBC92125435D5900AAE9E5 /* TestAppIntegrationVerification.swift in Sources */,
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source 'https://rubygems.org'

gem 'cocoapods'
gem 'fastlane'
gem 'sqlite3', '~> 1.5.0'
gem 'jazzy'
gem 'slather'

Loading

0 comments on commit ee23b82

Please sign in to comment.