@falconeta/capacitor-android-full-view 0.0.18 → 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/android/build.gradle +9 -8
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/{owlsdepartment/plugin/android/insets → falconeta/plugin/android/fullview}/AndroidFullView.java +9 -4
- package/package.json +5 -5
- /package/android/src/main/java/com/{owlsdepartment/plugin/android/insets → falconeta/plugin/android/fullview}/AndroidFullViewPlugin.java +0 -0
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 "com.falconeta.plugin.android.fullview"
|
|
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
|
|
|
@@ -2,7 +2,6 @@ package com.falconeta.plugin.android.fullview;
|
|
|
2
2
|
|
|
3
3
|
import android.util.DisplayMetrics;
|
|
4
4
|
import android.view.View;
|
|
5
|
-
|
|
6
5
|
import androidx.appcompat.app.AppCompatActivity;
|
|
7
6
|
|
|
8
7
|
public class AndroidFullView {
|
|
@@ -11,9 +10,15 @@ public class AndroidFullView {
|
|
|
11
10
|
|
|
12
11
|
public AndroidFullView(AppCompatActivity activity) {
|
|
13
12
|
this.activity = activity;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
activity
|
|
14
|
+
.getWindow()
|
|
15
|
+
.getDecorView()
|
|
16
|
+
.setSystemUiVisibility(
|
|
17
|
+
View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
18
|
+
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
19
|
+
View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
|
|
20
|
+
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
|
21
|
+
);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
public float getTop() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falconeta/capacitor-android-full-view",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Capacitor plugin for retrieving proper top offset, bottom offset and set full screen ONLY for android",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"prepublishOnly": "npm run build"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@capacitor/android": "^
|
|
48
|
-
"@capacitor/core": "^
|
|
47
|
+
"@capacitor/android": "^5.0.0",
|
|
48
|
+
"@capacitor/core": "^5.0.0",
|
|
49
49
|
"@capacitor/docgen": "^0.0.18",
|
|
50
|
-
"@capacitor/ios": "^
|
|
50
|
+
"@capacitor/ios": "^5.0.0",
|
|
51
51
|
"@ionic/eslint-config": "^0.3.0",
|
|
52
52
|
"@ionic/prettier-config": "^1.0.1",
|
|
53
53
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "~4.1.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@capacitor/core": "^
|
|
63
|
+
"@capacitor/core": "^5.0.0"
|
|
64
64
|
},
|
|
65
65
|
"prettier": "@ionic/prettier-config",
|
|
66
66
|
"swiftlint": "@ionic/swiftlint-config",
|