Skip to content

Commit

Permalink
feat: find dsyms in folders
Browse files Browse the repository at this point in the history
  • Loading branch information
janzal committed Feb 9, 2023
1 parent eb099b2 commit 85e33a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/lib/commands/upload-mapping-file/upload-mapping-file.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
import archiver from 'archiver'
import * as fs from 'fs'
import * as plist from 'plist'
import * as path from 'node:path'
import * as os from 'node:os'
import { execSync } from 'node:child_process'
import glob from 'glob'
import {
AppIdentifiers,
CLIArgs,
IDSymInfo,
IXCarchiveInfoPlistFile,
IApplicationProperties,
RequestOptions,
} from './types'
import { uploadAndroid, uploadApple } from './uploaders'

import { debug, error, info } from '../../logger'
import { isXcarchive } from './helpers'
import { upload } from './upload'
import { ValidationError } from '../../ValidationError'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import archiver from 'archiver'
import FormData from 'form-data'

import { error, info, debug } from '../../../logger'
import { isXcarchive } from '../helpers'
import { isDsym } from '../helpers'
import { CLIArgs, IDSymInfo, RequestOptions } from '../types'

function getDsymPaths(basePath: string): string[] {
Expand Down Expand Up @@ -113,10 +113,10 @@ function extractDsymInfo(dsymPath: string): IDSymInfo | null {
async function extractAndPackDsyms(basePath: string) {
const dsymPaths: string[] = []

if (!isXcarchive(basePath)) {
if (isDsym(basePath)) {
dsymPaths.push(basePath)
} else {
info('.xcarchive detected - extracting dSYMs')
info('looking for dSYMs')

const discoveredDSyms = getDsymPaths(basePath)
dsymPaths.push(...discoveredDSyms)
Expand Down

0 comments on commit 85e33a4

Please sign in to comment.