diff --git a/resources/template-js/webapp/manifest.json b/resources/template-js/webapp/manifest.json index c52c8b1..f9722d2 100644 --- a/resources/template-js/webapp/manifest.json +++ b/resources/template-js/webapp/manifest.json @@ -1,5 +1,5 @@ { - "_version": "1.21.0", + "_version": <% if (gte1_136_0) { %>"2.0.0"<% } else { %>"1.37.0"<% } %>, "sap.app": { "id": "<%= appId %>", diff --git a/resources/template-ts/webapp/manifest.json b/resources/template-ts/webapp/manifest.json index be97cba..59c4ab6 100644 --- a/resources/template-ts/webapp/manifest.json +++ b/resources/template-ts/webapp/manifest.json @@ -1,5 +1,5 @@ { - "_version": "1.21.0", + "_version": <% if (gte1_136_0) { %>"2.0.0"<% } else { %>"1.37.0"<% } %>, "sap.app": { "id": "<%= appId %>", diff --git a/src/tools/create_ui5_app/create_ui5_app.ts b/src/tools/create_ui5_app/create_ui5_app.ts index 10dc223..8258413 100644 --- a/src/tools/create_ui5_app/create_ui5_app.ts +++ b/src/tools/create_ui5_app/create_ui5_app.ts @@ -238,6 +238,7 @@ The minimum version for ${framework} is ${minFwkVersionToUse}.` gte1_120_0: semver.gte(frameworkVersion, "1.120.0"), lt1_124_0: semver.lt(frameworkVersion, "1.124.0"), gte1_141_0: semver.gte(frameworkVersion, "1.141.0"), + gte1_136_0: semver.gte(frameworkVersion, "1.136.0"), }; // Process template files diff --git a/src/tools/create_ui5_app/templateProcessor.ts b/src/tools/create_ui5_app/templateProcessor.ts index 62138ed..9d671cb 100644 --- a/src/tools/create_ui5_app/templateProcessor.ts +++ b/src/tools/create_ui5_app/templateProcessor.ts @@ -47,6 +47,7 @@ export interface TemplateVars { gte1_120_0: boolean; lt1_124_0: boolean; gte1_141_0: boolean; + gte1_136_0: boolean; } /** diff --git a/test/expected/create_ui5_app/com.test.apiapp/webapp/manifest.json b/test/expected/create_ui5_app/com.test.apiapp/webapp/manifest.json index ca3c253..6f4e9d2 100644 --- a/test/expected/create_ui5_app/com.test.apiapp/webapp/manifest.json +++ b/test/expected/create_ui5_app/com.test.apiapp/webapp/manifest.json @@ -1,5 +1,5 @@ { - "_version": "1.21.0", + "_version": "2.0.0", "sap.app": { "id": "com.test.apiapp", diff --git a/test/fixtures/get_project_info/basic-app/webapp/manifest.json b/test/fixtures/get_project_info/basic-app/webapp/manifest.json index e708eee..65fe926 100644 --- a/test/fixtures/get_project_info/basic-app/webapp/manifest.json +++ b/test/fixtures/get_project_info/basic-app/webapp/manifest.json @@ -1,5 +1,5 @@ { - "_version": "1.61.0", + "_version": "1.37.0", "sap.app": { "id": "sap.ui.demo.todo", "type": "application" diff --git a/test/fixtures/run_ui5_linter/openui5-sample-app/webapp/manifest.json b/test/fixtures/run_ui5_linter/openui5-sample-app/webapp/manifest.json index e708eee..65fe926 100644 --- a/test/fixtures/run_ui5_linter/openui5-sample-app/webapp/manifest.json +++ b/test/fixtures/run_ui5_linter/openui5-sample-app/webapp/manifest.json @@ -1,5 +1,5 @@ { - "_version": "1.61.0", + "_version": "1.37.0", "sap.app": { "id": "sap.ui.demo.todo", "type": "application" diff --git a/test/lib/tools/create_ui5_app/create_ui5_app.ts b/test/lib/tools/create_ui5_app/create_ui5_app.ts index 7e5dbe9..e981311 100644 --- a/test/lib/tools/create_ui5_app/create_ui5_app.ts +++ b/test/lib/tools/create_ui5_app/create_ui5_app.ts @@ -165,14 +165,15 @@ test("All parameters", async (t) => { entityProperties: [], framework: "SAPUI5", frameworkVersion: "1.136.0", + gte1_98_0: true, gte1_100_0: true, gte1_104_0: true, gte1_115_0: true, gte1_120_0: true, - gte1_98_0: true, + gte1_136_0: true, + gte1_141_0: false, lt1_110_0: false, lt1_124_0: false, - gte1_141_0: false, namespace: "com.test.apiapp", oDataEntitySet: "Products", oDataV4Url: "https://localhost/odata/v4/service/",