@trycourier/courier-react-native 5.3.0 → 5.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -8,7 +8,7 @@ buildscript {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
dependencies {
|
|
11
|
-
classpath "com.android.tools.build:gradle:8.1.
|
|
11
|
+
classpath "com.android.tools.build:gradle:8.1.0"
|
|
12
12
|
// noinspection DifferentKotlinGradleVersion
|
|
13
13
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
14
14
|
}
|
|
@@ -50,6 +50,7 @@ def supportsNamespace() {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
android {
|
|
53
|
+
|
|
53
54
|
if (supportsNamespace()) {
|
|
54
55
|
namespace "com.courierreactnative"
|
|
55
56
|
|
|
@@ -62,11 +63,16 @@ android {
|
|
|
62
63
|
|
|
63
64
|
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
64
65
|
|
|
66
|
+
buildFeatures {
|
|
67
|
+
buildConfig true
|
|
68
|
+
}
|
|
69
|
+
|
|
65
70
|
defaultConfig {
|
|
66
71
|
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
67
72
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
68
73
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
69
74
|
}
|
|
75
|
+
|
|
70
76
|
buildTypes {
|
|
71
77
|
release {
|
|
72
78
|
minifyEnabled false
|
|
@@ -104,7 +110,7 @@ dependencies {
|
|
|
104
110
|
implementation 'com.google.code.gson:gson:2.11.0'
|
|
105
111
|
|
|
106
112
|
// Courier Core SDK
|
|
107
|
-
api 'com.github.trycourier:courier-android:5.
|
|
113
|
+
api 'com.github.trycourier:courier-android:5.1.8'
|
|
108
114
|
api 'androidx.recyclerview:recyclerview:1.3.2'
|
|
109
115
|
|
|
110
116
|
}
|
|
@@ -15,7 +15,7 @@ import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
|
15
15
|
import com.google.gson.GsonBuilder
|
|
16
16
|
|
|
17
17
|
internal object Utils {
|
|
18
|
-
val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.3.
|
|
18
|
+
val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.3.3")
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
internal fun ReactContext.sendEvent(eventName: String, value: Any?) {
|
|
@@ -11,13 +11,13 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.license = package["license"]
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
|
-
s.platforms = { :ios => "
|
|
14
|
+
s.platforms = { :ios => "15.0" }
|
|
15
15
|
s.source = { :git => "https://github.com/trycourier/courier-react-native.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
# Courier Core Dependency
|
|
20
|
-
s.dependency "Courier_iOS", "5.
|
|
20
|
+
s.dependency "Courier_iOS", "5.6.0"
|
|
21
21
|
|
|
22
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
23
23
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
@@ -22,7 +22,7 @@ NSUInteger notificationPresentationOptions = UNNotificationPresentationOptionNon
|
|
|
22
22
|
if (self) {
|
|
23
23
|
|
|
24
24
|
// Set the user agent
|
|
25
|
-
Courier.agent = [CourierAgent reactNativeIOS:@"5.3.
|
|
25
|
+
Courier.agent = [CourierAgent reactNativeIOS:@"5.3.3"];
|
|
26
26
|
|
|
27
27
|
// Register for remote notifications
|
|
28
28
|
UIApplication *app = [UIApplication sharedApplication];
|
|
@@ -14,7 +14,7 @@ internal class CourierReactNativeEventEmitter: RCTEventEmitter {
|
|
|
14
14
|
|
|
15
15
|
// Set the user agent
|
|
16
16
|
// Used to know the platform performing requests
|
|
17
|
-
Courier.agent = CourierAgent.reactNativeIOS("5.3.
|
|
17
|
+
Courier.agent = CourierAgent.reactNativeIOS("5.3.3")
|
|
18
18
|
|
|
19
19
|
}
|
|
20
20
|
|