-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into deploy-voip-finances-diplomatie
- Loading branch information
Showing
110 changed files
with
1,993 additions
and
988 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
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
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,63 @@ | ||
name: UI Tests CI | ||
|
||
on: | ||
pull_request: | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
# Make the git branch for a PR available to our Fastfile | ||
MX_GIT_BRANCH: ${{ github.event.pull_request.head.ref }} | ||
|
||
jobs: | ||
tests: | ||
name: UI Tests | ||
runs-on: macos-14 | ||
|
||
concurrency: | ||
# Only allow a single run of this workflow on each branch, automatically cancelling older runs. | ||
group: ui-tests-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
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- | ||
# Make sure we use the latest version of MatrixSDK | ||
- name: Reset MatrixSDK pod | ||
run: rm -rf Pods/MatrixSDK | ||
|
||
# Common setup | ||
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job | ||
- name: Brew bundle | ||
run: brew bundle | ||
- name: Bundle install | ||
run: | | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Use right MatrixSDK versions | ||
run: bundle exec fastlane point_dependencies_to_related_branches | ||
|
||
# Main step | ||
- name: UI tests | ||
run: bundle exec fastlane uitest | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: uitests | ||
|
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,95 @@ | ||
name: Build alpha release | ||
|
||
on: | ||
|
||
# Triggers the workflow on any pull request | ||
pull_request: | ||
types: [ labeled, synchronize, opened, reopened ] | ||
|
||
env: | ||
# Make the git branch for a PR available to our Fastfile | ||
MX_GIT_BRANCH: ${{ github.event.pull_request.head.ref }} | ||
|
||
jobs: | ||
build: | ||
# Only run for PRs that contain the trigger label. The action will fail for forks due to | ||
# missing secrets, but there's no need to handle this as it won't run automatically. | ||
if: contains(github.event.pull_request.labels.*.name, 'Trigger-PR-Build') | ||
|
||
name: Release | ||
runs-on: macos-14 | ||
|
||
concurrency: | ||
# Only allow a single run of this workflow on each branch, automatically cancelling older runs. | ||
group: alpha-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Common cache | ||
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job | ||
- name: Cache CocoaPods libraries | ||
uses: actions/cache@v2 | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Cache Ruby gems | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
# Make sure we use the latest version of MatrixSDK | ||
- name: Reset MatrixSDK pod | ||
run: rm -rf Pods/MatrixSDK | ||
|
||
# Common setup | ||
# Note: GH actions do not support yaml anchor yet. We need to duplicate this for every job | ||
- name: Brew bundle | ||
run: brew bundle | ||
- name: Bundle install | ||
run: | | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Use right MatrixSDK versions | ||
run: bundle exec fastlane point_dependencies_to_related_branches | ||
|
||
# Import alpha release private signing certificate | ||
- name: Import signing certificate | ||
uses: apple-actions/import-codesign-certs@v1 | ||
with: | ||
p12-file-base64: ${{ secrets.ALPHA_CERTIFICATES_P12 }} | ||
p12-password: ${{ secrets.ALPHA_CERTIFICATES_P12_PASSWORD }} | ||
|
||
# Main step | ||
# The Ad-hoc release link will be referenced as 'DIAWI_FILE_LINK' | ||
# and QR link as 'DIAWI_QR_CODE_LINK' when the Diawi upload succeed | ||
- name: Build Ad-hoc release and send it to Diawi | ||
run: bundle exec fastlane alpha | ||
env: | ||
APPSTORECONNECT_KEY_ID: ${{ secrets.APPSTORECONNECT_KEY_ID }} | ||
APPSTORECONNECT_KEY_ISSUER_ID: ${{ secrets.APPSTORECONNECT_KEY_ISSUER_ID }} | ||
APPSTORECONNECT_KEY_CONTENT: ${{ secrets.APPSTORECONNECT_KEY_CONTENT }} | ||
DIAWI_API_TOKEN: ${{ secrets.DIAWI_API_TOKEN }} | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
|
||
- name: Add or update PR comment with Ad-hoc release informations | ||
uses: NejcZdovc/comment-pr@v1 | ||
with: | ||
message: | | ||
:iphone: Scan the QR code below to install the build for this PR. | ||
:lock: This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha. | ||
![QR code](${{ env.DIAWI_QR_CODE_LINK }}) | ||
If you can't scan the QR code you can install the build via this link: ${{ env.DIAWI_FILE_LINK }} | ||
# Enables to identify and update existing Ad-hoc release message on new commit in the PR | ||
identifier: "GITHUB_COMMENT_ADHOC_RELEASE" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,31 @@ | ||
name: SonarCloud analysis | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "develop" ] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pull-requests: read # allows SonarCloud to decorate PRs with analysis results | ||
|
||
jobs: | ||
Analysis: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Analyze with SonarCloud | ||
|
||
# You can pin the exact commit or the version. | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate the token on Sonarcloud.io, add it to the secrets of this repo | ||
with: | ||
# Additional arguments for the sonarcloud scanner | ||
args: | ||
-Dsonar.projectKey=vector-im_element-ios | ||
-Dsonar.organization=new_vector_ltd_organization | ||
-Dsonar.inclusions=RiotSwiftUI/** | ||
# For more info about the parameters, please refer to https://docs.sonarcloud.io/advanced-setup/analysis-parameters/ |
This file was deleted.
Oops, something went wrong.
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
41 changes: 41 additions & 0 deletions
41
BroadcastUploadExtension/SupportingFiles/PrivacyInfo.xcprivacy
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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>1C8F.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>C617.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryDiskSpace</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>7D9E.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategorySystemBootTime</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>3D61.1</string> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
Oops, something went wrong.