@capawesome/capacitor-screen-orientation 2.0.2 → 5.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.
- package/README.md +9 -31
- package/android/build.gradle +9 -8
- package/android/src/main/AndroidManifest.xml +1 -2
- package/package.json +10 -13
package/README.md
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
<h3 align="center">Screen Orientation</h3>
|
|
3
|
-
<p align="center"><strong><code>@capawesome/capacitor-screen-orientation</code></strong></p>
|
|
4
|
-
<p align="center">
|
|
5
|
-
Capacitor plugin to lock/unlock the screen orientation.
|
|
6
|
-
</p>
|
|
1
|
+
# @capawesome/capacitor-screen-orientation
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
<img src="https://img.shields.io/maintenance/yes/2023?style=flat-square" />
|
|
10
|
-
<a href="https://github.com/capawesome-team/capacitor-screen-orientation/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/actions/workflow/status/capawesome-team/capacitor-screen-orientation/ci.yml?branch=main&style=flat-square" /></a>
|
|
11
|
-
<a href="https://www.npmjs.com/package/@capawesome/capacitor-screen-orientation"><img src="https://img.shields.io/npm/l/@capawesome/capacitor-screen-orientation?style=flat-square" /></a>
|
|
12
|
-
<br>
|
|
13
|
-
<a href="https://www.npmjs.com/package/@capawesome/capacitor-screen-orientation"><img src="https://img.shields.io/npm/dw/@capawesome/capacitor-screen-orientation?style=flat-square" /></a>
|
|
14
|
-
<a href="https://www.npmjs.com/package/@capawesome/capacitor-screen-orientation"><img src="https://img.shields.io/npm/v/@capawesome/capacitor-screen-orientation?style=flat-square" /></a>
|
|
15
|
-
<a href="https://github.com/capawesome-team"><img src="https://img.shields.io/badge/part%20of-capawesome-%234f46e5?style=flat-square" /></a>
|
|
16
|
-
</p>
|
|
17
|
-
|
|
18
|
-
## Maintainers
|
|
19
|
-
|
|
20
|
-
| Maintainer | GitHub | Social |
|
|
21
|
-
| ---------- | ----------------------------------------- | --------------------------------------------- |
|
|
22
|
-
| Robin Genz | [robingenz](https://github.com/robingenz) | [@robin_genz](https://twitter.com/robin_genz) |
|
|
23
|
-
|
|
24
|
-
## Sponsors
|
|
25
|
-
|
|
26
|
-
This is an MIT-licensed open source project.
|
|
27
|
-
It can grow thanks to the support by these awesome people.
|
|
28
|
-
If you'd like to join them, please read more [here](https://github.com/sponsors/capawesome-team).
|
|
29
|
-
|
|
30
|
-
<!-- sponsors --><!-- sponsors -->
|
|
3
|
+
Capacitor plugin to lock/unlock the screen orientation.
|
|
31
4
|
|
|
32
5
|
## Installation
|
|
33
6
|
|
|
@@ -223,8 +196,13 @@ Callback to receive the screen orientation change notifications.
|
|
|
223
196
|
|
|
224
197
|
## Changelog
|
|
225
198
|
|
|
226
|
-
See [CHANGELOG.md](https://github.com/capawesome-team/capacitor-screen-orientation/
|
|
199
|
+
See [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/screen-orientation/CHANGELOG.md).
|
|
227
200
|
|
|
228
201
|
## License
|
|
229
202
|
|
|
230
|
-
See [LICENSE](https://github.com/capawesome-team/capacitor-screen-orientation/
|
|
203
|
+
See [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/screen-orientation/LICENSE).
|
|
204
|
+
|
|
205
|
+
## Credits
|
|
206
|
+
|
|
207
|
+
This plugin is based on the [Capacitor Screen Orientation](https://github.com/capawesome-team/capacitor-screen-orientation) plugin.
|
|
208
|
+
Thanks to everyone who contributed to the project!
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
@@ -11,17 +11,18 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.0.0'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
apply plugin: 'com.android.library'
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
|
-
|
|
21
|
+
namespace "io.capawesome.capacitorjs.plugins.screenorientation"
|
|
22
|
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
|
|
22
23
|
defaultConfig {
|
|
23
24
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
24
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
|
|
25
26
|
versionCode 1
|
|
26
27
|
versionName "1.0"
|
|
27
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -36,8 +37,8 @@ android {
|
|
|
36
37
|
abortOnError false
|
|
37
38
|
}
|
|
38
39
|
compileOptions {
|
|
39
|
-
sourceCompatibility JavaVersion.
|
|
40
|
-
targetCompatibility JavaVersion.
|
|
40
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
41
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capawesome/capacitor-screen-orientation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Capacitor plugin to lock/unlock the screen orientation.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/capawesome-team/capacitor-
|
|
20
|
+
"url": "git+https://github.com/capawesome-team/capacitor-plugins.git"
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/capawesome-team/capacitor-
|
|
23
|
+
"url": "https://github.com/capawesome-team/capacitor-plugins/issues"
|
|
24
24
|
},
|
|
25
25
|
"funding": [
|
|
26
26
|
{
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"url": "https://opencollective.com/capawesome"
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
+
"homepage": "https://capawesome.io/plugins/screen-orientation/",
|
|
35
36
|
"keywords": [
|
|
36
37
|
"capacitor",
|
|
37
38
|
"plugin",
|
|
@@ -51,31 +52,27 @@
|
|
|
51
52
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
|
|
52
53
|
"clean": "rimraf ./dist",
|
|
53
54
|
"watch": "tsc --watch",
|
|
54
|
-
"prepublishOnly": "npm run build"
|
|
55
|
-
"release": "standard-version"
|
|
55
|
+
"prepublishOnly": "npm run build"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@capacitor/android": "
|
|
59
|
-
"@capacitor/cli": "
|
|
60
|
-
"@capacitor/core": "
|
|
58
|
+
"@capacitor/android": "5.0.0",
|
|
59
|
+
"@capacitor/cli": "5.0.0",
|
|
60
|
+
"@capacitor/core": "5.0.0",
|
|
61
61
|
"@capacitor/docgen": "0.2.0",
|
|
62
|
-
"@capacitor/ios": "
|
|
62
|
+
"@capacitor/ios": "5.0.0",
|
|
63
63
|
"@ionic/eslint-config": "0.3.0",
|
|
64
|
-
"@ionic/prettier-config": "1.0.1",
|
|
65
64
|
"@ionic/swiftlint-config": "1.1.2",
|
|
66
65
|
"eslint": "7.32.0",
|
|
67
66
|
"prettier": "2.3.2",
|
|
68
67
|
"prettier-plugin-java": "1.0.2",
|
|
69
68
|
"rimraf": "3.0.2",
|
|
70
69
|
"rollup": "2.77.2",
|
|
71
|
-
"standard-version": "9.5.0",
|
|
72
70
|
"swiftlint": "1.0.1",
|
|
73
71
|
"typescript": "4.1.5"
|
|
74
72
|
},
|
|
75
73
|
"peerDependencies": {
|
|
76
|
-
"@capacitor/core": "^
|
|
74
|
+
"@capacitor/core": "^5.0.0"
|
|
77
75
|
},
|
|
78
|
-
"prettier": "@ionic/prettier-config",
|
|
79
76
|
"swiftlint": "@ionic/swiftlint-config",
|
|
80
77
|
"eslintConfig": {
|
|
81
78
|
"extends": "@ionic/eslint-config/recommended"
|