apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 990 forks source link

fix: import type definitions from obsolete cordova-plugin-splashscreen #1255

Closed peitschie closed 2 years ago

peitschie commented 2 years ago

Platforms affected

Affects TypeScript enabled projects only

Motivation and Context

Type definitions to allow programmatic control of the splashscreen are needed in cordova-ios now that cordova-plugin-splashscreen was obsoleted as part of cordova-ios 6.X platform update.

Description

Import the current type definitions from cordova-plugin-splashscreen and expose them for use within a typescript project.

Testing

I've imported this into an existing TypeScript-based application that has cordova-plugin-splashscreen removed, and ensured that TypeScript compilation produces no warnings or errors

Checklist

peitschie commented 2 years ago

Relates to https://github.com/apache/cordova-android/pull/1489

erisu commented 2 years ago

The code seems OK but I am unsure about the header license.

We always use the Apache-2.0 license header.

I know you are just copying the existing file contents from cordova-plugin-splashscreen, but I am even surprised that someone approved that.

Also, the URL in the header comment, https://github.com/apache/cordova-platform, does not exist.

I am not sure what should be done regarding the license but other then that, everything seems OK.

peitschie commented 2 years ago

@erisu I'll just replace this with the existing license from the javascript source files.