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

6.4.3 #1192

Merged
merged 26 commits into from
Aug 15, 2024
Merged

6.4.3 #1192

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
054542f
Make macos review team happy
tmolitor-stud-tu Aug 2, 2024
89795ba
Fix quicksy build
tmolitor-stud-tu Aug 2, 2024
7a62461
Make sure to open the receivers chat when sharing via sharesheet
tmolitor-stud-tu Aug 2, 2024
87e8fa5
Make sure to not create deadlocks when using our active chats view stack
tmolitor-stud-tu Aug 2, 2024
ddc28b6
Don't show notifications for outgoing media files sent from 2nd device
tmolitor-stud-tu Aug 3, 2024
4ff0cd6
Fix SASL1 to SASL2 upgrade path for LDAP, fixes #1186
tmolitor-stud-tu Aug 3, 2024
0a293da
Improve monal_id_returning_void_block_t type
tmolitor-stud-tu Aug 3, 2024
bc51396
Streamline code for better SASL2 DoS protection
tmolitor-stud-tu Aug 3, 2024
c266241
6.4.3-rc1 (#1191)
tmolitor-stud-tu Aug 3, 2024
efa0b9c
only set plain_activated to true when supports_sasl2 is false
FriedrichAltheide Aug 4, 2024
04c5689
6.4.3-rc2 (#1193)
tmolitor-stud-tu Aug 4, 2024
f13caf0
Fix non-alpha build upload script
tmolitor-stud-tu Aug 4, 2024
baef718
6.4.3-rc3 (#1194)
tmolitor-stud-tu Aug 4, 2024
9b0d5a0
Allow PLAIN auth after account registration
tmolitor-stud-tu Aug 5, 2024
066ae1a
6.4.3-rc4 (#1195)
tmolitor-stud-tu Aug 5, 2024
df02c01
Quicksy - RO fastlane
licaon-kter Aug 7, 2024
31a8352
Improve github workflows and mail2webhook script
tmolitor-stud-tu Aug 7, 2024
418542f
Fix crash on incoming filetransfers without pending notification
tmolitor-stud-tu Aug 8, 2024
3327a79
Fix opening of chats when other views are in foreground
tmolitor-stud-tu Aug 11, 2024
1538c8a
Improve SSDP handling
tmolitor-stud-tu Aug 12, 2024
47972ec
Fix crash on macOS when removing account or clearing history
tmolitor-stud-tu Aug 12, 2024
8ea3a4f
Fix semver check in quicksy workflow
tmolitor-stud-tu Aug 12, 2024
85f8b26
Fix omemo devicelist fetch handling
tmolitor-stud-tu Aug 12, 2024
f2ea552
Add new kMonalOmemoFetchingStateUpdate notification
tmolitor-stud-tu Aug 12, 2024
77b5642
Show HUD while loading omemo keys the first time
tmolitor-stud-tu Aug 12, 2024
cee3822
Use workaround for ios bug not properly removing share intentions
tmolitor-stud-tu Aug 12, 2024
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
12 changes: 11 additions & 1 deletion .github/workflows/beta.build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
lfs: true
- name: Checkout submodules
run: git submodule update -f --init --remote
- name: Check for proper semantic versioning
run: |
version="$(git log -n 1 --merges --pretty=format:%s | sed -E 's/^[\t\n ]*([^\n\t ]+)[\t\n ]+\(([^\n\t ]+)\)[\t\n ]*$/\1/g')"
if ! [[ "$version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
echo "Invalid semver: '$version'!"
exit 1
fi
- name: Get last build tag and increment it
run: |
oldBuildNumber=$(git tag --sort="v:refname" | grep "Build_iOS" | grep -v "Quicksy_Build_iOS" | tail -n1 | sed 's/Build_iOS_//g')
Expand Down Expand Up @@ -203,7 +210,10 @@ jobs:
path: Monal/build/app/Monal.pkg
if-no-files-found: error
- name: Upload new catalyst beta to monal-im.org
run: ./scripts/uploadNonAlpha.sh beta
env:
UPLOAD_TYPE: beta
buildNumber: ${{ steps.releasenotes.outputs.buildNumber }}
run: ./scripts/uploadNonAlpha.sh
- name: Publish catalyst to appstore connect
#run: xcrun altool --upload-app --file ./Monal/build/app/Monal.pkg --type macos --asc-provider S8D843U34Y -u "$(cat /Users/ci/apple_connect_upload_mail.txt)" -p "$(cat /Users/ci/apple_connect_upload_secret.txt)" --primary-bundle-id org.monal-im.prod.catalyst.monal
env:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-quicksy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
release-notes: ${{ steps.releasenotes.outputs.notes }}
release-notes_ios: ${{ steps.releasenotes.outputs.notes_ios }}
# create release only if the ios app made it to the appstore and ignore the macos appstore state
if: github.event.client_payload.Platform == 'iOS'
if: github.event.client_payload.platform == 'iOS'
steps:
# - run: |
# echo ${{ github.event.client_payload.AppName }}
# echo ${{ github.event.client_payload.Platform }}
# echo ${{ github.event.client_payload.AppVersionNumber }}
# echo ${{ github.event.client_payload.appName }}
# echo ${{ github.event.client_payload.platform }}
# echo ${{ github.event.client_payload.appVersionNumber }}
- name: Load release info
id: releasenotes
run: |
buildNumber="$(fastlane run app_store_build_number api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" app_identifier:"G7YU7X7KRJ.SworIM" live:false version:"${{ github.event.client_payload.AppVersionNumber }}" 2>&1 | tee /dev/stderr | grep Result | sed -E 's/^.*Result: ([0-9]+).*$/\1/g')"
buildNumber="$(fastlane run app_store_build_number api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" app_identifier:"G7YU7X7KRJ.SworIM" live:false version:"${{ github.event.client_payload.appVersionNumber }}" 2>&1 | tee /dev/stderr | grep Result | sed -E 's/^.*Result: ([0-9]+).*$/\1/g')"
mkdir -p /Users/ci/releases
OUTPUT_FILE="/Users/ci/releases/$buildNumber.output"
OUTPUT_FILE="/Users/ci/quicksy_releases/$buildNumber.output"
touch "$OUTPUT_FILE"
cat "$OUTPUT_FILE" >> "$GITHUB_OUTPUT"

10 changes: 5 additions & 5 deletions .github/workflows/publish-stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
release-notes_macos: ${{ steps.releasenotes.outputs.notes_macos }}
release-id: ${{ steps.releasenotes.outputs.releaseID }}
# create release only if the ios app made it to the appstore and ignore the macos appstore state
if: github.event.client_payload.Platform == 'iOS'
if: github.event.client_payload.platform == 'iOS'
steps:
# - run: |
# echo ${{ github.event.client_payload.AppName }}
# echo ${{ github.event.client_payload.Platform }}
# echo ${{ github.event.client_payload.AppVersionNumber }}
# echo ${{ github.event.client_payload.appName }}
# echo ${{ github.event.client_payload.platform }}
# echo ${{ github.event.client_payload.appVersionNumber }}
- name: Load release info
id: releasenotes
run: |
buildNumber="$(fastlane run app_store_build_number api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" app_identifier:"G7YU7X7KRJ.SworIM" live:false version:"${{ github.event.client_payload.AppVersionNumber }}" 2>&1 | tee /dev/stderr | grep Result | sed -E 's/^.*Result: ([0-9]+).*$/\1/g')"
buildNumber="$(fastlane run app_store_build_number api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" app_identifier:"G7YU7X7KRJ.SworIM" live:false version:"${{ github.event.client_payload.appVersionNumber }}" 2>&1 | tee /dev/stderr | grep Result | sed -E 's/^.*Result: ([0-9]+).*$/\1/g')"
mkdir -p /Users/ci/releases
OUTPUT_FILE="/Users/ci/releases/$buildNumber.output"
touch "$OUTPUT_FILE"
Expand Down
31 changes: 22 additions & 9 deletions .github/workflows/quicksy.build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
env:
APP_NAME: "Quicksy"
BUILD_SCHEME: "Quicksy"
APP_DIR: "Monal.app"
BUILD_TYPE: "AppStore"
BUILD_TYPE: "AppStore-Quicksy"
EXPORT_OPTIONS_IOS: "../scripts/exportOptions/Quicksy_Stable_iOS_ExportOptions.plist"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -33,6 +32,18 @@ jobs:
lfs: true
- name: Checkout submodules
run: git submodule update -f --init --remote
- name: Check for proper semantic versioning
run: |
buildNumber="$(git tag --sort="v:refname" | grep "Quicksy_Build_iOS" | tail -n1 | sed 's/Quicksy_Build_iOS_//g')"
version="$(git log -n 1 --merges --pretty=format:%s | sed -E 's/^[\t\n ]*([^\n\t ]+)[\t\n ]+\(([^\n\t ]+)\)[\t\n ]*$/\1/g')"
if [ "${{ github.ref }}" != "refs/heads/stable" ]; then
version="1.$buildNumber.0"
fi

if ! [[ "$version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
echo "Invalid semver: '$version'!"
exit 1
fi
- name: Get last build tag and increment it
run: |
oldBuildNumber=$(git tag --sort="v:refname" | grep "Quicksy_Build_iOS" | tail -n1 | sed 's/Quicksy_Build_iOS_//g')
Expand Down Expand Up @@ -60,9 +71,11 @@ jobs:
}
buildNumber="$(git tag --sort="v:refname" | grep "Quicksy_Build_iOS" | tail -n1 | sed 's/Quicksy_Build_iOS_//g')"
version="$(git log -n 1 --merges --pretty=format:%s | sed -E 's/^[\t\n ]*([^\n\t ]+)[\t\n ]+\(([^\n\t ]+)\)[\t\n ]*$/\1/g')"
version="6.4.2"
mkdir -p /Users/ci/releases
OUTPUT_FILE="/Users/ci/releases/$buildNumber.output"
if [ "${{ github.ref }}" != "refs/heads/stable" ]; then
version="1.$buildNumber"
fi
mkdir -p /Users/ci/quicksy_releases
OUTPUT_FILE="/Users/ci/quicksy_releases/$buildNumber.output"
touch "$OUTPUT_FILE"
echo "OUTPUT_FILE=$OUTPUT_FILE" | tee /dev/stderr >> "$GITHUB_OUTPUT"

Expand Down Expand Up @@ -103,15 +116,15 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: monal-ios
path: Monal/build/ipa/Monal.ipa
path: Monal/build/ipa/Quicksy.ipa
if-no-files-found: error
# - uses: actions/upload-artifact@v4
# with:
# name: monal-ios-dsym
# path: Monal/build/ios_Monal.xcarchive/dSYMs
# if-no-files-found: error
- name: validate ios app
run: xcrun altool --validate-app --file ./Monal/build/ipa/Monal.ipa --type ios -u $(cat /Users/ci/apple_connect_upload_mail.txt) -p "$(cat /Users/ci/apple_connect_upload_secret.txt)"
run: xcrun altool --validate-app --file ./Monal/build/ipa/Quicksy.ipa --type ios -u $(cat /Users/ci/apple_connect_upload_mail.txt) -p "$(cat /Users/ci/apple_connect_upload_secret.txt)"
- name: push tag to stable repo
run: |
buildNumber=$(git tag --sort="v:refname" | grep "Quicksy_Build_iOS" | tail -n1 | sed 's/Quicksy_Build_iOS_//g')
Expand All @@ -132,11 +145,11 @@ jobs:
done
echo "path_ios=$path_ios" | tee /dev/stderr >> "$GITHUB_OUTPUT"
- name: Publish ios to appstore connect
#run: xcrun altool --upload-app --file ./Monal/build/ipa/Monal.ipa --type ios --asc-provider S8D843U34Y --team-id S8D843U34Y -u $(cat /Users/ci/apple_connect_upload_mail.txt) -p "$(cat /Users/ci/apple_connect_upload_secret.txt)"
#run: xcrun altool --upload-app --file ./Monal/build/ipa/Quicksy.ipa --type ios --asc-provider S8D843U34Y --team-id S8D843U34Y -u $(cat /Users/ci/apple_connect_upload_mail.txt) -p "$(cat /Users/ci/apple_connect_upload_secret.txt)"
env:
DELIVER_METADATA_PATH: ${{ steps.metadata.outputs.path_ios }}
run: |
fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Monal.ipa" app_version:"${{ steps.releasenotes.outputs.version }}" platform:ios reject_if_possible:true submit_for_review:true automatic_release:true skip_metadata:false skip_screenshots:true precheck_include_in_app_purchases:false version_check_wait_retry_limit:10 force:true
fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Quicksy.ipa" app_version:"${{ steps.releasenotes.outputs.version }}" platform:ios reject_if_possible:true submit_for_review:true automatic_release:true skip_metadata:false skip_screenshots:true precheck_include_in_app_purchases:false version_check_wait_retry_limit:10 force:true
- name: Remove fastlane metadata directory
run: |
rm -rf "${{ steps.metadata.outputs.path }}"
12 changes: 11 additions & 1 deletion .github/workflows/stable.build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
lfs: true
- name: Checkout submodules
run: git submodule update -f --init --remote
- name: Check for proper semantic versioning
run: |
version="$(git log -n 1 --merges --pretty=format:%s | sed -E 's/^[\t\n ]*([^\n\t ]+)[\t\n ]+\(([^\n\t ]+)\)[\t\n ]*$/\1/g')"
if ! [[ "$version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
echo "Invalid semver: '$version'!"
exit 1
fi
- name: Get last build tag and increment it
run: |
oldBuildNumber=$(git tag --sort="v:refname" | grep "Build_iOS" | grep -v "Quicksy_Build_iOS" | tail -n1 | sed 's/Build_iOS_//g')
Expand Down Expand Up @@ -175,7 +182,10 @@ jobs:
path: Monal/build/app/Monal.pkg
if-no-files-found: error
- name: Upload new catalyst stable to monal-im.org
run: ./scripts/uploadNonAlpha.sh stable
env:
UPLOAD_TYPE: stable
buildNumber: ${{ steps.releasenotes.outputs.buildNumber }}
run: ./scripts/uploadNonAlpha.sh
- name: Publish catalyst to appstore connect
#run: xcrun altool --upload-app --file ./Monal/build/app/Monal.pkg --type macos --asc-provider S8D843U34Y -u "$(cat /Users/ci/apple_connect_upload_mail.txt)" -p "$(cat /Users/ci/apple_connect_upload_secret.txt)" --primary-bundle-id maccatalyst.G7YU7X7KRJ.SworIM
env:
Expand Down
9 changes: 7 additions & 2 deletions Monal/Classes/AVCallUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,14 @@ struct AVCallUI: View {
VStack {
Spacer().frame(height: 8)
Button(action: {
self.delegate.dismissWithoutAnimation()
if let activeChats = self.appDelegate.obj.activeChats {
activeChats.presentChat(with:self.contact.obj)
//make sure we don't animate anything
activeChats.dismissCompleteViewChain(withAnimation: false) {
activeChats.presentChat(with:self.contact.obj)
}
} else {
//self.delegate.dismissWithoutAnimation()
unreachable("active chats should always be accessible from AVCallUI!")
}
}, label: {
Image(systemName: "text.bubble")
Expand Down
2 changes: 2 additions & 0 deletions Monal/Classes/ActiveChatsViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ NS_ASSUME_NONNULL_BEGIN
-(void) showAddContact;
-(void) sheetDismissed;

-(void) dismissCompleteViewChainWithAnimation:(BOOL) animation andCompletion:(monal_void_block_t _Nullable) completion;

@end

NS_ASSUME_NONNULL_END
Loading