Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: refactoring autotrack core in sdk 4.x #268

Merged
merged 126 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
2165078
refactor: 移除 FORM_SUBMIT 事件类型
YoloMao Jun 5, 2023
28b6925
refactor: 移除 pageShowTimestamp 字段
YoloMao Jun 5, 2023
69c7e2c
feat: 无埋点事件属性添加 page attributes
YoloMao Jun 5, 2023
bcb75ce
refactor: 移除 hybrid 转发事件中多余的 event_type 判断
YoloMao Jun 6, 2023
d982595
revert: 移除 FORM_SUBMIT 事件类型
YoloMao Jun 9, 2023
fc8d18d
refactor: 无埋点逻辑重构
YoloMao Jul 6, 2023
42ee9fd
refactor: remove cdp wrapper
YoloMao Jul 6, 2023
60d3163
refactor: 无埋点逻辑重构
YoloMao Jul 6, 2023
55ed788
test: update ci
YoloMao Jul 6, 2023
2270fac
style: code format
Jul 6, 2023
8057dde
test: update ci
YoloMao Jul 6, 2023
a48efe1
refactor: 无埋点逻辑重构
YoloMao Jul 7, 2023
f4d1d39
style: code format
Jul 7, 2023
6c7d7ca
feat: add autotrackEnabled/ignoreViewClass/ignoreViewClasses
YoloMao Jul 7, 2023
f7aad9a
style: code format
Jul 7, 2023
225063c
refactor: 无埋点逻辑重构
YoloMao Jul 7, 2023
6862594
style: code format
Jul 7, 2023
542a5a7
test: update ci
YoloMao Jul 10, 2023
00b3c75
test: update ci
YoloMao Jul 10, 2023
00ba693
test: update ci
YoloMao Jul 10, 2023
ae7f66c
refactor: 无埋点逻辑重构
YoloMao Jul 10, 2023
29dbce3
refactor: 无埋点逻辑重构
YoloMao Jul 11, 2023
184a93f
style: code format
Jul 11, 2023
a2d8893
refactor: 无埋点逻辑重构
YoloMao Jul 11, 2023
3ba4195
test: update ci
YoloMao Jul 12, 2023
af208cd
test: update ci
YoloMao Jul 12, 2023
1d48976
fix: UIAlertController/UISegment swizzle 延迟到初始化时
YoloMao Jul 12, 2023
2c571f9
fix: delete unused codes
YoloMao Jul 12, 2023
d2d2c4c
fix: 多线程下调用 autotrackPage
YoloMao Jul 12, 2023
a39bdf9
refactor: ImpressionTrack 模块化,按需集成
YoloMao Jul 13, 2023
f89b6cc
fix: sonar quality bugs
YoloMao Jul 13, 2023
17c10ac
style: code format
Jul 13, 2023
101770c
fix: sonar quality bugs
YoloMao Jul 13, 2023
923c771
docs: update Readme, use .spi.yml
YoloMao Jul 14, 2023
1cec578
test: update ci
YoloMao Jul 14, 2023
006bb26
build: delete ci about cdp
YoloMao Jul 14, 2023
a9fb3f9
docs: update Readme
YoloMao Jul 17, 2023
404ce71
fix: sequenceId for event type
YoloMao Jul 17, 2023
0f60212
style: code format
Jul 17, 2023
33361cd
test: update ci
YoloMao Jul 18, 2023
b1cff8a
test: update ci
YoloMao Jul 18, 2023
b50ed5c
fix: delete unused codes
YoloMao Jul 19, 2023
43949fa
test: update ci
YoloMao Jul 24, 2023
191528d
test: update ci
YoloMao Jul 24, 2023
43c42e9
fix: bug
YoloMao Jul 28, 2023
822afce
feat: protobuf 上报兼容 xcontent、xindex
YoloMao Jul 31, 2023
1638024
style: code format
Jul 31, 2023
b0a30fe
fix: 支持 UITableViewHeaderFooterView 圈选
YoloMao Aug 3, 2023
0f34c5f
style: code format
Aug 3, 2023
c87cb1c
refactor: 本地存储按 channel 区分,并将 Protobuf 模块内置
YoloMao Aug 7, 2023
852fd79
refactor: 数据发送默认使用 Protobuf 格式
YoloMao Aug 7, 2023
ce918a8
refactor: Protobuf 从 module 改为 service
YoloMao Aug 8, 2023
9c87eb9
style: code format
Aug 8, 2023
f80d9af
refactor: JSON、Protobuf 互相转换时,按当前的数据格式发送事件数据
YoloMao Aug 9, 2023
f7ef646
style: code format
Aug 9, 2023
b9f02f6
ci: update ci
YoloMao Aug 9, 2023
d7e731f
fix: xindex -> xcontent
YoloMao Aug 9, 2023
05a65e2
style: code format
Aug 9, 2023
c490885
ci: update sonar yml
YoloMao Aug 9, 2023
f27efd1
ci: update sonar yml
YoloMao Aug 9, 2023
a2b822b
build: update generate_xcframework.sh
YoloMao Aug 9, 2023
927ce68
chore: update minimum deployment target to iOS 10.0
YoloMao Aug 9, 2023
fb09d44
fix: growingUniqueTag logic
YoloMao Aug 9, 2023
8f23c03
ci: update sonar yml
YoloMao Aug 10, 2023
08a5de2
ci: update sonar yml
YoloMao Aug 10, 2023
4de0d1d
ci: update sonar yml
YoloMao Aug 10, 2023
6b6f1d5
ci: merge sonar into ci yml
YoloMao Aug 10, 2023
9908d9d
ci: update ci
YoloMao Aug 10, 2023
42ea29e
ci: update ci
YoloMao Aug 10, 2023
b5bcd1c
fix: 3to4 过滤不兼容的 v3 无埋点事件
YoloMao Aug 11, 2023
df76517
fix: delete unused codes
YoloMao Aug 11, 2023
8b2e2bc
fix: growingUniqueTag logic
YoloMao Aug 14, 2023
7e3d104
ci: growingUniqueTag test
YoloMao Aug 14, 2023
20254d2
fix: swiftProtobuf parse jsonObject
YoloMao Aug 14, 2023
7413f6e
style: code format
Aug 14, 2023
f7b75b6
fix: swiftProtobuf toJsonObject VISIT eventType
YoloMao Aug 15, 2023
2615351
style: code format
Aug 15, 2023
aa10fda
ci: workflows should use GIOSDK_PAT
YoloMao Aug 17, 2023
10470dd
test: format action
YoloMao Aug 17, 2023
04b85d8
style: code format
GIOSDK Aug 17, 2023
da50269
style: code format
YoloMao Aug 17, 2023
321f94c
fix: page.path 前加斜杆 /
YoloMao Aug 17, 2023
3b663cd
fix: 统一 GrowingPageEvent 对象中的 pageName 为 path
YoloMao Aug 17, 2023
2a5caf2
ci: 减少耗时
YoloMao Aug 17, 2023
9ca1922
docs: 添加 SwiftUI 使用 SDK 示例
YoloMao Aug 21, 2023
259c482
fix: 参考 facebook,用更 swift 化的方式编写 Package.swift
YoloMao Aug 22, 2023
764b194
fix: 去掉奇怪且无用的 SwiftPM wrapper
YoloMao Aug 22, 2023
d5f98ed
fix: remove NoIDFA file/config
YoloMao Aug 22, 2023
6c4532c
style: code format
GIOSDK Aug 22, 2023
6779064
feat: event add timezoneOffset property
YoloMao Aug 23, 2023
536f4b1
style: code format
GIOSDK Aug 23, 2023
ab1c62b
fix: timezoneOffset 在运行期间仅获取一次
YoloMao Aug 23, 2023
701ba2f
revert: 恢复 SwiftPM wrapper,其作用在于区分 platform
YoloMao Aug 24, 2023
9562e6c
fix: update GrowingUtils to 0.0.6
YoloMao Aug 24, 2023
ecda12e
fix: update Package.swift
YoloMao Aug 24, 2023
ab8c375
ci: update podfile.lock
YoloMao Aug 24, 2023
3f51701
fix: 更符合 Swift 规范的 swift interface (在 SPM 下)
YoloMao Aug 25, 2023
12703c9
style: 用 swiftformat 进行格式化
YoloMao Aug 25, 2023
08e2249
style: code format
GIOSDK Aug 25, 2023
3150be0
fix: rename modules apis by using NS_SWIFT_NAME
YoloMao Aug 28, 2023
808b1bb
fix: 更符合 Swift 规范的 swift interface (在 SPM 下)
YoloMao Aug 28, 2023
eb10918
style: code format
GIOSDK Aug 28, 2023
1303a4d
fix: 将 GrowingAnalytics.xcworkspace 移到 Example/ 目录下,其在根目录会影响 xcodebui…
YoloMao Aug 28, 2023
c683457
ci: add advert test
YoloMao Aug 30, 2023
4795ca2
fix: mobileDebugger bug fix
YoloMao Aug 30, 2023
4606cce
ci: add hybrid test
YoloMao Aug 30, 2023
b375df2
feat: 添加返回是否成功初始化的 api,与安卓一致
YoloMao Aug 31, 2023
aae71ad
ci: add spm build
YoloMao Aug 31, 2023
0b9fde8
ci: code_format trigger spm
YoloMao Sep 4, 2023
e8e47e1
fix: add initSuccess api to spm
YoloMao Sep 6, 2023
450df50
feat: add privacy manifest support
YoloMao Sep 14, 2023
768c3f5
style: code format
GIOSDK Sep 14, 2023
f98221d
chore: update podfile lcok
YoloMao Sep 14, 2023
d232dd0
fix: generate framework bug
YoloMao Sep 18, 2023
7b9ee62
fix: privacy manifest 适配 macOS
YoloMao Sep 18, 2023
e447199
style: code format
GIOSDK Sep 18, 2023
7d5de7f
test: Demo 升级至 iOS 12.0,避免使用 Xcode 15 + SPM 报错
YoloMao Sep 20, 2023
426757e
fix: 优化手动集成下的 privacy manifest 导入
YoloMao Sep 20, 2023
c04596c
chore: update podfile lock
YoloMao Sep 20, 2023
03f1927
test: pre-warm webView in demo
YoloMao Sep 21, 2023
248e13f
test: add uitest time
YoloMao Sep 21, 2023
fbea310
test: fix bug
YoloMao Sep 21, 2023
03f044c
test: fix workflow cache for Pods path
YoloMao Sep 22, 2023
0da1d6e
fix: timezoneOffset 改成 string 类型
YoloMao Sep 22, 2023
8def7a8
test: update ci
YoloMao Sep 22, 2023
ce57ad6
feat: release 4.0.0-beta
YoloMao Sep 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Cache cocoapods
uses: actions/cache@v3
with:
path: Pods
path: ./Example/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ jobs:
run: |
set -eo pipefail
pod trunk push GrowingAnalytics.podspec --verbose --allow-warnings --use-libraries
pod trunk push GrowingAnalytics-cdp.podspec --verbose --allow-warnings --use-libraries --synchronous
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
120 changes: 120 additions & 0 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: SPM

on:
push:
branches: [ master ]
workflow_run:
workflows: [Code Format]
types:
- completed

jobs:
autotracker-build-iOS:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingAutotracker -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty

autotracker-build-catalyst:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingAutotracker -destination 'platform=macOS,variant=Mac Catalyst' | xcpretty

tracker-build-iOS:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingTracker -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty

tracker-build-catalyst:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingTracker -destination 'platform=macOS,variant=Mac Catalyst' | xcpretty

tracker-build-macos:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingTracker -destination 'platform=macOS' | xcpretty

advert-build-iOS:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_Advert -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty

apm-build-iOS:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_APM -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty

apm-build-catalyst:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_APM -destination 'platform=macOS,variant=Mac Catalyst' | xcpretty

hybrid-build-iOS:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty

hybrid-build-catalyst:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=macOS,variant=Mac Catalyst' | xcpretty

imp-build-iOS:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_ImpressionTrack -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty
2 changes: 1 addition & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ builder:
- platform: macos-xcodebuild
scheme: GrowingTracker
- platform: macos-spm
target: GrowingTracker
target: GrowingTracker
2 changes: 1 addition & 1 deletion .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# file options

--exclude Modules/SwiftProtobuf/event_v3.pb.swift
--exclude Services/SwiftProtobuf/event_v3.pb.swift

# format options

Expand Down
8 changes: 0 additions & 8 deletions Example/Example-macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,11 @@


import Cocoa

#if canImport(GrowingAnalytics_cdp)
import GrowingAnalytics_cdp
#elseif canImport(GrowingAnalytics)
import GrowingAnalytics
#endif

@main
class AppDelegate: NSObject, NSApplicationDelegate {




func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
let config = GrowingTrackConfiguration(projectId: "bcc4fc9dea27f25d")
Expand Down
Loading