From 3bdf607b14a54121abcdc768aaa76b74a8a67876 Mon Sep 17 00:00:00 2001 From: Ashutosh Dubey Date: Sun, 29 May 2022 20:03:22 +0530 Subject: [PATCH] iOS podspec fix --- ...shuDubeyCapacitorStatusbarSafeArea.podspec | 2 +- README.md | 21 +++++++++++-------- package.json | 7 +++---- 3 files changed, 16 insertions(+), 14 deletions(-) rename AshuCapacitorStatusbarSafeArea.podspec => AashuDubeyCapacitorStatusbarSafeArea.podspec (91%) diff --git a/AshuCapacitorStatusbarSafeArea.podspec b/AashuDubeyCapacitorStatusbarSafeArea.podspec similarity index 91% rename from AshuCapacitorStatusbarSafeArea.podspec rename to AashuDubeyCapacitorStatusbarSafeArea.podspec index 83c4f35..44fde1e 100644 --- a/AshuCapacitorStatusbarSafeArea.podspec +++ b/AashuDubeyCapacitorStatusbarSafeArea.podspec @@ -3,7 +3,7 @@ require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| - s.name = 'AshuCapacitorStatusbarSafeArea' + s.name = 'AashuDubeyCapacitorStatusbarSafeArea' s.version = package['version'] s.summary = package['description'] s.license = package['license'] diff --git a/README.md b/README.md index eeb2784..11837df 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ -# @aashu-dubey/capacitor-statusbar-safe-area +
+ +# capacitor-statusbar-safe-area Get Status bar height and Safe area insets on Android & iOS. +[![npm](https://img.shields.io/npm/v/@aashu-dubey/capacitor-statusbar-safe-area?style=flat-square)](https://www.npmjs.com/package/@aashu-dubey/capacitor-statusbar-safe-area) [![npm](https://img.shields.io/npm/dm/@aashu-dubey/capacitor-statusbar-safe-area?style=flat-square)](https://www.npmjs.com/package/@aashu-dubey/capacitor-statusbar-safe-area) [![Install Size](https://packagephobia.now.sh/badge?p=@aashu-dubey/capacitor-statusbar-safe-area)](https://www.npmjs.com/package/@aashu-dubey/capacitor-statusbar-safe-area) + +
+ ## Install ```bash @@ -55,9 +61,9 @@ then you can use them in your CSS files -* [`getStatusBarHeight()`](#getstatusbarheight) -* [`getSafeAreaInsets()`](#getsafeareainsets) -* [Interfaces](#interfaces) +- [`getStatusBarHeight()`](#getstatusbarheight) +- [`getSafeAreaInsets()`](#getsafeareainsets) +- [Interfaces](#interfaces) @@ -74,8 +80,7 @@ Get the Status bar height on Android and iOS, and on Web it returns 0. **Returns:** Promise<{ height: number; }> --------------------- - +--- ### getSafeAreaInsets() @@ -87,12 +92,10 @@ Get the Safe area insets for Android and iOS, and on Web it returns 0 for all. **Returns:** Promise<SafeAreaType> --------------------- - +--- ### Interfaces - #### SafeAreaType | Prop | Type | diff --git a/package.json b/package.json index 0c91022..4f62fff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aashu-dubey/capacitor-statusbar-safe-area", - "version": "1.0.0", + "version": "1.0.1", "description": "Get Status bar height and Safe area insets on Android & iOS.", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js", @@ -11,7 +11,7 @@ "android/build.gradle", "dist/", "ios/Plugin/", - "AshuCapacitorStatusbarSafeArea.podspec" + "AashuDubeyCapacitorStatusbarSafeArea.podspec" ], "author": "Ashutosh", "license": "MIT", @@ -20,8 +20,7 @@ "url": "git+https://github.com/Aashu-Dubey/capacitor-statusbar-safe-area.git" }, "publishConfig": { - "registry": "https://npm.pkg.github.com", - "access": "public" + "registry": "https://registry.npmjs.org/" }, "bugs": { "url": "https://github.com/Aashu-Dubey/capacitor-statusbar-safe-area/issues"