-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge master v.2.10.2 to the beta branch
- Loading branch information
Showing
135 changed files
with
4,964 additions
and
361 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Mixpanel Swift SDK action | ||
|
||
on: | ||
push: | ||
branches: [ master, 3.0.0.beta ] | ||
pull_request: | ||
branches: [ master, 3.0.0.beta ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
destination: ['OS=14.4,name="iPhone 11"'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
working-directory: MixpanelDemo | ||
run: | ||
pod install --repo-update | ||
- name: Swift Lint | ||
run: swiftlint | ||
- name: Run Test | ||
working-directory: MixpanelDemo | ||
run: | | ||
set -o pipefail | ||
xcodebuild -workspace MixpanelDemo.xcworkspace -scheme MixpanelDemo -derivedDataPath Build/ -destination ${{ matrix.destination }} -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES -enableCodeCoverage YES clean build test | xcpretty -c; | ||
- name: Pod Lint | ||
run: pod lib lint --allow-warnings | ||
- name: Code Coverage Report | ||
working-directory: MixpanelDemo/build/Logs/Test | ||
run: | | ||
xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult | ||
xcrun xccov view --report --only-targets *.xcresult |
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,30 @@ | ||
name: Mixpanel Swift SDK action | ||
|
||
on: | ||
push: | ||
branches: [ master, 3.0.0.beta ] | ||
pull_request: | ||
branches: [ master, 3.0.0.beta ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
working-directory: MixpanelDemo | ||
run: | ||
pod install --repo-update | ||
- name: Swift Lint | ||
run: swiftlint | ||
- name: Run Test | ||
working-directory: MixpanelDemo | ||
run: | | ||
set -o pipefail | ||
xcodebuild -workspace MixpanelDemo.xcworkspace -scheme MixpanelDemoMac -derivedDataPath Build/ -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES -enableCodeCoverage YES clean build test | xcpretty -c; | ||
- name: Code Coverage Report | ||
working-directory: MixpanelDemo/build/Logs/Test | ||
run: | | ||
xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult | ||
xcrun xccov view --report --only-targets *.xcresult |
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,72 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
name: "🚀 Release" | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: "Check-out" | ||
uses: actions/checkout@v1 | ||
- name: "Update Release CHANGELOG" | ||
id: update-release-changelog | ||
uses: heinrichreimer/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
onlyLastTag: true | ||
stripHeaders: false | ||
base: "CHANGELOG.md" | ||
headerLabel: "# Changelog" | ||
breakingLabel: '### Breaking' | ||
enhancementLabel: '### Enhancements' | ||
stripGeneratorNotice: true | ||
bugsLabel: '### Fixes' | ||
issues: true | ||
issuesWoLabels: true | ||
pullRequests: true | ||
prWoLabels: true | ||
author: false | ||
verbose: true | ||
- name: Commit CHANGELOG Changes | ||
run: | | ||
git add . | ||
git config user.name "zihe.jia" | ||
git config user.email "[email protected]" | ||
git commit -m "Update CHANGELOG" | ||
- name: Push CHANGELOG changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: master | ||
force: true | ||
- name: "Prepare for the Github Release" | ||
id: generate-release-changelog | ||
uses: heinrichreimer/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
output: "output.md" | ||
headerLabel: "# Changelog" | ||
onlyLastTag: true | ||
stripHeaders: false | ||
breakingLabel: '### Breaking' | ||
enhancementLabel: '### Enhancements' | ||
stripGeneratorNotice: true | ||
bugsLabel: '### Fixes' | ||
issues: true | ||
issuesWoLabels: true | ||
pullRequests: true | ||
prWoLabels: true | ||
author: false | ||
verbose: true | ||
- name: "🚀 Create GitHub Release" | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: ${{ steps.generate-release-changelog.outputs.changelog }} |
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 |
---|---|---|
@@ -1,15 +1,63 @@ | ||
excluded: | ||
- .build/ | ||
- build/ | ||
- MixpanelDemo | ||
- Sources/SelectorEvaluator.swift | ||
- Sources/CodelessBinding.swift | ||
- Sources/TweakViewData.swift | ||
- Sources/WebSocketWrapper.swift | ||
- Sources/TakeoverNotificationViewController.swift | ||
- Sources/ObjectSelector.swift | ||
- Sources/SnapshotMessage.swift | ||
- Sources/InAppNotification.swift | ||
- Sources/DecideRequest.swift | ||
- Sources/UIControlBinding.swift | ||
- Sources/InAppNotifications.swift | ||
- Sources/WebSocket.swift | ||
- Sources/ObjectFilter.swift | ||
- Sources/SSLSecurity.swift | ||
- Sources/NSAttributedStringToNSDictionary.swift | ||
- Sources/MixpanelNotificationServiceExtension.swift | ||
- Sources/ObjectSerializer.swift | ||
- Sources/PushNotifications.swift | ||
- Sources/ObjectSerializerConfig.swift | ||
- Sources/TweakPersistency.swift | ||
- Sources/MD5.swift | ||
- Sources/BaseWebSocketMessage.swift | ||
- Sources/BaseNotificationViewController.swift | ||
- Sources/ObjectIdentityProvider.swift | ||
- Sources/UITableViewBinding.swift | ||
- Sources/UIViewSelectors.swift | ||
- Sources/MiniNotification.swift | ||
- Sources/VariantAction.swift | ||
- Sources/DisplayTrigger.swift | ||
- Sources/MiniNotificationViewController.swift | ||
- Sources/SHA256.swift | ||
- Sources/TakeoverNotification.swift | ||
- Sources/UIColorToNSString.swift | ||
- Sources/TweakStore.swift | ||
- Sources/Swizzle.swift | ||
- Sources/UIImageToNSDictionary.swift | ||
- Sources/Tweak.swift | ||
- Sources/DeviceInfoMessage.swift | ||
- Sources/ApplicationStateSerializer.swift | ||
|
||
line_length: 140 | ||
file_length: 1500 | ||
type_body_length: 500 | ||
function_parameter_count: 7 | ||
opt_in_rules: | ||
- empty_count | ||
- empty_string | ||
- unused_private_declaration | ||
disabled_rules: | ||
- cyclomatic_complexity | ||
- large_tuple | ||
- conditional_binding_cascade | ||
- force_cast | ||
- force_try | ||
- function_body_length | ||
- todo | ||
- type_body_length | ||
- variable_name | ||
- trailing_whitespace |
Empty file.
Oops, something went wrong.