Skip to content

Commit

Permalink
Merge pull request #135 from droibit/feature/flutter_custom_tabs_v2.0…
Browse files Browse the repository at this point in the history
….0-beta

Release `flutter_custom_tabs` v2.0.0-beta
  • Loading branch information
droibit authored Nov 7, 2023
2 parents 9c33552 + 7d7f237 commit f957801
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
15 changes: 15 additions & 0 deletions flutter_custom_tabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 2.0.0-beta

* Refactors the signature for launching a URL with Custom Tabs.
* Refactors the signature for manually closing Custom Tabs.
* Introduces a lightweight version of URL launching as an experimental feature.
* Supports the launch of deep link URLs.
* Supports the launch of Custom Tabs as a bottom sheet.
* Updates the `flutter_custom_tabs_platform_interface` package to version 2.0.0-beta.
* Updates the `flutter_custom_tabs_web` plugin package to version 2.0.0-beta+1.
* Migrates Android platform-specific implementations to the `flutter_custom_tabs_android` package plugin.
* Migrates iOS platform-specific implementations to the `flutter_custom_tabs_ios` package plugin.
* Updates the minimum supported SDK version to Flutter 3.0.0/Dart 2.17.

For details on the changes, please refer to the [migration guide](https://github.com/droibit/flutter_custom_tabs/blob/flutter_custom_tabs_2.0/flutter_custom_tabs/doc/migration-guides.md).

## 1.2.1

- Fix the build error when depending on v1.2.0 plugin in some iOS projects([#101](https://github.com/droibit/flutter_custom_tabs/pull/101)).
Expand Down
6 changes: 3 additions & 3 deletions flutter_custom_tabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Add `flutter_custom_tabs` to the dependencies of your `pubspec.yaml`.

``` yaml
dependencies:
flutter_custom_tabs: ^1.2.1
flutter_custom_tabs: ^2.0.0-beta
```
> **Note**
> v2.0.0 includes breaking changes from v1.x. Please refer to the [migration guide](https://github.com/droibit/flutter_custom_tabs/blob/flutter_custom_tabs_2.0/flutter_custom_tabs/docs/migration-guides.md) when updating the plugin.
> v2.0.0 includes breaking changes from v1.x. Please refer to the [migration guide](https://github.com/droibit/flutter_custom_tabs/blob/flutter_custom_tabs_2.0/flutter_custom_tabs/doc/migration-guides.md) when updating the plugin.
### Requirements for Android
- Android Gradle Plugin v7.4.0 and above.
Expand All @@ -36,7 +36,7 @@ buildscript {
```

## Usage
You can launch web URLs similar to `url_launcher` and specify options to customize appearance and behavior.
You can launch a web URL similar to `url_launcher` and specify options to customize appearance and behavior.

| Android | iOS |
| --- | --- |
Expand Down
File renamed without changes.
28 changes: 7 additions & 21 deletions flutter_custom_tabs/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: flutter_custom_tabs
description: Flutter plugin for seamlessly displaying web content using Chrome Custom Tabs.
version: 1.2.1
homepage: https://github.com/droibit/flutter_custom_tabs

# TODO: To be removed before v2.0.0 release
publish_to: none
description: A Flutter plugin for mobile apps to launch a URL in Custom Tabs/SFSafariViewController.
version: 2.0.0-beta
repository: https://github.com/droibit/flutter_custom_tabs/tree/flutter_custom_tabs_2.0/flutter_custom_tabs

environment:
sdk: ">=2.17.0 <4.0.0"
Expand All @@ -14,21 +11,10 @@ dependencies:
flutter:
sdk: flutter

# flutter_custom_tabs_platform_interface: ^1.2.0
# TODO: To be removed before v2.0.0 release
flutter_custom_tabs_platform_interface:
path: ../flutter_custom_tabs_platform_interface
# TODO: To be removed before v2.0.0 release
# flutter_custom_tabs_android: ^2.0.0
flutter_custom_tabs_android:
path: ../flutter_custom_tabs_android
# flutter_custom_tabs_ios: ^2.0.0
flutter_custom_tabs_ios:
path: ../flutter_custom_tabs_ios
# flutter_custom_tabs_web: ^1.1.0
# TODO: To be removed before v2.0.0 release
flutter_custom_tabs_web:
path: ../flutter_custom_tabs_web
flutter_custom_tabs_platform_interface: ^2.0.0-beta
flutter_custom_tabs_android: ^2.0.0-beta
flutter_custom_tabs_ios: ^2.0.0-beta
flutter_custom_tabs_web: ^2.0.0-beta+1
meta: ^1.9.1

dev_dependencies:
Expand Down

0 comments on commit f957801

Please sign in to comment.