@capacitor/file-viewer 2.0.0-next.1 → 2.0.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Sources/FileViewerPlugin/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '15.0'
15
- s.dependency 'IONFileViewerLib', spec='~> 1.0.1'
15
+ s.dependency 'IONFileViewerLib', spec='~> 1.0.3'
16
16
  s.dependency 'Capacitor'
17
17
  s.swift_version = '5.1'
18
18
  end
package/Package.swift CHANGED
@@ -10,20 +10,16 @@ let package = Package(
10
10
  targets: ["FileViewerPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
14
+ .package(url: "https://github.com/ionic-team/ion-ios-fileviewer.git", from: "1.0.3")
14
15
  ],
15
16
  targets: [
16
- .binaryTarget(
17
- name: "IONFileViewerLib",
18
- url: "https://github.com/ionic-team/ion-ios-fileviewer/releases/download/1.0.1/IONFileViewerLib.zip",
19
- checksum: "2dcd0291e664ffbb5636119f147eda266e0d2284aa53a9c99925d0e442a0e92d" // sha-256
20
- ),
21
17
  .target(
22
18
  name: "FileViewerPlugin",
23
19
  dependencies: [
24
20
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
25
21
  .product(name: "Cordova", package: "capacitor-swift-pm"),
26
- "IONFileViewerLib"
22
+ .product(name: "IONFileViewerLib", package: "ion-ios-fileviewer")
27
23
  ],
28
24
  path: "ios/Sources/FileViewerPlugin"),
29
25
  .testTarget(
@@ -6,13 +6,13 @@ ext {
6
6
  }
7
7
 
8
8
  buildscript {
9
- ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.24'
9
+ ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
10
10
  repositories {
11
11
  google()
12
12
  mavenCentral()
13
13
  }
14
14
  dependencies {
15
- classpath 'com.android.tools.build:gradle:8.7.3'
15
+ classpath 'com.android.tools.build:gradle:8.13.0'
16
16
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17
17
  }
18
18
  }
@@ -21,8 +21,8 @@ apply plugin: 'com.android.library'
21
21
  apply plugin: 'kotlin-android'
22
22
 
23
23
  android {
24
- namespace "com.capacitorjs.plugins.fileviewer"
25
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
24
+ namespace = "com.capacitorjs.plugins.fileviewer"
25
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
26
26
  defaultConfig {
27
27
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
28
28
  targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -37,7 +37,7 @@ android {
37
37
  }
38
38
  }
39
39
  lintOptions {
40
- abortOnError false
40
+ abortOnError = false
41
41
  }
42
42
  compileOptions {
43
43
  sourceCompatibility JavaVersion.VERSION_21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/file-viewer",
3
- "version": "2.0.0-next.1",
3
+ "version": "2.0.0-next.3",
4
4
  "description": "The FileViewer API provides mechanisms for opening files and previewing media. Not available on web.",
5
5
  "main": "./dist/plugin.cjs",
6
6
  "module": "./dist/plugin.mjs",
@@ -68,8 +68,8 @@
68
68
  "@semantic-release/changelog": "^6.0.3",
69
69
  "@semantic-release/exec": "^7.1.0",
70
70
  "@semantic-release/git": "^10.0.1",
71
- "@semantic-release/github": "^10.1.2",
72
- "@semantic-release/npm": "^12.0.1",
71
+ "@semantic-release/github": "^12.0.0",
72
+ "@semantic-release/npm": "^13.1.1",
73
73
  "@typescript-eslint/eslint-plugin": "~7.17.0",
74
74
  "@typescript-eslint/parser": "~7.17.0",
75
75
  "eslint": "^8.56.0",
@@ -79,7 +79,7 @@
79
79
  "prettier": "~3.3.3",
80
80
  "prettier-plugin-java": "~2.6.4",
81
81
  "rimraf": "^3.0.2",
82
- "semantic-release": "^24.0.0",
82
+ "semantic-release": "^25.0.1",
83
83
  "swiftlint": "^1.0.2",
84
84
  "typescript": "~5.4.5",
85
85
  "vite": "^5.2.11",