Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #48 from twitter-dart/44-prepare-for-stable-v100
Browse files Browse the repository at this point in the history
fix: fixed for the issue (#44)
  • Loading branch information
myConsciousness authored Nov 17, 2022
2 parents def3640 + c2a4c91 commit 50cb370
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This is a generated file; do not edit or check into version control.
flutter_web_auth_2=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/
url_launcher=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.1.6/
url_launcher_android=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.21/
url_launcher_ios=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/
url_launcher_linux=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/
url_launcher_macos=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/
url_launcher_web=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.13/
url_launcher_windows=/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/
flutter_web_auth_2=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/
url_launcher=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.1.6/
url_launcher_android=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.21/
url_launcher_ios=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/
url_launcher_linux=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/
url_launcher_macos=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/
url_launcher_web=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.13/
url_launcher_windows=/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_web_auth_2","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_web_auth_2","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.21/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_web_auth_2","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/","native_build":true,"dependencies":[]}],"linux":[{"name":"url_launcher_linux","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_web_auth_2","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_web_auth_2","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","dependencies":[]},{"name":"url_launcher_web","path":"/opt/hostedtoolcache/flutter/stable-3.3.8-x64/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.13/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_web_auth_2","dependencies":["url_launcher"]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2022-11-17 03:41:50.936177","version":"3.3.8"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_web_auth_2","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_web_auth_2","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.21/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_web_auth_2","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/","native_build":true,"dependencies":[]}],"linux":[{"name":"url_launcher_linux","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_web_auth_2","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_web_auth_2","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth_2-2.0.2/","dependencies":[]},{"name":"url_launcher_web","path":"/opt/homebrew/Caskroom/flutter/3.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.13/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_web_auth_2","dependencies":["url_launcher"]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2022-11-17 13:13:27.622198","version":"3.3.8"}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Note

## v1.0.0

- Just release `v1.0.0`.

## v1.0.0-preview

Version `1.0.0` introduced some breaking changes that need to be addressed if you are upgrading from previous versions.
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- [1.1.3. Setup](#113-setup)
- [1.1.3.1. Android](#1131-android)
- [1.1.3.2. iOS](#1132-ios)
- [1.1.3.3. Web](#1133-web)
- [1.1.4. Implementation](#114-implementation)
- [1.2. Upgrading from previous versions (< 1.0.0)](#12-upgrading-from-previous-versions--100)
- [1.3. Contribution 🏆](#13-contribution-)
Expand Down Expand Up @@ -116,6 +117,14 @@ On iOS you need to set the platform in the ***ios/Podfile*** file:
platform :ios, '11.0'
```

#### 1.1.3.3. Web

Currently, official Twitter does not support `CORS`, so this package also does not actively support `Flutter for Web`. However, this package can be used from a web app, and indeed has built-in processing for `Flutter for Web`.

The implementation method for using this package is the same as for `Android` and `iOS` above, but it's necessary to separately create HTML for the destination to be redirected to after authentication.

Detailed instructions can be found in the [`README of the flutter_web_auth_2`](https://pub.dev/packages/flutter_web_auth_2#web) package.

### 1.1.4. Implementation

Now all that's left is to launch the following example Flutter app and press the button to start the approval process with **OAuth 2.0 PKCE**!
Expand Down Expand Up @@ -184,7 +193,7 @@ Version `1.0.0` introduced some breaking changes that need to be addressed if yo

Please take note of the following:

- From version 3.0.0, `flutter_web_auth` has been replaced by [`flutter_web_auth_2`](https://pub.dev/packages/flutter_web_auth_2). Please refer to the [upgrade instructions](https://pub.dev/packages/flutter_web_auth_2#upgrading-from-flutter_web_auth).
- From version 1.0.0, `flutter_web_auth` has been replaced by [`flutter_web_auth_2`](https://pub.dev/packages/flutter_web_auth_2). Please refer to the [upgrade instructions](https://pub.dev/packages/flutter_web_auth_2#upgrading-from-flutter_web_auth).
- The migration to [`flutter_web_auth_2`](https://pub.dev/packages/flutter_web_auth_2) marks the transition to `Flutter 3`. This means that you must upgrade to `Flutter 3` (a simple `flutter upgrade` should be enough).

## 1.3. Contribution 🏆
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: twitter_oauth2_pkce
description: Provides the optimized and easiest way to integrate OAuth 2.0 PKCE with Twitter API in Flutter.
version: 1.0.0-preview
version: 1.0.0
repository: https://github.com/twitter-dart/twitter-oauth2-pkce
issue_tracker: 'https://github.com/twitter-dart/twitter-oauth2-pkce/issues'
homepage: 'https://github.com/twitter-dart'
Expand Down

0 comments on commit 50cb370

Please sign in to comment.