Skip to content

Commit fc6ea95

Browse files
authored
trim KEYSFILE; remove old version of PrivateKey.java (#65)
1 parent b3737b0 commit fc6ea95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const ANDROID_KEYS_DIR_PATH = path.join(
5858
const PROJECT_DIRECTORY_IOS_PATH = path.join(PROJECT_ROOT_DIR_PATH, 'ios');
5959

6060
module.exports.getKeys = (KEYS_FILE_NAME) => {
61-
const jniJsonFilePath = `${PROJECT_ROOT_DIR_PATH}${KEYS_FILE_NAME}`;
61+
const jniJsonFilePath = `${PROJECT_ROOT_DIR_PATH}${KEYS_FILE_NAME}`.trim();
6262
const keysJson = fs.readJSONSync(jniJsonFilePath);
6363
const secureKeys = keysJson;
6464
return secureKeys;
@@ -163,6 +163,7 @@ module.exports.makeFileInAndroidMainAssetsFolder = (fileContent, fileName) => {
163163
fs.outputFileSync(filePath, fileContent);
164164
return true;
165165
} catch (error) {
166+
console.error(error)
166167
return false;
167168
}
168169
};

0 commit comments

Comments
 (0)