feeddo-react-native 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +401 -2
- package/android/build.gradle +39 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/dev/feeddo/reactnative/FeeddoReactNativeModule.java +380 -0
- package/android/src/main/java/dev/feeddo/reactnative/FeeddoReactNativePackage.java +25 -0
- package/dist/Feeddo.d.ts +131 -0
- package/dist/Feeddo.d.ts.map +1 -0
- package/dist/Feeddo.js +176 -0
- package/dist/Feeddo.js.map +1 -0
- package/dist/FeeddoClient.d.ts +151 -0
- package/dist/FeeddoClient.d.ts.map +1 -0
- package/dist/FeeddoClient.js +690 -0
- package/dist/FeeddoClient.js.map +1 -0
- package/dist/FeeddoProvider.d.ts +23 -0
- package/dist/FeeddoProvider.d.ts.map +1 -0
- package/dist/FeeddoProvider.js +76 -0
- package/dist/FeeddoProvider.js.map +1 -0
- package/dist/config/FeeddoConfig.d.ts +10 -0
- package/dist/config/FeeddoConfig.d.ts.map +1 -0
- package/dist/config/FeeddoConfig.js +10 -0
- package/dist/config/FeeddoConfig.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/models/Conversation.d.ts +27 -0
- package/dist/models/Conversation.d.ts.map +1 -0
- package/dist/models/Conversation.js +24 -0
- package/dist/models/Conversation.js.map +1 -0
- package/dist/models/EndUser.d.ts +49 -0
- package/dist/models/EndUser.d.ts.map +1 -0
- package/dist/models/EndUser.js +2 -0
- package/dist/models/EndUser.js.map +1 -0
- package/dist/models/FeeddoNotification.d.ts +15 -0
- package/dist/models/FeeddoNotification.d.ts.map +1 -0
- package/dist/models/FeeddoNotification.js +15 -0
- package/dist/models/FeeddoNotification.js.map +1 -0
- package/dist/models/HomeData.d.ts +16 -0
- package/dist/models/HomeData.d.ts.map +1 -0
- package/dist/models/HomeData.js +19 -0
- package/dist/models/HomeData.js.map +1 -0
- package/dist/models/Message.d.ts +12 -0
- package/dist/models/Message.d.ts.map +1 -0
- package/dist/models/Message.js +25 -0
- package/dist/models/Message.js.map +1 -0
- package/dist/models/PushProvider.d.ts +14 -0
- package/dist/models/PushProvider.d.ts.map +1 -0
- package/dist/models/PushProvider.js +9 -0
- package/dist/models/PushProvider.js.map +1 -0
- package/dist/models/Task.d.ts +17 -0
- package/dist/models/Task.d.ts.map +1 -0
- package/dist/models/Task.js +22 -0
- package/dist/models/Task.js.map +1 -0
- package/dist/models/TaskComment.d.ts +11 -0
- package/dist/models/TaskComment.d.ts.map +1 -0
- package/dist/models/TaskComment.js +27 -0
- package/dist/models/TaskComment.js.map +1 -0
- package/dist/models/Ticket.d.ts +13 -0
- package/dist/models/Ticket.d.ts.map +1 -0
- package/dist/models/Ticket.js +14 -0
- package/dist/models/Ticket.js.map +1 -0
- package/dist/native/FeeddoNative.d.ts +58 -0
- package/dist/native/FeeddoNative.d.ts.map +1 -0
- package/dist/native/FeeddoNative.js +22 -0
- package/dist/native/FeeddoNative.js.map +1 -0
- package/dist/push/FeeddoPushNotificationApns.d.ts +73 -0
- package/dist/push/FeeddoPushNotificationApns.d.ts.map +1 -0
- package/dist/push/FeeddoPushNotificationApns.js +301 -0
- package/dist/push/FeeddoPushNotificationApns.js.map +1 -0
- package/dist/services/ApiService.d.ts +64 -0
- package/dist/services/ApiService.d.ts.map +1 -0
- package/dist/services/ApiService.js +406 -0
- package/dist/services/ApiService.js.map +1 -0
- package/dist/services/ConversationService.d.ts +45 -0
- package/dist/services/ConversationService.d.ts.map +1 -0
- package/dist/services/ConversationService.js +259 -0
- package/dist/services/ConversationService.js.map +1 -0
- package/dist/services/WebSocketService.d.ts +26 -0
- package/dist/services/WebSocketService.d.ts.map +1 -0
- package/dist/services/WebSocketService.js +157 -0
- package/dist/services/WebSocketService.js.map +1 -0
- package/dist/theme/FeeddoTheme.d.ts +31 -0
- package/dist/theme/FeeddoTheme.d.ts.map +1 -0
- package/dist/theme/FeeddoTheme.js +60 -0
- package/dist/theme/FeeddoTheme.js.map +1 -0
- package/dist/ui/FeeddoFeedbackCard.d.ts +15 -0
- package/dist/ui/FeeddoFeedbackCard.d.ts.map +1 -0
- package/dist/ui/FeeddoFeedbackCard.js +188 -0
- package/dist/ui/FeeddoFeedbackCard.js.map +1 -0
- package/dist/ui/FeeddoModal.d.ts +20 -0
- package/dist/ui/FeeddoModal.d.ts.map +1 -0
- package/dist/ui/FeeddoModal.js +174 -0
- package/dist/ui/FeeddoModal.js.map +1 -0
- package/dist/ui/components/AttachmentPreview.d.ts +10 -0
- package/dist/ui/components/AttachmentPreview.d.ts.map +1 -0
- package/dist/ui/components/AttachmentPreview.js +143 -0
- package/dist/ui/components/AttachmentPreview.js.map +1 -0
- package/dist/ui/components/ChatInputArea.d.ts +16 -0
- package/dist/ui/components/ChatInputArea.d.ts.map +1 -0
- package/dist/ui/components/ChatInputArea.js +85 -0
- package/dist/ui/components/ChatInputArea.js.map +1 -0
- package/dist/ui/components/FeeddoIcon.d.ts +10 -0
- package/dist/ui/components/FeeddoIcon.d.ts.map +1 -0
- package/dist/ui/components/FeeddoIcon.js +690 -0
- package/dist/ui/components/FeeddoIcon.js.map +1 -0
- package/dist/ui/components/FeeddoNotificationBadge.d.ts +14 -0
- package/dist/ui/components/FeeddoNotificationBadge.d.ts.map +1 -0
- package/dist/ui/components/FeeddoNotificationBadge.js +171 -0
- package/dist/ui/components/FeeddoNotificationBadge.js.map +1 -0
- package/dist/ui/components/MessageBubble.d.ts +13 -0
- package/dist/ui/components/MessageBubble.d.ts.map +1 -0
- package/dist/ui/components/MessageBubble.js +163 -0
- package/dist/ui/components/MessageBubble.js.map +1 -0
- package/dist/ui/components/NotificationsSheet.d.ts +10 -0
- package/dist/ui/components/NotificationsSheet.d.ts.map +1 -0
- package/dist/ui/components/NotificationsSheet.js +252 -0
- package/dist/ui/components/NotificationsSheet.js.map +1 -0
- package/dist/ui/components/RatingWidget.d.ts +11 -0
- package/dist/ui/components/RatingWidget.d.ts.map +1 -0
- package/dist/ui/components/RatingWidget.js +34 -0
- package/dist/ui/components/RatingWidget.js.map +1 -0
- package/dist/ui/components/TaskCard.d.ts +12 -0
- package/dist/ui/components/TaskCard.d.ts.map +1 -0
- package/dist/ui/components/TaskCard.js +210 -0
- package/dist/ui/components/TaskCard.js.map +1 -0
- package/dist/ui/components/TaskDetailsSheet.d.ts +15 -0
- package/dist/ui/components/TaskDetailsSheet.d.ts.map +1 -0
- package/dist/ui/components/TaskDetailsSheet.js +577 -0
- package/dist/ui/components/TaskDetailsSheet.js.map +1 -0
- package/dist/ui/components/TicketCard.d.ts +11 -0
- package/dist/ui/components/TicketCard.d.ts.map +1 -0
- package/dist/ui/components/TicketCard.js +100 -0
- package/dist/ui/components/TicketCard.js.map +1 -0
- package/dist/ui/components/TicketDetailsSheet.d.ts +14 -0
- package/dist/ui/components/TicketDetailsSheet.d.ts.map +1 -0
- package/dist/ui/components/TicketDetailsSheet.js +254 -0
- package/dist/ui/components/TicketDetailsSheet.js.map +1 -0
- package/dist/ui/components/TypingIndicator.d.ts +10 -0
- package/dist/ui/components/TypingIndicator.d.ts.map +1 -0
- package/dist/ui/components/TypingIndicator.js +77 -0
- package/dist/ui/components/TypingIndicator.js.map +1 -0
- package/dist/ui/screens/FeeddoChatScreen.d.ts +13 -0
- package/dist/ui/screens/FeeddoChatScreen.d.ts.map +1 -0
- package/dist/ui/screens/FeeddoChatScreen.js +681 -0
- package/dist/ui/screens/FeeddoChatScreen.js.map +1 -0
- package/dist/ui/screens/FeeddoHomeScreen.d.ts +15 -0
- package/dist/ui/screens/FeeddoHomeScreen.d.ts.map +1 -0
- package/dist/ui/screens/FeeddoHomeScreen.js +653 -0
- package/dist/ui/screens/FeeddoHomeScreen.js.map +1 -0
- package/dist/ui/screens/FeeddoMessagesScreen.d.ts +12 -0
- package/dist/ui/screens/FeeddoMessagesScreen.d.ts.map +1 -0
- package/dist/ui/screens/FeeddoMessagesScreen.js +326 -0
- package/dist/ui/screens/FeeddoMessagesScreen.js.map +1 -0
- package/dist/ui/screens/FeeddoTasksScreen.d.ts +13 -0
- package/dist/ui/screens/FeeddoTasksScreen.d.ts.map +1 -0
- package/dist/ui/screens/FeeddoTasksScreen.js +517 -0
- package/dist/ui/screens/FeeddoTasksScreen.js.map +1 -0
- package/dist/ui/screens/FeeddoTicketsScreen.d.ts +10 -0
- package/dist/ui/screens/FeeddoTicketsScreen.d.ts.map +1 -0
- package/dist/ui/screens/FeeddoTicketsScreen.js +112 -0
- package/dist/ui/screens/FeeddoTicketsScreen.js.map +1 -0
- package/dist/utils/DeviceInfoHelper.d.ts +29 -0
- package/dist/utils/DeviceInfoHelper.d.ts.map +1 -0
- package/dist/utils/DeviceInfoHelper.js +190 -0
- package/dist/utils/DeviceInfoHelper.js.map +1 -0
- package/dist/utils/MediaHelper.d.ts +20 -0
- package/dist/utils/MediaHelper.d.ts.map +1 -0
- package/dist/utils/MediaHelper.js +92 -0
- package/dist/utils/MediaHelper.js.map +1 -0
- package/dist/utils/NotificationSupport.d.ts +22 -0
- package/dist/utils/NotificationSupport.d.ts.map +1 -0
- package/dist/utils/NotificationSupport.js +211 -0
- package/dist/utils/NotificationSupport.js.map +1 -0
- package/dist/utils/StorageHelper.d.ts +65 -0
- package/dist/utils/StorageHelper.d.ts.map +1 -0
- package/dist/utils/StorageHelper.js +273 -0
- package/dist/utils/StorageHelper.js.map +1 -0
- package/feeddo-react-native.podspec +26 -0
- package/ios/FeeddoReactNativeModule.h +8 -0
- package/ios/FeeddoReactNativeModule.m +831 -0
- package/package.json +56 -4
- package/src/Feeddo.ts +247 -0
- package/src/FeeddoClient.ts +895 -0
- package/src/FeeddoProvider.tsx +139 -0
- package/src/config/FeeddoConfig.ts +9 -0
- package/src/index.ts +67 -0
- package/src/models/Conversation.ts +50 -0
- package/src/models/EndUser.ts +65 -0
- package/src/models/FeeddoNotification.ts +29 -0
- package/src/models/HomeData.ts +33 -0
- package/src/models/Message.ts +36 -0
- package/src/models/PushProvider.ts +15 -0
- package/src/models/Task.ts +40 -0
- package/src/models/TaskComment.ts +36 -0
- package/src/models/Ticket.ts +25 -0
- package/src/native/FeeddoNative.ts +80 -0
- package/src/push/FeeddoPushNotificationApns.ts +362 -0
- package/src/services/ApiService.ts +456 -0
- package/src/services/ConversationService.ts +305 -0
- package/src/services/WebSocketService.ts +185 -0
- package/src/theme/FeeddoTheme.ts +85 -0
- package/src/ui/FeeddoFeedbackCard.tsx +245 -0
- package/src/ui/FeeddoModal.tsx +303 -0
- package/src/ui/components/AttachmentPreview.tsx +192 -0
- package/src/ui/components/ChatInputArea.tsx +154 -0
- package/src/ui/components/FeeddoIcon.tsx +903 -0
- package/src/ui/components/FeeddoNotificationBadge.tsx +234 -0
- package/src/ui/components/MessageBubble.tsx +223 -0
- package/src/ui/components/NotificationsSheet.tsx +324 -0
- package/src/ui/components/RatingWidget.tsx +64 -0
- package/src/ui/components/TaskCard.tsx +259 -0
- package/src/ui/components/TaskDetailsSheet.tsx +747 -0
- package/src/ui/components/TicketCard.tsx +128 -0
- package/src/ui/components/TicketDetailsSheet.tsx +324 -0
- package/src/ui/components/TypingIndicator.tsx +104 -0
- package/src/ui/screens/FeeddoChatScreen.tsx +877 -0
- package/src/ui/screens/FeeddoHomeScreen.tsx +824 -0
- package/src/ui/screens/FeeddoMessagesScreen.tsx +414 -0
- package/src/ui/screens/FeeddoTasksScreen.tsx +671 -0
- package/src/ui/screens/FeeddoTicketsScreen.tsx +164 -0
- package/src/utils/DeviceInfoHelper.ts +209 -0
- package/src/utils/MediaHelper.ts +105 -0
- package/src/utils/NotificationSupport.ts +233 -0
- package/src/utils/StorageHelper.ts +305 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
package dev.feeddo.reactnative;
|
|
2
|
+
|
|
3
|
+
import android.app.Activity;
|
|
4
|
+
import android.app.Dialog;
|
|
5
|
+
import android.app.NotificationChannel;
|
|
6
|
+
import android.app.NotificationManager;
|
|
7
|
+
import android.content.ContentResolver;
|
|
8
|
+
import android.content.Context;
|
|
9
|
+
import android.content.Intent;
|
|
10
|
+
import android.content.pm.PackageInfo;
|
|
11
|
+
import android.content.pm.PackageManager;
|
|
12
|
+
import android.database.Cursor;
|
|
13
|
+
import android.graphics.Color;
|
|
14
|
+
import android.graphics.drawable.GradientDrawable;
|
|
15
|
+
import android.media.MediaPlayer;
|
|
16
|
+
import android.net.Uri;
|
|
17
|
+
import android.os.Build;
|
|
18
|
+
import android.os.Bundle;
|
|
19
|
+
import android.provider.OpenableColumns;
|
|
20
|
+
import android.view.Gravity;
|
|
21
|
+
import android.view.View;
|
|
22
|
+
import android.view.ViewGroup;
|
|
23
|
+
import android.webkit.MimeTypeMap;
|
|
24
|
+
import android.widget.FrameLayout;
|
|
25
|
+
import android.widget.MediaController;
|
|
26
|
+
import android.widget.ProgressBar;
|
|
27
|
+
import android.widget.TextView;
|
|
28
|
+
import android.widget.VideoView;
|
|
29
|
+
|
|
30
|
+
import androidx.annotation.NonNull;
|
|
31
|
+
import androidx.annotation.Nullable;
|
|
32
|
+
|
|
33
|
+
import com.facebook.react.bridge.ActivityEventListener;
|
|
34
|
+
import com.facebook.react.bridge.Arguments;
|
|
35
|
+
import com.facebook.react.bridge.BaseActivityEventListener;
|
|
36
|
+
import com.facebook.react.bridge.Promise;
|
|
37
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
38
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
39
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
40
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
41
|
+
import com.facebook.react.bridge.ReadableMapKeySetIterator;
|
|
42
|
+
import com.facebook.react.bridge.WritableMap;
|
|
43
|
+
|
|
44
|
+
import java.io.File;
|
|
45
|
+
import java.io.FileOutputStream;
|
|
46
|
+
import java.io.InputStream;
|
|
47
|
+
import java.util.HashMap;
|
|
48
|
+
import java.util.Locale;
|
|
49
|
+
import java.util.Map;
|
|
50
|
+
import java.util.UUID;
|
|
51
|
+
|
|
52
|
+
public class FeeddoReactNativeModule extends ReactContextBaseJavaModule {
|
|
53
|
+
private static final int REQUEST_PICK_IMAGE = 41721;
|
|
54
|
+
private static final String EXTRA_HANDLED = "dev.feeddo.reactnative.EXTRA_NOTIFICATION_HANDLED";
|
|
55
|
+
|
|
56
|
+
private final ReactApplicationContext reactContext;
|
|
57
|
+
@Nullable
|
|
58
|
+
private Promise pendingPickPromise;
|
|
59
|
+
|
|
60
|
+
private final ActivityEventListener activityEventListener = new BaseActivityEventListener() {
|
|
61
|
+
@Override
|
|
62
|
+
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
|
|
63
|
+
if (requestCode != REQUEST_PICK_IMAGE) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
Promise promise = pendingPickPromise;
|
|
67
|
+
pendingPickPromise = null;
|
|
68
|
+
if (promise == null) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (resultCode != Activity.RESULT_OK || data == null || data.getData() == null) {
|
|
73
|
+
promise.resolve(null);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
final Uri selectedUri = data.getData();
|
|
78
|
+
new Thread(() -> {
|
|
79
|
+
try {
|
|
80
|
+
WritableMap fileResult = copyUriToCache(selectedUri);
|
|
81
|
+
promise.resolve(fileResult);
|
|
82
|
+
} catch (Exception e) {
|
|
83
|
+
promise.reject("pick_error", e.getMessage(), e);
|
|
84
|
+
}
|
|
85
|
+
}).start();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
public FeeddoReactNativeModule(ReactApplicationContext reactContext) {
|
|
90
|
+
super(reactContext);
|
|
91
|
+
this.reactContext = reactContext;
|
|
92
|
+
reactContext.addActivityEventListener(activityEventListener);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@NonNull
|
|
96
|
+
@Override
|
|
97
|
+
public String getName() {
|
|
98
|
+
return "FeeddoReactNative";
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@ReactMethod
|
|
102
|
+
public void getDeviceInfo(Promise promise) {
|
|
103
|
+
try {
|
|
104
|
+
WritableMap map = Arguments.createMap();
|
|
105
|
+
map.putString("platform", "android");
|
|
106
|
+
map.putString("deviceModel", Build.MANUFACTURER + " " + Build.MODEL);
|
|
107
|
+
map.putString("osVersion", "Android " + Build.VERSION.RELEASE + " (SDK " + Build.VERSION.SDK_INT + ")");
|
|
108
|
+
map.putString("packageName", reactContext.getPackageName());
|
|
109
|
+
|
|
110
|
+
Locale locale = Locale.getDefault();
|
|
111
|
+
map.putString("locale", locale.toString());
|
|
112
|
+
String country = locale.getCountry();
|
|
113
|
+
if (country != null && !country.isEmpty()) {
|
|
114
|
+
map.putString("countryCode", country);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
PackageManager pm = reactContext.getPackageManager();
|
|
119
|
+
PackageInfo pkgInfo;
|
|
120
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
|
121
|
+
pkgInfo = pm.getPackageInfo(reactContext.getPackageName(), PackageManager.PackageInfoFlags.of(0));
|
|
122
|
+
} else {
|
|
123
|
+
pkgInfo = pm.getPackageInfo(reactContext.getPackageName(), 0);
|
|
124
|
+
}
|
|
125
|
+
if (pkgInfo.versionName != null) {
|
|
126
|
+
map.putString("appVersion", pkgInfo.versionName);
|
|
127
|
+
}
|
|
128
|
+
long versionCode = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P
|
|
129
|
+
? pkgInfo.getLongVersionCode()
|
|
130
|
+
: pkgInfo.versionCode;
|
|
131
|
+
map.putString("appBuildNumber", String.valueOf(versionCode));
|
|
132
|
+
} catch (Exception ignored) {
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
promise.resolve(map);
|
|
136
|
+
} catch (Exception e) {
|
|
137
|
+
promise.reject("device_info_error", e.getMessage(), e);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@ReactMethod
|
|
142
|
+
public void pickImage(Promise promise) {
|
|
143
|
+
Activity activity = getCurrentActivity();
|
|
144
|
+
if (activity == null) {
|
|
145
|
+
promise.reject("no_activity", "Current activity is null");
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (pendingPickPromise != null) {
|
|
150
|
+
pendingPickPromise.resolve(null);
|
|
151
|
+
pendingPickPromise = null;
|
|
152
|
+
}
|
|
153
|
+
pendingPickPromise = promise;
|
|
154
|
+
|
|
155
|
+
try {
|
|
156
|
+
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
|
157
|
+
intent.setType("image/*");
|
|
158
|
+
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
|
159
|
+
Intent chooser = Intent.createChooser(intent, "Select Image");
|
|
160
|
+
activity.startActivityForResult(chooser, REQUEST_PICK_IMAGE);
|
|
161
|
+
} catch (Exception e) {
|
|
162
|
+
pendingPickPromise = null;
|
|
163
|
+
promise.reject("pick_error", e.getMessage(), e);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@ReactMethod
|
|
168
|
+
public void openVideoPlayer(String url, @Nullable ReadableMap headers, Promise promise) {
|
|
169
|
+
final Activity activity = getCurrentActivity();
|
|
170
|
+
if (activity == null) {
|
|
171
|
+
promise.reject("no_activity", "Current activity is null");
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
final Map<String, String> headerMap = new HashMap<>();
|
|
176
|
+
if (headers != null) {
|
|
177
|
+
ReadableMapKeySetIterator it = headers.keySetIterator();
|
|
178
|
+
while (it.hasNextKey()) {
|
|
179
|
+
String key = it.nextKey();
|
|
180
|
+
String val = headers.getString(key);
|
|
181
|
+
if (val != null) {
|
|
182
|
+
headerMap.put(key, val);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
activity.runOnUiThread(() -> {
|
|
188
|
+
try {
|
|
189
|
+
final Dialog dialog = new Dialog(activity, android.R.style.Theme_Black_NoTitleBar_Fullscreen);
|
|
190
|
+
FrameLayout root = new FrameLayout(activity);
|
|
191
|
+
root.setBackgroundColor(Color.BLACK);
|
|
192
|
+
|
|
193
|
+
final VideoView videoView = new VideoView(activity);
|
|
194
|
+
FrameLayout.LayoutParams videoParams = new FrameLayout.LayoutParams(
|
|
195
|
+
ViewGroup.LayoutParams.MATCH_PARENT,
|
|
196
|
+
ViewGroup.LayoutParams.MATCH_PARENT,
|
|
197
|
+
Gravity.CENTER
|
|
198
|
+
);
|
|
199
|
+
videoView.setLayoutParams(videoParams);
|
|
200
|
+
|
|
201
|
+
final ProgressBar spinner = new ProgressBar(activity);
|
|
202
|
+
FrameLayout.LayoutParams spinnerParams = new FrameLayout.LayoutParams(
|
|
203
|
+
ViewGroup.LayoutParams.WRAP_CONTENT,
|
|
204
|
+
ViewGroup.LayoutParams.WRAP_CONTENT,
|
|
205
|
+
Gravity.CENTER
|
|
206
|
+
);
|
|
207
|
+
spinner.setLayoutParams(spinnerParams);
|
|
208
|
+
|
|
209
|
+
MediaController controller = new MediaController(activity);
|
|
210
|
+
controller.setAnchorView(videoView);
|
|
211
|
+
videoView.setMediaController(controller);
|
|
212
|
+
|
|
213
|
+
videoView.setOnPreparedListener((MediaPlayer mp) -> {
|
|
214
|
+
spinner.setVisibility(View.GONE);
|
|
215
|
+
videoView.start();
|
|
216
|
+
});
|
|
217
|
+
videoView.setOnErrorListener((mp, what, extra) -> {
|
|
218
|
+
spinner.setVisibility(View.GONE);
|
|
219
|
+
return false;
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
TextView closeBtn = new TextView(activity);
|
|
223
|
+
closeBtn.setText("✕");
|
|
224
|
+
closeBtn.setTextColor(Color.WHITE);
|
|
225
|
+
closeBtn.setTextSize(18f);
|
|
226
|
+
closeBtn.setGravity(Gravity.CENTER);
|
|
227
|
+
GradientDrawable bg = new GradientDrawable();
|
|
228
|
+
bg.setColor(0x99000000);
|
|
229
|
+
bg.setShape(GradientDrawable.OVAL);
|
|
230
|
+
closeBtn.setBackground(bg);
|
|
231
|
+
|
|
232
|
+
float density = activity.getResources().getDisplayMetrics().density;
|
|
233
|
+
int btnSize = (int) (40 * density);
|
|
234
|
+
int margin = (int) (16 * density);
|
|
235
|
+
FrameLayout.LayoutParams closeParams = new FrameLayout.LayoutParams(btnSize, btnSize, Gravity.TOP | Gravity.END);
|
|
236
|
+
closeParams.setMargins(margin, margin * 2, margin, margin);
|
|
237
|
+
closeBtn.setLayoutParams(closeParams);
|
|
238
|
+
closeBtn.setOnClickListener(v -> dialog.dismiss());
|
|
239
|
+
|
|
240
|
+
root.addView(videoView);
|
|
241
|
+
root.addView(spinner);
|
|
242
|
+
root.addView(closeBtn);
|
|
243
|
+
|
|
244
|
+
dialog.setContentView(root);
|
|
245
|
+
dialog.setOnDismissListener(d -> {
|
|
246
|
+
try {
|
|
247
|
+
videoView.stopPlayback();
|
|
248
|
+
} catch (Exception ignored) {
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !headerMap.isEmpty()) {
|
|
253
|
+
videoView.setVideoURI(Uri.parse(url), headerMap);
|
|
254
|
+
} else {
|
|
255
|
+
videoView.setVideoURI(Uri.parse(url));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
dialog.show();
|
|
259
|
+
promise.resolve(true);
|
|
260
|
+
} catch (Exception e) {
|
|
261
|
+
promise.reject("video_error", e.getMessage(), e);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@ReactMethod
|
|
267
|
+
public void createNotificationChannel(String channelId, String channelName, String description, Promise promise) {
|
|
268
|
+
try {
|
|
269
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
270
|
+
NotificationManager nm = (NotificationManager) reactContext.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
271
|
+
if (nm != null) {
|
|
272
|
+
NotificationChannel channel = new NotificationChannel(
|
|
273
|
+
channelId,
|
|
274
|
+
channelName,
|
|
275
|
+
NotificationManager.IMPORTANCE_HIGH
|
|
276
|
+
);
|
|
277
|
+
channel.setDescription(description);
|
|
278
|
+
channel.enableLights(true);
|
|
279
|
+
channel.enableVibration(true);
|
|
280
|
+
nm.createNotificationChannel(channel);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
promise.resolve(true);
|
|
284
|
+
} catch (Exception e) {
|
|
285
|
+
promise.reject("channel_error", e.getMessage(), e);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@ReactMethod
|
|
290
|
+
public void getInitialNotification(Promise promise) {
|
|
291
|
+
Activity activity = getCurrentActivity();
|
|
292
|
+
if (activity == null) {
|
|
293
|
+
promise.resolve(null);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
Intent intent = activity.getIntent();
|
|
297
|
+
if (intent == null || intent.getBooleanExtra(EXTRA_HANDLED, false)) {
|
|
298
|
+
promise.resolve(null);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
Bundle extras = intent.getExtras();
|
|
302
|
+
if (extras == null) {
|
|
303
|
+
promise.resolve(null);
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
boolean isFeeddo = extras.containsKey("conversationId")
|
|
307
|
+
|| extras.containsKey("taskId")
|
|
308
|
+
|| "feeddo".equals(extras.getString("source"));
|
|
309
|
+
if (!isFeeddo) {
|
|
310
|
+
promise.resolve(null);
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
WritableMap result = Arguments.createMap();
|
|
314
|
+
for (String key : extras.keySet()) {
|
|
315
|
+
Object val = extras.get(key);
|
|
316
|
+
if (val instanceof String) {
|
|
317
|
+
result.putString(key, (String) val);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
intent.putExtra(EXTRA_HANDLED, true);
|
|
321
|
+
promise.resolve(result);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
private WritableMap copyUriToCache(Uri uri) throws Exception {
|
|
325
|
+
ContentResolver resolver = reactContext.getContentResolver();
|
|
326
|
+
String mimeType = resolver.getType(uri);
|
|
327
|
+
String fileName = queryFileName(resolver, uri);
|
|
328
|
+
|
|
329
|
+
String ext = null;
|
|
330
|
+
if (mimeType != null) {
|
|
331
|
+
ext = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
|
|
332
|
+
}
|
|
333
|
+
if ((ext == null || ext.isEmpty()) && fileName != null && fileName.contains(".")) {
|
|
334
|
+
ext = fileName.substring(fileName.lastIndexOf('.') + 1);
|
|
335
|
+
}
|
|
336
|
+
if (ext == null || ext.isEmpty()) {
|
|
337
|
+
ext = "jpg";
|
|
338
|
+
}
|
|
339
|
+
if (mimeType == null || mimeType.isEmpty()) {
|
|
340
|
+
mimeType = "image/" + (ext.equals("jpg") ? "jpeg" : ext);
|
|
341
|
+
}
|
|
342
|
+
if (fileName == null || fileName.isEmpty()) {
|
|
343
|
+
fileName = "image_" + System.currentTimeMillis() + "." + ext;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
File outFile = new File(reactContext.getCacheDir(), "feeddo_" + UUID.randomUUID().toString() + "_" + fileName);
|
|
347
|
+
try (InputStream in = resolver.openInputStream(uri);
|
|
348
|
+
FileOutputStream out = new FileOutputStream(outFile)) {
|
|
349
|
+
if (in == null) {
|
|
350
|
+
throw new Exception("Unable to open image stream");
|
|
351
|
+
}
|
|
352
|
+
byte[] buffer = new byte[8192];
|
|
353
|
+
int len;
|
|
354
|
+
while ((len = in.read(buffer)) != -1) {
|
|
355
|
+
out.write(buffer, 0, len);
|
|
356
|
+
}
|
|
357
|
+
out.flush();
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
WritableMap map = Arguments.createMap();
|
|
361
|
+
map.putString("uri", Uri.fromFile(outFile).toString());
|
|
362
|
+
map.putString("name", fileName);
|
|
363
|
+
map.putString("type", mimeType);
|
|
364
|
+
return map;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@Nullable
|
|
368
|
+
private String queryFileName(ContentResolver resolver, Uri uri) {
|
|
369
|
+
try (Cursor cursor = resolver.query(uri, null, null, null, null)) {
|
|
370
|
+
if (cursor != null && cursor.moveToFirst()) {
|
|
371
|
+
int idx = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
|
|
372
|
+
if (idx >= 0) {
|
|
373
|
+
return cursor.getString(idx);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
} catch (Exception ignored) {
|
|
377
|
+
}
|
|
378
|
+
return null;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
package dev.feeddo.reactnative;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.ReactPackage;
|
|
6
|
+
import com.facebook.react.bridge.NativeModule;
|
|
7
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
8
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
9
|
+
|
|
10
|
+
import java.util.Collections;
|
|
11
|
+
import java.util.List;
|
|
12
|
+
|
|
13
|
+
public class FeeddoReactNativePackage implements ReactPackage {
|
|
14
|
+
@NonNull
|
|
15
|
+
@Override
|
|
16
|
+
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
|
|
17
|
+
return Collections.singletonList(new FeeddoReactNativeModule(reactContext));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@NonNull
|
|
21
|
+
@Override
|
|
22
|
+
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
23
|
+
return Collections.emptyList();
|
|
24
|
+
}
|
|
25
|
+
}
|
package/dist/Feeddo.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { DesktopConstraints } from './FeeddoClient';
|
|
2
|
+
import { FeeddoTheme } from './theme/FeeddoTheme';
|
|
3
|
+
import { FeeddoPushProviderType } from './models/PushProvider';
|
|
4
|
+
import { StorageAdapter } from './utils/StorageHelper';
|
|
5
|
+
import { Conversation } from './models/Conversation';
|
|
6
|
+
/**
|
|
7
|
+
* Feeddo SDK - AI-powered customer support and feedback for React Native (iOS & Android)
|
|
8
|
+
*/
|
|
9
|
+
export declare class Feeddo {
|
|
10
|
+
/**
|
|
11
|
+
* Initialize Feeddo SDK and create/update user
|
|
12
|
+
*
|
|
13
|
+
* Call this method at app startup or when user data changes.
|
|
14
|
+
* Automatically handles user ID management, device info collection,
|
|
15
|
+
* and in-app notifications.
|
|
16
|
+
*
|
|
17
|
+
* Returns the created or cached user ID.
|
|
18
|
+
*/
|
|
19
|
+
static init(options: {
|
|
20
|
+
apiKey: string;
|
|
21
|
+
externalUserId?: string;
|
|
22
|
+
userName?: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
userSegment?: string;
|
|
25
|
+
subscriptionStatus?: string;
|
|
26
|
+
customAttributes?: Record<string, any>;
|
|
27
|
+
isInAppNotificationOn?: boolean;
|
|
28
|
+
theme?: FeeddoTheme;
|
|
29
|
+
notificationDuration?: number;
|
|
30
|
+
pushToken?: string;
|
|
31
|
+
pushProvider?: FeeddoPushProviderType;
|
|
32
|
+
storageAdapter?: StorageAdapter;
|
|
33
|
+
}): Promise<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Open the Feeddo support home screen modal
|
|
36
|
+
*/
|
|
37
|
+
static show(options?: {
|
|
38
|
+
theme?: FeeddoTheme;
|
|
39
|
+
useSmallWindowOnDesktop?: boolean;
|
|
40
|
+
desktopConstraints?: DesktopConstraints;
|
|
41
|
+
}): void;
|
|
42
|
+
/**
|
|
43
|
+
* Open the chat screen modal directly
|
|
44
|
+
*/
|
|
45
|
+
static showChat(options?: {
|
|
46
|
+
conversation?: Conversation | null;
|
|
47
|
+
initialMessage?: string;
|
|
48
|
+
theme?: FeeddoTheme;
|
|
49
|
+
}): void;
|
|
50
|
+
/**
|
|
51
|
+
* Open the Community Board screen (Feature Requests & Bug Reports)
|
|
52
|
+
*/
|
|
53
|
+
static showCommunityBoard(options?: {
|
|
54
|
+
theme?: FeeddoTheme;
|
|
55
|
+
taskId?: string;
|
|
56
|
+
}): void;
|
|
57
|
+
/**
|
|
58
|
+
* Show an in-app slide-down banner notification manually
|
|
59
|
+
*/
|
|
60
|
+
static showInappNotification(options: {
|
|
61
|
+
title: string;
|
|
62
|
+
message: string;
|
|
63
|
+
data?: Record<string, any>;
|
|
64
|
+
theme?: FeeddoTheme;
|
|
65
|
+
duration?: number;
|
|
66
|
+
}): void;
|
|
67
|
+
/**
|
|
68
|
+
* Handle a foreground push notification to display an in-app banner and update the unread badge,
|
|
69
|
+
* suppressing the native system notification.
|
|
70
|
+
*/
|
|
71
|
+
static handleForegroundNotification(data: Record<string, any>, options?: {
|
|
72
|
+
title?: string;
|
|
73
|
+
message?: string;
|
|
74
|
+
theme?: FeeddoTheme;
|
|
75
|
+
}): void;
|
|
76
|
+
/**
|
|
77
|
+
* Handle notification tap action based on payload data
|
|
78
|
+
*/
|
|
79
|
+
static handleNotificationTap(data: Record<string, any>, options?: {
|
|
80
|
+
theme?: FeeddoTheme;
|
|
81
|
+
}): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Update user information (e.g. username, email, segment, etc.)
|
|
84
|
+
*/
|
|
85
|
+
static updateUser(data: {
|
|
86
|
+
externalUserId?: string;
|
|
87
|
+
userName?: string;
|
|
88
|
+
email?: string;
|
|
89
|
+
userSegment?: string;
|
|
90
|
+
subscriptionStatus?: string;
|
|
91
|
+
customAttributes?: Record<string, any>;
|
|
92
|
+
pushToken?: string;
|
|
93
|
+
pushProvider?: FeeddoPushProviderType;
|
|
94
|
+
}): Promise<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Register push token for the current user
|
|
97
|
+
*/
|
|
98
|
+
static registerPushToken(options: {
|
|
99
|
+
pushToken: string;
|
|
100
|
+
pushProvider: FeeddoPushProviderType;
|
|
101
|
+
}): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Get conversations for the current user
|
|
104
|
+
*/
|
|
105
|
+
static getConversations(options?: {
|
|
106
|
+
userId?: string;
|
|
107
|
+
}): Promise<Conversation[]>;
|
|
108
|
+
/**
|
|
109
|
+
* Create a new conversation
|
|
110
|
+
*/
|
|
111
|
+
static createConversation(options?: {
|
|
112
|
+
agentName?: string;
|
|
113
|
+
}): Promise<Conversation>;
|
|
114
|
+
/**
|
|
115
|
+
* Get current unread message count synchronously
|
|
116
|
+
*/
|
|
117
|
+
static get unreadMessageCount(): number;
|
|
118
|
+
/**
|
|
119
|
+
* Listen to real-time changes to the unread message count
|
|
120
|
+
*/
|
|
121
|
+
static onUnreadCountChange(listener: (count: number) => void): () => void;
|
|
122
|
+
/**
|
|
123
|
+
* Alias for onUnreadCountChange
|
|
124
|
+
*/
|
|
125
|
+
static subscribeUnreadCount(listener: (count: number) => void): () => void;
|
|
126
|
+
/**
|
|
127
|
+
* Dispose and cleanup Feeddo instance (e.g. on user logout)
|
|
128
|
+
*/
|
|
129
|
+
static dispose(): void;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=Feeddo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Feeddo.d.ts","sourceRoot":"","sources":["../src/Feeddo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAiB,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AAC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