Skip to content

Commit

Permalink
merge master v.2.10.2 to the beta branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed Jun 14, 2021
2 parents 7d3b2d5 + 9b0043b commit 0f39d98
Show file tree
Hide file tree
Showing 135 changed files with 4,964 additions and 361 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/iOS.yml
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
30 changes: 30 additions & 0 deletions .github/workflows/macOS.yml
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
72 changes: 72 additions & 0 deletions .github/workflows/release.yml
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 }}
48 changes: 48 additions & 0 deletions .swiftlint.yml
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 added CHANGELOG.md
Empty file.
Loading

0 comments on commit 0f39d98

Please sign in to comment.