Skip to content

Commit

Permalink
fix: copy unsigned file to output if signer config not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
buffcow committed Oct 27, 2023
1 parent 220ca7f commit cab490f
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;

import kotlin.io.FilesKt;

public class ApkToAABConverter extends FileConverter {

private static final int BUFFER_SIZE = 1024 * 2;
Expand Down Expand Up @@ -166,6 +168,12 @@ public void sign() {
);
} else {
addLog("No signer config provided, skipping signing");
FilesKt.copyTo(
mNonSignedAAB.toFile(),
getOutputPath().toFile(),
true,
8 * 1024
);
}
}

Expand All @@ -186,7 +194,7 @@ public Builder setBundleConfig(Path configPath) {
return this;
}

public Builder setBundleConfig(Config.BundleConfig bundleConfig){
public Builder setBundleConfig(Config.BundleConfig bundleConfig) {
bundleConfigPath = null;
this.bundleConfig = bundleConfig;
return this;
Expand Down

0 comments on commit cab490f

Please sign in to comment.