Skip to content

Commit

Permalink
chore(release): 2.5.2
Browse files Browse the repository at this point in the history
SDK-75

Co-authored-by: matusekma <[email protected]>
  • Loading branch information
megamegax and matusekma committed Nov 11, 2024
1 parent 83a57ef commit 7ec8d45
Show file tree
Hide file tree
Showing 10 changed files with 126 additions and 118 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
### [Emarsys SDK](https://github.com/emartech/flutter-plugin-for-sap-emarsys-customer-engagement/)
* Updated underlying [Emarsys SDK](https://github.com/emartech/ios-emarsys-sdk/releases/tag/3.7.2) for iOS to 3.7.2

# 2.5.1
## What's changed
### [Emarsys SDK](https://github.com/emartech/flutter-plugin-for-sap-emarsys-customer-engagement/)
* Updated underlying [Emarsys SDK](https://github.com/emartech/android-emarsys-sdk/releases/tag/3.7.11) for Android to 3.7.11
### [Emarsys SDK](https://github.com/emartech/flutter-plugin-for-sap-emarsys-customer-engagement/)
* Updated underlying [Emarsys SDK](https://github.com/emartech/ios-emarsys-sdk/releases/tag/3.7.3) for iOS to 3.7.3

# 2.5.0
## What's changed
### [Emarsys SDK](https://github.com/emartech/flutter-plugin-for-sap-emarsys-customer-engagement/)
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ android {


dependencies {
ext.emarsys_sdk_version = '3.7.10'
ext.emarsys_sdk_version = '3.7.11'
ext.junit_version = '4.13.2'
ext.kotest_version = '5.9.1'
ext.mockk_version = '1.13.10'
Expand Down
14 changes: 7 additions & 7 deletions example/integration_test/config_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import 'package:integration_test/integration_test.dart';

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
const APPLICATION_CODE = "EMS11-C3FD3";
const MERCHANT_ID = "EMS11C3FD3";
const applicationCode = "EMS11-C3FD3";
const merchantId = "EMS11C3FD3";

setUpAll(() async {
final config = EmarsysConfig(
applicationCode: APPLICATION_CODE, merchantId: MERCHANT_ID);
applicationCode: applicationCode, merchantId: merchantId);
await Emarsys.setup(config);
});

Expand All @@ -25,13 +25,13 @@ void main() {
testWidgets("applicationCode should return the expected value",
(WidgetTester tester) async {
final result = await Emarsys.config.applicationCode();
expect(result, equals(APPLICATION_CODE));
expect(result, equals(applicationCode));
});

testWidgets("changeAppCode should be ok", (WidgetTester tester) async {
bool onErrorHasBeenCalled = false;
await Emarsys.config
.changeApplicationCode(APPLICATION_CODE)
.changeApplicationCode(applicationCode)
.onError((error, stackTrace) => onErrorHasBeenCalled = true);
expect(onErrorHasBeenCalled, false);
});
Expand All @@ -44,13 +44,13 @@ void main() {
testWidgets("merchantId should return the expected value",
(WidgetTester tester) async {
final result = await Emarsys.config.merchantId();
expect(result, equals(MERCHANT_ID));
expect(result, equals(merchantId));
});

testWidgets("changeMerchantId should be ok", (WidgetTester tester) async {
bool onErrorHasBeenCalled = false;
await Emarsys.config
.changeMerchantId(MERCHANT_ID)
.changeMerchantId(merchantId)
.onError((error, stackTrace) => onErrorHasBeenCalled = true);
expect(onErrorHasBeenCalled, false);
});
Expand Down
9 changes: 5 additions & 4 deletions example/integration_test/emarsys_test.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import 'package:emarsys_sdk/emarsys_sdk.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';

void main() {
const CONTACT_FIELD_ID = 2575;
const contactFieldId = 2575;

IntegrationTestWidgetsFlutterBinding.ensureInitialized();

Expand All @@ -15,16 +16,16 @@ void main() {
testWidgets("call setContact and check contactFieldId",
(WidgetTester tester) async {
await Emarsys.setContact(2575, "[email protected]")
.then((value) => print("SET CONTACT"))
.then((value) => debugPrint("SET CONTACT"))
.catchError((error) => expect(error, null));

final result = await Emarsys.config.contactFieldId();
expect(result, equals(CONTACT_FIELD_ID));
expect(result, equals(contactFieldId));
});

testWidgets("call clearContact", (WidgetTester tester) async {
await Emarsys.clearContact()
.then((value) => print("CLEAR CONTACT"))
.then((value) => debugPrint("CLEAR CONTACT"))
.catchError((error) => expect(error, null));
});
}
2 changes: 1 addition & 1 deletion example/integration_test/push_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void main() {
});

testWidgets("call pushSendingEnabled with true", (WidgetTester tester) async {
await Future.delayed(Duration(seconds: 3));
await Future.delayed(const Duration(seconds: 3));
await Emarsys.push
.pushSendingEnabled(true)
.catchError((error) => expect(error, null));
Expand Down
200 changes: 100 additions & 100 deletions example/ios/Runner.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: emarsys_sdk_example
description: Demonstrates how to use the emarsys_sdk plug-in.
version: 1.3.1+1
version: 1.5.2+1

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
Expand Down
2 changes: 1 addition & 1 deletion ios/emarsys_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is the iOS native part of the Flutter plug-in for SAP Emarsys Customer Enga
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'EmarsysSDK','~> 3.7.0'
s.dependency 'EmarsysSDK','~> 3.7.3'
s.platform = :ios, '14.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
2 changes: 1 addition & 1 deletion lib/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: emarsys_sdk
description: The Flutter plug-in for SAP Emarsys Customer Engagement is the official plug-in to help integrate Emarsys into your Flutter application.
version: 2.5.1
version: 2.5.2
homepage: https://github.com/emartech/flutter-plugin-for-sap-emarsys-customer-engagement

environment:
Expand Down Expand Up @@ -47,7 +47,7 @@ scripts:
- echo running iOS unit tests
- rm -rf ~/Library/Developer/Xcode/DerivedData
- cd example/ios && pod deintegrate && pod install --no-repo-update --verbose
- cd example/ios && xcodebuild -workspace Runner.xcworkspace -scheme RunnerTests -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 15 Pro' test
- cd example/ios && xcodebuild -workspace Runner.xcworkspace -scheme RunnerTests -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 16' test
test:
- $test-flutter
- sleep 10s
Expand Down

0 comments on commit 7ec8d45

Please sign in to comment.