Skip to content

Commit

Permalink
Merge pull request #1198 from flexn-io/fix/android_build
Browse files Browse the repository at this point in the history
fix/android_build
  • Loading branch information
pavjacko authored Oct 24, 2023
2 parents 2daeade + 5afcb75 commit 2f6ea55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/sdk-android/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
updateObjectSync,
fsWriteFileSync,
executeAsync,
generateEnvVars,
getAppFolder,
getConfigProp,
getEntryFile,
Expand Down Expand Up @@ -311,6 +312,7 @@ export const buildAndroid = async (c: Context) => {
const { platform } = c;

const appFolder = getAppFolder(c);

const signingConfig = getConfigProp(c, platform, 'signingConfig', 'Debug');

const outputAab = getConfigProp(c, platform, 'aab', false);
Expand All @@ -325,7 +327,12 @@ export const buildAndroid = async (c: Context) => {
command += ` --extra-params ${extraGradleParams}`;
}

await executeAsync(c, command, { cwd: appFolder });
await executeAsync(c, command, {
cwd: appFolder,
env: {
...generateEnvVars(c),
},
});

// await _checkSigningCerts(c);
// await executeAsync(
Expand Down

0 comments on commit 2f6ea55

Please sign in to comment.