From 9195e73899f6702cbf543edd2de9b7e433df481c Mon Sep 17 00:00:00 2001 From: "Jr, Sheethal" Date: Mon, 21 Feb 2022 16:40:12 +0530 Subject: [PATCH] Updated README and created runtime widget --- README.md | 4 ++-- projects/gp-demo-widget/README.md | 24 -------------------- projects/gp-demo-widget/karma.conf.js | 32 --------------------------- projects/gp-demo-widget/package.json | 4 ++-- runtime/cumulocity.json | 2 +- tsconfig.json | 3 ++- 6 files changed, 7 insertions(+), 62 deletions(-) delete mode 100644 projects/gp-demo-widget/README.md delete mode 100644 projects/gp-demo-widget/karma.conf.js diff --git a/README.md b/README.md index f15cc7d..70234ad 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Demo Widget for Cumulocity Project [](https://github.com/SoftwareAG/cumulocity-demo-widget/releases/download/1.2.0/demo-runtime-widget-1.2.0.zip) +# Demo Widget for Cumulocity Project [](https://github.com/SoftwareAG/cumulocity-demo-widget/releases/download/2.0.0/demo-runtime-widget-2.0.0.zip) This Demo Widget created using Angular Library and later deploy it in App Builder as cumulocity widget. It fetches Inventory data based on the device id and displays the same in a widget. @@ -350,7 +350,7 @@ Important: Leave the -CustomWidget on the interleave option, and don't edit the 9. After the build completes the runtime/dist folder will contain a zip file, this is your deployable widget -10. Use Application Builder to install your runtime widget. Download the Demo Runtime Widget [from here](https://github.com/SoftwareAG/cumulocity-demo-widget/releases/download/1.2.0/demo-runtime-widget-1.2.0.zip) +10. Use Application Builder to install your runtime widget. Download the Demo Runtime Widget [from here](https://github.com/SoftwareAG/cumulocity-demo-widget/releases/download/2.0.0/demo-runtime-widget-2.0.0.zip) On the successful deployment of the widget, login to cumulocity tenant URL and basic login credentials diff --git a/projects/gp-demo-widget/README.md b/projects/gp-demo-widget/README.md deleted file mode 100644 index b976d07..0000000 --- a/projects/gp-demo-widget/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# GpDemoWidget - -This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14. - -## Code scaffolding - -Run `ng generate component component-name --project gp-demo-widget` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project gp-demo-widget`. -> Note: Don't forget to add `--project gp-demo-widget` or else it will be added to the default project in your `angular.json` file. - -## Build - -Run `ng build gp-demo-widget` to build the project. The build artifacts will be stored in the `dist/` directory. - -## Publishing - -After building your library with `ng build gp-demo-widget`, go to the dist folder `cd dist/gp-demo-widget` and run `npm publish`. - -## Running unit tests - -Run `ng test gp-demo-widget` to execute the unit tests via [Karma](https://karma-runner.github.io). - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/projects/gp-demo-widget/karma.conf.js b/projects/gp-demo-widget/karma.conf.js deleted file mode 100644 index 72b3645..0000000 --- a/projects/gp-demo-widget/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function (config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage/gp-demo-widget'), - reports: ['html', 'lcovonly', 'text-summary'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false, - restartOnFileChange: true - }); -}; diff --git a/projects/gp-demo-widget/package.json b/projects/gp-demo-widget/package.json index 414fb62..38c3e05 100644 --- a/projects/gp-demo-widget/package.json +++ b/projects/gp-demo-widget/package.json @@ -5,7 +5,7 @@ "author": "Khushi Khanna - Software AG, Global Presales", "license": "Apache 2.0", "peerDependencies": { - "@angular/common": "^8.2.14", - "@angular/core": "^8.2.14" + "@angular/common": "^11.1.2", + "@angular/core": "^11.1.2" } } diff --git a/runtime/cumulocity.json b/runtime/cumulocity.json index 5a9d7f6..e939dbe 100644 --- a/runtime/cumulocity.json +++ b/runtime/cumulocity.json @@ -8,7 +8,7 @@ }, "manifest": { "noAppSwitcher": true, - "requiredPlatformVersion": "1006.3.0 - 1010.0.8", + "requiredPlatformVersion": ">=1011.0.0", "version": "2.0.0", "author": "Darpankumar Lalani - Software AG, Global Presales", "description": "It fetches Inventory data based on the device id and display the same in a widget.", diff --git a/tsconfig.json b/tsconfig.json index fae4278..1756110 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,6 +29,7 @@ }, "angularCompilerOptions": { "fullTemplateTypeCheck": true, - "strictInjectionParameters": true + "strictInjectionParameters": true, + "enableIvy": false } } \ No newline at end of file