Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
abrantesarthur committed Jan 24, 2025
2 parents b60400d + 801ba52 commit 8b9075c
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
platform :ios, "14.0"
use_frameworks!
inhibit_all_warnings!
target "Acme" do

# Raizlabs
pod 'RZVinyl', :git =>'git@github.com:test/acme-RZVinyl.git'
pod 'RZTransitions', '1.2.1'
# Acme
pod 'SDWebImage', :git =>'git@github.com:test/acme-SDWebImage.git', :commit => 'c224e87'

# Code Analysis
pod 'SwiftLint'
target 'AcmeTests' do
inherit! :search_paths
pod 'RZVinyl', :git =>'git@github.com:test/acme-RZVinyl.git'
# For UI Snapshot Testing
use_frameworks!
pod 'iOSSnapshotTestCase', '6.2.0'
pod 'SnapshotTesting', '~> 1.8.1'
end

target 'NotificationServiceExtension' do
inherit! :search_paths
end

post_install do |installer|
installer.pods_project.targets.each do |target|

target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
end
end
end
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"clean": "yarn tsc --build --clean",
"lint": "yarn eslint src --ext .ts",
"prepublish": "yarn build",
"test": "yarn mocha './src/**/*.test.ts'",
"test": "yarn mocha './src/**/*.test.ts' --reporter-option maxDiffSize=0",
"script:transcend-json-schema": "ts-node --transpile-only scripts/buildTranscendJsonSchema.ts && yarn prettier ./transcend-yml-schema-v6.json --write",
"script:pathfinder-json-schema": "ts-node --transpile-only scripts/buildPathfinderJsonSchema.ts && yarn prettier ./pathfinder-policy-yml-schema.json --write"
},
Expand Down
30 changes: 20 additions & 10 deletions src/cli-cron-pull-profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,26 @@ async function main(): Promise<void> {
const results = await map(
uniq(requestIds),
async (requestId) => {
const results = await fetchRequestFilesForRequest(client, { requestId });
return results.map(({ fileName, remoteId }) => ({
RecordId: remoteId,
Object: fileName
.replace('.json', '')
.split('/')
.pop()
?.replace(' Information', ''),
Comment: 'Customer data deletion request submitted via transcend.io',
}));
const results = await fetchRequestFilesForRequest(client, {
requestId,
dataSiloId: targetDataSiloId,
});
return results.map(({ fileName, remoteId }) => {
if (!remoteId) {
throw new Error(
`Failed to find remoteId for ${fileName} request: ${requestId}`,
);
}
return {
RecordId: remoteId,
Object: fileName
.replace('.json', '')
.split('/')
.pop()
?.replace(' Information', ''),
Comment: 'Customer data deletion request submitted via transcend.io',
};
});
},
{
concurrency: 10,
Expand Down
4 changes: 2 additions & 2 deletions src/code-scanning/integrations/cocoaPods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CodePackageSdk } from '../../codecs';
import { findAllWithRegex } from '@transcend-io/type-utils';
import { CodePackageType } from '@transcend-io/privacy-types';

const POD_TARGET_REGEX = /target '(.*?)'/;
const POD_TARGET_REGEX = /target ('|")(.*?)('|")/;
const POD_PACKAGE_REGEX = /pod ('|")(.*?)('|")(, ('|")~> (.+?)('|")|)/;

export const cocoaPods: CodeScanningConfig = {
Expand All @@ -16,7 +16,7 @@ export const cocoaPods: CodeScanningConfig = {
const targets = findAllWithRegex(
{
value: new RegExp(POD_TARGET_REGEX, 'g'),
matches: ['name'],
matches: ['quote1', 'name', 'quote2'],
},
fileContents,
);
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/fetchRequestFilesForRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export async function fetchRequestFilesForRequest(
filterBy: {
/** Filter by request ID */
requestId: string;
/** Filter by data silo ID */
dataSiloId?: string;
},
): Promise<RequestFile[]> {
const requestFiles: RequestFile[] = [];
Expand Down
51 changes: 51 additions & 0 deletions src/tests/findCodePackagesInFolder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,57 @@ describe('findCodePackagesInFolder', () => {
relativePath: 'test-requirements-txt/nested-cocoapods/Podfile',
repositoryName: 'transcend-io/cli',
},
{
name: 'Acme',
relativePath: 'test-requirements-txt/nested-cocoapods-2/Podfile',
repositoryName: 'transcend-io/cli',
softwareDevelopmentKits: [
{
name: 'RZVinyl',
version: undefined,
},
{
name: 'RZTransitions',
version: undefined,
},
{
name: 'SDWebImage',
version: undefined,
},
{
name: 'SwiftLint',
version: undefined,
},
],
type: 'COCOA_PODS',
},
{
name: 'AcmeTests',
type: 'COCOA_PODS',
softwareDevelopmentKits: [
{
name: 'RZVinyl',
version: undefined,
},
{
name: 'iOSSnapshotTestCase',
version: undefined,
},
{
name: 'SnapshotTesting',
version: '1.8.1',
},
],
relativePath: 'test-requirements-txt/nested-cocoapods-2/Podfile',
repositoryName: 'transcend-io/cli',
},
{
name: 'NotificationServiceExtension',
relativePath: 'test-requirements-txt/nested-cocoapods-2/Podfile',
repositoryName: 'transcend-io/cli',
softwareDevelopmentKits: [],
type: 'COCOA_PODS',
},
{
name: 'com.yourcompany.yourapp',
softwareDevelopmentKits: [
Expand Down

0 comments on commit 8b9075c

Please sign in to comment.