Skip to content

Commit

Permalink
'better Flutter support'
Browse files Browse the repository at this point in the history
  • Loading branch information
faithoflifedev committed Sep 9, 2023
1 parent 2d669d3 commit 73c6823
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 26 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.1.0

* better `Flutter` support
* dependency bumps

## 1.0.8+4

* fix for flutter example
Expand Down
33 changes: 18 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,23 @@ Please feel free to submit PRs for any additional helper methods, or report an [

## Recent Changes

<<<<<<< HEAD
### New for v1.1.0
- [HighLiuk](https://github.com/HighLiuk) has contributed code that fills out some of the overall functionality
- **Breaking Change:** The `GoogleVision` api has changed. To generate an auth token from a `String` the constructor `GoogleVision.withJwt(String credentialsJsonAsString)` should now be used, and for a file `GoogleVision.withJwtFile(String credentialsFilename)`

```dart
// In your Flutter app
final credentialsJsonAsString =
await rootBundle.loadString('assets/service_credentials.json');
final googleVision = await GoogleVision.withJwt(credentialsJsonAsString);
```

This change reflects the fact that the more common use case of the package is with `Flutter`

### New for v1.0.8
- web entities and pages detection [https://cloud.google.com/vision/docs/detecting-web](https://cloud.google.com/vision/docs/detecting-web), provides urls of web pages that match the specified image

=======
>>>>>>> fdaccb1 ('added support for more detection methods')
### New for v1.0.7

[JLuisRojas](https://github.com/JLuisRojas) has provided code for:
Expand All @@ -49,10 +60,6 @@ In addition support for the following has also been added:

[imhafeez](https://github.com/imhafeez) has provided code for `Safe Search` functionality.

### New for v1.0.3

[4ctobias](https://github.com/4ctobias) has provided code for `Label Detection` functionality.

## Getting Started

### pubspec.yaml
Expand All @@ -62,11 +69,7 @@ To use this package, add the dependency to your `pubspec.yaml` file:
```yaml
dependencies:
...
<<<<<<< HEAD
google_vision: ^1.0.8+4
=======
google_vision: ^1.0.7
>>>>>>> fdaccb1 ('added support for more detection methods')
google_vision: ^1.1.0
```
### Obtaining Authorization Credentials
Expand Down Expand Up @@ -192,11 +195,11 @@ Please see the cli documentation [README.md](https://github.com/faithoflifedev/g
- [imhafeez](https://github.com/imhafeez)
- [4ctobias](https://github.com/4ctobias)
- [JLuisRojas](https://github.com/JLuisRojas)
<<<<<<< HEAD
- [DeadBryam](https://github.com/DeadBryam)
- [husitawi](https://github.com/husitawi)
=======
>>>>>>> fdaccb1 ('added support for more detection methods')
- [DeadBryam](https://github.com/DeadBryam)
- [husitawi](https://github.com/husitawi)
- [HighLiuk](https://github.com/HighLiuk)

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion lib/meta.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import 'dart:convert' show json;

final pubSpec = json.decode(
'{"name":"google_vision","version":"1.0.8+4","homepage":"https://github.com/faithoflifedev/google_vision","environment":{"sdk":">=2.17.0 <4.0.0"},"description":"Allows you to add Google Visions image labeling, face, logo, and landmark detection, OCR, and detection of explicit content, into applications.","dependencies":{"args":"^2.4.2","color":"^3.0.0","crypto_keys":"^0.3.0+1","dio":"^5.2.1+1","http":"^0.13.6","image":"^4.0.17","jose":"^0.3.3","json_annotation":"^4.8.1","retrofit":"^4.0.1","universal_io":"^2.2.2"},"dev_dependencies":{"build_runner":"^2.4.5","grinder":"^0.9.4","json_serializable":"^6.7.0","lints":"^2.1.1","publish_tools":"^0.1.0+10","retrofit_generator":"^7.0.7","test":"^1.24.3"},"executables":{"vision":""},"repository":"https://github.com/faithoflifedev/google_vision"}');
'{"name":"google_vision","version":"1.1.0","homepage":"https://github.com/faithoflifedev/google_vision","environment":{"sdk":">=3.0.0 <4.0.0"},"description":"Allows you to add Google Visions image labeling, face, logo, and landmark detection, OCR, and detection of explicit content, into applications.","dependencies":{"args":"^2.4.2","color":"^3.0.0","crypto_keys":"^0.3.0+1","dio":"^5.3.2","http":"^1.1.0","image":"^4.0.17","jose":"^0.3.4","json_annotation":"^4.8.1","retrofit":"^4.0.1","universal_io":"^2.2.2"},"dev_dependencies":{"build_runner":"^2.4.6","grinder":"^0.9.4","json_serializable":"^6.7.1","lints":"^2.1.1","publish_tools":"^0.1.0+11","retrofit_generator":"^7.0.8","test":"^1.24.6"},"dependency_overrides":{"x509":{"git":"https://github.com/faithoflifedev/x509.git"}},"executables":{"vision":""},"repository":"https://github.com/faithoflifedev/google_vision"}');
24 changes: 14 additions & 10 deletions tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ Please feel free to submit PRs for any additional helper methods, or report an [

## Table of Contents
- [Recent Changes](#recent-changes)
<<<<<<< HEAD
- [New for v1.0.8](#new-for-v108)
=======
>>>>>>> fdaccb1 ('added support for more detection methods')
- [New for v1.0.7](#new-for-v107)
- [New for v1.0.6](#new-for-v106)
- [New for v1.0.3](#new-for-v103)
Expand All @@ -30,12 +27,23 @@ Please feel free to submit PRs for any additional helper methods, or report an [

## Recent Changes

<<<<<<< HEAD
### New for v1.1.0
- [HighLiuk](https://github.com/HighLiuk) has contributed code that fills out some of the overall functionality
- **Breaking Change:** The `GoogleVision` api has changed. To generate an auth token from a `String` the constructor `GoogleVision.withJwt(String credentialsJsonAsString)` should now be used, and for a file `GoogleVision.withJwtFile(String credentialsFilename)`

```dart
// In your Flutter app
final credentialsJsonAsString =
await rootBundle.loadString('assets/service_credentials.json');
final googleVision = await GoogleVision.withJwt(credentialsJsonAsString);
```

This change reflects the fact that the more common use case of the package is with `Flutter`

### New for v1.0.8
- web entities and pages detection [https://cloud.google.com/vision/docs/detecting-web](https://cloud.google.com/vision/docs/detecting-web), provides urls of web pages that match the specified image

=======
>>>>>>> fdaccb1 ('added support for more detection methods')
### New for v1.0.7

[JLuisRojas](https://github.com/JLuisRojas) has provided code for:
Expand All @@ -52,10 +60,6 @@ In addition support for the following has also been added:

[imhafeez](https://github.com/imhafeez) has provided code for `Safe Search` functionality.

### New for v1.0.3

[4ctobias](https://github.com/4ctobias) has provided code for `Label Detection` functionality.

## Getting Started

### pubspec.yaml
Expand Down

0 comments on commit 73c6823

Please sign in to comment.