Unverified Commit 14e5689b authored by Neil Alexander's avatar Neil Alexander
Browse files

Merge tag 'v1.3.5' into neilalexander/p2p-updated

parents 389914f2 b6ff5f7d
name: CI
on:
# Triggers the workflow on any pull request and push to develop
push:
branches: [ develop ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Common cache
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Common setup
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Use right MatrixKit and MatrixSDK versions
run: bundle exec fastlane point_dependencies_to_pending_releases
# Main step
- name: Build iOS simulator
run: bundle exec fastlane build
tests:
name: Tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Common cache
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Common setup
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Use right MatrixKit and MatrixSDK versions
run: bundle exec fastlane point_dependencies_to_pending_releases
# Main step
- name: Unit tests
run: bundle exec fastlane test
......@@ -27,7 +27,8 @@ out/
#
Pods/
# Do not track our workspace since it is created by CocoaPods
## Ignore project files as we generate them with xcodegen (https://github.com/yonaskolb/XcodeGen)
*.xcodeproj
*.xcworkspace
# Fastlane
......
Changes in 1.3.5 (2021-04-22)
=================================================
✨ Features
*
🙌 Improvements
* Add `gitter.im` to list of default room directories
* MasterTabBarController: Show/Hide Home Screen tabs (#4234).
* RoomVC: Enable / Disable VoIP feature in Rooms (#4236).
* UnifiedSearchRecentsDataSource: Show/Hide public directory (#4242).
* DirectoryRecentTableViewCell: Do not use "directory_search_results_more_than" string when there is no rooms and the search is on.
* RecentsVC: Make joining public rooms configurable (#4211).
* Make room settings screen configurable dynamically (#4219).
* RoomVC: Show / Hide integrations and actions (#4245).
🐛 Bugfix
* PublicRoomsDirectoryDataSource: Fix search when NSFW filter is off.
* RoomVC: Fix navigation issue when a room left.
* RoomVC: Fix a crash when scroll to bottom tapped on a left room.
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
* GH Actions: Start using them for CI to check simulator build and tests.
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.10](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.10)).
Changes in 1.3.4 (2021-04-19)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
* RoomVC: Crash in refreshTypingNotification (#4230).
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
Changes in 1.3.3 (2021-04-16)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
*
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.9](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.9)).
Changes in 1.3.2 (2021-04-16)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
* Self-verification: Fix compatibility with Element-Web (#4217).
* Notifications: Fix sender display name that can miss (#4222).
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.9](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.9)).
Changes in 1.3.1 (2021-04-14)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
*
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.8](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.8)).
Changes in 1.3.0 (2021-04-09)
=================================================
✨ Features
* Composer Update - Typing and sending a message (#4085)
* Switching composer between text mode & action mode (#4087)
* Explore typing notifications inspired by web (#4134)
🙌 Improvements
* Make the application settings more configurable (#4171)
* Possibility to lock some room creation parameters from settings (#4181)
* Enable / disable external friends invite (#4173)
* Composer update - UI enhancements (#4133)
* Increase grow/shrink animation speed in new composer (#4187)
* Limit typing notifications timeline jumps (#4176)
* Consider displaying names in typing notifications (#4175)
🐛 Bugfix
* If you start typing while the new attachment sending mode is on, the send button appears (#4155)
* The final frames of the appearance animation of the new composer buttons are missing (#4160)
* Crash in [RoomViewController setupActions] (#4162)
* Too much vertical whitespace when replying (#4164)
* Black theme uses dark background for composer (#4192)
* Vertical layout of typing notifs can go wonky (#4159)
* Crash in [RoomViewController refreshTypingNotification] (#4161)
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.7](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.7)).
Changes in 1.2.8 (2021-03-26)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
* Xcodegen: Unit tests are broken (#4152).
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
Changes in 1.2.7 (2021-03-24)
=================================================
✨ Features
*
🙌 Improvements
* Pods: Update FlowCommoniOS, GBDeviceInfo, KeychainAccess, MatomoTracker, SwiftJWT, SwiftLint (#4120).
* Room lists: Remove shields on room avatars (#4115).
🐛 Bugfix
* RoomVC: Fix timeline blink on sending.
* RoomVC: Fix not visible last bubble issue.
* Room directory: Fix crash (#4137).
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.6](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.6)).
Changes in 1.2.6 (2021-03-11)
=================================================
✨ Features
* Improve the status of send messages (sending, sent, received, failed) (#4014)
* Retrying & deleting failed messages (#4013)
* Composer Update - Typing and sending a message (#4085)
🙌 Improvements
*
🐛 Bugfix
*
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.5](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.5)).
Changes in 1.2.5 (2021-03-03)
=================================================
✨ Features
*
🙌 Improvements
* Settings: Add option to show NSFW public rooms (off by default).
🐛 Bugfix
* Emoji store: Include short name when searching emojis (#4063).
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.4](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.4)).
Changes in 1.2.4 (2021-03-01)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
* Social login: Fix a crash when selecting a social login provider.
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
Changes in 1.2.3 (2021-02-26)
=================================================
✨ Features
*
🙌 Improvements
*
🐛 Bugfix
*
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
*
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.3](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.3)).
Changes in 1.2.2 (2021-02-24)
=================================================
✨ Features
* Enable encryption for accounts, contacts and keys in the crypto database (#3867).
🙌 Improvements
* Home: Show room directory on join room action (#3775).
* RoomVC: Add quick actions in timeline on room creation (#3776).
🐛 Bugfix
*
⚠️ API Changes
*
🗣 Translations
*
🧱 Build
* XcodeGen: .xcodeproj files are now built from readable yml file: [New Build instructions](README.md#build-instructions) (#3812).
* Podfile: Use MatrixKit for all targets and remove MatrixKit/AppExtension.
* Fastlane: Use the "New Build System" to build releases.
* Fastlane: Re-enable parallelised builds.
Others
*
Improvements:
* Upgrade MatrixKit version ([v0.14.2](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.14.2)).
Changes in 1.2.1 (2021-02-12)
=================================================
......
//
// Copyright 2020 Vector Creations Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
import Foundation
import MatrixKit
/// AppConfig is Config plus configurations dedicated to the app
class AppConfiguration: Config {
// MARK: - Global settings
override func setupSettings() {
super.setupSettings()
setupAppSettings()
}
private func setupAppSettings() {
// Enable long press on event in bubble cells
MXKRoomBubbleTableViewCell.disableLongPressGesture(onEvent: false)
// Each room member will be considered as a potential contact.
MXKContactManager.shared().contactManagerMXRoomSource = MXKContactManagerMXRoomSource.all
}
// MARK: - Per matrix session settings
override func setupSettings(for matrixSession: MXSession) {
super.setupSettings(for: matrixSession)
setupWidgetReadReceipts(for: matrixSession)
}
private func setupWidgetReadReceipts(for matrixSession: MXSession) {
var acknowledgableEventTypes = matrixSession.acknowledgableEventTypes ?? []
acknowledgableEventTypes.append(kWidgetMatrixEventTypeString)
acknowledgableEventTypes.append(kWidgetModularEventTypeString)
matrixSession.acknowledgableEventTypes = acknowledgableEventTypes
}
}
//
// Copyright 2021 Vector Creations Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// App identity
BUNDLE_DISPLAY_NAME = Element P2P
BASE_BUNDLE_IDENTIFIER = im.vector.p2p
APPLICATION_GROUP_IDENTIFIER = group.im.vector.p2p
APPLICATION_SCHEME = element
// Version
MARKETING_VERSION = 1.3.5
CURRENT_PROJECT_VERSION = 1.3.5
// Team
DEVELOPMENT_TEAM = 7J4U792NQT
// Provisioning profiles
RIOT_PROVISIONING_PROFILE_SPECIFIER = Vector App Store
RIOT_PROVISIONING_PROFILE = f65e7447-b8a3-46cc-8fba-fa60e55e2511
NSE_PROVISIONING_PROFILE_SPECIFIER = "Vector NSE: App Store"
NSE_PROVISIONING_PROFILE = 31dc9316-e029-47fd-81f5-778db07d76a2
SHARE_EXTENSION_PROVISIONING_PROFILE_SPECIFIER = "Vector Share Extension: App Store"
SHARE_EXTENSION_PROVISIONING_PROFILE = 1a3be143-50c7-4ae2-834e-00596a053141
SIRI_INTENTS_PROVISIONING_PROFILE_SPECIFIER = "Vector Siri Intents: App Store"
SIRI_INTENTS_PROVISIONING_PROFILE = 18a66f93-ffe1-4008-b343-58350cc65023
......@@ -109,6 +109,8 @@ final class BuildSettings: NSObject {
// MARK: - Legal URLs
// Note: Set empty strings to hide the related entry in application settings
static let applicationCopyrightUrlString = "https://element.io/copyright"
static let applicationPrivacyPolicyUrlString = "https://element.io/privacy"
static let applicationTermsConditionsUrlString = "https://element.io/terms-of-service"
......@@ -140,6 +142,8 @@ final class BuildSettings: NSObject {
"b5ae50589e50991dd9dd7d59c5c5f7a4521e8da5b603b7f57076272abc58b374"
]
// MARK: - Rooms Screen
static let roomsAllowToJoinPublicRooms: Bool = true
// MARK: - Analytics
static let analyticsServerUrl = URL(string: "https://piwik.riot.im/piwik.php")
......@@ -182,6 +186,8 @@ final class BuildSettings: NSObject {
static let allowLocalContactsAccess: Bool = false
static let allowInviteExernalUsers: Bool = true
// MARK: - Feature Specifics
/// Not allowed pin codes. User won't be able to select one of the pin in the list.
......@@ -199,6 +205,13 @@ final class BuildSettings: NSObject {
/// Indicates should the app log out the user when number of biometrics failures reaches `maxAllowedNumberOfBiometricsFailures`. Defaults to `false`
static let logOutUserWhenBiometricsFailuresExceeded: Bool = false
// MARK: - Main Tabs
static let homeScreenShowFavouritesTab: Bool = true
static let homeScreenShowPeopleTab: Bool = true
static let homeScreenShowRoomsTab: Bool = true
static let homeScreenShowCommunitiesTab: Bool = true
// MARK: - General Settings Screen
static let settingsScreenShowUserFirstName: Bool = false
......@@ -214,10 +227,40 @@ final class BuildSettings: NSObject {
static let settingsScreenAllowChangingCrashUsageDataSettings: Bool = true
static let settingsScreenAllowBugReportingManually: Bool = true
static let settingsScreenAllowDeactivatingAccount: Bool = false
static let settingsScreenShowChangePassword:Bool = true
static let settingsScreenShowInviteFriends:Bool = false
static let settingsScreenShowEnableStunServerFallback: Bool = false
static let settingsSecurityScreenShowSessions:Bool = true
static let settingsSecurityScreenShowSetupBackup:Bool = true
static let settingsSecurityScreenShowRestoreBackup:Bool = true
static let settingsSecurityScreenShowDeleteBackup:Bool = true
static let settingsSecurityScreenShowCryptographyInfo:Bool = true
static let settingsSecurityScreenShowCryptographyExport:Bool = true
static let settingsSecurityScreenShowAdvancedUnverifiedDevices:Bool = true
// MARK: - Timeline settings
static let roomInputToolbarCompressionMode = MXKRoomInputToolbarCompressionModePrompt
// MARK: - Room Creation Screen
static let roomCreationScreenAllowEncryptionConfiguration: Bool = false
static let roomCreationScreenRoomIsEncrypted: Bool = false
static let roomCreationScreenAllowRoomTypeConfiguration: Bool = true
static let roomCreationScreenRoomIsPublic: Bool = true
// MARK: - Room Screen
static let roomScreenAllowVoIPForDirectRoom: Bool = true
static let roomScreenAllowVoIPForNonDirectRoom: Bool = true
static let roomScreenAllowCameraAction: Bool = true