Skip to content

Commit 2834e26

Browse files
authored
Merge pull request #99 from emartech/MV-583-emarsys-sdk-update
chore: update emarsys sdk
2 parents 016a1c6 + cc15219 commit 2834e26

File tree

11 files changed

+1836
-2851
lines changed

11 files changed

+1836
-2851
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We created a sample application to help in the integration and give an example.
1212

1313
## Setup
1414

15-
`$ npm install "git+ssh://git@github.com/emartech/react-native-emarsys-sdk.git#1.15.0" --save`
15+
`$ npm install "git+ssh://git@github.com/emartech/react-native-emarsys-sdk.git#1.16.0" --save`
1616

1717
## Requirements
1818

RNEmarsysWrapper.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Pod::Spec.new do |s|
1818
s.source_files = "ios/*.{h,m}"
1919
s.requires_arc = true
2020
s.dependency "React", ">= 0.67.3"
21-
s.dependency "EmarsysSDK", "~> 3.3.0"
21+
s.dependency "EmarsysSDK", "~> 3.4.0"
2222

2323
end

android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ buildscript {
1717
apply plugin: 'com.android.library'
1818

1919
android {
20-
compileSdkVersion 32
21-
buildToolsVersion "28.0.3"
20+
compileSdkVersion 33
21+
buildToolsVersion "33.0.0"
2222
defaultConfig {
2323
minSdkVersion 24
2424
targetSdkVersion 31
25-
versionCode 15
26-
versionName "1.15"
25+
versionCode 16
26+
versionName "1.16"
2727
}
2828
lintOptions {
2929
abortOnError false
@@ -46,5 +46,5 @@ repositories {
4646

4747
dependencies {
4848
implementation "com.facebook.react:react-native:+"
49-
implementation "com.emarsys:emarsys-sdk:3.5.+"
49+
implementation "com.emarsys:emarsys-sdk:3.6.+"
5050
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "react-native-emarsys-wrapper",
3-
"version": "1.15.0",
3+
"version": "1.16.0",
44
"description": "React Native wrapper for Emarsys SDK",
55
"main": "index.js",
6+
"type": "module",
67
"scripts": {
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},
910
"keywords": [
1011
"react-native",
1112
"Emarsys"
1213
],
13-
"author": "Aliaksandr Andreyeu",
14+
"author": "emarsys",
1415
"license": "MIT",
1516
"peerDependencies": {
1617
"react": ">=17.0.2",

sample/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ dependencies {
109109
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
110110
implementation "androidx.multidex:multidex:2.0.1"
111111

112-
implementation "com.emarsys:emarsys-sdk:3.5.+"
113-
implementation "com.emarsys:emarsys-firebase:3.5.+"
112+
implementation "com.emarsys:emarsys-sdk:3.6.+"
113+
implementation "com.emarsys:emarsys-firebase:3.6.+"
114114

115115
// JSC from node_modules
116116
if (useIntlJsc) {

sample/android/app/src/main/java/com/emarsysapp/MainApplication.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import com.emarsys.rnwrapper.RNEmarsysEventHandler;
1414
import com.facebook.react.PackageList;
1515
import com.facebook.react.ReactApplication;
16-
import com.swmansion.reanimated.ReanimatedPackage;
17-
import com.emarsys.rnwrapper.RNEmarsysWrapperPackage;
1816
import com.facebook.react.ReactNativeHost;
1917
import com.facebook.react.ReactPackage;
2018
import com.facebook.soloader.SoLoader;

sample/android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ buildscript {
1111
repositories {
1212
google()
1313
mavenCentral()
14+
maven {
15+
url = uri("https://storage.googleapis.com/r8-releases/raw")
16+
}
1417
}
1518
dependencies {
1619
classpath('com.android.tools.build:gradle:7.3.1')
1720
classpath("com.google.gms:google-services:4.3.15")
1821
classpath("com.facebook.react:react-native-gradle-plugin")
22+
classpath("com.android.tools:r8:8.2.38")
1923

2024
// NOTE: Do not place your application dependencies here; they belong
2125
// in the individual module build.gradle files

sample/ios/EmarsysApp.xcodeproj/project.pbxproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@
643643
GCC_PREPROCESSOR_DEFINITIONS = (
644644
"DEBUG=1",
645645
"$(inherited)",
646+
_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
646647
);
647648
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
648649
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -654,6 +655,11 @@
654655
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
655656
MTL_ENABLE_DEBUG_INFO = YES;
656657
ONLY_ACTIVE_ARCH = YES;
658+
OTHER_LDFLAGS = (
659+
"$(inherited)",
660+
"-Wl",
661+
"-ld_classic",
662+
);
657663
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
658664
SDKROOT = iphoneos;
659665
};
@@ -694,6 +700,10 @@
694700
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
695701
GCC_C_LANGUAGE_STANDARD = gnu99;
696702
GCC_NO_COMMON_BLOCKS = YES;
703+
GCC_PREPROCESSOR_DEFINITIONS = (
704+
"$(inherited)",
705+
_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
706+
);
697707
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
698708
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
699709
GCC_WARN_UNDECLARED_SELECTOR = YES;
@@ -702,6 +712,11 @@
702712
GCC_WARN_UNUSED_VARIABLE = YES;
703713
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
704714
MTL_ENABLE_DEBUG_INFO = NO;
715+
OTHER_LDFLAGS = (
716+
"$(inherited)",
717+
"-Wl",
718+
"-ld_classic",
719+
);
705720
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
706721
SDKROOT = iphoneos;
707722
SWIFT_COMPILATION_MODE = wholemodule;

sample/ios/Podfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ target 'EmarsysApp' do
3737
post_install do |installer|
3838
react_native_post_install(installer)
3939
__apply_Xcode_12_5_M1_post_install_workaround(installer)
40+
installer.pods_project.targets.each do |target|
41+
target.build_configurations.each do |config|
42+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
43+
end
44+
end
4045
end
4146
end
4247

0 commit comments

Comments
 (0)