react-native-insider 5.5.0-nh → 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
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
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
- github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
36
- request = {"checkmarx_result": "empty", "github": github_result};
37
- requests.post("'$LambdaWebHook'", json=request);'
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.7.3/InsiderMobileIOSFramework.zip'}
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.7.3'
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
@@ -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
- [Insider startTrackingGeofence];
439
+ [InsiderGeofence startTracking];
432
440
  } @catch (NSException *e){
433
441
  [Insider sendError:e desc:[NSString stringWithFormat:@"%s:%d", __func__, __LINE__]];
434
442
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-insider",
3
- "version": "5.5.0-nh",
3
+ "version": "5.5.1-nh",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "keywords": [