-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial commit * initial commit of moments api * small fix * WIP * Added tests * Added tests * WIP * switched to new engine response format * swiftlint changes * accepted recommended project changes * swiftlint updates * sample updates * updated consent expiry * fix conflict * updated test schemes * updated imports * updated tvos scheme * Updated surfile * Updates from PR review * Added input field for moments API engine ID * bumped ruby version * Further code review updates * Switched to using MockURLSession from core * Handled missing/null responses from Moments API * Made properties optional to align with visitor profile. Skipped null values * Updated referrer spelling, added package.swift and podspec * fix test build issue * updated test.yml * Updated project and fastlane config * removed destination from test.yml * re-added macOS test scheme * updated test yaml * fixed tests.yaml * fixed tests.yaml * changed simulator destination * changed simulator destination for UI tests
- Loading branch information
1 parent
3845361
commit 7cbd2ec
Showing
82 changed files
with
2,680 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
ruby-version: '3.0' | ||
- name: Install Fastlane | ||
run: | | ||
gem install fastlane | ||
|
@@ -24,7 +24,7 @@ jobs: | |
working-directory: ./builder | ||
strategy: | ||
matrix: | ||
destination: ["platform=iOS Simulator,OS=14.5,name=iPhone 14"] | ||
destination: ["platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro"] | ||
scheme: | ||
- TealiumAppDelegateProxyTests-iOS | ||
- TealiumAttributionTests-iOS | ||
|
@@ -40,14 +40,15 @@ jobs: | |
- TealiumTagManagementIntegrationTests-iOS | ||
- TealiumTagManagementTests-iOS | ||
- TealiumVisitorServiceTests-iOS | ||
- TealiumMomentsAPITests-iOS | ||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v2 | ||
- name: Test - "${{ matrix.scheme }}" | ||
run: fastlane scan --scheme "${{ matrix.scheme }}" --output_files "${{ matrix.scheme }}".html | ||
run: fastlane scan --scheme "${{ matrix.scheme }}" --output_files "${{ matrix.scheme }}" --derived-data-path "./build" --skip_build true --result_bundle true --output_types junit --xcodebuild_formatter "xcbeautify -q --is-ci" --destination "${{ matrix.destination }}" | ||
working-directory: ${{env.working-directory}} | ||
- name: Archive Code Coverage Report | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -86,22 +87,23 @@ jobs: | |
working-directory: ./builder | ||
strategy: | ||
matrix: | ||
destination: ["platform=macOS,arch=x86_64"] | ||
destination: ["platform=macOS"] | ||
scheme: | ||
- TealiumAutotrackingTests-macOS | ||
- TealiumCoreTests-macOS | ||
- TealiumCollectTests-macOS | ||
- TealiumLifecycleTests-macOS | ||
- TealiumMediaTests-macOS | ||
- TealiumVisitorServiceTests-macOS | ||
- TealiumMomentsAPITests-macOS | ||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v2 | ||
- name: Test - "${{ matrix.scheme }}" | ||
run: rm -rf output && fastlane scan --scheme "${{ matrix.scheme }}" --derived_data_path ./output --code_coverage true --skip_build true | ||
run: rm -rf output && fastlane scan --scheme "${{ matrix.scheme }}" --derived_data_path ./output --code_coverage true --skip_build true --destination "${{ matrix.destination }}" | ||
working-directory: ${{env.working-directory}} | ||
- name: Archive Code Coverage Report | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -147,14 +149,15 @@ jobs: | |
- TealiumLifecycleTests-tvOS | ||
- TealiumMediaTests-tvOS | ||
- TealiumVisitorServiceTests-tvOS | ||
- TealiumMomentsAPITests-tvOS | ||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v2 | ||
- name: Test - "${{ matrix.scheme }}" | ||
run: rm -rf output && fastlane scan --scheme "${{ matrix.scheme }}" --derived_data_path ./output --code_coverage true --skip_build true | ||
run: rm -rf output && fastlane scan --scheme "${{ matrix.scheme }}" --derived_data_path ./output --code_coverage true --skip_build true --destination "${{ matrix.destination }}" | ||
working-directory: ${{env.working-directory}} | ||
- name: Archive Code Coverage Report | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -206,15 +209,15 @@ jobs: | |
working-directory: ./builder | ||
strategy: | ||
matrix: | ||
destination: ["platform=iOS Simulator,OS=14.5,name=iPhone 14"] | ||
destination: ["platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro"] | ||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v2 | ||
- name: Test TealiumAutotracking iOS UI Tests | ||
run: rm -rf output && fastlane scan --scheme "TealiumAutotrackingUITests-iOS" --derived_data_path ./output --code_coverage false --skip_build true | ||
run: rm -rf output && fastlane scan --scheme "TealiumAutotrackingUITests-iOS" --derived_data_path ./output --code_coverage false --skip_build true --destination "${{ matrix.destination }}" | ||
working-directory: ${{ env.working-directory }} | ||
test_Autotracking_macOS_uiTests: | ||
needs: install | ||
|
@@ -226,15 +229,15 @@ jobs: | |
working-directory: ./builder | ||
strategy: | ||
matrix: | ||
destination: ["platform=macOS,arch=x86_64"] | ||
destination: ["platform=macOS"] | ||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v2 | ||
- name: Test TealiumAutotracking macOS UI Tests | ||
run: rm -rf output && fastlane scan --scheme "TealiumAutotrackingUITests-macOS" --derived_data_path ./output --code_coverage false --skip_build true | ||
run: rm -rf output && fastlane scan --scheme "TealiumAutotrackingUITests-macOS" --derived_data_path ./output --code_coverage false --skip_build true --destination "${{ matrix.destination }}" | ||
working-directory: ${{ env.working-directory }} | ||
test_Autotracking_tvOS_uiTests: | ||
needs: install | ||
|
@@ -254,5 +257,5 @@ jobs: | |
xcode-version: latest-stable | ||
- uses: actions/checkout@v2 | ||
- name: Test TealiumAutotracking tvOS UI Tests | ||
run: rm -rf output && fastlane scan --scheme "TealiumAutotrackingUITests-tvOS" --derived_data_path ./output --code_coverage false --skip_build true | ||
run: rm -rf output && fastlane scan --scheme "TealiumAutotrackingUITests-tvOS" --derived_data_path ./output --code_coverage false --skip_build true --destination "${{ matrix.destination }}" | ||
working-directory: ${{ env.working-directory }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ file_length: | |
identifier_name: | ||
excluded: | ||
- id | ||
severity: warning | ||
line_length: | ||
warning: 200 | ||
error: 500 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.