Skip to content

Commit d5e0047

Browse files
Authentication (#335)
* Auth skeleton * GitHub Authorize - full cycle * Fix Python 3.7 * Open popup in Python * User/Group fetching simplified * OAuth almost complete * Refresh token functionality * Save/restore auth token * SVG support * SVG images from base64 * Get back on Flutter stable channel * Fix pubspec * generic page.invoke_method() method * Invoke method with result * Container.clip_behavior * Use MarkdownBody * Fix #359 * Fix Python 3.7 * LaunchUrl replaced with invoke_method() * Clipboard operations replaced with invoke_method() * Client storage with invoke_method() * Update page.py * Added page.window_bgcolor Fix #289 * control.on_animation_end event Fix #295 * Session storage * page.window_to_front() that works * Custom redirect URL and complete HTML * page.logout * Disable debug logging * Cleaunp * Remove prefix in session.get_keys() * Added cryptography encrypt/decrypt * Generate Fernet key with KDF * Update __init__.py * Call page.on_login handler with saved token * renamed to secret_key * Fix token to support LinkedIn * Ensure refresh_token * Image.gapless_playback
1 parent 464a137 commit d5e0047

File tree

145 files changed

+1756
-1705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1756
-1705
lines changed

.appveyor.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ for:
107107
install:
108108
# Flutter SDK
109109
- sudo snap install flutter --classic
110-
- flutter channel beta
110+
- flutter channel stable
111111
- flutter upgrade
112112
- flutter sdk-path
113113

@@ -130,7 +130,7 @@ for:
130130
install:
131131
- ps: .\ci\install_flutter.ps1
132132
- set PATH=C:\flutter\bin;%PATH%
133-
- flutter channel beta
133+
- flutter channel stable
134134
- flutter upgrade
135135

136136
build_script:
@@ -170,10 +170,10 @@ for:
170170

171171
install:
172172
- brew install cocoapods
173-
- curl https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.0.3-stable.zip -o flutter_macos_stable.zip
173+
- curl https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.3.2-stable.zip -o flutter_macos_stable.zip
174174
- unzip -qq flutter_macos_stable.zip
175175
- export PATH="$PATH:`pwd`/flutter/bin"
176-
- flutter channel beta
176+
- flutter channel stable
177177
- flutter upgrade
178178
- flutter config --enable-macos-desktop
179179
- flutter doctor
@@ -207,7 +207,7 @@ for:
207207
install:
208208
# Flutter SDK
209209
- sudo snap install flutter --classic
210-
- flutter channel beta
210+
- flutter channel stable
211211
- flutter upgrade
212212
- flutter sdk-path
213213

@@ -240,7 +240,7 @@ for:
240240
install:
241241
# Flutter SDK
242242
- sudo snap install flutter --classic
243-
- flutter channel beta
243+
- flutter channel stable
244244
- flutter upgrade
245245
- flutter sdk-path
246246

@@ -275,7 +275,7 @@ for:
275275
- curl https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.0.3-stable.zip -o flutter_macos_stable.zip
276276
- unzip -qq flutter_macos_stable.zip
277277
- export PATH="$PATH:`pwd`/flutter/bin"
278-
- flutter channel beta
278+
- flutter channel stable
279279
- flutter upgrade
280280
- flutter doctor
281281

@@ -317,7 +317,7 @@ for:
317317
install:
318318
# Flutter SDK
319319
- sudo snap install flutter --classic
320-
- flutter channel beta
320+
- flutter channel stable
321321
- flutter upgrade
322322
- flutter sdk-path
323323

ci/install_flutter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$distPath = "$env:TEMP\flutter_windows_stable.zip"
22

33
Write-Host "Downloading Flutter SDK..."
4-
(New-Object Net.WebClient).DownloadFile("https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.0.3-stable.zip", $distPath)
4+
(New-Object Net.WebClient).DownloadFile("https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.3.2-stable.zip", $distPath)
55

66
Write-Host "Unpacking Flutter SDK..."
77
7z x $distPath -o"$env:SystemDrive\" | Out-Null

client/ios/Podfile.lock

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,79 @@
11
PODS:
2+
- DKImagePickerController/Core (4.3.4):
3+
- DKImagePickerController/ImageDataManager
4+
- DKImagePickerController/Resource
5+
- DKImagePickerController/ImageDataManager (4.3.4)
6+
- DKImagePickerController/PhotoGallery (4.3.4):
7+
- DKImagePickerController/Core
8+
- DKPhotoGallery
9+
- DKImagePickerController/Resource (4.3.4)
10+
- DKPhotoGallery (0.0.17):
11+
- DKPhotoGallery/Core (= 0.0.17)
12+
- DKPhotoGallery/Model (= 0.0.17)
13+
- DKPhotoGallery/Preview (= 0.0.17)
14+
- DKPhotoGallery/Resource (= 0.0.17)
15+
- SDWebImage
16+
- SwiftyGif
17+
- DKPhotoGallery/Core (0.0.17):
18+
- DKPhotoGallery/Model
19+
- DKPhotoGallery/Preview
20+
- SDWebImage
21+
- SwiftyGif
22+
- DKPhotoGallery/Model (0.0.17):
23+
- SDWebImage
24+
- SwiftyGif
25+
- DKPhotoGallery/Preview (0.0.17):
26+
- DKPhotoGallery/Model
27+
- DKPhotoGallery/Resource
28+
- SDWebImage
29+
- SwiftyGif
30+
- DKPhotoGallery/Resource (0.0.17):
31+
- SDWebImage
32+
- SwiftyGif
33+
- file_picker (0.0.1):
34+
- DKImagePickerController/PhotoGallery
35+
- Flutter
236
- Flutter (1.0.0)
37+
- SDWebImage (5.13.2):
38+
- SDWebImage/Core (= 5.13.2)
39+
- SDWebImage/Core (5.13.2)
40+
- shared_preferences_ios (0.0.1):
41+
- Flutter
42+
- SwiftyGif (5.4.3)
343
- url_launcher_ios (0.0.1):
444
- Flutter
545

646
DEPENDENCIES:
47+
- file_picker (from `.symlinks/plugins/file_picker/ios`)
748
- Flutter (from `Flutter`)
49+
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
850
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
951

52+
SPEC REPOS:
53+
trunk:
54+
- DKImagePickerController
55+
- DKPhotoGallery
56+
- SDWebImage
57+
- SwiftyGif
58+
1059
EXTERNAL SOURCES:
60+
file_picker:
61+
:path: ".symlinks/plugins/file_picker/ios"
1162
Flutter:
1263
:path: Flutter
64+
shared_preferences_ios:
65+
:path: ".symlinks/plugins/shared_preferences_ios/ios"
1366
url_launcher_ios:
1467
:path: ".symlinks/plugins/url_launcher_ios/ios"
1568

1669
SPEC CHECKSUMS:
70+
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
71+
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
72+
file_picker: 817ab1d8cd2da9d2da412a417162deee3500fc95
1773
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
74+
SDWebImage: 72f86271a6f3139cc7e4a89220946489d4b9a866
75+
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
76+
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
1877
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
1978

2079
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

client/linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <screen_retriever/screen_retriever_plugin.h>
1010
#include <url_launcher_linux/url_launcher_plugin.h>
1111
#include <window_manager/window_manager_plugin.h>
12+
#include <window_to_front/window_to_front_plugin.h>
1213

1314
void fl_register_plugins(FlPluginRegistry* registry) {
1415
g_autoptr(FlPluginRegistrar) screen_retriever_registrar =
@@ -20,4 +21,7 @@ void fl_register_plugins(FlPluginRegistry* registry) {
2021
g_autoptr(FlPluginRegistrar) window_manager_registrar =
2122
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");
2223
window_manager_plugin_register_with_registrar(window_manager_registrar);
24+
g_autoptr(FlPluginRegistrar) window_to_front_registrar =
25+
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowToFrontPlugin");
26+
window_to_front_plugin_register_with_registrar(window_to_front_registrar);
2327
}

client/linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
66
screen_retriever
77
url_launcher_linux
88
window_manager
9+
window_to_front
910
)
1011

1112
list(APPEND FLUTTER_FFI_PLUGIN_LIST

client/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ import screen_retriever
99
import shared_preferences_macos
1010
import url_launcher_macos
1111
import window_manager
12+
import window_to_front
1213

1314
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1415
ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin"))
1516
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
1617
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1718
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
19+
WindowToFrontPlugin.register(with: registry.registrar(forPlugin: "WindowToFrontPlugin"))
1820
}

client/macos/Podfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PODS:
22
- FlutterMacOS (1.0.0)
33
- screen_retriever (0.0.1):
44
- FlutterMacOS
5+
- shared_preferences_macos (0.0.1):
6+
- FlutterMacOS
57
- url_launcher_macos (0.0.1):
68
- FlutterMacOS
79
- window_manager (0.2.0):
@@ -10,6 +12,7 @@ PODS:
1012
DEPENDENCIES:
1113
- FlutterMacOS (from `Flutter/ephemeral`)
1214
- screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`)
15+
- shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
1316
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
1417
- window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`)
1518

@@ -18,6 +21,8 @@ EXTERNAL SOURCES:
1821
:path: Flutter/ephemeral
1922
screen_retriever:
2023
:path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos
24+
shared_preferences_macos:
25+
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos
2126
url_launcher_macos:
2227
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
2328
window_manager:
@@ -26,6 +31,7 @@ EXTERNAL SOURCES:
2631
SPEC CHECKSUMS:
2732
FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811
2833
screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38
34+
shared_preferences_macos: a64dc611287ed6cbe28fd1297898db1336975727
2935
url_launcher_macos: 597e05b8e514239626bcf4a850fcf9ef5c856ec3
3036
window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8
3137

client/pubspec.lock

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ packages:
146146
url: "https://pub.dartlang.org"
147147
source: hosted
148148
version: "0.10.0"
149+
flutter_svg:
150+
dependency: transitive
151+
description:
152+
name: flutter_svg
153+
url: "https://pub.dartlang.org"
154+
source: hosted
155+
version: "1.1.5"
149156
flutter_test:
150157
dependency: "direct dev"
151158
description: flutter
@@ -226,6 +233,20 @@ packages:
226233
url: "https://pub.dartlang.org"
227234
source: hosted
228235
version: "1.8.2"
236+
path_drawing:
237+
dependency: transitive
238+
description:
239+
name: path_drawing
240+
url: "https://pub.dartlang.org"
241+
source: hosted
242+
version: "1.0.1"
243+
path_parsing:
244+
dependency: transitive
245+
description:
246+
name: path_parsing
247+
url: "https://pub.dartlang.org"
248+
source: hosted
249+
version: "1.0.1"
229250
path_provider_linux:
230251
dependency: transitive
231252
description:
@@ -490,6 +511,13 @@ packages:
490511
url: "https://pub.dartlang.org"
491512
source: hosted
492513
version: "0.2.6"
514+
window_to_front:
515+
dependency: transitive
516+
description:
517+
name: window_to_front
518+
url: "https://pub.dartlang.org"
519+
source: hosted
520+
version: "0.0.3"
493521
xdg_directories:
494522
dependency: transitive
495523
description:
@@ -512,5 +540,5 @@ packages:
512540
source: hosted
513541
version: "3.1.1"
514542
sdks:
515-
dart: ">=2.17.0 <3.0.0"
543+
dart: ">=2.18.1 <3.0.0"
516544
flutter: ">=3.0.0"

client/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1818
version: 1.0.0+1
1919

2020
environment:
21-
sdk: ">=2.16.1 <3.0.0"
21+
sdk: ">=2.18.1 <3.0.0"
2222

2323
# Dependencies specify other packages that your package needs in order to work.
2424
# To automatically upgrade your package dependencies to the latest versions

client/windows/flutter/generated_plugin_registrant.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <screen_retriever/screen_retriever_plugin.h>
1010
#include <url_launcher_windows/url_launcher_windows.h>
1111
#include <window_manager/window_manager_plugin.h>
12+
#include <window_to_front/window_to_front_plugin.h>
1213

1314
void RegisterPlugins(flutter::PluginRegistry* registry) {
1415
ScreenRetrieverPluginRegisterWithRegistrar(
@@ -17,4 +18,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
1718
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
1819
WindowManagerPluginRegisterWithRegistrar(
1920
registry->GetRegistrarForPlugin("WindowManagerPlugin"));
21+
WindowToFrontPluginRegisterWithRegistrar(
22+
registry->GetRegistrarForPlugin("WindowToFrontPlugin"));
2023
}

0 commit comments

Comments
 (0)