@hiloenergie/capacitor-plugin-safe-area 0.0.14 → 8.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.
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.7.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
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,18 +11,18 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
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.getcapacitor.community.plugins.safearea"
|
|
22
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
21
|
+
namespace = "com.getcapacitor.community.plugins.safearea"
|
|
22
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
23
23
|
defaultConfig {
|
|
24
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
24
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
26
26
|
versionCode 1
|
|
27
27
|
versionName "1.0"
|
|
28
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
package/android/src/main/java/com/getcapacitor/community/plugins/safearea/SafeAreaPlugin.java
CHANGED
|
@@ -146,12 +146,5 @@ public class SafeAreaPlugin extends Plugin {
|
|
|
146
146
|
this.safeAreaInsets.top(top);
|
|
147
147
|
this.safeAreaInsets.right(left);
|
|
148
148
|
this.safeAreaInsets.left(right);
|
|
149
|
-
|
|
150
|
-
View decorView = this.getBridge().getActivity().getWindow().getDecorView();
|
|
151
|
-
int uiVisibility = decorView.getSystemUiVisibility();
|
|
152
|
-
|
|
153
|
-
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU && (uiVisibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) != View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) {
|
|
154
|
-
this.safeAreaInsets.bottom(0);
|
|
155
|
-
}
|
|
156
149
|
}
|
|
157
150
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiloenergie/capacitor-plugin-safe-area",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "A plugin to expose the safe area insets from the native iOS/Android device to your web project.",
|
|
5
5
|
"author": "Kevin Pacheco",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://
|
|
9
|
+
"url": "https://github.com/hilo-energy/capacitor-plugin-safe-area.git"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://
|
|
12
|
+
"url": "https://github.com/hilo-energy/capacitor-plugin-safe-area/issues"
|
|
13
13
|
},
|
|
14
|
+
"homepage": "https://github.com/hilo-energy/capacitor-plugin-safe-area#readme",
|
|
14
15
|
"main": "dist/plugin.cjs.js",
|
|
15
16
|
"module": "dist/esm/index.js",
|
|
16
17
|
"types": "dist/esm/index.d.ts",
|
|
@@ -44,10 +45,10 @@
|
|
|
44
45
|
"prepublishOnly": "npm run build"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@capacitor/android": "^
|
|
48
|
-
"@capacitor/core": "^
|
|
48
|
+
"@capacitor/android": "^8.1.0",
|
|
49
|
+
"@capacitor/core": "^8.1.0",
|
|
49
50
|
"@capacitor/docgen": "^0.3.0",
|
|
50
|
-
"@capacitor/ios": "^
|
|
51
|
+
"@capacitor/ios": "^8.1.0",
|
|
51
52
|
"@ionic/eslint-config": "^0.4.0",
|
|
52
53
|
"@ionic/prettier-config": "^4.0.0",
|
|
53
54
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"typescript": "~5.0.2"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
|
-
"@capacitor/core": ">=
|
|
64
|
+
"@capacitor/core": ">=8.0.0"
|
|
64
65
|
},
|
|
65
66
|
"prettier": "@ionic/prettier-config",
|
|
66
67
|
"swiftlint": "@ionic/swiftlint-config",
|