react-native-insider 5.5.0 → 5.5.1-nh
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.
|
@@ -1,54 +1,17 @@
|
|
|
1
1
|
name: CxFlow-GitHub-Pull-Request
|
|
2
|
-
# Controls when the action will run. Triggers the workflow on push or pull request events but only for the master branch
|
|
3
2
|
on:
|
|
4
3
|
pull_request:
|
|
5
4
|
types: [ready_for_review]
|
|
6
|
-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
|
|
7
5
|
jobs:
|
|
8
|
-
# This workflow contains a single job called "build"
|
|
9
6
|
build:
|
|
10
|
-
# The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
|
|
11
7
|
runs-on: self-runner-node
|
|
12
8
|
steps:
|
|
13
|
-
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- name: Checkmarx CxFlow Action
|
|
16
|
-
id: checkmarx
|
|
17
|
-
uses: checkmarx-ts/checkmarx-cxflow-github-action@v1.4
|
|
18
|
-
with:
|
|
19
|
-
project: ${{ github.repository }}-PR
|
|
20
|
-
team: ${{ secrets.CHECKMARX_TEAMS }}
|
|
21
|
-
checkmarx_url: ${{ secrets.CHECKMARX_URL }} # To be stored in GitHub Secrets.
|
|
22
|
-
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }} # To be stored in GitHub Secrets.
|
|
23
|
-
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }} # To be stored in GitHub Secrets.
|
|
24
|
-
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }} # To be stored in GitHub Secrets.
|
|
25
|
-
scan-preset: Checkmarx Default
|
|
26
|
-
incremental: true
|
|
27
|
-
break_build: false
|
|
28
|
-
scanners: sast
|
|
29
|
-
params: --namespace=${{ github.repository_owner }} --cx-flow.filterStatus=New --repo-name=${{ github.event.repository.name }} --branch=${{ github.head_ref }} --cx-flow.filterSeverity --cx-flow.filterCategory --cx-flow.zip-exclude="\.git\/.*,\.github\/.*,tests\/.*,__tests__\/.*,__mocks__\/.*,\.*\/.*,test\/.*,doc\/.*,_unit\/.*"
|
|
30
|
-
- name: The job has failed
|
|
31
|
-
if: ${{ failure() }}
|
|
9
|
+
- name: Trigger to Scanner Lambda
|
|
32
10
|
run: |
|
|
33
11
|
python -c '
|
|
34
12
|
import json,sys,requests;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
requests.post("'$LambdaWebHook'", json=
|
|
38
|
-
env:
|
|
39
|
-
LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
|
|
40
|
-
- name: Checkmarx Response Send to Lambda
|
|
41
|
-
id: slack-notification
|
|
42
|
-
if: ${{ success() }}
|
|
43
|
-
run: |
|
|
44
|
-
python -c '
|
|
45
|
-
import json,sys,requests;
|
|
46
|
-
output=open("./cx.sarif");
|
|
47
|
-
json_result=json.loads(output.read());
|
|
48
|
-
response="";
|
|
49
|
-
json_result = json_result.get("runs", [{}])[0].get("tool", {}).get("driver", {}).get("rules", []);
|
|
50
|
-
github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
|
|
51
|
-
request = {"checkmarx_result": json_result, "github": github_result};
|
|
52
|
-
requests.post("'$LambdaWebHook'", json=request);'
|
|
13
|
+
github = {"repository": "'${{ github.event.repository.name }}'", "ref": "'${{ github.head_ref }}'"};
|
|
14
|
+
github_request = {"checkmarx_gitaction": github};
|
|
15
|
+
requests.post("'$LambdaWebHook'", json=github_request);'
|
|
53
16
|
env:
|
|
54
17
|
LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
|
package/RNInsider.podspec
CHANGED
|
@@ -9,11 +9,12 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.authors = package_json['author']
|
|
10
10
|
s.license = 'MIT'
|
|
11
11
|
s.platform = :ios, '10.0'
|
|
12
|
-
s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/12.
|
|
12
|
+
s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/12.8.2/InsiderMobileIOSFramework.zip'}
|
|
13
13
|
s.source_files = 'ios/RNInsider/*.{h,m}'
|
|
14
14
|
s.requires_arc = true
|
|
15
15
|
s.static_framework = true
|
|
16
16
|
s.dependency 'React'
|
|
17
|
-
s.dependency 'InsiderMobile', '12.
|
|
17
|
+
s.dependency 'InsiderMobile', '12.8.2'
|
|
18
|
+
s.dependency 'InsiderGeofence', '1.0.3'
|
|
18
19
|
s.dependency 'InsiderHybrid', '1.4.0'
|
|
19
20
|
end
|
package/android/build.gradle
CHANGED
|
@@ -35,7 +35,7 @@ repositories {
|
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
|
|
38
|
-
implementation ('com.useinsider:insider:13.8.0')
|
|
38
|
+
implementation ('com.useinsider:insider:13.8.0-nh')
|
|
39
39
|
implementation ('com.useinsider:insiderhybrid:1.1.5')
|
|
40
40
|
|
|
41
41
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
@@ -43,8 +43,4 @@ dependencies {
|
|
|
43
43
|
implementation 'com.google.android.gms:play-services-ads:21.0.0'
|
|
44
44
|
implementation 'com.google.firebase:firebase-messaging:23.0.5'
|
|
45
45
|
implementation 'androidx.lifecycle:lifecycle-process:2.4.1'
|
|
46
|
-
|
|
47
|
-
implementation 'com.huawei.hms:push:6.5.0.300'
|
|
48
|
-
implementation 'com.huawei.hms:ads-identifier:3.4.39.302'
|
|
49
|
-
implementation 'com.huawei.hms:location:6.4.0.300'
|
|
50
46
|
}
|
|
@@ -621,10 +621,6 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
621
621
|
}
|
|
622
622
|
String provider = Insider.Instance.getCurrentProvider(reactContext);
|
|
623
623
|
switch (provider) {
|
|
624
|
-
case "huawei":
|
|
625
|
-
com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
|
626
|
-
Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
|
|
627
|
-
break;
|
|
628
624
|
case "other":
|
|
629
625
|
case "google":
|
|
630
626
|
RemoteMessage fcmRemoteMessage = new RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
#import "RNInsider.h"
|
|
2
2
|
#import "RNNotificationHandler.h"
|
|
3
|
+
|
|
3
4
|
#if __has_include(<InsiderMobile/Insider.h>)
|
|
4
5
|
#import <InsiderMobile/Insider.h>
|
|
5
6
|
#elif __has_include("Insider.h")
|
|
6
7
|
#import "Insider.h"
|
|
7
8
|
#endif
|
|
9
|
+
|
|
10
|
+
#if __has_include(<InsiderGeofence/InsiderGeofence.h>)
|
|
11
|
+
#import <InsiderGeofence/InsiderGeofence.h>
|
|
12
|
+
#elif __has_include("InsiderGeofence.h")
|
|
13
|
+
#import "InsiderGeofence.h"
|
|
14
|
+
#endif
|
|
15
|
+
|
|
8
16
|
#import <InsiderHybrid/InsiderHybrid.h>
|
|
9
17
|
#import <InsiderHybrid/InsiderHybridMethods.h>
|
|
10
18
|
#import <InsiderMobile/InsiderCallbackTypeEnum.h>
|
|
@@ -428,7 +436,7 @@ RCT_EXPORT_METHOD(visitCartPage:(NSArray *)products) {
|
|
|
428
436
|
|
|
429
437
|
RCT_EXPORT_METHOD(startTrackingGeofence) {
|
|
430
438
|
@try {
|
|
431
|
-
[
|
|
439
|
+
[InsiderGeofence startTracking];
|
|
432
440
|
} @catch (NSException *e){
|
|
433
441
|
[Insider sendError:e desc:[NSString stringWithFormat:@"%s:%d", __func__, __LINE__]];
|
|
434
442
|
}
|