|
|
@@ -6,7 +6,6 @@ module.exports = function (context) {
|
|
|
const cordovaCommon = context.requireCordovaModule("cordova-common");
|
|
|
const { ConfigParser } = cordovaCommon;
|
|
|
const appConfig = new ConfigParser(path.resolve(projectRoot, "config.xml"));
|
|
|
-
|
|
|
let projectName = appConfig.name();
|
|
|
|
|
|
const file = path.resolve(
|
|
|
@@ -14,7 +13,7 @@ module.exports = function (context) {
|
|
|
"platforms",
|
|
|
"android",
|
|
|
"cordova-plugin-code-push",
|
|
|
- "test-build-extras.gradle"
|
|
|
+ `${appConfig.packageName().split('.').slice(-1)[0]}-build-extras.gradle`
|
|
|
);
|
|
|
let content = fs.readFileSync(file).toString();
|
|
|
let lines = content.split("\n");
|