Skip to content

Commit 968e891

Browse files
authored
Merge pull request #7 from aspicas/feature/update-flutter-version
Feature/update flutter version
2 parents 1310523 + a80f46f commit 968e891

File tree

210 files changed

+26043
-20
lines changed

Some content is hidden

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

210 files changed

+26043
-20
lines changed

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "stable"
2+
"flutter": "3.29.3"
33
}

analysis_options.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,25 @@ include: package:flutter_lints/flutter.yaml
22

33
# Additional information about this file can be found at
44
# https://dart.dev/guides/language/analysis-options
5+
6+
linter:
7+
rules:
8+
# Documentation
9+
public_member_api_docs: true
10+
11+
# Performance
12+
avoid_print: true
13+
prefer_const_constructors: true
14+
prefer_const_declarations: true
15+
16+
# Style
17+
prefer_final_locals: true
18+
prefer_single_quotes: true
19+
20+
# Safety
21+
avoid_dynamic_calls: true
22+
avoid_type_to_string: true
23+
24+
# Library specific
25+
library_private_types_in_public_api: true
26+
missing_whitespace_between_adjacent_strings: true

example/.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea/
20+
21+
# The .vscode folder contains launch configuration and tasks you configure in
22+
# VS Code which you may wish to be included in version control, so this line
23+
# is commented out by default.
24+
#.vscode/
25+
26+
# Flutter/Dart/Pub related
27+
**/doc/api/
28+
**/ios/Flutter/.last_build_id
29+
.dart_tool/
30+
.flutter-plugins
31+
.flutter-plugins-dependencies
32+
.pub-cache/
33+
.pub/
34+
/build/
35+
36+
# Symbolication related
37+
app.*.symbols
38+
39+
# Obfuscation related
40+
app.*.map.json
41+
42+
# Android Studio will place build artifacts here
43+
/android/app/debug
44+
/android/app/profile
45+
/android/app/release

example/.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
17+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
18+
- platform: android
19+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
20+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
21+
- platform: ios
22+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
23+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
24+
- platform: linux
25+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
26+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
27+
- platform: macos
28+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
29+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
30+
- platform: web
31+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
32+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
33+
- platform: windows
34+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
35+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# flutter_policy_engine_example
2+
3+
A comprehensive example demonstrating how to use the `flutter_policy_engine` library for implementing Attribute-Based Access Control (ABAC) and Role-Based Access Control (RBAC) in Flutter applications.
4+
5+
## Overview
6+
7+
The `flutter_policy_engine` library provides a lightweight, extensible policy engine for Flutter applications. It allows you to define, manage, and evaluate access control rules declaratively using ABAC or RBAC models.
8+
9+
## Features Demonstrated
10+
11+
- **Attribute-Based Access Control (ABAC)**: Define policies based on user attributes, resource properties, and environmental factors
12+
- **Role-Based Access Control (RBAC)**: Implement role-based permissions with hierarchical role structures
13+
- **Declarative Rule Definitions**: Define policies using a clean, readable syntax
14+
- **Extensible Design**: Easily extend the engine with custom evaluators and conditions
15+
- **Flutter Integration**: Seamless integration with Flutter widgets and state management
16+
17+
## Installation
18+
19+
Add the `flutter_policy_engine` dependency to your `pubspec.yaml`:
20+
21+
```yaml
22+
dependencies:
23+
flutter_policy_engine: ^0.0.1
24+
```
25+
26+
Then run:
27+
28+
```bash
29+
flutter pub get
30+
```
31+
32+
## Basic Usage
33+
34+
### 1. Import the Library
35+
36+
```dart
37+
import 'package:flutter_policy_engine/flutter_policy_engine.dart';
38+
```

example/analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

example/android/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

example/android/app/.cxx/Debug/28432r45/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2

Whitespace-only changes.

example/android/app/.cxx/Debug/28432r45/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1

Whitespace-only changes.

example/android/app/.cxx/Debug/28432r45/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2

Whitespace-only changes.

0 commit comments

Comments
 (0)