Skip to content

Commit e2db54d

Browse files
feat: staging-np pre-merge
2 parents f534648 + 2e12d84 commit e2db54d

File tree

106 files changed

+162
-485
lines changed

Some content is hidden

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

106 files changed

+162
-485
lines changed

CHANGELOG.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 25.4.2
1+
## 25.4.2-np
22
* Added a new function "addCustomNetworkRequestHeaders: customHeaderValues" for providing or overriding custom headers after init.
33
* Default request method is now set to "POST"
44
* Updated user properties caching mechanism according to sessions.
@@ -25,7 +25,7 @@
2525
* Updated underlying iOS SDK version to 25.4.8
2626
* Updated underlying Web SDK version to 25.4.2
2727

28-
## 25.4.1
28+
## 25.4.1-np
2929
* Added fullscreen support for feedback widgets.
3030
* Added "disableSDKBehaviorSettingsUpdates()" init config method to disable server config updates.
3131
* Improved request queue handling with a built-in backoff mechanism which is enabled by default.
@@ -40,27 +40,25 @@
4040
* Updated underlying iOS SDK version to 25.4.2
4141
* Updated underlying Web SDK version to 25.4.1
4242

43-
## 25.4.0
43+
## 25.4.0-np
4444
* ! 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.
4545
* ! 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.
4646

4747
* Added `refreshContentZone` method to Content interface for refreshing Content Zone requests.
4848
* Added `setSDKBehaviorSettings(String)` init config method for providing server configuration during first initialization.
4949

50-
* Mitigated an issue on Android that caused PN message data collision if two message with same ID was received.
51-
5250
* Updated underlying Android SDK version to 25.4.0
5351
* Updated underlying iOS SDK version to 25.4.0
5452
* Updated underlying Web SDK version to 25.4.0
5553

56-
## 25.1.1
54+
## 25.1.1-np
5755
* Removed Android v1 embedding support
5856

5957
* Underlying Android SDK version is 25.1.1
6058
* Underlying iOS SDK version is 25.1.1
6159
* Underlying Web SDK version is 25.1.0
6260

63-
## 25.1.0
61+
## 25.1.0-np
6462
* Added experimental support for the web platform in the Countly Flutter SDK. Some functionalities are not yet fully supported. Below is the list of limitations for the web platform:
6563
* Hybrid sessions are the default; full manual sessions are not supported.
6664
* Features Not Supported: Push Notifications, APM, and Attribution.
@@ -108,13 +106,13 @@
108106
* Enhanced CertificateTrustManager to support domain-specific configurations with hostname-aware checkServerTrusted calls (Android).
109107

110108
* Fixed an issue where the build UUID and executable name were missing from crash reports (iOS).
111-
* Mitigated an issue while setting zone timer interval for content (iOS).
109+
* * Mitigated an issue while setting zone timer interval for content (iOS).
112110

113111
* Updated underlying Android SDK version to 25.1.1
114112
* Updated underlying iOS SDK version to 25.1.1
115113
* Added underlying Web SDK version to 25.1.0
116114

117-
## 24.11.2
115+
## 24.11.2-np
118116
* Improved view tracking capabilities in iOS.
119117

120118
* Mitigated issues where:
@@ -125,7 +123,7 @@
125123
* Updated underlying Android SDK version to 24.7.7
126124
* Updated underlying iOS SDK version to 24.7.9
127125

128-
## 24.11.1
126+
## 24.11.1-np
129127
* Added content configuration interface that has `setGlobalContentCallback` to get notified about content changes.
130128
* Added support for localization of content blocks.
131129
* Added the interface `feedback` and convenience methods that presents the first available widget to user:
@@ -141,7 +139,7 @@
141139
* Updated underlying Android SDK version to 24.7.6
142140
* Updated underlying iOS SDK version to 24.7.8
143141

144-
## 24.11.0
142+
## 24.11.0-np
145143
* Added further intent redirection vulnerability checks in Android
146144
* Added support for Android 15 (API level 35)
147145
* Added a config flag `setCustomNetworkRequestHeaders` to add custom headers to SDK requests (thanks @sbatezat)
@@ -164,7 +162,7 @@
164162
* Updated underlying Android SDK version to 24.7.5
165163
* Updated underlying iOS SDK version to 24.7.7
166164

167-
From this version on NP variant changelogs will be added to `-np` branches!
165+
From this version on NP variant changelogs will be added to this branch!
168166

169167
## 24.7.1
170168
* Added a new configuration option `enableTemporaryDeviceIDMode` to 'CountlyConfig' interface

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7ab95afb3da8421ab499cc921e1381ac)](https://app.codacy.com/gh/Countly/countly-sdk-flutter-bridge/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
1+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7ab95afb3da8421ab499cc921e1381ac)](https://www.codacy.com/gh/Countly/countly-sdk-flutter-bridge/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Countly/countly-sdk-flutter-bridge&utm_campaign=Badge_Grade)
22

3-
# Countly Flutter SDK
3+
# Countly Flutter SDK - No Push
44

55
This repository contains the Countly Flutter SDK, which can be integrated into mobile Flutter applications. The Countly Flutter SDK is intended to be used with [Countly Lite](https://countly.com/lite), [Countly Flex](https://countly.com/flex), [Countly Enterprise](https://countly.com/enterprise).
66

@@ -26,7 +26,6 @@ For an example integration of this SDK, you can have a look [here](https://githu
2626

2727
This SDK supports the following features:
2828
* [Analytics](https://support.count.ly/hc/en-us/articles/4431589003545-Analytics)
29-
* [Push Notifications](https://support.count.ly/hc/en-us/articles/4405405459225-Push-Notifications)
3029
* [User Profiles](https://support.count.ly/hc/en-us/articles/4403281285913-User-Profiles)
3130
* [Crash Reports](https://support.count.ly/hc/en-us/articles/4404213566105-Crashes-Errors)
3231
* [A/B Testing](https://support.count.ly/hc/en-us/articles/4416496362393-A-B-Testing-)
@@ -45,7 +44,7 @@ dependencies:
4544
## Usage
4645
4746
```dart
48-
import 'package:countly_flutter/countly_flutter.dart';
47+
import 'package:countly_flutter_np/countly_flutter.dart';
4948

5049
void main() {
5150
runApp(MaterialApp(home: const MyApp()));
@@ -222,7 +221,7 @@ Countly.instance.userProfile.clear();
222221
// Flutter SDK allows developers to enable/disable any feature at any time depending
223222
// on user consent.
224223
225-
// Consent values: sessions, events, views, location, crashes, attribution, users, push, starRating, apm, feedback, remoteConfig
224+
// Consent values: sessions, events, views, location, crashes, attribution, users, starRating, apm, feedback, remoteConfig
226225
227226
// Consent can be enabled during initialization
228227
final CountlyConfig config = CountlyConfig(SERVER_URL, APP_KEY)
@@ -248,7 +247,7 @@ Countly.removeAllConsent();
248247
From 2014 to 2020 it was maintained by Trinisoft Technologies developers ([email protected]).
249248

250249
## Security
251-
Security is very important to us. If you discover any issue regarding security, please disclose the information responsibly by sending an email to security@count.ly and **not by creating a GitHub issue**.
250+
Security is very important to us. If you discover any issue regarding security, please disclose the information responsibly by sending an email to security@countly.com and **not by creating a GitHub issue**.
252251

253252
## Badges
254253
If you like Countly, [why not use one of our badges](https://countly.com/brand-assets) and give a link back to us so others know about this wonderful platform?

android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.2.1'
11+
classpath 'com.android.tools.build:gradle:3.5.4'
1212
}
1313
}
1414

@@ -39,5 +39,4 @@ android {
3939

4040
dependencies {
4141
implementation 'ly.count.android:sdk:25.4.7'
42-
implementation 'com.google.firebase:firebase-messaging:24.0.3'
4342
}

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'countly_flutter'
1+
rootProject.name = 'countly_flutter_np'
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22

33
<uses-permission android:name="android.permission.INTERNET" />
4-
<uses-permission android:name="${applicationId}.CountlyPush.BROADCAST_PERMISSION" />
5-
<uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" android:maxSdkVersion="30" />
6-
<permission
7-
android:name="${applicationId}.CountlyPush.BROADCAST_PERMISSION"
8-
android:protectionLevel="signature" />
9-
<application>
10-
<service
11-
android:name="ly.count.dart.countly_flutter.CountlyMessagingService"
12-
android:exported="true">
13-
<intent-filter>
14-
<action android:name="com.google.firebase.MESSAGING_EVENT" />
15-
</intent-filter>
16-
</service>
17-
</application>
184
</manifest>

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@
5757
import ly.count.android.sdk.StarRatingCallback;
5858
import ly.count.android.sdk.messaging.CountlyPush;
5959

60-
import com.google.firebase.messaging.FirebaseMessaging;
61-
import com.google.android.gms.tasks.Task;
62-
import com.google.android.gms.tasks.OnCompleteListener;
63-
import com.google.firebase.FirebaseApp;
64-
6560
/**
6661
* CountlyFlutterPlugin
6762
*/
@@ -71,7 +66,7 @@ public class CountlyFlutterPlugin implements MethodCallHandler, FlutterPlugin, A
7166
private final String COUNTLY_FLUTTER_SDK_NAME = "dart-flutterb-android";
7267
private final String COUNTLY_FLUTTER_SDK_NAME_NO_PUSH = "dart-flutterbnp-android";
7368

74-
private final boolean BUILDING_WITH_PUSH_DISABLED = false;
69+
private final boolean BUILDING_WITH_PUSH_DISABLED = true;
7570

7671
public void notifyPublicChannelRCDL(RequestResult downloadResult, String error, boolean fullValueUpdate, Map<String, RCData> downloadedValues, Integer requestID) {
7772
Map<String, Object> data = new HashMap<>();
@@ -450,21 +445,7 @@ else if ("attemptToSendStoredRequests".equals(call.method)) {
450445
}
451446
}
452447
CountlyPush.init(activity.getApplication(), pushTokenType);
453-
FirebaseApp.initializeApp(context);
454-
FirebaseMessaging.getInstance().getToken().addOnCompleteListener(new OnCompleteListener<String>() {
455-
@Override
456-
public void onComplete(@NonNull Task<String> task) {
457-
if (!task.isSuccessful()) {
458-
log("[askForNotificationPermission], Fetching FCM registration token failed", task.getException(), LogLevel.WARNING);
459-
return;
460-
}
461-
462-
String token = task.getResult();
463-
log("FCM Token: " + token, LogLevel.INFO);
464-
CountlyPush.onTokenRefresh(token);
465-
}
466-
});
467-
result.success("askForNotificationPermission!");
448+
result.success(" askForNotificationPermission!");
468449
} else if ("pushTokenType".equals(call.method)) {
469450
String tokenType = args.getString(0);
470451
if ("2".equals(tokenType)) {

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

Lines changed: 0 additions & 77 deletions
This file was deleted.

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
# Android related
3434
**/android/**/gradle-wrapper.jar
3535
**/android/.gradle
36+
**/android/app/.cxx/
3637
**/android/captures/
3738
**/android/gradlew
3839
**/android/gradlew.bat

example/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if (flutterVersionName == null) {
2525

2626
android {
2727
namespace "com.countly.demo"
28+
compileSdkVersion 35
2829
compileSdk flutter.compileSdkVersion
2930
ndkVersion flutter.ndkVersion
3031

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

0 commit comments

Comments
 (0)