@picsa/capacitor-video-player 7.2.3 → 8.0.0

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.
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '13.0'
14
+ s.ios.deployment_target = '15.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
@@ -1,8 +1,8 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,21 +11,21 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.7.2'
14
+ classpath 'com.android.tools.build:gradle:8.13.0'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
- namespace "com.jeep.plugin.capacitor.capacitorvideoplayer"
22
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
21
+ namespace = "com.jeep.plugin.capacitor.capacitorvideoplayer"
22
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
23
23
  defaultConfig {
24
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
26
- versionCode 1
27
- versionName "1.0"
28
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24
+ minSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
25
+ targetSdkVersion = project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
26
+ versionCode = 1
27
+ versionName = "1.0"
28
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
29
29
  }
30
30
  buildTypes {
31
31
  release {
@@ -34,7 +34,7 @@ android {
34
34
  }
35
35
  }
36
36
  lintOptions {
37
- abortOnError false
37
+ abortOnError = false
38
38
  }
39
39
  compileOptions {
40
40
  sourceCompatibility JavaVersion.VERSION_21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsa/capacitor-video-player",
3
- "version": "7.2.3",
3
+ "version": "8.0.0",
4
4
  "description": "custom Native Capacitor plugin to play a video",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -50,27 +50,27 @@
50
50
  "prepare": "npm run build"
51
51
  },
52
52
  "devDependencies": {
53
- "@capacitor/android": "^7.0.0",
54
- "@capacitor/core": "^7.0.0",
55
- "@capacitor/docgen": "^0.3.0",
56
- "@capacitor/ios": "^7.0.0",
53
+ "@capacitor/android": "^8.0.0",
54
+ "@capacitor/core": "^8.0.0",
55
+ "@capacitor/docgen": "^0.3.1",
56
+ "@capacitor/ios": "^8.0.0",
57
57
  "@ionic/eslint-config": "^0.4.0",
58
58
  "@ionic/prettier-config": "^4.0.0",
59
59
  "@ionic/swiftlint-config": "^2.0.0",
60
60
  "@rollup/plugin-commonjs": "^28.0.2",
61
61
  "@rollup/plugin-node-resolve": "^16.0.0",
62
- "@types/node": "^22.10.2",
63
- "eslint": "^8.57.0",
62
+ "@types/node": "^24.10.1",
63
+ "eslint": "^8.57.1",
64
64
  "hls.js": "^1.5.18",
65
- "prettier": "^3.4.2",
66
- "prettier-plugin-java": "^2.6.6",
67
- "rimraf": "^6.0.1",
68
- "rollup": "^4.30.1",
65
+ "prettier": "^3.6.2",
66
+ "prettier-plugin-java": "^2.7.7",
67
+ "rimraf": "^6.1.0",
68
+ "rollup": "^4.53.2",
69
69
  "swiftlint": "^2.0.0",
70
- "typescript": "~5.7.2"
70
+ "typescript": "^5.9.3"
71
71
  },
72
72
  "peerDependencies": {
73
- "@capacitor/core": ">=7.0.0",
73
+ "@capacitor/core": ">=8.0.0",
74
74
  "hls.js": "^1.4.0"
75
75
  },
76
76
  "prettier": "@ionic/prettier-config",
package/readme.md CHANGED
@@ -2,10 +2,10 @@
2
2
  <h3 align="center">Video Player</h3>
3
3
  <p align="center"><strong><code>@picsa/capacitor-video-player</code></strong></p>
4
4
  <br>
5
- <p align="center" style="font-size:50px;color:green"><strong>CAPACITOR 7</strong></p><br>
5
+ <p align="center" style="font-size:50px;color:green"><strong>CAPACITOR 8</strong></p><br>
6
6
  <br>
7
7
  <p align="center" style="font-size:16px">
8
- <strong>This is a community fork</strong> providing Capacitor 7 support.<br>
8
+ <strong>This is a community fork</strong> providing Capacitor 8 support.<br>
9
9
  The original <a href="https://github.com/harmonwood/capacitor-video-player">capacitor-video-player</a> project is not currently maintained.<br>
10
10
  Use this as a <strong>drop-in replacement</strong> for Capacitor 7+.
11
11
  </p>
@@ -41,32 +41,44 @@ It contains critical information about our Pull Request structure (Conventional
41
41
  | ------------ | ----------------------------------------------- | ------ | ------ |
42
42
  | Chris Clarke | [chrismclarke](https://github.com/chrismclarke) | | ✅ |
43
43
 
44
- ## LATEST FOR CAPACITOR 7
45
44
 
46
- ## Browser Support
45
+ ## Compatibility
47
46
 
48
- The plugin follows the guidelines from the `Capacitor Team`,
47
+ | Plugin Version | Capacitor Version | Status |
48
+ | -------------- | ----------------- | -------------- |
49
+ | 8.x.x | >=8.x.x | Active support |
50
+ | 7.x.x | 7.x.x | Supported |
51
+ | N/A | 6.x.x and below | Use legacy plugin |
49
52
 
50
- - [Capacitor Browser Support](https://capacitorjs.com/docs/v3/web#browser-support)
51
-
52
- meaning that it will not work in IE11 without additional JavaScript transformations, e.g. with [Babel](https://babeljs.io/).
53
53
 
54
54
  ## Installation
55
55
 
56
- ### Capacitor 7 (this package)
56
+ ### Capacitor 8
57
57
 
58
58
  ```bash
59
59
  npm install @picsa/capacitor-video-player
60
60
  npx cap sync
61
61
  ```
62
62
 
63
- Or as a drop-in replacement from the original project:
63
+ > **Note**: If migrating from the original package, simply update your `package.json`:
64
+ >
65
+ > ```json
66
+ > // Before (legacy plugin):
67
+ > "capacitor-video-player": "6.0.2"
68
+ >
69
+ > // After (this plugin):
70
+ > "capacitor-video-player": "npm:@picsa/capacitor-video-player"
71
+ > ```
72
+
64
73
 
65
- ```json
66
- "capacitor-video-player": "npm:@picsa/capacitor-video-player@^7"
74
+ ### Capacitor 7
75
+ Use previous release aligned with capacitor version, e.g.
76
+
77
+ ```bash
78
+ npm install @picsa/capacitor-video-player@^7
67
79
  ```
68
80
 
69
- ### Capacitor 6 and below
81
+ ### Capacitor 6 and below (legacy plugin)
70
82
 
71
83
  Use the original [capacitor-video-player](https://github.com/harmonwood/capacitor-video-player) package:
72
84
 
@@ -75,30 +87,7 @@ npm install --save capacitor-video-player
75
87
  npx cap sync
76
88
  ```
77
89
 
78
- > **Note**: If migrating from the original package, simply update your `package.json`:
79
- >
80
- > ```json
81
- > // Before (Capacitor 6):
82
- > "capacitor-video-player": "6.0.2"
83
- >
84
- > // After (Capacitor 7):
85
- > "capacitor-video-player": "npm:@picsa/capacitor-video-player@^7"
86
- > ```
87
-
88
- ### Build
89
-
90
- Then build YOUR_APPLICATION
91
90
 
92
- ```bash
93
- npm run build
94
- npx cap copy
95
- npx cap copy web
96
- npx cap copy @capacitor-community/electron
97
- npx cap open android
98
- npx cap open ios
99
- npx cap open @capacitor-community/electron
100
- npx cap serve
101
- ```
102
91
 
103
92
  ## Configuration
104
93