Skip to content

Commit 2d12e2b

Browse files
authored
Merge pull request #345 from Countly/2540_release_np
2540 release np
2 parents 62eee28 + 34eee02 commit 2d12e2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+806
-196
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 25.4.0-np
2+
* ! Minor breaking change ! Removed Secure.ANDROID_ID on Android and UIDevice.currentDevice.identifierForVendor on iOS usages in device ID generation. The SDKs now exclusively uses random UUIDs for device ID generation.
3+
* ! Minor breaking change ! SDK now has Server Configuration feature and it is enabled by default. Changes made on SDK Manager > SDK Configuration on your server will affect SDK behavior directly.
4+
5+
* Added `refreshContentZone` method to Content interface for refreshing Content Zone requests.
6+
* Added `setSDKBehaviorSettings(String)` init config method for providing server configuration during first initialization.
7+
8+
* Updated underlying Android SDK version to 25.4.0
9+
* Updated underlying iOS SDK version to 25.4.0
10+
* Updated underlying Web SDK version to 25.4.0
11+
112
## 25.1.1-np
213
* Removed Android v1 embedding support
314

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ android {
3838
}
3939

4040
dependencies {
41-
implementation 'ly.count.android:sdk:25.1.1'
41+
implementation 'ly.count.android:sdk:25.4.0'
4242
}

android/src/main/java/ly/count/dart/countly_flutter/CountlyFlutterPlugin.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
*/
6363
public class CountlyFlutterPlugin implements MethodCallHandler, FlutterPlugin, ActivityAware, DefaultLifecycleObserver {
6464
private static final String TAG = "CountlyFlutterPlugin";
65-
private final String COUNTLY_FLUTTER_SDK_VERSION_STRING = "25.1.1";
65+
private final String COUNTLY_FLUTTER_SDK_VERSION_STRING = "25.4.0";
6666
private final String COUNTLY_FLUTTER_SDK_NAME = "dart-flutterb-android";
6767
private final String COUNTLY_FLUTTER_SDK_NAME_NO_PUSH = "dart-flutterbnp-android";
6868

@@ -1391,6 +1391,9 @@ else if ("getRequestQueue".equals(call.method)) {
13911391
} else if ("exitContentZone".equals(call.method)) {
13921392
Countly.sharedInstance().contents().exitContentZone();
13931393
result.success(null);
1394+
} else if ("refreshContentZone".equals(call.method)) {
1395+
Countly.sharedInstance().contents().refreshContentZone();
1396+
result.success(null);
13941397
}
13951398
//------------------End------------------------------------
13961399

@@ -1617,6 +1620,11 @@ private void populateConfig(JSONObject _config) throws JSONException {
16171620
if (_config.has("starRatingTextDismiss")) {
16181621
this.config.setStarRatingTextDismiss(_config.getString("starRatingTextDismiss"));
16191622
}
1623+
1624+
if (_config.has("sdkBehaviorSettings")) {
1625+
this.config.setSDKBehaviorSettings(_config.getString("sdkBehaviorSettings"));
1626+
}
1627+
16201628
// APM ------------------------------------------------
16211629
if (_config.has("trackAppStartTime")) {
16221630
this.config.apm.enableAppStartTimeTracking();

example/android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ gradle-wrapper.jar
44
/gradlew
55
/gradlew.bat
66
/local.properties
7+
/app/.cxx/
78
GeneratedPluginRegistrant.java
89

910
# Remember to never publicly share your keystore.

example/integration_test/device_id_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() {
1414
if(!kIsWeb){
1515
return;
1616
}
17-
17+
1818
group("Device ID change tests", () {
1919
tearDown(() async {
2020
await Countly.instance.halt();

example/integration_test/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void testCommonRequestParams(Map<String, List<String>> requestObject) {
3232
expect(
3333
requestObject['sdk_name']?[0],
3434
"dart-flutterbnp-${kIsWeb ? 'web' : Platform.isIOS ? 'ios' : 'android'}");
35-
expect(requestObject['sdk_version']?[0], '25.1.1');
35+
expect(requestObject['sdk_version']?[0], '25.4.0');
3636
expect(
3737
requestObject['av']?[0],
3838
kIsWeb

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- countly_flutter_np (24.11.1):
2+
- countly_flutter_np (25.4.0):
33
- Flutter
44
- Flutter (1.0.0)
55
- flutter_foreground_task (0.0.1):

ios/Classes/CountlyFlutterPlugin.m

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ @interface CountlyPersistency ()
2828

2929
CLYPushTestMode const CLYPushTestModeProduction = @"CLYPushTestModeProduction";
3030

31-
NSString *const kCountlyFlutterSDKVersion = @"25.1.1";
31+
NSString *const kCountlyFlutterSDKVersion = @"25.4.0";
3232
NSString *const kCountlyFlutterSDKName = @"dart-flutterb-ios";
3333
NSString *const kCountlyFlutterSDKNameNoPush = @"dart-flutterbnp-ios";
3434

@@ -1373,16 +1373,17 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
13731373
[Countly.sharedInstance.content enterContentZone];
13741374
result(nil);
13751375
});
1376-
1377-
// setRequiresConsent
13781376
} else if ([@"exitContentZone" isEqualToString:call.method]) {
13791377
dispatch_async(dispatch_get_main_queue(), ^{
13801378
[Countly.sharedInstance.content exitContentZone];
13811379
result(nil);
13821380
});
1383-
1384-
// setRequiresConsent
1385-
} else {
1381+
} else if ([@"refreshContentZone" isEqualToString:call.method]) {
1382+
dispatch_async(dispatch_get_main_queue(), ^{
1383+
[Countly.sharedInstance.content refreshContentZone];
1384+
result(nil);
1385+
});
1386+
} else {
13861387
result(FlutterMethodNotImplemented);
13871388
}
13881389
}
@@ -1644,6 +1645,11 @@ - (void)populateConfig:(NSDictionary *)_config {
16441645
[config.apm setAppStartTimestampOverride:[startTSOverride longLongValue]];
16451646
}
16461647

1648+
NSString *sdkBehaviorSettings = _config[@"sdkBehaviorSettings"];
1649+
if(sdkBehaviorSettings) {
1650+
config.sdkBehaviorSettings = sdkBehaviorSettings;
1651+
}
1652+
16471653
// Internal Limits ---------------------
16481654
NSNumber *maxKeyLength = _config[@"maxKeyLength"];
16491655
if (maxKeyLength) {

ios/Classes/CountlyiOS/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 25.4.0
2+
* ! Minor breaking change ! Removed UIDevice.currentDevice.identifierForVendor usage in device id generation. The SDK now exclusively uses random UUIDs for device id generation.
3+
* ! Minor breaking change ! Server Configuration is now enabled by default. Changes made on SDK Manager > SDK Configuration on your server will affect SDK behavior directly.
4+
5+
* Added a Content feature method "refreshContentZone" that does a manual refresh.
6+
* Extended server configuration capabilities of the SDK.
7+
* Added a config parameter to provide server config in the initialization "sdkBehaviorSettings: NSString".
8+
9+
* Deprecated the experimental configuration function enableServerConfiguration and it will do nothing.
10+
11+
## 25.1.2
12+
* Mitigated an issue where the safe area resolution was not correctly calculated for the content zone on certain iOS devices.
13+
114
## 25.1.1
215
* Mitigated an issue while setting zone timer interval for content.
316

ios/Classes/CountlyiOS/Countly-PL.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 = 'Countly-PL'
3-
s.version = '25.1.1'
3+
s.version = '25.4.0'
44
s.license = { :type => 'MIT', :file => 'LICENSE' }
55
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
66
s.homepage = 'https://github.com/Countly/countly-sdk-ios'

0 commit comments

Comments
 (0)