[sword-svn] r3660 - trunk/bindings/cordova/cordova-plugin-crosswire-sword/src/ios
scribe at crosswire.org
scribe at crosswire.org
Thu Jun 13 18:28:04 MST 2019
Author: scribe
Date: 2019-06-13 18:28:04 -0700 (Thu, 13 Jun 2019)
New Revision: 3660
Modified:
trunk/bindings/cordova/cordova-plugin-crosswire-sword/src/ios/SWORD.swift
Log:
Updated SWIFT bindings to better work with BOTH local and remote SWModules
Modified: trunk/bindings/cordova/cordova-plugin-crosswire-sword/src/ios/SWORD.swift
===================================================================
--- trunk/bindings/cordova/cordova-plugin-crosswire-sword/src/ios/SWORD.swift 2019-06-13 20:23:38 UTC (rev 3659)
+++ trunk/bindings/cordova/cordova-plugin-crosswire-sword/src/ios/SWORD.swift 2019-06-14 01:28:04 UTC (rev 3660)
@@ -706,9 +706,10 @@
func getModule(command: CDVInvokedUrlCommand, nameArgNumber: Int = 0, remoteSourceArgNumber: Int = -1) -> Int {
initMgr()
let modName = command.arguments[nameArgNumber] as? String ?? ""
+ let sourceName = remoteSourceArgNumber == -1 ? "" : command.arguments[remoteSourceArgNumber] as? String ?? ""
var module = 0;
- if (remoteSourceArgNumber > -1) {
- let sourceName = command.arguments[remoteSourceArgNumber] as? String ?? ""
+ if (sourceName != "") {
+ logDebug(message: "remoteSourceName: \(sourceName)");
initInstall()
module = org_crosswire_sword_InstallMgr_getRemoteModuleByName(installMgr, sourceName, modName)
}
More information about the sword-cvs
mailing list