Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(cli): signing type option issue #6716

Merged
merged 15 commits into from
Aug 3, 2023
4 changes: 4 additions & 0 deletions cli/src/config.ts
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function runProgram(config: Config): void {
)
.addOption(
new Option(
'--signing-type <signingtype>',
'--signingtype <signingtype>',
markemer marked this conversation as resolved.
Show resolved Hide resolved
'Program used to sign apps (default: jarsigner)',
).choices(['apksigner', 'jarsigner']),
)
Expand Down
1 change: 1 addition & 0 deletions core/native-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,7 @@ const initBridge = (w: any): void => {
});
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
markemer marked this conversation as resolved.
Show resolved Hide resolved
cap.withPlugin = (_pluginId, _fn) => dummy;

cap.Exception = CapacitorException;
Expand Down
20 changes: 0 additions & 20 deletions ios/Capacitor/Capacitor/JS.swift
Original file line number Diff line number Diff line change
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) {
liuwin7 marked this conversation as resolved.
Show resolved Hide resolved
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
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/WebViewAssetHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal class WebViewAssetHandler: NSObject, WKURLSchemeHandler {
]

// if using live reload, then set CORS headers
if self.serverUrl != nil && self.serverUrl?.scheme != localUrl.scheme {
if self.serverUrl != nil && self.serverUrl?.scheme != localUrl.scheme {
headers["Access-Control-Allow-Origin"] = self.serverUrl?.absoluteString
headers["Access-Control-Allow-Methods"] = "GET, OPTIONS"
}
Expand Down