@capgo/capacitor-home-indicator 8.0.44 → 8.0.46

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 CHANGED
@@ -1,11 +1,28 @@
1
1
  # @capgo/capacitor-home-indicator
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-home-indicator" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Hide or show the home indicator bar from your Capacitor app for immersive screens like video, games and kiosks.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_home_indicator"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-home-indicator" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_home_indicator"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_home_indicator"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_home_indicator">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_home_indicator">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
13
 
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-home-indicator/main/assets/github-social-preview.png" alt="@capgo/capacitor-home-indicator for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Hide**: `hide()` hides the home indicator.
21
+ - **Show**: `show()` brings it back.
22
+ - **State**: `isHidden()` reports the current state.
23
+ - **iOS**: uses the view controller's auto-hidden home indicator preference.
24
+ - **Platforms**: iOS and Android. Android needs a small `MainActivity` change described below.
25
+
9
26
  hide and show home button indicator in Capacitor app
10
27
 
11
28
  # Android
@@ -23,7 +40,6 @@ import com.getcapacitor.BridgeActivity;
23
40
 
24
41
  public class MainActivity extends BridgeActivity {
25
42
 
26
-
27
43
  void fixSafeArea() {
28
44
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
29
45
  getWindow().setDecorFitsSystemWindows(false);
@@ -35,7 +35,7 @@ public class CapgoHomeIndicatorPlugin: CAPPlugin, CAPBridgedPlugin {
35
35
  CAPPluginMethod(name: "getPluginVersion", returnType: CAPPluginReturnPromise)
36
36
  ]
37
37
 
38
- private let pluginVersion: String = "8.0.44"
38
+ private let pluginVersion: String = "8.0.46"
39
39
 
40
40
  @objc func getPluginVersion(_ call: CAPPluginCall) {
41
41
  call.resolve(["version": self.pluginVersion])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-home-indicator",
3
- "version": "8.0.44",
3
+ "version": "8.0.46",
4
4
  "description": "hide and show home button indicator in Capacitor app",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -39,7 +39,7 @@
39
39
  "verify:web": "npm run build",
40
40
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
41
41
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
42
- "eslint": "eslint . --ext ts",
42
+ "eslint": "eslint .",
43
43
  "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
44
44
  "swiftlint": "node-swiftlint",
45
45
  "docgen": "docgen --api HomeIndicatorPlugin --output-readme README.md --output-json dist/docs.json",
@@ -58,12 +58,13 @@
58
58
  "@capacitor/core": "^8.0.0",
59
59
  "@capacitor/docgen": "^0.3.1",
60
60
  "@capacitor/ios": "^8.0.0",
61
- "@ionic/eslint-config": "^0.4.0",
61
+ "@ionic/eslint-config": "^0.5.0",
62
62
  "@ionic/prettier-config": "^4.0.0",
63
63
  "@ionic/swiftlint-config": "^2.0.0",
64
64
  "@types/node": "^24.10.1",
65
- "eslint": "^8.57.1",
66
- "eslint-plugin-import": "^2.31.0",
65
+ "@typescript-eslint/eslint-plugin": "^8.70.0",
66
+ "@typescript-eslint/parser": "^8.70.0",
67
+ "eslint": "^10.0.0",
67
68
  "prettier": "^3.6.2",
68
69
  "prettier-plugin-java": "^2.7.7",
69
70
  "rimraf": "^6.1.0",
@@ -77,9 +78,6 @@
77
78
  },
78
79
  "prettier": "@ionic/prettier-config",
79
80
  "swiftlint": "@ionic/swiftlint-config",
80
- "eslintConfig": {
81
- "extends": "@ionic/eslint-config/recommended"
82
- },
83
81
  "capacitor": {
84
82
  "ios": {
85
83
  "src": "ios"