Skip to content

Commit

Permalink
version upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanrajpathak committed Apr 4, 2024
1 parent bf72f0d commit ac51776
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# (1.2.0)

## Breaking Changes

- Changed the method from static to an instance method for better Flexiblity, Encapsulation and Testability.

## (1.1.1)

- Errors fixed in latitude,longitude,asn and offset

## (1.1.0+2)

- Migrate API Endpoint
Expand All @@ -9,7 +16,7 @@

- Update usage Example and Readme.md

- ## 1.1.0
## 1.1.0

- Update [http](https://pub.dev/packages/http) package to latest version ^1.1.0

Expand Down
8 changes: 4 additions & 4 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Usage
# Usage

_To get your ip address, just use `IpAddress.getIp()`:_

```dart
import 'package:public_ip_address/public_ip_address.dart';
void main() async {
var ip = await IpAddress.getIp();
var ip = await IpAddress().getIp();
print(ip);
// Sample Output : 208.XX.XX.XX
var allIP = await IpAddress.getAllData();
var allIP = await IpAddress().getAllData();
print(allIP);
//Sample Output :
// {ip: 202.XX.XX.XX, continentCode: AS, country: [COUNTRY NAME],
Expand All @@ -19,4 +19,4 @@ void main() async {
}
```

_Don't forget to `await` it because it's a [Future function]('https://dart.dev/codelabs/async-await)._
_Don't forget to `await` it because it's a [Future function]('https://dart.dev/codelabs/async-await)
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: public_ip_address
description: This package allows you to get your public IP Address and many others info about it.
version: 1.1.1
version: 1.2.0
homepage: https://github.com/devsumanrazz/IP-Address

environment:
Expand Down

0 comments on commit ac51776

Please sign in to comment.