Skip to content

Commit 68ccc8b

Browse files
committed
Merge branch 'develop' into feat/wire-cells-auth-token
# Conflicts: # wire-ios/Wire-iOS/Sources/UserInterface/MainController/ZClientViewController.swift
2 parents 76a5397 + 421bd19 commit 68ccc8b

File tree

690 files changed

+4065
-10104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

690 files changed

+4065
-10104
lines changed

.github/workflows/beta_app_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
countly_enabled: true
2121
datadog_enabled: true
2222
fastlane_action: testflight_beta
23-
distribute_externals: ${{ inputs.distribute_externals }}
23+
distribute_externals: ${{ inputs.distribute_externals || false }}
2424
secrets: inherit

.github/workflows/test_develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
trigger_tests:
1515
strategy:
1616
matrix:
17-
branch: [develop, release/cycle-3.120, release/cycle-4.1] # List other branches here
17+
branch: [develop, release/cycle-3.120, release/cycle-4.1, release/cycle-4.2] # List other branches here
1818
fail-fast: false # avoid to fail one job
1919
uses: ./.github/workflows/_reusable_run_tests.yml
2020
with:

.github/workflows/test_pr_changes.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ jobs:
7171
- 'wire-ios-cryptobox/**'
7272
wire-ios-mocktransport:
7373
- 'wire-ios-mocktransport/**'
74-
wire-ios-protos:
75-
- 'wire-ios-protos/**'
7674
wire-ios-images:
7775
- 'wire-ios-images/**'
7876
wire-ios-link-preview:

.swiftformat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
**.generated.swift, \
88
**+Generated.swift, \
99
**AutoMockable**, \
10-
wire-ios-protos/Protos/**, \
1110
wire-ios/Templates/**, \
1211
WireUI/Sources/WireDesign/Icons/Autogenerated/**, \
1312
wire-ios-automation/**

.swiftlint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ excluded:
9292
- sourcery
9393
- vendor
9494
- wire-ios/Templates
95-
- wire-ios-protos/Protos/messages.pb.swift
96-
- wire-ios-protos/Protos/mls.pb.swift
97-
- wire-ios-protos/Protos/otr.pb.swift
98-
- wire-ios-protos/Scripts/generate_header.swift
9995
- wire-ios-sync-engine/Support/Sourcery/generated/AutoMockable.manual.swift
10096
- wire-ios/Wire-iOS Share Extension/Generated/Strings+Generated.swift
10197
- wire-ios/Wire-iOS/Generated/Assets+Generated.swift

Cartfile.private

Lines changed: 0 additions & 2 deletions
This file was deleted.

Cartfile.resolved

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
github "wireapp/ZipArchive" "v2.4.2"
22
github "wireapp/cryptobox-ios" "v1.1.0_xcframework_arm64simulator"
3-
github "wireapp/generic-message-proto" "v1.52.0"
43
github "wireapp/libPhoneNumber-iOS" "1.1"
54
github "wireapp/ocmock" "v3.4.3_Xcode14.3.1"

WireAnalytics/Sources/WireAnalytics/AnalyticsUser/AnalyticsUser.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
// along with this program. If not, see http://www.gnu.org/licenses/.
1717
//
1818

19+
public import Foundation
20+
1921
/// The subject of analytics tracking.
2022

2123
public struct AnalyticsUser: Equatable, Sendable {
2224

2325
/// A unique id.
2426

25-
public let analyticsIdentifier: String
27+
public let trackingID: UUID
2628

2729
/// The user's team information.
2830

@@ -31,14 +33,14 @@ public struct AnalyticsUser: Equatable, Sendable {
3133
/// Create a new `AnalyticsUser`.
3234
///
3335
/// - Parameters:
34-
/// - analyticsIdentifier: A uniqe id.
36+
/// - trackingID: A uniqe id.
3537
/// - teamInfo: The user's team information.
3638

3739
public init(
38-
analyticsIdentifier: String,
40+
trackingID: UUID,
3941
teamInfo: TeamInfo? = nil
4042
) {
41-
self.analyticsIdentifier = analyticsIdentifier
43+
self.trackingID = trackingID
4244
self.teamInfo = teamInfo
4345
}
4446

WireAnalytics/Sources/WireAnalytics/Service/AnalyticsService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ public final class AnalyticsService: AnalyticsServiceProtocol {
159159
) throws {
160160
guard let countly else { return }
161161

162-
if let id = user?.analyticsIdentifier {
162+
if let id = user?.trackingID {
163163
countly.changeDeviceID(
164-
id,
164+
id.uuidString.lowercased(),
165165
mergeData: mergeData
166166
)
167167
}

WireAnalytics/Tests/WireAnalyticsTests/AnalyticsServiceTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ final class AnalyticsServiceTests: XCTestCase {
146146
return
147147
}
148148

149-
XCTAssertEqual(deviceChangeInvocations[0].id, Scaffolding.userWithTeam.analyticsIdentifier)
149+
XCTAssertEqual(deviceChangeInvocations[0].id, Scaffolding.userWithTeam.trackingID.uuidString.lowercased())
150150
XCTAssertEqual(deviceChangeInvocations[0].mergeData, false)
151151

152152
// Then the user details were set.
@@ -219,7 +219,7 @@ final class AnalyticsServiceTests: XCTestCase {
219219
return
220220
}
221221

222-
XCTAssertEqual(deviceChangeInvocations[0].id, Scaffolding.userWithTeam.analyticsIdentifier)
222+
XCTAssertEqual(deviceChangeInvocations[0].id, Scaffolding.userWithTeam.trackingID.uuidString.lowercased())
223223
XCTAssertEqual(deviceChangeInvocations[0].mergeData, true)
224224

225225
// Then the user details were set.
@@ -297,10 +297,10 @@ private enum Scaffolding {
297297
host: URL(string: "www.example.com")!
298298
)
299299

300-
static let user = AnalyticsUser(analyticsIdentifier: "user1")
300+
static let user = AnalyticsUser(trackingID: UUID())
301301

302302
static let userWithTeam = AnalyticsUser(
303-
analyticsIdentifier: "user2",
303+
trackingID: UUID(),
304304
teamInfo: TeamInfo(
305305
id: "teamID",
306306
role: "admin",

0 commit comments

Comments
 (0)