Skip to content

Commit a7b50f1

Browse files
authored
Merge pull request #633 from adjust/v4321
Version 4.32.1
2 parents 73e4121 + 7614f17 commit a7b50f1

File tree

14 files changed

+66
-43
lines changed

14 files changed

+66
-43
lines changed

Adjust.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Pod::Spec.new do |s|
22
s.name = "Adjust"
3-
s.version = "4.32.0"
3+
s.version = "4.32.1"
44
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
55
s.homepage = "https://github.com/adjust/ios_sdk"
66
s.license = { :type => 'MIT', :file => 'MIT-LICENSE' }
77
s.author = { "Adjust GmbH" => "[email protected]" }
8-
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.32.0" }
8+
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.32.1" }
99
s.ios.deployment_target = '9.0'
1010
s.tvos.deployment_target = '9.0'
1111
s.framework = 'SystemConfiguration'
12-
s.ios.weak_framework = 'AdSupport', 'iAd', 'CoreTelephony'
12+
s.ios.weak_framework = 'AdSupport', 'iAd'
1313
s.tvos.weak_framework = 'AdSupport'
1414
s.requires_arc = true
1515
s.default_subspec = 'Core'

Adjust/ADJUtil.m

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
static NSRegularExpression *shortUniversalLinkRegex = nil;
4040
static NSRegularExpression *excludedDeeplinkRegex = nil;
4141

42-
static NSString * const kClientSdk = @"ios4.32.0";
42+
static NSString * const kClientSdk = @"ios4.32.1";
4343
static NSString * const kDeeplinkParam = @"deep_link=";
4444
static NSString * const kSchemeDelimiter = @"://";
4545
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";
@@ -332,15 +332,17 @@ + (void)writeObject:(id)object
332332
}
333333

334334
if (@available(iOS 11.0, tvOS 11.0, *)) {
335-
NSError *errorArchiving = nil;
336-
// API introduced in iOS 11.
337-
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:object requiringSecureCoding:NO error:&errorArchiving];
338-
if (data && errorArchiving == nil) {
339-
NSError *errorWriting = nil;
340-
result = [data writeToFile:filePath options:NSDataWritingAtomic error:&errorWriting];
341-
result = result && (errorWriting == nil);
342-
} else {
343-
result = NO;
335+
@autoreleasepool {
336+
NSError *errorArchiving = nil;
337+
// API introduced in iOS 11.
338+
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:object requiringSecureCoding:NO error:&errorArchiving];
339+
if (data && errorArchiving == nil) {
340+
NSError *errorWriting = nil;
341+
result = [data writeToFile:filePath options:NSDataWritingAtomic error:&errorWriting];
342+
result = result && (errorWriting == nil);
343+
} else {
344+
result = NO;
345+
}
344346
}
345347
} else {
346348
// API_DEPRECATED [2.0-12.0]

Adjust/Adjust.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust SDK
44
//
5-
// V4.32.0
5+
// V4.32.1
66
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
77
// Copyright (c) 2012-2021 Adjust GmbH. All rights reserved.
88
//

AdjustBridge/AdjustBridgeRegister.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ + (NSString *)adjust_js {
256256
if (this.sdkPrefix) {
257257
return this.sdkPrefix;
258258
} else {
259-
return 'web-bridge4.32.0';
259+
return 'web-bridge4.32.1';
260260
}
261261
},
262262
setTestOptions: function(testOptions) {

AdjustBridge/WebViewJavascriptBridge/WKWebViewJavascriptBridge.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigat
107107
}
108108
}
109109

110+
- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation {
111+
if (webView != _webView) { return; }
112+
113+
__strong typeof(_webViewDelegate) strongDelegate = _webViewDelegate;
114+
if (strongDelegate && [strongDelegate respondsToSelector:@selector(webView:didCommitNavigation:)]) {
115+
[strongDelegate webView:webView didCommitNavigation:navigation];
116+
}
117+
}
110118

111119
- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler {
112120
if (webView != _webView) { return; }

AdjustTests/AdjustTestLibrary/AdjustTestLibrary.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
);
311311
runOnlyForDeploymentPostprocessing = 0;
312312
shellPath = /bin/sh;
313-
shellScript = "set -e\n\nexport FRAMEWORK_LOCN=\"${BUILT_PRODUCTS_DIR}/Static/${PRODUCT_NAME}.framework\"\n\n# Create the path to the real Headers die\nmkdir -p \"${FRAMEWORK_LOCN}/Versions/A/Headers\"\n\n# Create the required symlinks\n/bin/ln -sfh A \"${FRAMEWORK_LOCN}/Versions/Current\"\n/bin/ln -sfh Versions/Current/Headers \"${FRAMEWORK_LOCN}/Headers\"\n/bin/ln -sfh \"Versions/Current/${PRODUCT_NAME}\" \\\n\"${FRAMEWORK_LOCN}/${PRODUCT_NAME}\"\n\n# Copy the public headers into the framework\n/bin/cp -a \"${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}/\" \\\n\"${FRAMEWORK_LOCN}/Versions/A/Headers\"\n";
313+
shellScript = "set -e\n\nexport FRAMEWORK_LOCN=\"${BUILT_PRODUCTS_DIR}/Static/${PRODUCT_NAME}.framework\"\n\n# Create the path to the real Headers die\nmkdir -p \"${FRAMEWORK_LOCN}/Versions/A/Headers\"\n\n# Create the required symlinks\n/bin/ln -sfh A \"${FRAMEWORK_LOCN}/Versions/Current\"\n/bin/ln -sfh Versions/Current/Headers \"${FRAMEWORK_LOCN}/Headers\"\n/bin/ln -sfh \"Versions/Current/${PRODUCT_NAME}\" \\\n\"${FRAMEWORK_LOCN}/${PRODUCT_NAME}\"\n\n# Copy the public headers into the framework\n/bin/cp -a \"${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}/\" \\\n\"${FRAMEWORK_LOCN}/Versions/A/Headers\"\n\n# Copy the framework to the project directory\nditto \"${FRAMEWORK_LOCN}\" \"${SRCROOT}/../../Frameworks/static/${PRODUCT_NAME}.framework\"\n";
314314
};
315315
/* End PBXShellScriptBuildPhase section */
316316

AdjustTests/AdjustUnitTests/ADJPackageFields.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (id) init {
1616

1717
// default values
1818
self.appToken = @"qwerty123456";
19-
self.clientSdk = @"ios4.32.0";
19+
self.clientSdk = @"ios4.32.1";
2020
self.suffix = @"";
2121
self.environment = @"sandbox";
2222

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### Version 4.32.1 (26th September 2022)
2+
#### Fixed
3+
- Fixed memory issue when continuously writing to a file (https://github.com/adjust/ios_sdk/pull/626).
4+
- Added missing `WKNavigationDelegate`'s missing `didCommitNavigation` method handling inside of the `WKWebViewJavascriptBridge` (https://github.com/adjust/ios_sdk/pull/570).
5+
6+
---
7+
18
### Version 4.32.0 (7th September 2022)
29
#### Added
310
- Added partner sharing settings to the third party sharing feature.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.32.0
1+
4.32.1

scripts/build_definitions.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ Usage: $0 [options]
181181
XCF_FRM_ZIP_NAME__TV_STATIC="AdjustSdk-tvOS-Static"
182182
XCF_FRM_ZIP_NAME__IM_DYNAMIC="AdjustSdk-iMessage-Dynamic"
183183
XCF_FRM_ZIP_NAME__IM_STATIC="AdjustSdk-iMessage-Static"
184-
XCF_FRM_ZIP_NAME__WEB_BRIDGE_DYNAMIC="AdjustSdk-WebBridge-iOS-Dynamic"
185-
XCF_FRM_ZIP_NAME__WEB_BRIDGE_STATIC="AdjustSdk-WebBridge-iOS-Static"
184+
XCF_FRM_ZIP_NAME__WEB_BRIDGE_DYNAMIC="AdjustSdk-WebBridge-Dynamic"
185+
XCF_FRM_ZIP_NAME__WEB_BRIDGE_STATIC="AdjustSdk-WebBridge-Static"
186186

187187

188188
# previous builds artefacts cleanup
@@ -237,8 +237,7 @@ Usage: $0 [options]
237237
local output_file="$3"
238238

239239
cd "$input_folder"
240-
zip -r -X "$output_file" "$input_file"
241-
rm -rf "$input_file"
240+
zip -r -X -y "$output_file" "$input_file"
242241
cd -
243242
}
244243

@@ -254,6 +253,8 @@ Usage: $0 [options]
254253
XCODE12PLUS=1
255254
fi
256255

256+
SDK_VERSION=$(head -n 1 VERSION)
257+
echo "$SDK_VERSION"
257258

258259
# Build, Lipo an Zip framework function
259260
function build_static_fat_framework() {
@@ -334,9 +335,10 @@ Usage: $0 [options]
334335
fi
335336

336337
cd "$build_root_folder/$target_scheme/universal"
337-
zip -r -X "$zip_file_name" "$framework_name.framework"
338+
zip -r -X -y "$zip_file_name" "$framework_name.framework"
338339
cd -
339340
mv "$build_root_folder/$target_scheme/universal/$zip_file_name" "$output_folder"
341+
mv "$build_root_folder/$target_scheme/universal/$framework_name.framework" "$output_folder"
340342
rm -rf "$build_root_folder/$target_scheme"
341343

342344
}

0 commit comments

Comments
 (0)