Skip to content

Commit 7392d4d

Browse files
chore: Update plugin configuration
1 parent 9b88899 commit 7392d4d

File tree

8 files changed

+60
-82
lines changed

8 files changed

+60
-82
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build
2+
dist

packages/capacitor-plugin/CapacitorFileViewer.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
1313
s.source_files = 'ios/Sources/FileViewerPlugin/*.{swift,h,m,c,cc,mm,cpp}'
1414
s.ios.deployment_target = '14.0'
15-
s.dependency 'FileViewerLib', spec='~> 1.0'
15+
#s.dependency 'FileViewerLib', spec='~> 1.0'
1616
s.dependency 'Capacitor'
1717
s.swift_version = '5.1'
1818
end

packages/capacitor-plugin/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Ionic
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/capacitor-plugin/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import PackageDescription
33

44
let package = Package(
55
name: "CapacitorFileViewer",
6-
platforms: [.iOS(.v13)],
6+
platforms: [.iOS(.v14)],
77
products: [
88
.library(
99
name: "CapacitorFileViewer",
1010
targets: ["FileViewerPlugin"])
1111
],
1212
dependencies: [
13-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main")
13+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "7.0.0")
1414
],
1515
targets: [
1616
.target(

packages/capacitor-plugin/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# @capacitor/file-viewer
2+
3+
## API
4+
5+
<docgen-index>
6+
7+
* [`echo(...)`](#echo)
8+
9+
</docgen-index>
10+
11+
For list of existing error codes, see [Errors](#errors).
12+
13+
<docgen-api>
14+
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
15+
16+
### echo(...)
17+
18+
```typescript
19+
echo(options: { value: string; }) => Promise<{ value: string; }>
20+
```
21+
22+
| Param | Type |
23+
| ------------- | ------------------------------- |
24+
| **`options`** | <code>{ value: string; }</code> |
25+
26+
**Returns:** <code>Promise&lt;{ value: string; }&gt;</code>
27+
28+
--------------------
29+
30+
</docgen-api>
31+
32+
### Errors
33+
34+

packages/capacitor-plugin/eslint.config.cjs

Lines changed: 0 additions & 47 deletions
This file was deleted.

packages/capacitor-plugin/prettier.config.cjs

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { PluginListenerHandle } from '@capacitor/core';
2-
31
export interface FileViewerPlugin {
42
echo(options: { value: string }): Promise<{ value: string }>;
53
}

0 commit comments

Comments
 (0)