Skip to content

Commit

Permalink
Add RADON license
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Wurster <miwurster@googlemail.com>
  • Loading branch information
miwurster committed Sep 1, 2020
1 parent 631f8d4 commit cca044f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
Expand Up @@ -17,17 +17,21 @@ import { InstanceService } from '../instance/instance.service';
import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
import { WineryLicense } from './wineryLicense';
import { map } from 'rxjs/internal/operators';
import { WineryRepositoryConfigurationService } from '../wineryFeatureToggleModule/WineryRepositoryConfiguration.service';

@Injectable()
export class WineryLicenseService {
private _allLicences: WineryLicense[];

constructor(private http: HttpClient, private sharedData: InstanceService) {
constructor(private http: HttpClient, private sharedData: InstanceService, private configurationService: WineryRepositoryConfigurationService) {
this._allLicences = [
new WineryLicense('Apache-2.0', '/assets/licenses/Apache-2.0.txt'),
new WineryLicense('EPL-2.0', '/assets/licenses/EPL-2.0.txt'),
new WineryLicense('Proprietary', '/assets/licenses/Proprietary.txt')
];
if (configurationService.configuration.features.radon) {
this._allLicences.push(new WineryLicense('RADON', '/assets/licenses/RADON.txt'));
}
}

getData(): Observable<string> {
Expand Down
@@ -1 +1 @@
proprietary
Add your proprietary license.
@@ -0,0 +1,13 @@
Copyright (c) 2020 Contributors to the RADON project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

0 comments on commit cca044f

Please sign in to comment.