Skip to content

Commit

Permalink
v0.10.0 (495)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaigner committed May 1, 2022
1 parent 519d33d commit ab001da
Show file tree
Hide file tree
Showing 465 changed files with 28,255 additions and 15,556 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [0.10.0 (495)] - 2022-03-24

- New behavior of your address book! Now, an Olvid user becomes a contact only if you explicitly agree. You are now in full control of your address book!
- A new list of "other" Olvid users is now accessible from the "Contacts" tab. Typically, these users are part of the same discussion groups as you. Inviting these users to be a contact of yours can be done in one tap!
- A group invite from a contact is now automatically accepted.
- You still need to explicitly accept group invites from Olvid users who are not part of your contacts.
- Sharing with Olvid is now easier and you can now share content into multiple discussions at once!
- Support for new emojis.
- The reactions are larger and easier to tap.
- Bugfix: The reactions were not properly refreshed (it required manual scrolling to actually see an update). This is fixed.
- Bugfix: Fixes an issue with user notifications that wouldn't show after an upgrade (until the first restart of the app)
- Bugfix: a double tap on an image would sometimes show a large version of the image instead of of the panel of reactions. This is fixed.
- Many important improvements made to calls, especially for group calls.
- The receipt indicator of sent messages is more reliable.
- If the app version is outdated, an alert recommends an upgrade.
- Upgrade of a third-party library.

## [0.9.18 (490)] - 2022-01-28

- Great improvements made to secure calls ! Including better quality in poor network conditions and reduced connecting time. Please note that your contact must also use the latest version of Olvid.
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.fr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [0.10.0 (495)] - 2022-03-24

- Nouveau comportement de votre carnet d'adresse Olvid ! Maintenant, un autre utilisateur d'Olvid devient un contact uniquement si vous l'acceptez explicitement. Vous avez enfin un contrôle total sur votre carnet d'adresse ;-)
- Une nouvelle liste « d'autres » utilisateurs d'Olvid est maintenant accessible depuis l'écran de Contacts. Ces utilisateurs sont typiquement ceux qui font partie des mêmes groupes que vous mais qui ne sont néanmoins pas des contacts. Pour vous les inviter en une touche !
- Maintenant, une invitation à un groupe provenant d'un contact est automatiquement acceptée.
- Vous devez toujours accepter explicitement une invitation à un groupe si elle provient d'un utilisateur qui ne fait partie de vos contacts.
- Le partage via Olvid a été entièrement refait ! Il est maintenant possible de partager du contenu vers plusieurs discussions en une seule fois !
- Support pour de nouveaux émojis.
- Les réactions affichées dans la vue de discussion sont plus faciles à atteindre.
- Les réactions n'étaient pas systématiquement rafraîchies en cas de changement. C'est corrigé.
- Corrige un problème concernant les notifications utilisateur, qui pouvaient ne pas être affichée après une mise à jour de l'app (jusqu'au premier lancement).
- Faire un « double tap » sur une image dans une discussion pouvait afficher l'image au lieu du panel de réactions. C'est corrigé.
- D'importantes améliorations ont été apportées aux appels sécurisés, surtout dans le cas d'un appel de group à plus de 6 utilisateurs.
- L'indicateur de message envoyé est plus robuste.
- Si la version de l'app est obsolète, une alerte recommande de mettre à jour.
- Mise à jour d'une librairie tierce.

## [0.9.18 (490)] - 2022-01-28

- Nouvelles améliorations pour les appels sécurisés ! Cela inclut une meilleure qualité lorsque les conditions réseau sont mauvaises. Les connexions sont aussi beaucoup plus rapides. Notez que votre contact doit utiliser la dernière version d'Olvid.
Expand Down
2 changes: 1 addition & 1 deletion Engine/BigInt/BigInt/BigInt.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@
isa = PBXNativeTarget;
buildConfigurationList = C4A23FEE1F5D7B0B00BF68ED /* Build configuration list for PBXNativeTarget "BigInt" */;
buildPhases = (
C4A23FD71F5D7B0B00BF68ED /* Headers */,
C4A23FD51F5D7B0B00BF68ED /* Sources */,
C4A23FD61F5D7B0B00BF68ED /* Frameworks */,
C4A23FD71F5D7B0B00BF68ED /* Headers */,
C0A7695B276FEF9E00D22EE4 /* ShellScript */,
);
buildRules = (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1320"
LastUpgradeVersion = "1330"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Engine/BigInt/BigInt/BigIntTests/BigIntTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class BigIntTests: XCTestCase {
func testInitWithData() {
// [0x3b, 0xfc, 0xfc, 0xbc, 0xe1, 0x3b, 0xe4, 0x45, 0xf7, 0xa3, 0x00, 0xbb, 0x7c, 0x9f, 0xcf, 0x74, 0xff, 0x3e, 0x97, 0x39, 0x73, 0x5a, 0x41, 0x8f, 0x87, 0xbf, 0xaa, 0xf4, 0x6c] --> 1617279521167644146095981115981243499125601117211868865399382348592236
let bytes: [UInt8] = [0x3b, 0xfc, 0xfc, 0xbc, 0xe1, 0x3b, 0xe4, 0x45, 0xf7, 0xa3, 0x00, 0xbb, 0x7c, 0x9f, 0xcf, 0x74, 0xff, 0x3e, 0x97, 0x39, 0x73, 0x5a, 0x41, 0x8f, 0x87, 0xbf, 0xaa, 0xf4, 0x6c]
let data = Data(bytes: bytes)
let data = Data(bytes)
let computedBigInt = BigInt(data)
let expectedBigInt = try! BigInt("1617279521167644146095981115981243499125601117211868865399382348592236")
XCTAssertEqual(computedBigInt, expectedBigInt, "0x\(String(computedBigInt, base: .sixteen)) != 0x\(String(expectedBigInt, base: .sixteen))")
Expand Down
21 changes: 14 additions & 7 deletions Engine/BigInt/BigInt/Dependencies/gmp/gmp.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Definitions for GNU multiple precision functions. -*- mode: c -*-
Copyright 1991, 1993-1997, 1999-2016 Free Software Foundation, Inc.
Copyright 1991, 1993-1997, 1999-2016, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
Expand Down Expand Up @@ -341,7 +341,11 @@ typedef __mpq_struct *mpq_ptr;
__GMP_ATTRIBUTE_PURE. */

#if defined (__cplusplus)
#if __cplusplus >= 201103L
#define __GMP_NOTHROW noexcept
#else
#define __GMP_NOTHROW throw ()
#endif
#else
#define __GMP_NOTHROW
#endif
Expand Down Expand Up @@ -845,13 +849,13 @@ __GMP_DECLSPEC mp_bitcnt_t mpz_hamdist (mpz_srcptr, mpz_srcptr) __GMP_NOTHROW __
__GMP_DECLSPEC void mpz_import (mpz_ptr, size_t, int, size_t, int, size_t, const void *);

#define mpz_init __gmpz_init
__GMP_DECLSPEC void mpz_init (mpz_ptr);
__GMP_DECLSPEC void mpz_init (mpz_ptr) __GMP_NOTHROW;

#define mpz_init2 __gmpz_init2
__GMP_DECLSPEC void mpz_init2 (mpz_ptr, mp_bitcnt_t);

#define mpz_inits __gmpz_inits
__GMP_DECLSPEC void mpz_inits (mpz_ptr, ...);
__GMP_DECLSPEC void mpz_inits (mpz_ptr, ...) __GMP_NOTHROW;

#define mpz_init_set __gmpz_init_set
__GMP_DECLSPEC void mpz_init_set (mpz_ptr, mpz_srcptr);
Expand Down Expand Up @@ -1512,6 +1516,9 @@ __GMP_DECLSPEC mp_limb_t mpn_div_qr_2 (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_
#define mpn_gcd __MPN(gcd)
__GMP_DECLSPEC mp_size_t mpn_gcd (mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t);

#define mpn_gcd_11 __MPN(gcd_11)
__GMP_DECLSPEC mp_limb_t mpn_gcd_11 (mp_limb_t, mp_limb_t) __GMP_ATTRIBUTE_PURE;

#define mpn_gcd_1 __MPN(gcd_1)
__GMP_DECLSPEC mp_limb_t mpn_gcd_1 (mp_srcptr, mp_size_t, mp_limb_t) __GMP_ATTRIBUTE_PURE;

Expand Down Expand Up @@ -1840,7 +1847,7 @@ mpz_popcount (mpz_srcptr __gmp_u) __GMP_NOTHROW
mp_bitcnt_t __gmp_result;

__gmp_usize = __gmp_u->_mp_size;
__gmp_result = (__gmp_usize < 0 ? ULONG_MAX : 0);
__gmp_result = (__gmp_usize < 0 ? ~ __GMP_CAST (mp_bitcnt_t, 0) : __GMP_CAST (mp_bitcnt_t, 0));
if (__GMP_LIKELY (__gmp_usize > 0))
__gmp_result = mpn_popcount (__gmp_u->_mp_d, __gmp_usize);
return __gmp_result;
Expand Down Expand Up @@ -2317,12 +2324,12 @@ enum

/* Define CC and CFLAGS which were used to build this version of GMP */
#define __GMP_CC "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
#define __GMP_CFLAGS "-arch arm64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk --sysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -miphoneos-version-min=11.0 -flto"
#define __GMP_CFLAGS "-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -miphoneos-version-min=13.0 -flto"

/* Major version number is the value of __GNU_MP__ too, above. */
#define __GNU_MP_VERSION 6
#define __GNU_MP_VERSION_MINOR 1
#define __GNU_MP_VERSION_PATCHLEVEL 2
#define __GNU_MP_VERSION_MINOR 2
#define __GNU_MP_VERSION_PATCHLEVEL 1
#define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)

#define __GMP_H__
Expand Down
Binary file modified Engine/BigInt/BigInt/Dependencies/gmp/libgmp.a
Binary file not shown.
Binary file added Engine/BigInt/gmp_releases/gmp-6.2.1.tar.lz
Binary file not shown.
Binary file added Engine/BigInt/gmp_releases/gmp-6.2.1.tar.lz.sig
Binary file not shown.
18 changes: 7 additions & 11 deletions Engine/BigInt/make_static_gmp_lib.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

GMP_VERSION="6.1.2"
GMP_VERSION="6.2.1"
PLATFORMPATH="/Applications/Xcode.app/Contents/Developer/Platforms"
TOOLSPATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"
export IPHONEOS_DEPLOYMENT_TARGET="13" # can be set to 10.3 with Xcode 8.3.3
export IPHONEOS_DEPLOYMENT_TARGET="13.0" # can be set to 10.3 with Xcode 8.3.3
pwd=`pwd`

findLatestSDKVersion()
Expand Down Expand Up @@ -40,10 +40,10 @@ buildit()

export CC="$(xcrun -sdk iphoneos -find clang)"
export CPP="$CC -E"
export CFLAGS="-arch ${target} -isysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk --sysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk -miphoneos-version-min=$SDKVERSION -flto"
export CFLAGS="-arch ${target} -isysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk --sysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk -miphoneos-version-min=$IPHONEOS_DEPLOYMENT_TARGET -flto"
export AR=$(xcrun -sdk iphoneos -find ar)
export RANLIB=$(xcrun -sdk iphoneos -find ranlib)
export CPPFLAGS="-arch ${target} -isysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk --sysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk -miphoneos-version-min=$SDKVERSION"
export CPPFLAGS="-arch ${target} -isysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk --sysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk -miphoneos-version-min=$IPHONEOS_DEPLOYMENT_TARGET"
export LDFLAGS="-arch ${target} -isysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk --sysroot $PLATFORMPATH/$platform.platform/Developer/SDKs/$platform$SDKVERSION.sdk"
export CC_FOR_BUILD="IPHONEOS_DEPLOYMENT_TARGET='' clang"

Expand Down Expand Up @@ -83,19 +83,15 @@ distclean()

findLatestSDKVersion iPhoneOS
echo "Latest SDK version:" $SDKVERSION

echo "iOS deployment target:" $IPHONEOS_DEPLOYMENT_TARGET

# Step 1: Uncompress the GMP source in ./tmp

echo "Uncompressing GMP v$GMP_VERSION..."
mkdir -p $pwd/tmp
cp $pwd/gmp_releases/gmp-$GMP_VERSION.tar.bz2 $pwd/tmp/
cp $pwd/gmp_releases/gmp-$GMP_VERSION.tar.lz $pwd/tmp/
cd $pwd/tmp/
if [ -f gmp-$GMP_VERSION.tar ]; then
rm gmp-$GMP_VERSION.tar
fi
bunzip2 gmp-$GMP_VERSION.tar.bz2
tar xf gmp-$GMP_VERSION.tar
tar xf gmp-$GMP_VERSION.tar.lz


# Step 2: Distclean if possible
Expand Down
16 changes: 8 additions & 8 deletions Engine/ObvBackupManager/.swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ disabled_rules:
- redundant_objc_attribute
- nsobject_prefer_isequal
- unused_setter_value
custom_rules:
commented_code:
regex: '(?<!:|\/)\/\/\h*[a-z.](?!wiftlint)'
message: "Comment starting with lowercase letter - did you forget to delete old code?"
multiline_commented_code:
regex: '^\s*[a-z]'
match_kinds: comment
message: "Comment starting with lowercase letter - did you forget to delete old code?"
#custom_rules:
# commented_code:
# regex: '(?<!:|\/)\/\/\h*[a-z.](?!wiftlint)'
# message: "Comment starting with lowercase letter - did you forget to delete old code?"
# multiline_commented_code:
# regex: '^\s*[a-z]'
# match_kinds: comment
# message: "Comment starting with lowercase letter - did you forget to delete old code?"
15 changes: 3 additions & 12 deletions Engine/ObvBackupManager/ObvBackupManager/CoreData/Backup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -290,16 +290,7 @@ extension Backup {
case .ongoing:
notification = nil
case .ready:
if let successfulBackupInfos = successfulBackupInfos {
if successfulBackupInfos.forExport {
notification = ObvBackupNotification.backupForExportWasFinished(backupKeyUid: successfulBackupInfos.backupKeyUid, version: successfulBackupInfos.version, encryptedContent: successfulBackupInfos.encryptedContentRaw, flowId: flowId)
} else {
notification = ObvBackupNotification.backupForUploadWasFinished(backupKeyUid: successfulBackupInfos.backupKeyUid, version: successfulBackupInfos.version, encryptedContent: successfulBackupInfos.encryptedContentRaw, flowId: flowId)
}
} else {
assertionFailure()
notification = ObvBackupNotification.backupFailed(flowId: flowId)
}
notification = nil
case .exported:
if let successfulBackupInfos = successfulBackupInfos {
notification = ObvBackupNotification.backupForExportWasExported(backupKeyUid: successfulBackupInfos.backupKeyUid, version: successfulBackupInfos.version, flowId: flowId)
Expand All @@ -315,9 +306,9 @@ extension Backup {
assertionFailure()
}
case .failed:
notification = ObvBackupNotification.backupFailed(flowId: flowId)
notification = nil
}
notification?.postOnDispatchQueue(withLabel: "Queue for posting a Backup status changed notification", within: notificationDelegate)
notification?.postOnBackgroundQueue(within: notificationDelegate)
}

}
Expand Down
Loading

0 comments on commit ab001da

Please sign in to comment.