Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 32 additions & 18 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PODS:
- Airship/Core
- AirshipFrameworkProxy (14.6.1):
- Airship (= 19.8.2)
- AirshipServiceExtension (19.10.0)
- AirshipServiceExtension (20.0.0)
- AppAuth (1.7.6):
- AppAuth/Core (= 1.7.6)
- AppAuth/ExternalUserAgent (= 1.7.6)
Expand All @@ -29,7 +29,7 @@ PODS:
- AppLogs (0.1.0)
- boost (1.84.0)
- DoubleConversion (1.1.6)
- EXAV (15.1.5):
- EXAV (15.1.7):
- ExpoModulesCore
- ReactCommon/turbomodule/core
- EXConstants (18.0.9):
Expand Down Expand Up @@ -344,7 +344,7 @@ PODS:
- GoogleUtilities/UserDefaults (8.1.0):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- group-ib-fp (2.3.0):
- group-ib-fp (2.6.0):
- RCT-Folly
- RCTRequired
- RCTTypeSafety
Expand Down Expand Up @@ -450,11 +450,11 @@ PODS:
- SocketRocket
- Yoga
- NWWebSocket (0.5.7)
- Onfido (32.6.0)
- Onfido (32.6.2)
- onfido-react-native-sdk (15.1.0):
- Onfido (~> 32.6.0)
- React
- Plaid (6.4.1)
- Plaid (6.4.2)
- PromisesObjC (2.4.0)
- PromisesSwift (2.4.0):
- PromisesObjC (= 2.4.0)
Expand Down Expand Up @@ -524,6 +524,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -549,6 +550,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -573,6 +575,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -599,6 +602,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -624,6 +628,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -649,6 +654,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -674,6 +680,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -699,6 +706,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -724,6 +732,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -749,6 +758,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -774,6 +784,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -799,6 +810,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -824,6 +836,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand All @@ -849,6 +862,7 @@ PODS:
- React-jsinspectorcdp
- React-jsitooling
- React-perflogger
- React-rendererconsistency
- React-runtimeexecutor
- React-runtimescheduler
- React-utils
Expand Down Expand Up @@ -4118,9 +4132,9 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- SDWebImage (5.21.2):
- SDWebImage/Core (= 5.21.2)
- SDWebImage/Core (5.21.2)
- SDWebImage (5.21.3):
- SDWebImage/Core (= 5.21.3)
- SDWebImage/Core (5.21.3)
- SDWebImageAVIFCoder (0.11.1):
- libavif/core (>= 0.11.0)
- SDWebImage (~> 5.10)
Expand Down Expand Up @@ -4629,12 +4643,12 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
Airship: dd7941c14b71dd34dd0bcd408ad389db252d1264
AirshipFrameworkProxy: 5952a09de66921d9ef72cd4c87237fab19ce58ef
AirshipServiceExtension: 4c87a84223d347f27e16dbfa3c366fa25015747f
AirshipServiceExtension: 50d11b2f62c4a490d4e81a1c36f70e2ecb70a27e
AppAuth: d4f13a8fe0baf391b2108511793e4b479691fb73
AppLogs: 3bc4e9b141dbf265b9464409caaa40416a9ee0e0
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
boost: 659a89341ea4ab3df8259733813b52f26d8be9a5
DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb
EXAV: 13d43af15268a3f448a6b994e91574c939f065e6
EXAV: 28241f071fd70ea38d278d94096b61d893645946
EXConstants: 59d46d25b89f88cc38291a56dbce4d550758f72d
EXImageLoader: ab4fcf9240cf3636a83c00e3fc5229d692899428
expensify-react-native-background-task: 01474352998b00f61c6fc81351c7e7b595058579
Expand Down Expand Up @@ -4670,7 +4684,7 @@ SPEC CHECKSUMS:
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
GoogleSignIn: d4281ab6cf21542b1cfaff85c191f230b399d2db
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
group-ib-fp: fcdafae8102c5e77e35d313d7227a6eba2bbe95f
group-ib-fp: 7f0509dfcdad51637b72f166354a083269266572
GTMAppAuth: f69bd07d68cd3b766125f7e072c45d7340dea0de
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
GzipSwift: 893f3e48e597a1a4f62fafcb6514220fcf8287fa
Expand All @@ -4687,9 +4701,9 @@ SPEC CHECKSUMS:
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
NitroModules: 1fc50954a6e34204a0fc94f4da08d0a9328473e3
NWWebSocket: b4741420f1976e1dff4da3edad00c401e4f1d769
Onfido: 25d7d29890ca96e7faf79c84e2d3a33cd8fb8631
Onfido: 65454f91d10758193c857fd149417f6efbea84c5
onfido-react-native-sdk: 1cdc60cfc65e996d7544e1db1201a52cd0af4047
Plaid: 29f8e793c094261b6fd7761d4c587a92eec30e80
Plaid: 8a212ed955d480364e0deb7fed93625b29811e9d
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
pusher-websocket-react-native: e40c49a1e4ec96d4157375aebcf44943f0f8f62f
Expand All @@ -4701,7 +4715,7 @@ SPEC CHECKSUMS:
React: 2073376f47c71b7e9a0af7535986a77522ce1049
React-callinvoker: 751b6f2c83347a0486391c3f266f291f0f53b27e
React-Codegen: 4b8b4817cea7a54b83851d4c1f91f79aa73de30a
React-Core: 7195661f0b48e7ea46c3360ccb575288a20c932c
React-Core: e311ba7bfc9203d887052d5a1be3d8564ee7dc2a
React-CoreModules: 14f0054ab46000dd3b816d6528af3bd600d82073
React-cxxreact: 7f602425c63096c398dac13cd7a300efd7c281ae
React-debug: d4955c86870792887ed695df6ebf0e94e39dc7e1
Expand Down Expand Up @@ -4753,7 +4767,7 @@ SPEC CHECKSUMS:
react-native-webview: 5887b6094417c75a9bee446261f89c32adf6b602
React-NativeModulesApple: dcfbe72c5a47baec0699a2935c080b7de0c8657b
React-oscompat: 93b5535ea7f7dff46aaee4f78309a70979bdde9d
React-perflogger: a03d913e3205b00aee4128082abe42fd45ce0c98
React-perflogger: 0537875400b4e5b4b7f39b3bbb93bb404464d8c7
React-performancetimeline: e07fcee93986259c74a5be1a98770ed82086fe5b
React-RCTActionSheet: 42195ae666e6d79b4af2346770f765b7c29435b9
React-RCTAnimation: 5c10527683128c56ff2c09297fb080f7c35bd293
Expand All @@ -4768,7 +4782,7 @@ SPEC CHECKSUMS:
React-RCTSettings: b7f4a03f44dba1d3a4dc6770843547b203ca9129
React-RCTText: 91dc597a5f6b27fd1048bb287c41ea05eeca9333
React-RCTVibration: 27b09ddf74bddfa30a58d20e48f885ea6ed6c9d9
React-rendererconsistency: 612d0f6603d9837bb1236d7fd5194203b35c8799
React-rendererconsistency: bef28690433e2b4bb00c2f884b22b86e61a430f2
React-renderercss: 5cc9e5e6732dc124dee16b7ab8f48e0b60b3f31d
React-rendererdebug: 224a1beff9e5d5bc537e72b454135006a5c02a52
React-RuntimeApple: 9bd8789d7b1d0b5502911da80943b3b2fddfe753
Expand Down Expand Up @@ -4806,7 +4820,7 @@ SPEC CHECKSUMS:
RNSound: 9a85701a35e3132484515e73b694610997c7fdfb
RNSVG: 9be2bc57df95a874e8c4b0f7dd71866139f321d2
RNWorklets: e752b7443b51916158d3b6ca6700294827e8a1ea
SDWebImage: 9f177d83116802728e122410fb25ad88f5c7608a
SDWebImage: 16309af6d214ba3f77a7c6f6fdda888cb313a50a
SDWebImageAVIFCoder: afe194a084e851f70228e4be35ef651df0fc5c57
SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c
SDWebImageWebPCoder: e38c0a70396191361d60c092933e22c20d5b1380
Expand Down
2 changes: 1 addition & 1 deletion modules/group-ib-fp/android/gibsdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('gibsdk-androidx-2.0.1335201224.aar'))
artifacts.add("default", file('gibsdk-androidx-2.0.2816300925.aar'))
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion modules/group-ib-fp/android/package/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('gibx-package-collection-1.0.1335201224.aar'))
artifacts.add("default", file('gibx-package-collection-1.0.2816300925.aar'))
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,39 @@
import android.app.Activity;
import android.os.Handler;
import android.util.Log;
import android.webkit.WebView;

import androidx.annotation.NonNull;

import main.java.com.group_ib.react.session.SessionEvents;
import main.java.com.group_ib.react.session.SessionListenerImpl;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.module.annotations.ReactModule;
import com.facebook.react.modules.core.DeviceEventManagerModule;
import com.facebook.react.bridge.ReadableArray;
import com.group_ib.sdk.MobileSdk;
import com.group_ib.sdk.PackageCollectionModule;
import java.util.HashSet;
import java.util.Map;

import com.group_ib.sdk.SessionListener;

@ReactModule(name = FhpModule.NAME)
public class FhpModule extends ReactContextBaseJavaModule {

private static final String TAG = "GIBSDK";
public static final String NAME = "ModuleFhpIos";
private static final String HEADER_USER_AGENT = "User-Agent";
private static MobileSdk sdk = null;
private static WebView webView = null;
private Handler mMainHandler = null;

private final ReactApplicationContext context;
private final Handler mMainHandler;

private final SessionEvents sessionEvents;
private final SessionListener sessionListener;

private MobileSdk sdk = null;

enum Capabilities {
CELLS_COLLECTION_CAPABILITY(MobileSdk.Capability.CellsCollectionCapability),
Expand All @@ -45,34 +53,49 @@ enum Capabilities {
}
}

public static synchronized void initAppWebView(WebView wv) {
if (sdk != null) {
sdk.initAppWebView(wv);
webView = null;
} else {
webView = wv;
}
}

public FhpModule(ReactApplicationContext reactContext) {
super(reactContext);
this.context = reactContext;
mMainHandler = new Handler(context.getMainLooper());
this.sessionEvents = new SessionEvents(context);
this.sessionListener = new SessionListenerImpl(sessionEvents);
}

@Override
public void initialize() {
super.initialize();
mMainHandler = new Handler(getReactApplicationContext().getMainLooper());
final Activity activity = getCurrentActivity();
try {
MobileSdk.enableDebugLogs();
PackageCollectionModule.init();
Activity activity = getCurrentActivity();
sdk = MobileSdk.init(activity != null ? activity : getReactApplicationContext());
if (webView != null) initAppWebView(webView);
sdk = MobileSdk.init(activity != null ? activity : context);
sdk.setSessionListener(sessionListener);
} catch (Exception e) {
Log.e("GIBSDK", "failed to initialize SDK", e);
Log.e(TAG, "failed to initialize SDK", e);
}
}

@Override
public void invalidate() {
try {
sdk.setSessionListener(null);
} catch (final Exception e) {
Log.e(TAG, "failed to remove sessionListener", e);
sessionEvents.reset();
super.invalidate();
}
}

@ReactMethod
public void addListener(final String eventName) {
sessionEvents.addListener(eventName);
}

@ReactMethod
public void removeListeners(final int count) {
sessionEvents.removeListeners(count);
}

@Override
@NonNull
public String getName() {
Expand Down Expand Up @@ -171,9 +194,9 @@ public void setCustomEvent(String customEvent, Callback errorCallback) {
}

@ReactMethod
public void setAttributeTitle(String title, String value, int format, Callback errorCallback) {
public void setAttributeTitle(String title, String value, int format, boolean isSendOnce, Callback errorCallback) {
try {
sdk.setAttribute(title, value, format);
sdk.setAttribute(title, value, format, isSendOnce);
} catch (Exception e) {
errorCallback.invoke(e.getMessage());
}
Expand Down Expand Up @@ -278,11 +301,13 @@ public void stop(Callback errorCallback) {

@ReactMethod
public void getCookies(Callback cookiesCallback) {
Map<String, String> cookies = sdk.getCookies();
WritableMap cookiesMap = Arguments.createMap();
Map<String, String> cookies = sdk.getCookies();
WritableMap cookiesMap = Arguments.createMap();
if (cookies != null && !cookies.isEmpty()) {
for (Map.Entry<String, String> entry : cookies.entrySet()) {
cookiesMap.putString(entry.getKey(), entry.getValue());
cookiesMap.putString(entry.getKey(), entry.getValue());
}
cookiesCallback.invoke(cookiesMap);
}
cookiesCallback.invoke(cookiesMap);
}
}
}
Loading