react-native-insider 5.4.2-nh → 5.5.0-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,15 +1,3 @@
1
- # This is a basic workflow to create GitHub Issues using the Checkmarx CxFlow GitHub Action. It runs on a pull-request to the main branch.
2
- #
3
- # The following GitHub Secrets must be first defined:
4
- # - CHECKMARX_URL
5
- # - CHECKMARX_USER
6
- # - CHECKMARX_PASSWORD
7
- # - CHECKMARX_CLIENT_SECRET
8
- # - GH_TOKEN
9
- #
10
- # Update the 'team' field to reflect the team name used in Checkmarx.
11
- #
12
- # For full documentation,including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action
13
1
  name: CxFlow-GitHub-Pull-Request
14
2
  # Controls when the action will run. Triggers the workflow on push or pull request events but only for the master branch
15
3
  on:
@@ -38,7 +26,7 @@ jobs:
38
26
  incremental: true
39
27
  break_build: false
40
28
  scanners: sast
41
- 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
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\/.*"
42
30
  - name: The job has failed
43
31
  if: ${{ failure() }}
44
32
  run: |
@@ -1,8 +1,9 @@
1
1
  name: gitleaks
2
- on: [push]
2
+ on:
3
+ pull_request:
4
+ types: [ready_for_review]
3
5
  env:
4
6
  GIT_DISCOVERY_ACROSS_FILESYSTEM: 1
5
-
6
7
  jobs:
7
8
  gitleaks:
8
9
  runs-on: self-runner-node
@@ -11,28 +12,33 @@ jobs:
11
12
  uses: actions/checkout@v2
12
13
  with:
13
14
  fetch-depth: '2'
14
- - name: Clone GitLeak Action
15
- uses: actions/checkout@v2
15
+ - name: Detecting new added lines
16
+ run: |
17
+ git fetch origin ${{ github.event.repository.default_branch }}
18
+ git diff origin/${{ github.event.repository.default_branch }}..HEAD --name-only | xargs git diff origin/${{ github.event.repository.default_branch }}..HEAD -- | grep '+' | sed 's/+//' | sed 's/^[ \t]*//' > new-added-lines.txt
19
+ working-directory: ${{ github.workspace }}
20
+ - name: Install Go
21
+ uses: actions/setup-go@v2
16
22
  with:
17
- repository: useinsider/gitleaks-action
18
- ref: master
19
- token: ${{ secrets.PAT }}
20
- path: .github/actions/gitleaks-action
21
- - name: Install Dependencies
22
- run: npm install
23
- working-directory: .github/actions/gitleaks-action
24
- - name: gitleaks-action
25
- uses: ./.github/actions/gitleaks-action
23
+ go-version: 1.16
24
+ - name: Install gitleaks
25
+ run: |
26
+ go get github.com/zricethezav/gitleaks/v7
27
+ - name: Run gitleaks
28
+ run: |
29
+ gitleaks --no-git --path ${{ github.workspace }}/new-added-lines.txt --verbose --report=${{ github.workspace }}/gitleaks-report.json
26
30
  - name: Send to Lambda
27
31
  if: ${{ always() }}
28
32
  run: |
29
33
  python -c '
30
34
  import json,sys,requests;
31
- output=open("./results.sarif");
35
+ try:
36
+ output=open("./gitleaks-report.json");
37
+ except IOError:
38
+ sys.exit(0);
32
39
  json_result=json.loads(output.read());
33
- response="";
34
- github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
35
- request = {"gitleaks_result": json_result, "github": github_result};
36
- requests.post("'$LambdaWebHook'", json=request);'
40
+ github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'", "pr_number": "'${{ github.event.number }}'"};
41
+ request_json = {"gitleaks_result": json_result,"github": github_result};
42
+ requests.post("'$LambdaWebHook'", json=request_json)'
37
43
  env:
38
44
  LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
@@ -13,6 +13,7 @@ jobs:
13
13
  uses: actions/checkout@v3
14
14
  with:
15
15
  ref: develop
16
+ token: ${{ secrets.GIT_TOKEN }}
16
17
 
17
18
  - name: Configure AWS credentials
18
19
  uses: aws-actions/configure-aws-credentials@v1
package/RNInsider.podspec CHANGED
@@ -9,11 +9,11 @@ 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.5.6/InsiderMobileIOSFramework.zip'}
12
+ s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/12.7.3/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.5.6'
17
+ s.dependency 'InsiderMobile', '12.7.3'
18
18
  s.dependency 'InsiderHybrid', '1.4.0'
19
19
  end
@@ -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.6.1-nh')
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'
@@ -88,7 +88,6 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
88
88
  }
89
89
  }
90
90
  });
91
- Insider.Instance.handleHybridIntent();
92
91
  Insider.Instance.storePartnerName(partnerName);
93
92
  }
94
93
  });
@@ -636,19 +635,9 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
636
635
  }
637
636
  }
638
637
 
638
+ // Deprecated
639
639
  @ReactMethod
640
- public void enableIDFACollection(final boolean enableIDFACollection) {
641
- new Handler(Looper.getMainLooper()).post(new Runnable() {
642
- @Override
643
- public void run() {
644
- try {
645
- Insider.Instance.enableIDFACollection(enableIDFACollection);
646
- } catch (Exception e) {
647
- Insider.Instance.putException(e);
648
- }
649
- }
650
- });
651
- }
640
+ public void enableIDFACollection(final boolean enableIDFACollection) {}
652
641
 
653
642
  @ReactMethod
654
643
  public void setHybridPushToken(String token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-insider",
3
- "version": "5.4.2-nh",
3
+ "version": "5.5.0-nh",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "keywords": [