Skip to content

Commit 1c7e30c

Browse files
committed
Renames the package to permify
1 parent 38ba0af commit 1c7e30c

8 files changed

+30
-28
lines changed

.flutter-plugins-dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences_foundation","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"shared_preferences_android","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"shared_preferences_foundation","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.3.2/","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.3.2/","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_web-2.2.2/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2024-03-01 10:24:21.025452","version":"3.16.8"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences_foundation","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"shared_preferences_android","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"shared_preferences_foundation","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.3.2/","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.3.2/","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/felixnyabwari/.pub-cache/hosted/pub.dev/shared_preferences_web-2.2.2/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2024-03-02 05:22:46.618502","version":"3.16.8"}

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Flutter Permify
1+
# Permify
22

3-
Flutter Permify is a powerful and intuitive package designed to streamline role-based access control (RBAC) and permission management in Flutter applications. Built on top of Laravel's renowned Spatie Permissions plugin, Permify offers a seamless integration with familiar concepts and practices, making it easy for Flutter developers to implement granular access control within their applications.
3+
Permify is a powerful and intuitive package designed to streamline role-based access control (RBAC) and permission management in Flutter applications. Built on top of Laravel's renowned Spatie Permissions plugin, Permify offers a seamless integration with familiar concepts and practices, making it easy for Flutter developers to implement granular access control within their applications.
44

5-
With Flutter Permify, you can define custom roles and assign fine-grained permissions to each role, enabling precise control over user access to different parts of your application. Whether you're building a simple mobile app or a complex enterprise solution, Permify provides the flexibility and scalability to adapt to your unique security requirements.
5+
With Permify, you can define custom roles and assign fine-grained permissions to each role, enabling precise control over user access to different parts of your application. Whether you're building a simple mobile app or a complex enterprise solution, Permify provides the flexibility and scalability to adapt to your unique security requirements.
66

77
## Features
88

@@ -14,7 +14,7 @@ With Flutter Permify, you can define custom roles and assign fine-grained permis
1414

1515
## Getting Started
1616

17-
To get started with Flutter Permify, make sure you have the following prerequisites:
17+
To get started with Permify, make sure you have the following prerequisites:
1818

1919
- Flutter SDK installed on your machine
2020
- Basic knowledge of Dart programming language
@@ -24,7 +24,7 @@ Once you have the prerequisites, you can install the package by adding it to you
2424

2525
```yaml
2626
dependencies:
27-
flutter_permify: ^1.0.0
27+
permify: ^1.0.0
2828
```
2929
3030
After adding the package to your project, run the following command to install it:
@@ -35,12 +35,12 @@ flutter pub get
3535

3636
## Usage
3737

38-
Here's a simple example demonstrating how to use Flutter Permify to manage permissions and roles:
38+
Here's a simple example demonstrating how to use Permify to manage permissions and roles:
3939

4040
```dart
4141
4242
import 'package:flutter/material.dart';
43-
import 'package:flutter_permify/flutter_permify.dart';
43+
import 'package:permify/permify.dart';
4444
4545
void main() async {
4646
WidgetsFlutterBinding.ensureInitialized();
@@ -58,23 +58,23 @@ void main() async {
5858

5959
## Example
6060

61-
![Flutter Permify](https://github.com/fenicfelix/flutter_permify/blob/main/screenshots/GIF.gif)
61+
![Permify](https://github.com/fenicfelix/flutter_permify/blob/main/screenshots/GIF.gif)
6262

6363
The above example uses the `Permify` class to set permissions and roles, and then checks if a user has a specific permission or role. You can use the `Permify` class to perform various operations, such as creating permissions, assigning permissions to roles, and checking user access rights.
6464

6565
## Dependencies
6666

67-
Flutter Permify is built on top of the following packages:
67+
Permify is built on top of the following packages:
6868

6969
- [Shared preferences plugin](https://pub.dev/packages/shared_preferences) - For storing permissions and roles
7070
- [Smart Edge Alert](https://pub.dev/packages/smart_edge_alert) - For displaying alerts
7171

7272
## Inspiration
7373

74-
The inspiration for Flutter Permify comes from [Laravel's Spatie Permissions](https://spatie.be/docs/laravel-permission/v5/introduction) package, which is widely used in the PHP community for role-based access control. Flutter Permify aims to bring the same level of flexibility and convenience to the Flutter ecosystem, making it easier for developers to manage permissions and roles in their applications.
74+
The inspiration for Permify comes from [Laravel's Spatie Permissions](https://spatie.be/docs/laravel-permission/v5/introduction) package, which is widely used in the PHP community for role-based access control. Permify aims to bring the same level of flexibility and convenience to the Flutter ecosystem, making it easier for developers to manage permissions and roles in their applications.
7575

7676
## Additional Information
77-
For more information about Flutter Permify, how to contribute to the package, file issues, or get support, please visit the GitHub repository.
77+
For more information about Permify, how to contribute to the package, file issues, or get support, please visit the GitHub repository.
7878

7979
Contributions, bug reports, and feature requests are welcome! Feel free to submit a pull request or open an issue on GitHub.
8080

example/lib/main.dart

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'package:flutter_permify/flutter_permify.dart';
2+
import 'package:permify/permify.dart';
33
import 'package:smart_edge_alert/smart_edge_alert.dart';
44

55
void main() {
@@ -13,12 +13,12 @@ class MyApp extends StatelessWidget {
1313
@override
1414
Widget build(BuildContext context) {
1515
return MaterialApp(
16-
title: 'Flutter Permify',
16+
title: 'Permify',
1717
theme: ThemeData(
1818
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
1919
useMaterial3: true,
2020
),
21-
home: const MyHomePage(title: 'Flutter Permify Example'),
21+
home: const MyHomePage(title: 'Permify Example'),
2222
);
2323
}
2424
}
@@ -108,17 +108,19 @@ class _MyHomePageState extends State<MyHomePage> {
108108
},
109109
child: const Text('Create'),
110110
),
111+
111112
/// read button
112113
ElevatedButton(
113114
onPressed: read,
114115
child: const Text('Read'),
115116
),
117+
116118
/// update button
117119
ElevatedButton(
118120
onPressed: update,
119121
child: const Text('Update'),
120122
),
121-
123+
122124
/// delete button
123125
ElevatedButton(
124126
onPressed: delete,

example/pubspec.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ packages:
8686
url: "https://pub.dev"
8787
source: hosted
8888
version: "2.0.3"
89-
flutter_permify:
90-
dependency: "direct dev"
91-
description:
92-
path: ".."
93-
relative: true
94-
source: path
95-
version: "0.0.1"
9689
flutter_test:
9790
dependency: "direct dev"
9891
description: flutter
@@ -167,6 +160,13 @@ packages:
167160
url: "https://pub.dev"
168161
source: hosted
169162
version: "2.2.1"
163+
permify:
164+
dependency: "direct dev"
165+
description:
166+
path: ".."
167+
relative: true
168+
source: path
169+
version: "0.0.1"
170170
platform:
171171
dependency: transitive
172172
description:

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dev_dependencies:
4141
flutter_test:
4242
sdk: flutter
4343

44-
flutter_permify:
44+
permify:
4545
path: ../
4646

4747
# The "flutter_lints" package below contains a set of recommended lints to

lib/flutter_permify.dart lib/permify.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library flutter_permify;
1+
library permify;
22

33
/// Import the required packages
44
import 'package:shared_preferences/shared_preferences.dart';

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: flutter_permify
1+
name: permify
22
description: A comprehensive Flutter package that simplifies role-based access control (RBAC) and permission management within your Flutter applications.
33
version: 0.0.1
4-
homepage: https://github.com/fenicfelix/flutter-permify
4+
homepage: https://github.com/fenicfelix/permify
55

66
environment:
77
sdk: '>=3.1.4 <4.0.0'

test/flutter_permify_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import 'package:flutter_permify/flutter_permify.dart';
21
import 'package:flutter_test/flutter_test.dart';
2+
import 'package:permify/permify.dart';
33

44
void main() {
55
test('flutter_permify_test', () {

0 commit comments

Comments
 (0)