@falconeta/capacitor-android-full-view 0.0.11 → 0.0.12

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,16 +1,15 @@
1
- # capacitor-plugin-android-insets
1
+ # capacitor-android-full-view
2
2
 
3
3
  Capacitor plugin for retrieving proper top offset of Android status bar.
4
4
 
5
- This repo is published version with changed name of https://github.com/jorisbertomeu/capacitor-insets-v2, which was based on archived https://github.com/igorcd/capacitor-insets-plugin/. It should work perfectly fine in `Capacitor@4`.
6
5
 
7
6
  ## Install
8
7
 
9
8
  ```bash
10
9
  # with npm
11
- npm install --save capacitor-plugin-android-insets
10
+ npm install --save @falconeta/capacitor-android-full-view
12
11
  # with yarn
13
- yarn add capacitor-plugin-android-insets
12
+ yarn add @falconeta/capacitor-android-full-view
14
13
  # after any install
15
14
  npx cap sync
16
15
  ```
@@ -22,9 +21,9 @@ This plugin is required only on Android when using `StatusBar.setOverlaysWebView
22
21
  ## Usage
23
22
 
24
23
  ```ts
25
- import { AndroidInsets } from 'capacitor-plugin-android-insets'
24
+ import { AndroidFullView } from 'capacitor-android-full-view'
26
25
 
27
- const { value } = await AndroidInsets.top();
26
+ const { value } = await AndroidFullView.top();
28
27
  ```
29
28
 
30
29
  ## API
@@ -10,11 +10,11 @@ import com.getcapacitor.annotation.CapacitorPlugin;
10
10
  @CapacitorPlugin(name = "AndroidFullView")
11
11
  public class AndroidFullView extends Plugin {
12
12
 
13
- private AndroidInsets implementation;
13
+ private AndroidFullView implementation;
14
14
 
15
15
  @Override
16
16
  public void load() {
17
- this.implementation = new AndroidInsets(getActivity());
17
+ this.implementation = new AndroidFullView(getActivity());
18
18
  }
19
19
 
20
20
  @PluginMethod
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { registerPlugin } from '@capacitor/core';
2
- const AndroidFullView = registerPlugin('AndroidInsets', {
2
+ const AndroidFullView = registerPlugin('AndroidFullView', {
3
3
  web: () => import('./web').then(m => new m.AndroidFullViewWeb()),
4
4
  });
5
5
  export * from './definitions';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CAAwB,eAAe,EAAE;IAC7E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACjE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { AndroidFullViewPlugin } from './definitions';\n\nconst AndroidFullView = registerPlugin<AndroidFullViewPlugin>('AndroidInsets', {\n web: () => import('./web').then(m => new m.AndroidFullViewWeb()),\n});\n\nexport * from './definitions';\nexport { AndroidFullView };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CAAwB,iBAAiB,EAAE;IAC/E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACjE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { AndroidFullViewPlugin } from './definitions';\n\nconst AndroidFullView = registerPlugin<AndroidFullViewPlugin>('AndroidFullView', {\n web: () => import('./web').then(m => new m.AndroidFullViewWeb()),\n});\n\nexport * from './definitions';\nexport { AndroidFullView };\n"]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@capacitor/core');
6
6
 
7
- const AndroidFullView = core.registerPlugin('AndroidInsets', {
7
+ const AndroidFullView = core.registerPlugin('AndroidFullView', {
8
8
  web: () => Promise.resolve().then(function () { return web; }).then(m => new m.AndroidFullViewWeb()),
9
9
  });
10
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst AndroidFullView = registerPlugin('AndroidInsets', {\n web: () => import('./web').then(m => new m.AndroidFullViewWeb()),\n});\nexport * from './definitions';\nexport { AndroidFullView };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class AndroidFullViewWeb extends WebPlugin {\n async top() {\n return { value: 0 };\n }\n async bottom() {\n return { value: 0 };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,eAAe,GAAGA,mBAAc,CAAC,eAAe,EAAE;AACxD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACpE,CAAC;;ACFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,MAAM,GAAG,GAAG;AAChB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5B,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst AndroidFullView = registerPlugin('AndroidFullView', {\n web: () => import('./web').then(m => new m.AndroidFullViewWeb()),\n});\nexport * from './definitions';\nexport { AndroidFullView };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class AndroidFullViewWeb extends WebPlugin {\n async top() {\n return { value: 0 };\n }\n async bottom() {\n return { value: 0 };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,eAAe,GAAGA,mBAAc,CAAC,iBAAiB,EAAE;AAC1D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACpE,CAAC;;ACFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,MAAM,GAAG,GAAG;AAChB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5B,KAAK;AACL,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5B,KAAK;AACL;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -1,7 +1,7 @@
1
- var capacitorAndroidInsets = (function (exports, core) {
1
+ var capacitorAndroidFullView = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
- const AndroidFullView = core.registerPlugin('AndroidInsets', {
4
+ const AndroidFullView = core.registerPlugin('AndroidFullView', {
5
5
  web: () => Promise.resolve().then(function () { return web; }).then(m => new m.AndroidFullViewWeb()),
6
6
  });
7
7
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst AndroidFullView = registerPlugin('AndroidInsets', {\n web: () => import('./web').then(m => new m.AndroidFullViewWeb()),\n});\nexport * from './definitions';\nexport { AndroidFullView };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class AndroidFullViewWeb extends WebPlugin {\n async top() {\n return { value: 0 };\n }\n async bottom() {\n return { value: 0 };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,eAAe,GAAGA,mBAAc,CAAC,eAAe,EAAE;IACxD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpE,CAAC;;ICFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,MAAM,GAAG,GAAG;IAChB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC5B,KAAK;IACL,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC5B,KAAK;IACL;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst AndroidFullView = registerPlugin('AndroidFullView', {\n web: () => import('./web').then(m => new m.AndroidFullViewWeb()),\n});\nexport * from './definitions';\nexport { AndroidFullView };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class AndroidFullViewWeb extends WebPlugin {\n async top() {\n return { value: 0 };\n }\n async bottom() {\n return { value: 0 };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,eAAe,GAAGA,mBAAc,CAAC,iBAAiB,EAAE;IAC1D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpE,CAAC;;ICFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,MAAM,GAAG,GAAG;IAChB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC5B,KAAK;IACL,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC5B,KAAK;IACL;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import Foundation
2
2
 
3
- @objc public class AndroidInsets: NSObject {
3
+ @objc public class AndroidFullView: NSObject {
4
4
  @objc public func top() -> Float {
5
5
  return 0
6
6
  }
@@ -3,6 +3,6 @@
3
3
 
4
4
  // Define the plugin using the CAP_PLUGIN Macro, and
5
5
  // each method the plugin supports using the CAP_PLUGIN_METHOD macro.
6
- CAP_PLUGIN(AndroidFullView, "AndroidInsets",
6
+ CAP_PLUGIN(AndroidFullView, "AndroidFullView",
7
7
  CAP_PLUGIN_METHOD(echo, CAPPluginReturnPromise);
8
8
  )
@@ -7,7 +7,7 @@ import Capacitor
7
7
  */
8
8
  @objc(AndroidFullView)
9
9
  public class AndroidFullView: CAPPlugin {
10
- private let implementation = AndroidInsets()
10
+ private let implementation = AndroidFullView()
11
11
 
12
12
  @objc func top(_ call: CAPPluginCall) {
13
13
  call.resolve([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@falconeta/capacitor-android-full-view",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
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",
@@ -11,16 +11,16 @@
11
11
  "android/build.gradle",
12
12
  "dist/",
13
13
  "ios/Plugin/",
14
- "CapacitorPluginAndroidInsets.podspec"
14
+ "CapacitorPluginAndroidFullView.podspec"
15
15
  ],
16
16
  "author": "Owls Department",
17
17
  "license": "MIT",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git+https://github.com/owlsdepartment/capacitor-plugin-android-insets.git"
20
+ "url": "git+https://github.com/falconeta/capacitor-android-full-view.git"
21
21
  },
22
22
  "bugs": {
23
- "url": "https://github.com/owlsdepartment/capacitor-plugin-android-insets/issues"
23
+ "url": "https://github.com/falconeta/capacitor-android-full-view/issues"
24
24
  },
25
25
  "keywords": [
26
26
  "capacitor",
@@ -1,17 +0,0 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = 'CapacitorPluginAndroidInsets'
7
- s.version = package['version']
8
- s.summary = package['description']
9
- s.license = package['license']
10
- s.homepage = package['repository']['url']
11
- s.author = package['author']
12
- s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '13.0'
15
- s.dependency 'Capacitor'
16
- s.swift_version = '5.1'
17
- end