Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Android&iOS] Fix some typos (#1614)
Browse files Browse the repository at this point in the history
* Fix typo: exsists
  • Loading branch information
eduherminio authored and YorkShen committed Dec 6, 2018
1 parent 247a165 commit f30c217
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public static String findSoPath(String libName) {
WXLogUtils.e(libName + "'s Path is" + soPath);
return soFile.getAbsolutePath();
} else {
WXLogUtils.e(libName + "'s Path is " + soPath + " but file is not exist");
WXLogUtils.e(libName + "'s Path is " + soPath + " but file does not exist");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ public void createInstance(final String instanceId, final Script template,
final Map<String, Object> options, final String data) {
final WXSDKInstance instance = WXSDKManager.getInstance().getSDKInstance(instanceId);
if (instance == null) {
WXLogUtils.e("WXBridgeManager", "createInstance failed, SDKInstance is not exist");
WXLogUtils.e("WXBridgeManager", "createInstance failed, SDKInstance does not exist");
return;
}
if (TextUtils.isEmpty(instanceId) || template == null || template.isEmpty() || mJSHandler == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public enum WXErrorCode {
/**
* Single progress init error
*/
WX_ERR_SINGLE_PROCESS_DLOPEN_FILE_NOT_EXIST("-1004", "so file is not exist",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),
WX_ERR_SINGLE_PROCESS_DLOPEN_FILE_NOT_EXIST("-1004", "so file does not exist",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

WX_ERR_SINGLE_PROCESS_DLOPEN_FLAIED("-1005", "dlopen so file failed",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

Expand All @@ -170,7 +170,7 @@ public enum WXErrorCode {

WX_JS_FRAMEWORK_REINIT_MULPROCESS_FAILED("-1009", "js framework reinit multiProcess failed",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

WX_JS_FRAMEWORK_INIT_FAILED("-1010", "js framework init failed",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),
WX_JS_FRAMEWORK_INIT_FAILED("-1010", "js framework init failed",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

WX_JS_FRAMEWORK_INIT_SINGLE_PROCESS_SUCCESS("-1011", "js framework init success in single process",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Protocol/WXConfigCenterProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
get config from config center handler
@param key the key for config
@param defaultValue default value for key if the key is not exist.
@param defaultValue default value for key if the key does not exist.
@param isDefault whether the value is default value
@return the value for config key
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ void doExec(int fdClient, int fdServer, bool traceEnable, bool startupPie) {
int result = access(executableName.c_str(), 01);

#if PRINT_LOG_CACHEFILE
mcfile << "jsengine WeexJSConnection::doExec file exsist result:"
mcfile << "jsengine WeexJSConnection::doExec file exist result:"
<< result << " startupPie:" << startupPie << std::endl;
#endif
if (result == -1) {
Expand Down
4 changes: 2 additions & 2 deletions weex_core/Source/android/utils/so_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace WeexCore {
return soPath;
} else {
const char *error = soPath.c_str();
LOGE("so path: %s is not exsist, use full package lib", error);
LOGE("so path: %s does not exist, use full package lib", error);
// executablePath = s_cacheDir;
executablePath = SoUtils::cache_dir();
std::string lib = "/cache";
Expand All @@ -188,7 +188,7 @@ namespace WeexCore {
soPath = executablePath + "/" + SoUtils::jss_so_name();
// soPath = executablePath + "/" + g_jssSoName;
if (access(soPath.c_str(), 00) != 0) {
LOGE("so path: %s is not exsist", soPath.c_str());
LOGE("so path: %s does not exist", soPath.c_str());
g_exception_handler("-1004", error);
//return false;
//use libweexjss.so directly
Expand Down

0 comments on commit f30c217

Please sign in to comment.