Skip to content

Commit

Permalink
fix(cli): signing type option issue (#6716)
Browse files Browse the repository at this point in the history
Co-authored-by: fdliu <fdliu@cm-topsci.com>
Co-authored-by: Mark Anderson <mark@ionic.io>
  • Loading branch information
3 people committed Aug 3, 2023
1 parent cc85df5 commit ee0f745
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
4 changes: 4 additions & 0 deletions cli/src/config.ts
Expand Up @@ -239,6 +239,10 @@ async function loadAndroidConfig(
const buildOptions = {
keystorePath: extConfig.android?.buildOptions?.keystorePath,
keystorePassword: extConfig.android?.buildOptions?.keystorePassword,
keystoreAlias: extConfig.android?.buildOptions?.keystoreAlias,
keystoreAliasPassword:
extConfig.android?.buildOptions?.keystoreAliasPassword,
signingType: extConfig.android?.buildOptions?.signingType,
releaseType: extConfig.android?.buildOptions?.releaseType,
};

Expand Down
4 changes: 2 additions & 2 deletions cli/src/index.ts
Expand Up @@ -174,7 +174,7 @@ export function runProgram(config: Config): void {
keystorealias,
keystorealiaspass,
androidreleasetype,
signingtype,
signingType,
},
) => {
const { buildCommand } = await import('./tasks/build');
Expand All @@ -185,7 +185,7 @@ export function runProgram(config: Config): void {
keystorealias,
keystorealiaspass,
androidreleasetype,
signingtype,
signingtype: signingType,
});
},
),
Expand Down
1 change: 1 addition & 0 deletions core/native-bridge.ts
Expand Up @@ -1065,6 +1065,7 @@ const initBridge = (w: any): void => {
});
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
cap.withPlugin = (_pluginId, _fn) => dummy;

cap.Exception = CapacitorException;
Expand Down
20 changes: 0 additions & 20 deletions ios/Capacitor/Capacitor/JS.swift
Expand Up @@ -19,13 +19,6 @@ internal struct JSCall {
let pluginId: String
let method: String
let callbackId: String

init(options: [String: Any], pluginId: String, method: String, callbackId: String) {
self.options = options
self.pluginId = pluginId
self.method = method
self.callbackId = callbackId
}
}

internal protocol JSResultProtocol {
Expand Down Expand Up @@ -64,11 +57,6 @@ internal struct JSResult: JSResultProtocol {
let call: JSCall
let result: PluginCallResult?

init(call: JSCall, result: PluginCallResult?) {
self.call = call
self.result = result
}

func jsonPayload() -> String {
guard let result = result else {
return SerializationResult.undefined.rawValue
Expand Down Expand Up @@ -101,14 +89,6 @@ internal struct JSResultError: JSResultProtocol {
let errorCode: String?
let result: PluginCallResult

init(call: JSCall, errorMessage: String, errorDescription: String, errorCode: String?, result: PluginCallResult) {
self.call = call
self.errorMessage = errorMessage
self.errorDescription = errorDescription
self.errorCode = errorCode
self.result = result
}

func jsonPayload() -> String {
var errorDictionary: [String: Any] = [
"message": self.errorMessage,
Expand Down

0 comments on commit ee0f745

Please sign in to comment.