Skip to content

Commit c583692

Browse files
authored
Merge pull request #31 from adjust/v4233
Version 4.23.3
2 parents 8247610 + 59e6e70 commit c583692

File tree

12 files changed

+50
-33
lines changed

12 files changed

+50
-33
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### Version 4.23.3 (18th December 2020)
2+
#### Added
3+
- Added URL strategy constants to `AdjustConfig` for more straight forward feature usage.
4+
5+
#### Native SDKs
6+
- [[email protected]][ios_sdk_v4.23.2]
7+
- [[email protected]][android_sdk_v4.24.1]
8+
9+
---
10+
111
### Version 4.23.2 (11th November 2020)
212
#### Added
313
- Added [Flutter 1.2 or later](https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects) support for Android projects.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You can add Adjust SDK to your Flutter app by adding following to your `pubspec.
9393

9494
```yaml
9595
dependencies:
96-
adjust_sdk: ^4.23.2
96+
adjust_sdk: ^4.23.3
9797
```
9898
9999
Then navigate to your project in the terminal and run:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.23.2
1+
4.23.3

android/src/main/java/com/adjust/sdk/flutter/AdjustSdk.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,16 @@ private void start(final MethodCall call, final Result result) {
315315
adjustConfig.setExternalDeviceId(externalDeviceId);
316316
}
317317

318+
// URL strategy.
319+
if (configMap.containsKey("urlStrategy")) {
320+
String urlStrategy = (String) configMap.get("urlStrategy");
321+
if (urlStrategy.equalsIgnoreCase("china")) {
322+
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_CHINA);
323+
} else if (urlStrategy.equalsIgnoreCase("india")) {
324+
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_INDIA);
325+
}
326+
}
327+
318328
// User agent.
319329
if (configMap.containsKey("userAgent")) {
320330
String userAgent = (String) configMap.get("userAgent");
@@ -495,12 +505,7 @@ public boolean launchReceivedDeeplink(Uri uri) {
495505
}
496506
}
497507

498-
// Url strategy.
499-
if (configMap.containsKey("urlStrategy")) {
500-
String urlStrategy = (String) configMap.get("urlStrategy");
501-
adjustConfig.setUrlStrategy(urlStrategy);
502-
}
503-
508+
// TODO: expose to dart
504509
// Preinstall tracking.
505510
if (configMap.containsKey("preinstallTrackingEnabled")) {
506511
String strPreinstallTrackingEnabled = (String) configMap.get("preinstallTrackingEnabled");

example/ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PODS:
2-
- Adjust (4.23.0):
3-
- Adjust/Core (= 4.23.0)
4-
- Adjust/Core (4.23.0)
5-
- adjust_sdk (4.23.0):
6-
- Adjust (= 4.23.0)
2+
- Adjust (4.23.2):
3+
- Adjust/Core (= 4.23.2)
4+
- Adjust/Core (4.23.2)
5+
- adjust_sdk (4.23.3):
6+
- Adjust (= 4.23.2)
77
- Flutter
88
- Flutter (1.0.0)
99

@@ -22,9 +22,9 @@ EXTERNAL SOURCES:
2222
:path: Flutter
2323

2424
SPEC CHECKSUMS:
25-
Adjust: 552e4f9bbc77501b2000f483491b20642081749a
26-
adjust_sdk: 66801d7bb9e2b5a7fa23eeeb248faca5b821aab3
27-
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
25+
Adjust: 2faf94752c2069c0bc68bc41c03d00175de4555f
26+
adjust_sdk: 465ba0e8398b803e7e993bb829dd14037752a05a
27+
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
2828

2929
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
3030

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,11 +36,11 @@
3836
ReferencedContainer = "container:Runner.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
45-
buildConfiguration = "Debug"
43+
buildConfiguration = "Release"
4644
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4745
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
4846
launchStyle = "0"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:Runner.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Profile"

ios/Classes/AdjustSdk.m

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
122122
NSString *defaultTracker = call.arguments[@"defaultTracker"];
123123
NSString *externalDeviceId = call.arguments[@"externalDeviceId"];
124124
NSString *userAgent = call.arguments[@"userAgent"];
125+
NSString *urlStrategy = call.arguments[@"urlStrategy"];
125126
NSString *secretId = call.arguments[@"secretId"];
126127
NSString *info1 = call.arguments[@"info1"];
127128
NSString *info2 = call.arguments[@"info2"];
@@ -142,7 +143,6 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
142143
NSString *dartDeferredDeeplinkCallback = call.arguments[@"deferredDeeplinkCallback"];
143144
BOOL allowSuppressLogLevel = NO;
144145
BOOL launchDeferredDeeplink = [call.arguments[@"launchDeferredDeeplink"] boolValue];
145-
NSString *urlStrategy = call.arguments[@"urlStrategy"];
146146

147147
// Suppress log level.
148148
if ([self isFieldValid:logLevel]) {
@@ -186,6 +186,15 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
186186
[adjustConfig setUserAgent:userAgent];
187187
}
188188

189+
// URL strategy.
190+
if ([self isFieldValid:urlStrategy]) {
191+
if ([urlStrategy isEqualToString:@"china"]) {
192+
[adjustConfig setUrlStrategy:ADJUrlStrategyChina];
193+
} else if ([urlStrategy isEqualToString:@"india"]) {
194+
[adjustConfig setUrlStrategy:ADJUrlStrategyIndia];
195+
}
196+
}
197+
189198
// Background tracking.
190199
if ([self isFieldValid:sendInBackground]) {
191200
[adjustConfig setSendInBackground:[sendInBackground boolValue]];
@@ -249,11 +258,6 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
249258
andMethodChannel:self.channel]];
250259
}
251260

252-
// Url strategy.
253-
if ([self isFieldValid:urlStrategy]) {
254-
[adjustConfig setUrlStrategy:urlStrategy];
255-
}
256-
257261
// Start SDK.
258262
[Adjust appDidLaunch:adjustConfig];
259263
[Adjust trackSubsessionStart];

ios/adjust_sdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'adjust_sdk'
3-
s.version = '4.23.2'
3+
s.version = '4.23.3'
44
s.summary = 'Adjust Flutter SDK for iOS platform'
55
s.description = <<-DESC
66
Adjust Flutter SDK for iOS platform.

lib/adjust.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'package:adjust_sdk/adjust_app_store_subscription.dart';
1717
import 'package:adjust_sdk/adjust_play_store_subscription.dart';
1818

1919
class Adjust {
20-
static const String _sdkPrefix = 'flutter4.23.2';
20+
static const String _sdkPrefix = 'flutter4.23.3';
2121
static const MethodChannel _channel = const MethodChannel('com.adjust.sdk/api');
2222

2323
static void start(AdjustConfig config) {

lib/adjust_config.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class AdjustConfig {
3131
static const String _eventSuccessCallbackName = 'adj-event-success';
3232
static const String _eventFailureCallbackName = 'adj-event-failure';
3333
static const String _deferredDeeplinkCallbackName = 'adj-deferred-deeplink';
34+
static const String UrlStrategyIndia = 'india';
35+
static const String UrlStrategyChina = 'china';
3436

3537
num _info1;
3638
num _info2;

0 commit comments

Comments
 (0)