pushwoosh-react-native-plugin 6.1.56 → 6.1.58
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/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
declare module 'pushwoosh-react-native-plugin' {
|
|
2
2
|
interface PushwooshConfig {
|
|
3
3
|
pw_appid: string;
|
|
4
|
-
/** @deprecated FCM Sender ID is no longer required. Firebase Cloud Messaging configuration is handled automatically via google-services.json. */
|
|
5
|
-
project_number?: string;
|
|
6
4
|
pw_notification_handling?: string;
|
|
7
5
|
}
|
|
8
6
|
type LocalNotification = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "pushwoosh-react-native-plugin"
|
|
3
|
-
s.version = "6.1.
|
|
3
|
+
s.version = "6.1.58"
|
|
4
4
|
s.summary = "React Native Pushwoosh Push Notifications module"
|
|
5
5
|
s.requires_arc = true
|
|
6
6
|
s.author = 'Pushwoosh'
|
|
@@ -8,13 +8,13 @@ Pod::Spec.new do |s|
|
|
|
8
8
|
s.homepage = 'n/a'
|
|
9
9
|
s.source = { :git => "https://github.com/Pushwoosh/pushwoosh-react-native-plugin.git" }
|
|
10
10
|
s.source_files = 'src/ios/PushwooshPlugin/Pushwoosh.{h,m}', 'src/ios/PushwooshPlugin/PWEventDispatcher.{h,m}'
|
|
11
|
-
s.platform = :ios, "
|
|
11
|
+
s.platform = :ios, "13.0"
|
|
12
12
|
s.xcconfig = {
|
|
13
13
|
"HEADER_SEARCH_PATHS" => "${PODS_ROOT}/Headers/Public/React"
|
|
14
14
|
}
|
|
15
15
|
s.static_framework = true
|
|
16
16
|
|
|
17
17
|
s.dependency 'React'
|
|
18
|
-
s.dependency 'PushwooshXCFramework', '7.0.
|
|
18
|
+
s.dependency 'PushwooshXCFramework', '7.0.36'
|
|
19
19
|
s.dependency 'PushwooshInboxUIXCFramework'
|
|
20
20
|
end
|
package/src/android/build.gradle
CHANGED
|
@@ -5,8 +5,6 @@ import android.os.Bundle;
|
|
|
5
5
|
import android.content.Context;
|
|
6
6
|
import android.content.Intent;
|
|
7
7
|
import android.graphics.Color;
|
|
8
|
-
import android.text.TextUtils;
|
|
9
|
-
|
|
10
8
|
import androidx.annotation.NonNull;
|
|
11
9
|
import androidx.annotation.Nullable;
|
|
12
10
|
|
|
@@ -111,7 +109,6 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
|
|
|
111
109
|
@ReactMethod
|
|
112
110
|
public void init(ReadableMap config, Callback success, Callback error) {
|
|
113
111
|
String appId = config.hasKey("pw_appid") ? config.getString("pw_appid") : null;
|
|
114
|
-
String projectId = config.hasKey("project_number") ? config.getString("project_number") : null;
|
|
115
112
|
|
|
116
113
|
if (appId == null) {
|
|
117
114
|
if (error != null) {
|
|
@@ -121,10 +118,6 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
|
|
|
121
118
|
}
|
|
122
119
|
|
|
123
120
|
Pushwoosh.getInstance().setAppId(appId);
|
|
124
|
-
|
|
125
|
-
if (!TextUtils.isEmpty(projectId)) {
|
|
126
|
-
Pushwoosh.getInstance().setSenderId(projectId);
|
|
127
|
-
}
|
|
128
121
|
|
|
129
122
|
synchronized (sStartPushLock) {
|
|
130
123
|
if (sReceivedPushData != null) {
|