Skip to content

Commit

Permalink
feat: update exit and android default flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Oct 10, 2023
1 parent f44b70d commit 0f02a0d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function javascriptObfuscator(options = {}) {
name: "javascript-obfuscator",
transform(code, id) {
const obfuscationResult = JavaScriptObfuscator.obfuscate(code, options);
console.log("obfuscating...");
let result = { code: obfuscationResult.getObfuscatedCode() };

if (options.sourceMap && options.sourceMapMode !== "inline") {
Expand Down Expand Up @@ -57,7 +56,7 @@ export default {
deadCodeInjectionThreshold: 1,
debugProtection: true,
debugProtectionInterval: 4000,
disableConsoleOutput: true,
disableConsoleOutput: false,
identifierNamesGenerator: 'hexadecimal',
log: false,
numbersToExpressions: true,
Expand Down
2 changes: 1 addition & 1 deletion src/application/androidUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import fs from 'fs';
export function getAppBuildFolder(flavorName?: string, release?: boolean) {
const buildType = release ? 'release' : 'debug';

const appPath = `${getRootDestinationFolder()}/android/${flavorName ? `${flavorName}/` : ''}${buildType}`;
const appPath = `${getRootDestinationFolder()}/android/${flavorName ? `${flavorName}/` : 'default/'}${buildType}`;
return appPath;
}

Expand Down
1 change: 1 addition & 0 deletions src/commands/addUserToProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export default class AddUserToProject extends AuthenticatedCommand {
const { args, flags } = await this.parse(AddUserToProject);

// todo
this.exit(0);
}
}
1 change: 1 addition & 0 deletions src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ export default class Build extends Command {
await buildAndroid(buildFlavor, incremental, release);
}
logger.info(`Build finished in ${((performance.now() - start) / 1000).toFixed(1)} seconds`);
this.exit(0);
}
}
1 change: 1 addition & 0 deletions src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export default class Login extends Command {
await signIn();
}
logger.info(`Logged in as ${getAuth().currentUser!.email}`);
this.exit(0);
}
}
1 change: 1 addition & 0 deletions src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ export default class Run extends Command {
await runIos(buildFlavor!, iosBuildPlatforms.simulator, forceBuild);
}
logger.info(`Run finished in ${((performance.now() - start) / 1000).toFixed(1)} seconds`);
this.exit(0);
}
}
2 changes: 1 addition & 1 deletion src/commands/selectProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class SelectProject extends AuthenticatedCommand {
if (selectedProject.project) {
logger.info(`Selected project ${chalk.bold(selectedProject.project.name)} (${selectedProject.project.id})`);
await saveProjectData(selectedProject.project.name, selectedProject.project.id);
this.exit(0);
}
this.exit(0);
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"declaration": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "build",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"noImplicitAny": true,
Expand Down

0 comments on commit 0f02a0d

Please sign in to comment.