Skip to content

Commit 2a25e74

Browse files
committed
Change variable name of manifest path
1 parent 59631c1 commit 2a25e74

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as inquirer from "inquirer";
33
import * as fs from "fs";
44
import {PermissionController} from "./scripts/controllers/PermissionController";
55
import {GenerateController} from "./scripts/controllers/GenerateController";
6-
import {MANIFAST_PATH} from "./scripts/constants/ManifestPath";
6+
import {MANIFEST_PATH} from "./scripts/constants/ManifestPath";
77
import {DependencyController} from "./scripts/controllers/DependencyController";
88
import {PackageManager} from "./scripts/utils/PackageManager";
99
// import * as pkg from "./scripts/constants/Package";
@@ -45,7 +45,7 @@ if (commander.permission) {
4545
const permissionController: PermissionController = new PermissionController();
4646
permissionController.addPermissionToManifest(commander.permission, xml => {
4747
try {
48-
fs.writeFileSync(MANIFAST_PATH, xml);
48+
fs.writeFileSync(MANIFEST_PATH, xml);
4949
console.log(chalk.green(`Successful adding permission`));
5050
} catch (err) {
5151
console.log(chalk.red(`Failed to adding permission`));

scripts/constants/ManifestPath.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* Created by jade on 17/05/2017.
33
*/
44

5-
export const MANIFAST_PATH : string = "./app/src/main/AndroidManifest.xml";
5+
export const MANIFEST_PATH : string = "./app/src/main/AndroidManifest.xml";

scripts/utils/ManifestManager.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {MANIFAST_PATH} from "../constants/ManifestPath";
1+
import {MANIFEST_PATH} from "../constants/ManifestPath";
22
import * as fs from "fs";
33

44
export class ManifestManager {
55
public static getManifestContent() {
6-
return fs.readFileSync(MANIFAST_PATH);
6+
return fs.readFileSync(MANIFEST_PATH);
77
}
88
}

0 commit comments

Comments
 (0)