@capacitor/screen-orientation 5.0.0 → 5.0.1

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.
@@ -1,4 +1,5 @@
1
1
  ext {
2
+ capacitorVersion = System.getenv('CAPACITOR_VERSION')
2
3
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
4
  androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4
5
  androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
@@ -9,13 +10,24 @@ buildscript {
9
10
  repositories {
10
11
  google()
11
12
  mavenCentral()
13
+ maven {
14
+ url "https://plugins.gradle.org/m2/"
15
+ }
12
16
  }
13
17
  dependencies {
14
18
  classpath 'com.android.tools.build:gradle:8.0.0'
19
+ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
20
+ classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
21
+ }
15
22
  }
16
23
  }
17
24
 
18
25
  apply plugin: 'com.android.library'
26
+ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
27
+ apply plugin: 'io.github.gradle-nexus.publish-plugin'
28
+ apply from: file('../../scripts/android/publish-root.gradle')
29
+ apply from: file('../../scripts/android/publish-module.gradle')
30
+ }
19
31
 
20
32
  android {
21
33
  namespace "com.capacitorjs.plugins.screenorientation"
@@ -50,7 +62,13 @@ repositories {
50
62
 
51
63
  dependencies {
52
64
  implementation fileTree(dir: 'libs', include: ['*.jar'])
53
- implementation project(':capacitor-android')
65
+
66
+ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
67
+ implementation "com.capacitorjs:core:$capacitorVersion"
68
+ } else {
69
+ implementation project(':capacitor-android')
70
+ }
71
+
54
72
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
73
  testImplementation "junit:junit:$junitVersion"
56
74
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/screen-orientation",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "The Screen Orientation API provides methods to lock and unlock the screen orientation.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -45,10 +45,10 @@
45
45
  "publish:cocoapod": "pod trunk push ./CapacitorScreenOrientation.podspec --allow-warnings"
46
46
  },
47
47
  "devDependencies": {
48
- "@capacitor/android": "next",
49
- "@capacitor/core": "next",
48
+ "@capacitor/android": "^5.0.0",
49
+ "@capacitor/core": "^5.0.0",
50
50
  "@capacitor/docgen": "0.2.0",
51
- "@capacitor/ios": "next",
51
+ "@capacitor/ios": "^5.0.0",
52
52
  "@ionic/eslint-config": "^0.3.0",
53
53
  "@ionic/prettier-config": "~1.0.1",
54
54
  "@ionic/swiftlint-config": "^1.1.2",
@@ -61,7 +61,7 @@
61
61
  "typescript": "~4.1.5"
62
62
  },
63
63
  "peerDependencies": {
64
- "@capacitor/core": "next"
64
+ "@capacitor/core": "^5.0.0"
65
65
  },
66
66
  "prettier": "@ionic/prettier-config",
67
67
  "swiftlint": "@ionic/swiftlint-config",