diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..674b8feb8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,28 @@ +**I'm submitting a ...** (check one with "x") +[ ] bug report +[ ] feature request +[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/ + +**Current behavior:** + + +**Expected behavior:** + + +**Steps to reproduce:** + + +**Related code:** + +``` +insert any relevant code here +``` + +**Other information:** + + +**package.json info:** + +```json +insert the content here +``` diff --git a/scripts/docs/templates/readme.template.md b/scripts/docs/templates/readme.template.md index 69fd10d5e..be66fad9c 100644 --- a/scripts/docs/templates/readme.template.md +++ b/scripts/docs/templates/readme.template.md @@ -16,7 +16,7 @@ <@ for prop in doc.decorators[0].argumentInfo @> ``` -$ <@ if prop.install @><$ prop.install $><@ else @>ionic plugin add <$ prop.plugin $><@ endif @> +$ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @> $ npm install --save @ionic-native/<$ doc.npmId $> ``` diff --git a/src/@ionic-native/plugins/document-viewer/index.ts b/src/@ionic-native/plugins/document-viewer/index.ts index dddb963f0..aec4abb64 100644 --- a/src/@ionic-native/plugins/document-viewer/index.ts +++ b/src/@ionic-native/plugins/document-viewer/index.ts @@ -42,10 +42,11 @@ export interface DocumentViewerOptions { * constructor(private document: DocumentViewer) { } * * ... - * const options = { + * const options: DocumentViewerOptions = { * title: 'My PDF' * } - * this.document.view('assets/myFile.pdf', 'application/pdf', options) + * + * this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options) * * ``` * @@ -82,7 +83,7 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - canViewDocument(url: string, contentType: string, options: Array, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { } + canViewDocument(url: string, contentType: string, options: DocumentViewerOptions, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { } /** * Opens the file diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index 63d1021b9..506b6365b 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -159,6 +159,12 @@ export interface Entry { */ toURL(): string; + /** + * Return a URL that can be passed across the bridge to identify this entry. + * @return string URL that can be passed across the bridge to identify this entry + */ + toInternalURL(): string; + /** * Deletes a file or directory. It is an error to attempt to delete a directory that is not empty. It is an error to attempt to delete the root directory of a filesystem. * @param successCallback A callback that is called on success. @@ -556,7 +562,7 @@ declare const window: Window; pluginName: 'File', plugin: 'cordova-plugin-file', pluginRef: 'cordova.file', - repo: 'https: //github.com/apache/cordova-plugin-file', + repo: 'https://github.com/apache/cordova-plugin-file', platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'OS X', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable()