Skip to content

Commit

Permalink
Merge branch 'release/v7.9.0' into 'master'
Browse files Browse the repository at this point in the history
Release 7.9.0

See merge request sdk/sdk!5774
  • Loading branch information
adlonMEGA committed Sep 2, 2024
2 parents bf44972 + 7f14d30 commit 075bfce
Show file tree
Hide file tree
Showing 113 changed files with 1,910 additions and 8,401 deletions.
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ doc/example/lsmega
Debug
Release
/build-x??-*-mega*/
/contrib/QtCreator/build-*
/contrib/build-MEGAsdk-Desktop-*
/contrib/cmake/cmake-build-*
/contrib/build-cmake-Desktop-*
/contrib/cmake/.idea
/contrib/cmake/build
/contrib/cmake/build3rdParty/build
megaclient_statecache*
*.autosave

Expand Down
13 changes: 0 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@

option(OLD_CMAKE "" OFF)

if(OLD_CMAKE)
# This file is here in the root folder so it can be opened as a CMake project in Visual Studio, eg in order to debug a Linux build in WSL2.
cmake_minimum_required(VERSION 3.13)
project(TryWSL)
include(${CMAKE_CURRENT_LIST_DIR}/contrib/cmake/CMakeLists.txt)

# Do not continue with the rest of the CMake file.
return()
endif()

# CMakeLists.txt file to build the SDKlib library.
#
# It can be used to build a standalone library or to be included via add_subdirectory.
Expand Down
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,6 @@ To run the example app `megacli`, go to the `examples` directory in the `build_d

## How to build the SDK library (Obsolete methods)

### Build the SDK and 3rdParty Dependencies with vcpkg + cmake
* The steps to build the SDK are already prepared in the build_from_scratch.cmake script. It contains instructions too.
* To get started with it, eg for windows, follow these steps:
* mkdir mybuild
* cd mybuild
* git clone https://github.com/meganz/sdk.git
* cd sdk\contrib\cmake
* <on Win, choose VS version by editing vcpkg_extra_triplets\xNN-windows-mega.cmake>
* cmake -DTRIPLET=x64-windows-mega -DEXTRA_ARGS="-DUSE_PDFIUM=0" -P build_from_scratch.cmake
* Visual Studio solution is generated at mybuild\sdk\build-x64-windows-mega
* That folder contains Debug and Release subfolders which contain build products
* Similar steps work for other platforms too (Linux with triplet x64-linux-mega (including WSL), Mac with triplet x64-osx-mega or arm64-osx-mega).

### Building with POSIX Autotools (Linux/Darwin/BSD/OSX ...)

For platforms with Autotools, first set up needed libraries and then the generic way to build and install it is:
Expand Down
8 changes: 6 additions & 2 deletions bindings/ios/MEGACancelToken.mm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ - (instancetype)init {
}

- (void)dealloc {
delete _megaCancelToken;
if (_megaCancelToken) {
delete _megaCancelToken;
}
}

- (mega::MegaCancelToken *)getCPtr {
Expand All @@ -54,7 +56,9 @@ - (BOOL)isCancelled {
}

- (void)cancel {
self.megaCancelToken->cancel();
if (_megaCancelToken) {
self.megaCancelToken->cancel();
}
}

@end
6 changes: 6 additions & 0 deletions bindings/ios/MEGASdk.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,12 @@ - (void)creditCardCancelSubscriptions:(nullable NSString *)reason delegate:(id<M
}
}

- (void)creditCardCancelSubscriptions:(nullable NSString *)reason subscriptionId:(nullable NSString *)subscriptionId canContact:(BOOL)canContact delegate:(id<MEGARequestDelegate>)delegate {
if (self.megaApi) {
self.megaApi->creditCardCancelSubscriptions(reason.UTF8String, subscriptionId.UTF8String, canContact, [self createDelegateMEGARequestListener:delegate singleListener:YES queueType:ListenerQueueTypeCurrent]);
}
}

- (void)changePassword:(NSString *)oldPassword newPassword:(NSString *)newPassword delegate:(id<MEGARequestDelegate>)delegate {
if (self.megaApi) {
self.megaApi->changePassword(oldPassword.UTF8String, newPassword.UTF8String, [self createDelegateMEGARequestListener:delegate singleListener:YES]);
Expand Down
11 changes: 11 additions & 0 deletions bindings/ios/include/MEGASdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -5645,6 +5645,17 @@ typedef NS_ENUM(NSInteger, MEGAClientType) {
*/
- (void)creditCardCancelSubscriptions:(nullable NSString *)reason delegate:(id<MEGARequestDelegate>)delegate;

/**
* @brief Cancel credit card subscriptions of the account
*
* The associated request type with this request is MEGARequestTypeCreditCardCancelSubscriptions
* @param reason Reason for the cancellation. It can be nil.
* @param subscriptionId The subscription ID for the cancellation. It can be nil.
* @param canContact Whether the user has permitted MEGA to contact them for the cancellation.
* @param delegate MEGARequestDelegate to track this request
*/
- (void)creditCardCancelSubscriptions:(nullable NSString *)reason subscriptionId:(nullable NSString *)subscriptionId canContact:(BOOL)canContact delegate:(id<MEGARequestDelegate>)delegate;

/**
* @brief Change the password of the MEGA account.
*
Expand Down
2 changes: 0 additions & 2 deletions bindings/qt/.gitignore

This file was deleted.

194 changes: 0 additions & 194 deletions bindings/qt/build_with_webrtc.sh

This file was deleted.

Loading

0 comments on commit 075bfce

Please sign in to comment.