From b43fdd05beca062d772f1adfa86237e824a6e9d6 Mon Sep 17 00:00:00 2001 From: Alexandra Talalaieva <25621530+sashatalalasha@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:42:48 +0200 Subject: [PATCH] chore: format code --- flutter-ory-network/README.md | 13 +- flutter-ory-network/analysis_options.yaml | 1 - .../AppIcon.appiconset/Contents.json | 160 +++++++++--------- .../LaunchImage.imageset/Contents.json | 26 +-- .../LaunchImage.imageset/README.md | 7 +- .../lib/blocs/auth/auth_bloc.dart | 3 + .../lib/blocs/auth/auth_bloc.freezed.dart | 3 + .../lib/blocs/auth/auth_event.dart | 3 + .../lib/blocs/auth/auth_state.dart | 3 + .../lib/blocs/login/login_bloc.dart | 3 + .../lib/blocs/login/login_bloc.freezed.dart | 3 + .../lib/blocs/login/login_event.dart | 3 + .../lib/blocs/login/login_state.dart | 3 + .../blocs/registration/registration_bloc.dart | 3 + .../registration_bloc.freezed.dart | 3 + .../registration/registration_event.dart | 3 + .../registration/registration_state.dart | 3 + .../lib/entities/form_node.dart | 3 + .../lib/entities/form_node.freezed.dart | 3 + .../lib/entities/form_node.g.dart | 3 + .../lib/entities/formfield.dart | 3 + .../lib/entities/formfield.freezed.dart | 3 + flutter-ory-network/lib/entities/message.dart | 3 + .../lib/entities/message.freezed.dart | 3 + .../lib/entities/message.g.dart | 3 + .../lib/entities/node_attribute.dart | 3 + .../lib/entities/node_attribute.freezed.dart | 3 + .../lib/entities/node_attribute.g.dart | 3 + flutter-ory-network/lib/main.dart | 3 + flutter-ory-network/lib/pages/entry.dart | 3 + flutter-ory-network/lib/pages/home.dart | 3 + flutter-ory-network/lib/pages/login.dart | 3 + .../lib/pages/registration.dart | 3 + .../lib/repositories/auth.dart | 3 + flutter-ory-network/lib/services/auth.dart | 3 + .../lib/services/exceptions.dart | 3 + .../lib/services/exceptions.freezed.dart | 3 + flutter-ory-network/lib/services/storage.dart | 3 + .../lib/widgets/ory_theme.dart | 3 + .../lib/widgets/social_provider_box.dart | 3 + flutter-ory-network/pubspec.yaml | 7 +- flutter-ory-network/test/widget_test.dart | 3 + 42 files changed, 219 insertions(+), 103 deletions(-) diff --git a/flutter-ory-network/README.md b/flutter-ory-network/README.md index 63d9a41..77a624b 100644 --- a/flutter-ory-network/README.md +++ b/flutter-ory-network/README.md @@ -1,27 +1,36 @@ # Integrate Ory Network with Flutter -This example demonstrates how to use Ory Network with a Flutter app. It includes login and registration with email and password. +This example demonstrates how to use Ory Network with a Flutter app. It includes +login and registration with email and password. ## Develop + ### Prerequisites + 1. [Flutter](https://docs.flutter.dev/get-started/install) version 3.13.1 2. Xcode and Android Studio 3. iOS Simulator or Android Emulator -4. [Ory Network](https://console.ory.sh/) project +4. [Ory Network](https://console.ory.sh/) project ### Environmental variables + Create .env file with your project url in the root folder of the Flutter app + ```env ORY_BASE_URL=https://{your-project-slug}.projects.oryapis.com ``` ### Run locally + 1. Install dependancies from `pubspec.yaml` + ```console flutter pub get ``` + 2. open iOS Simulator or Android Emulator 3. Start the app + ```console flutter run ``` diff --git a/flutter-ory-network/analysis_options.yaml b/flutter-ory-network/analysis_options.yaml index 61b6c4d..fd16f92 100644 --- a/flutter-ory-network/analysis_options.yaml +++ b/flutter-ory-network/analysis_options.yaml @@ -24,6 +24,5 @@ linter: rules: # avoid_print: false # Uncomment to disable the `avoid_print` rule # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/flutter-ory-network/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/flutter-ory-network/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json index d36b1fa..e882ab9 100644 --- a/flutter-ory-network/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/flutter-ory-network/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,122 +1,122 @@ { - "images" : [ + "images": [ { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" + "size": "20x20", + "idiom": "iphone", + "filename": "Icon-App-20x20@2x.png", + "scale": "2x" }, { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" + "size": "20x20", + "idiom": "iphone", + "filename": "Icon-App-20x20@3x.png", + "scale": "3x" }, { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" + "size": "29x29", + "idiom": "iphone", + "filename": "Icon-App-29x29@1x.png", + "scale": "1x" }, { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" + "size": "29x29", + "idiom": "iphone", + "filename": "Icon-App-29x29@2x.png", + "scale": "2x" }, { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" + "size": "29x29", + "idiom": "iphone", + "filename": "Icon-App-29x29@3x.png", + "scale": "3x" }, { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" + "size": "40x40", + "idiom": "iphone", + "filename": "Icon-App-40x40@2x.png", + "scale": "2x" }, { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" + "size": "40x40", + "idiom": "iphone", + "filename": "Icon-App-40x40@3x.png", + "scale": "3x" }, { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" + "size": "60x60", + "idiom": "iphone", + "filename": "Icon-App-60x60@2x.png", + "scale": "2x" }, { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" + "size": "60x60", + "idiom": "iphone", + "filename": "Icon-App-60x60@3x.png", + "scale": "3x" }, { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" + "size": "20x20", + "idiom": "ipad", + "filename": "Icon-App-20x20@1x.png", + "scale": "1x" }, { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" + "size": "20x20", + "idiom": "ipad", + "filename": "Icon-App-20x20@2x.png", + "scale": "2x" }, { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" + "size": "29x29", + "idiom": "ipad", + "filename": "Icon-App-29x29@1x.png", + "scale": "1x" }, { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" + "size": "29x29", + "idiom": "ipad", + "filename": "Icon-App-29x29@2x.png", + "scale": "2x" }, { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" + "size": "40x40", + "idiom": "ipad", + "filename": "Icon-App-40x40@1x.png", + "scale": "1x" }, { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" + "size": "40x40", + "idiom": "ipad", + "filename": "Icon-App-40x40@2x.png", + "scale": "2x" }, { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" + "size": "76x76", + "idiom": "ipad", + "filename": "Icon-App-76x76@1x.png", + "scale": "1x" }, { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" + "size": "76x76", + "idiom": "ipad", + "filename": "Icon-App-76x76@2x.png", + "scale": "2x" }, { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" + "size": "83.5x83.5", + "idiom": "ipad", + "filename": "Icon-App-83.5x83.5@2x.png", + "scale": "2x" }, { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" + "size": "1024x1024", + "idiom": "ios-marketing", + "filename": "Icon-App-1024x1024@1x.png", + "scale": "1x" } ], - "info" : { - "version" : 1, - "author" : "xcode" + "info": { + "version": 1, + "author": "xcode" } } diff --git a/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json index 0bedcf2..781d7cd 100644 --- a/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ b/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -1,23 +1,23 @@ { - "images" : [ + "images": [ { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" + "idiom": "universal", + "filename": "LaunchImage.png", + "scale": "1x" }, { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" + "idiom": "universal", + "filename": "LaunchImage@2x.png", + "scale": "2x" }, { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" + "idiom": "universal", + "filename": "LaunchImage@3x.png", + "scale": "3x" } ], - "info" : { - "version" : 1, - "author" : "xcode" + "info": { + "version": 1, + "author": "xcode" } } diff --git a/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md index 89c2725..09c4940 100644 --- a/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ b/flutter-ory-network/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -1,5 +1,8 @@ # Launch Screen Assets -You can customize the launch screen with your own desired assets by replacing the image files in this directory. +You can customize the launch screen with your own desired assets by replacing +the image files in this directory. -You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file +You can also do it by opening your Flutter project's Xcode project with +`open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project +Navigator and dropping in the desired images. diff --git a/flutter-ory-network/lib/blocs/auth/auth_bloc.dart b/flutter-ory-network/lib/blocs/auth/auth_bloc.dart index 2a0fb55..6da7be0 100644 --- a/flutter-ory-network/lib/blocs/auth/auth_bloc.dart +++ b/flutter-ory-network/lib/blocs/auth/auth_bloc.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/flutter-ory-network/lib/blocs/auth/auth_bloc.freezed.dart b/flutter-ory-network/lib/blocs/auth/auth_bloc.freezed.dart index 02acfd8..c9fb075 100644 --- a/flutter-ory-network/lib/blocs/auth/auth_bloc.freezed.dart +++ b/flutter-ory-network/lib/blocs/auth/auth_bloc.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/blocs/auth/auth_event.dart b/flutter-ory-network/lib/blocs/auth/auth_event.dart index 8a13813..7d9a636 100644 --- a/flutter-ory-network/lib/blocs/auth/auth_event.dart +++ b/flutter-ory-network/lib/blocs/auth/auth_event.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + part of 'auth_bloc.dart'; @immutable diff --git a/flutter-ory-network/lib/blocs/auth/auth_state.dart b/flutter-ory-network/lib/blocs/auth/auth_state.dart index afc06e0..eaa742e 100644 --- a/flutter-ory-network/lib/blocs/auth/auth_state.dart +++ b/flutter-ory-network/lib/blocs/auth/auth_state.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + part of 'auth_bloc.dart'; @freezed diff --git a/flutter-ory-network/lib/blocs/login/login_bloc.dart b/flutter-ory-network/lib/blocs/login/login_bloc.dart index 0e7d559..a3b3655 100644 --- a/flutter-ory-network/lib/blocs/login/login_bloc.dart +++ b/flutter-ory-network/lib/blocs/login/login_bloc.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/flutter-ory-network/lib/blocs/login/login_bloc.freezed.dart b/flutter-ory-network/lib/blocs/login/login_bloc.freezed.dart index 1796049..8efa7a9 100644 --- a/flutter-ory-network/lib/blocs/login/login_bloc.freezed.dart +++ b/flutter-ory-network/lib/blocs/login/login_bloc.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/blocs/login/login_event.dart b/flutter-ory-network/lib/blocs/login/login_event.dart index ee14071..b80c7f3 100644 --- a/flutter-ory-network/lib/blocs/login/login_event.dart +++ b/flutter-ory-network/lib/blocs/login/login_event.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + part of 'login_bloc.dart'; @immutable diff --git a/flutter-ory-network/lib/blocs/login/login_state.dart b/flutter-ory-network/lib/blocs/login/login_state.dart index df97789..3c627c0 100644 --- a/flutter-ory-network/lib/blocs/login/login_state.dart +++ b/flutter-ory-network/lib/blocs/login/login_state.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + part of 'login_bloc.dart'; @freezed diff --git a/flutter-ory-network/lib/blocs/registration/registration_bloc.dart b/flutter-ory-network/lib/blocs/registration/registration_bloc.dart index 89eb5c0..84acbb8 100644 --- a/flutter-ory-network/lib/blocs/registration/registration_bloc.dart +++ b/flutter-ory-network/lib/blocs/registration/registration_bloc.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/flutter-ory-network/lib/blocs/registration/registration_bloc.freezed.dart b/flutter-ory-network/lib/blocs/registration/registration_bloc.freezed.dart index edbeef5..c5f63b5 100644 --- a/flutter-ory-network/lib/blocs/registration/registration_bloc.freezed.dart +++ b/flutter-ory-network/lib/blocs/registration/registration_bloc.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/blocs/registration/registration_event.dart b/flutter-ory-network/lib/blocs/registration/registration_event.dart index ea65684..60dcffe 100644 --- a/flutter-ory-network/lib/blocs/registration/registration_event.dart +++ b/flutter-ory-network/lib/blocs/registration/registration_event.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + part of 'registration_bloc.dart'; @immutable diff --git a/flutter-ory-network/lib/blocs/registration/registration_state.dart b/flutter-ory-network/lib/blocs/registration/registration_state.dart index cf258ee..38eac5b 100644 --- a/flutter-ory-network/lib/blocs/registration/registration_state.dart +++ b/flutter-ory-network/lib/blocs/registration/registration_state.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + part of 'registration_bloc.dart'; @freezed diff --git a/flutter-ory-network/lib/entities/form_node.dart b/flutter-ory-network/lib/entities/form_node.dart index f6679a6..57e2ed7 100644 --- a/flutter-ory-network/lib/entities/form_node.dart +++ b/flutter-ory-network/lib/entities/form_node.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:freezed_annotation/freezed_annotation.dart'; import 'message.dart'; diff --git a/flutter-ory-network/lib/entities/form_node.freezed.dart b/flutter-ory-network/lib/entities/form_node.freezed.dart index b66dacb..96efd5e 100644 --- a/flutter-ory-network/lib/entities/form_node.freezed.dart +++ b/flutter-ory-network/lib/entities/form_node.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/entities/form_node.g.dart b/flutter-ory-network/lib/entities/form_node.g.dart index 98e6de1..7b31b11 100644 --- a/flutter-ory-network/lib/entities/form_node.g.dart +++ b/flutter-ory-network/lib/entities/form_node.g.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'form_node.dart'; diff --git a/flutter-ory-network/lib/entities/formfield.dart b/flutter-ory-network/lib/entities/formfield.dart index caeafe5..6407a49 100644 --- a/flutter-ory-network/lib/entities/formfield.dart +++ b/flutter-ory-network/lib/entities/formfield.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:freezed_annotation/freezed_annotation.dart'; part 'formfield.freezed.dart'; diff --git a/flutter-ory-network/lib/entities/formfield.freezed.dart b/flutter-ory-network/lib/entities/formfield.freezed.dart index 67e05f8..d8e74a8 100644 --- a/flutter-ory-network/lib/entities/formfield.freezed.dart +++ b/flutter-ory-network/lib/entities/formfield.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/entities/message.dart b/flutter-ory-network/lib/entities/message.dart index 25eea02..58ca045 100644 --- a/flutter-ory-network/lib/entities/message.dart +++ b/flutter-ory-network/lib/entities/message.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:freezed_annotation/freezed_annotation.dart'; part 'message.freezed.dart'; diff --git a/flutter-ory-network/lib/entities/message.freezed.dart b/flutter-ory-network/lib/entities/message.freezed.dart index c363713..3e50f41 100644 --- a/flutter-ory-network/lib/entities/message.freezed.dart +++ b/flutter-ory-network/lib/entities/message.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/entities/message.g.dart b/flutter-ory-network/lib/entities/message.g.dart index d63f9eb..d91445c 100644 --- a/flutter-ory-network/lib/entities/message.g.dart +++ b/flutter-ory-network/lib/entities/message.g.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'message.dart'; diff --git a/flutter-ory-network/lib/entities/node_attribute.dart b/flutter-ory-network/lib/entities/node_attribute.dart index e2e8b40..2e98d39 100644 --- a/flutter-ory-network/lib/entities/node_attribute.dart +++ b/flutter-ory-network/lib/entities/node_attribute.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:freezed_annotation/freezed_annotation.dart'; part 'node_attribute.freezed.dart'; part 'node_attribute.g.dart'; diff --git a/flutter-ory-network/lib/entities/node_attribute.freezed.dart b/flutter-ory-network/lib/entities/node_attribute.freezed.dart index 72ddae2..0843265 100644 --- a/flutter-ory-network/lib/entities/node_attribute.freezed.dart +++ b/flutter-ory-network/lib/entities/node_attribute.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/entities/node_attribute.g.dart b/flutter-ory-network/lib/entities/node_attribute.g.dart index 92cd731..92070a7 100644 --- a/flutter-ory-network/lib/entities/node_attribute.g.dart +++ b/flutter-ory-network/lib/entities/node_attribute.g.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'node_attribute.dart'; diff --git a/flutter-ory-network/lib/main.dart b/flutter-ory-network/lib/main.dart index c00fc05..529da37 100644 --- a/flutter-ory-network/lib/main.dart +++ b/flutter-ory-network/lib/main.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:dio/dio.dart'; import 'package:dio/io.dart'; import 'package:flutter/material.dart'; diff --git a/flutter-ory-network/lib/pages/entry.dart b/flutter-ory-network/lib/pages/entry.dart index 7c3c3a9..3a961ac 100644 --- a/flutter-ory-network/lib/pages/entry.dart +++ b/flutter-ory-network/lib/pages/entry.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/material.dart'; class EntryPage extends StatelessWidget { diff --git a/flutter-ory-network/lib/pages/home.dart b/flutter-ory-network/lib/pages/home.dart index c654c2c..0f18adc 100644 --- a/flutter-ory-network/lib/pages/home.dart +++ b/flutter-ory-network/lib/pages/home.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:ory_client/ory_client.dart'; diff --git a/flutter-ory-network/lib/pages/login.dart b/flutter-ory-network/lib/pages/login.dart index 6880d49..ccfdb0c 100644 --- a/flutter-ory-network/lib/pages/login.dart +++ b/flutter-ory-network/lib/pages/login.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; diff --git a/flutter-ory-network/lib/pages/registration.dart b/flutter-ory-network/lib/pages/registration.dart index 97efd3b..5446594 100644 --- a/flutter-ory-network/lib/pages/registration.dart +++ b/flutter-ory-network/lib/pages/registration.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:ory_network_flutter/widgets/social_provider_box.dart'; diff --git a/flutter-ory-network/lib/repositories/auth.dart b/flutter-ory-network/lib/repositories/auth.dart index ce36848..85e03ad 100644 --- a/flutter-ory-network/lib/repositories/auth.dart +++ b/flutter-ory-network/lib/repositories/auth.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:ory_client/ory_client.dart'; import '../services/auth.dart'; diff --git a/flutter-ory-network/lib/services/auth.dart b/flutter-ory-network/lib/services/auth.dart index 5c757f3..2a65bb4 100644 --- a/flutter-ory-network/lib/services/auth.dart +++ b/flutter-ory-network/lib/services/auth.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:built_value/json_object.dart'; import 'package:dio/dio.dart'; import 'package:one_of/one_of.dart'; diff --git a/flutter-ory-network/lib/services/exceptions.dart b/flutter-ory-network/lib/services/exceptions.dart index 376df6e..8f058d1 100644 --- a/flutter-ory-network/lib/services/exceptions.dart +++ b/flutter-ory-network/lib/services/exceptions.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/foundation.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/flutter-ory-network/lib/services/exceptions.freezed.dart b/flutter-ory-network/lib/services/exceptions.freezed.dart index a9bdb66..08979de 100644 --- a/flutter-ory-network/lib/services/exceptions.freezed.dart +++ b/flutter-ory-network/lib/services/exceptions.freezed.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/flutter-ory-network/lib/services/storage.dart b/flutter-ory-network/lib/services/storage.dart index cad86b1..615cda0 100644 --- a/flutter-ory-network/lib/services/storage.dart +++ b/flutter-ory-network/lib/services/storage.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter_secure_storage/flutter_secure_storage.dart'; class SecureStorage { diff --git a/flutter-ory-network/lib/widgets/ory_theme.dart b/flutter-ory-network/lib/widgets/ory_theme.dart index 1c4ed4f..e9bf977 100644 --- a/flutter-ory-network/lib/widgets/ory_theme.dart +++ b/flutter-ory-network/lib/widgets/ory_theme.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; diff --git a/flutter-ory-network/lib/widgets/social_provider_box.dart b/flutter-ory-network/lib/widgets/social_provider_box.dart index 7f31fe6..5c1e788 100644 --- a/flutter-ory-network/lib/widgets/social_provider_box.dart +++ b/flutter-ory-network/lib/widgets/social_provider_box.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import 'package:flutter/material.dart'; class SocialProviderBox extends StatelessWidget { diff --git a/flutter-ory-network/pubspec.yaml b/flutter-ory-network/pubspec.yaml index 9ff7130..42d5637 100644 --- a/flutter-ory-network/pubspec.yaml +++ b/flutter-ory-network/pubspec.yaml @@ -2,7 +2,7 @@ name: ory_network_flutter description: A new Flutter project. # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: "none" # Remove this line if you wish to publish to pub.dev # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=3.0.6 <4.0.0' + sdk: ">=3.0.6 <4.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -31,7 +31,6 @@ dependencies: flutter: sdk: flutter - # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 @@ -67,7 +66,6 @@ dev_dependencies: # The following section is specific to Flutter packages. flutter: - # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. @@ -79,7 +77,6 @@ flutter: - assets/images/ - assets/icons/ - # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware diff --git a/flutter-ory-network/test/widget_test.dart b/flutter-ory-network/test/widget_test.dart index 35bed1f..8312ddf 100644 --- a/flutter-ory-network/test/widget_test.dart +++ b/flutter-ory-network/test/widget_test.dart @@ -1,3 +1,6 @@ +// Copyright © 2023 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester