Skip to content

Commit acc0b51

Browse files
committed
Update at_contact to use pubdev archetype
1 parent 05f0282 commit acc0b51

12 files changed

+269
-40
lines changed

CONTRIBUTING.md

+76-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Contributing guidelines
66

7-
We :heart: [Pull Requests](https://help.github.com/articles/about-pull-requests/)
7+
We 💙 [Pull Requests](https://help.github.com/articles/about-pull-requests/)
88
for fixing issues or adding features. Thanks for your contribution!
99

1010
Please read our [code of conduct](code_of_conduct.md), which is based on
@@ -68,7 +68,6 @@ To prepare your dedicated GitHub repository:
6868
git fetch upstream
6969
```
7070

71-
7271
1. Reset your fork's `trunk` branch to exactly match upstream `trunk`:
7372

7473
```sh
@@ -94,4 +93,78 @@ To prepare your dedicated GitHub repository:
9493
# explain tests here
9594
```
9695

97-
1. Open a new Pull Request to the main repository using your `trunk` branch
96+
1. Open a new Pull Request to the main repository using your `trunk` branch
97+
98+
99+
## @‎library release process
100+
101+
The @ Foundation produces several widgets and libraries that the app developer
102+
can make use of to develop apps on @‎protocol. These libraries are developed in
103+
Dart & Flutter and published to [pub.dev](https://pub.dev/publishers/atsign.org/packages).
104+
105+
![alt_text](images/image1.png "Version flow")
106+
107+
## Following the changes
108+
109+
The @ Foundation publishes libraries and widgets to
110+
[https://pub.dev/publishers/atsign.org/packages](https://pub.dev/publishers/atsign.org/packages).
111+
Each of these libraries contains a tab called “Changelog” that shows various
112+
published versions and a short description of what changes that went in.
113+
114+
![alt_text](images/image2.png "Changelog screenshot")
115+
116+
Also the “Versions” tab shows the versions published in the reverse
117+
chronological order.
118+
119+
![alt_text](images/image3.png "Versions screenshot")
120+
121+
## Reporting a bug
122+
123+
The best place to start reporting bugs on the libraries published by
124+
@‎protocol would be the “View/report issues” link available on
125+
[pub.dev](https://pub.dev/publishers/atsign.org/packages).
126+
127+
![alt_text](images/image4.png "View/report issues highlight")
128+
129+
Once the link is clicked, one should be redirected to GitHub repo where the
130+
issue can be reported by clicking on the “New issue” button.
131+
132+
![alt_text](images/image5.png "Issues list")
133+
134+
Clicking on the “New issue” button should take you to the screen to choose
135+
where the issue is a Bug or an Enhancement.
136+
137+
![alt_text](images/image6.png "Choose Bug report")
138+
139+
Upon clicking on the “Get started” button against the “Bug Report” you should
140+
be directed to a page with a bug template provided by the @company. Filling
141+
out all of the fields in the template gives the @company a better chance to
142+
reproduce and fix the bug.
143+
144+
![alt_text](images/image7.png "Filling a Bug report")
145+
146+
## Bug fix and delivery process
147+
148+
* Bugs will initially be placed into the Sprint Planning Board so that they
149+
can be triaged, estimated and scheduled.
150+
* Once work on a bug is scheduled one or more engineers will be assigned to
151+
fixing the bug, and story points will be allocated to match the time estimated
152+
to fix the bug.
153+
* Progress on fixing the bug will be updated in the associated GitHub issue,
154+
and reviewed during subsequent sprint planning meetings where necessary.
155+
* Once a fix is created we will work with the reporter to ensure that the fix
156+
is appropriate to their needs, and where possible this should happen prior to
157+
release to pub.dev
158+
159+
## Closure of the bug
160+
161+
* Where possible the issue associated with the bug should be closed by mutual
162+
consent with the reporter. This could be:
163+
* The reporter closing the issue because they have found a workaround.
164+
* The reporter closing the issue because they are satisfied with a fix
165+
provided.
166+
* A team member closes the issue after the reporter leaves a comment
167+
indicating that they are happy for it to be closed.
168+
* If the reporter does not respond within 14 calendar days then we must assume
169+
that they no longer have an interest in fixing the bug and work in progress can
170+
be closed out at the team’s discretion.

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
<img src="https://atsign.dev/assets/img/@dev.png?sanitize=true">
1+
# at_libraries
22

3-
### Now for a little internet optimism
3+
<img width=250px src="https://atsign.dev/assets/img/@platform_logo_grey.svg?sanitize=true">
44

55
[![Build Status](https://github.com/atsign-foundation/at_libraries/actions/workflows/at_libraries.yaml/badge.svg?branch=trunk)](https://github.com/atsign-foundation/at_libraries/actions/workflows/at_libraries.yaml)
66
[![GitHub License](https://img.shields.io/badge/license-BSD3-blue.svg)](./LICENSE)
77

8-
9-
# at_libraries
108
Welcome to at_libraries. This project is open with intent—we encourage contributions, and we want pull requests to hear about issues.
119

1210
## What is this for?

at_contact/CHANGELOG.md

+38-19
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,54 @@
1+
## 3.0.5+1
2+
3+
- **Chore**: Updated documentation.
4+
15
## 3.0.5
2-
- at_client version upgrade for automatic sync trigger
6+
- **Feat**: Upgraded the at_client version to enable automatic sync trigger.
7+
38
## 3.0.4
4-
- at_commons version upgrade for AtTimeoutException
5-
- at_client version upgrade for refactor get and put methods.
9+
- **Chore**: Upgraded the at_commons version for AtTimeoutException.
10+
- **Chore**: Upgraded the at_client version upgrade for refactored get and put methods.
11+
612
## 3.0.3
7-
- at_client,at_commons,at_utils version upgrade
13+
- **Chore**: Upgraded the at_client, at_commons, at_utils versions.
14+
815
## 3.0.2
9-
- uptake AtKey validations from at_commons package.
16+
- **Chore**: AtKey validations from at_commons package.
17+
1018
## 3.0.1
11-
- at_client version upgrade
19+
- **Chore**: Upgraded the at_client version.
20+
1221
## 3.0.0
13-
- RSDK uptake
22+
- **BREAKING CHANGE**: Uptake of at_client 3.0.0.
23+
1424
## 2.0.3
15-
- support namespace migration changes
25+
- **Feat**: Support namespace migration changes.
26+
1627
## 2.0.2
17-
- at_commons version upgrade
28+
- **Chore**: Upgraded the at_commons version.
29+
1830
## 2.0.1
19-
- at_commons version upgrade
31+
- **Chore**: Upgraded the at_commons version.
32+
2033
## 2.0.0
21-
- Null safety changes
34+
- **BREAKING CHANGE**: Null safety changes
35+
2236
## 1.0.0+5
23-
- at_client version upgrade
37+
- **Chore**: Upgraded the at_client version.
38+
2439
## 1.0.0+4
25-
- Third party package dependency upgrade
40+
- **Chore**: Third party package dependency upgrade.
41+
2642
## 1.0.0+3
27-
- Added listGroupIds method
43+
- **Feat**: Added listGroupIds method.
44+
2845
## 1.0.0+2
29-
- Added groupId as unique identifier
30-
- Renamed 'name' as 'groupName'
31-
- Reverted groupMembersKey to groupMembers
46+
- **Feat**: Added groupId as unique identifier.
47+
- **Chore**: Renamed 'name' as 'groupName'.
48+
- **Chore**: Reverted groupMembersKey to groupMembers.
49+
3250
## 1.0.0+1
33-
- at-contact group changes
51+
- **Fix**: at_contact group changes.
52+
3453
## 1.0.0
35-
- Initial version, created by Stagehand
54+
- Initial version, created by Stagehand.

at_contact/README.md

+152-13
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,110 @@
1-
<img width="250" src="https://atsign.dev/assets/img/@platform_logo_grey.svg?sanitize=true"/>
1+
# at_contact
22

3-
## Now for some internet optimism
3+
<!---
4+
Adding the @‎platform logos gives a nice look for your readme
5+
-->
6+
<img width=250px src="https://atsign.dev/assets/img/@platform_logo_grey.svg?sanitize=true">
47

8+
<!---
9+
Add a badge bar for your package by replacing at_contact below with
10+
your package name below and at_libraries with the name of the repo
11+
-->
512
[![pub package](https://img.shields.io/pub/v/at_contact)](https://pub.dev/packages/at_contact) [![pub points](https://badges.bar/at_contact/pub%20points)](https://pub.dev/packages/at_contact/score) [![gitHub license](https://img.shields.io/badge/license-BSD3-blue.svg)](./LICENSE)
613

7-
# at_contact
14+
<!--- this is a table version
15+
| [![pub package](https://img.shields.io/pub/v/at_contact)](https://pub.dev/packages/at_contact) | [![pub points](https://badges.bar/at_contact/pub%20points)](https://pub.dev/packages/at_contact/score) | [![build status](https://github.com/atsign-foundation/at_libraries/actions/workflows/at_libraries.yaml/badge.svg?branch=trunk)](https://github.com/atsign-foundation/at_libraries/actions/workflows/at_libraries.yaml) | [![gitHub license](https://img.shields.io/badge/license-BSD3-blue.svg)](./LICENSE)
16+
|------|------|------|------|------|
17+
-->
18+
## Overview
19+
<!---
20+
## Who is this for?
21+
The README should be addressed to somebody who's never seen this before.
22+
But also don't assume that they're a novice.
23+
-->
24+
The at_contact package is for Flutter developers who would like to persist contacts in their @platform application. The at_contact library provides features to add, update, and delete contacts on the @platform.
25+
26+
<!---
27+
Give some context and state the intent - we welcome contributions - we want
28+
pull requests and to hear about issues. Include the boilerplate language
29+
below to add some context to @‎platform packages
30+
-->
31+
This open source package is written in Dart, supports Flutter and follows the
32+
@‎platform's decentralized, edge computing model with the following features:
33+
- Cryptographic control of data access through personal data stores
34+
- No application backend needed
35+
- End to end encryption where only the data owner has the keys
36+
- Private and surveillance free connectivity
37+
38+
We call giving people control of access to their data “flipping the internet”
39+
and you can learn more about how it works by reading this
40+
[overview](https://atsign.dev/docs/overview/).
41+
42+
<!---
43+
Does this package publish to pub.dev or similar? This README will be the
44+
first thing that developers see there and should be written such that it
45+
lets them quickly assess if it fits their need.
46+
-->
47+
## Get started
48+
There are three options to get started using this package.
49+
50+
<!---
51+
If the package has a template that at_app uses to generate a skeleton app,
52+
that is the quickest way for a developer to assess it and get going with
53+
their app.
54+
-->
55+
<!-- ### 1. Quick start - generate a skeleton app with at_app
56+
This package includes a working sample application in the
57+
[Example](./example) directory that you can use to create a personalized
58+
copy using ```at_app create``` in four commands.
59+
60+
```sh
61+
$ flutter pub global activate at_app
62+
$ at_app create --sample=<package ID> <app name>
63+
$ cd <app name>
64+
$ flutter run
65+
```
66+
Notes:
67+
1. You only need to run ```flutter pub global activate``` once
68+
2. Use ```at_app.bat``` for Windows -->
69+
70+
71+
<!---
72+
Cloning the repo and example app from GitHub is the next option for a
73+
developer to get started.
74+
-->
75+
### 1. Clone it from GitHub
76+
<!---
77+
Make sure to edit the link below to refer to your package repo.
78+
-->
79+
Feel free to fork a copy of the source from the [GitHub repo](https://github.com/atsign-foundation/at_libraries).
80+
81+
```sh
82+
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
83+
```
884

9-
### Introduction
85+
<!---
86+
The last option is to use the traditionaL instructions for adding the package to a project which can be found on pub.dev.
87+
Please be sure to replace the package name in the url below the right one for this package.
88+
-->
89+
### 2. Manually add the package to a project
1090

11-
at_contact library persists contacts across different @platform applications. at_contact library provides a contact feature where we can add a new contact. Update/delete an existing contact.
12-
**at_contact** package is written in Dart.
91+
Instructions on how to manually add this package to you project can be found on pub.dev [here](https://pub.dev/packages/at_client/install).
1392

14-
## Get Started
93+
<!---
94+
Include an explanation on how to setup and use the package
95+
-->
96+
## How it works
1597

16-
Initially to get a basic overview of the @protocol packages, You must read the [atsign docs](https://atsign.dev/docs/overview/).
98+
<!---
99+
Add details on how to setup the package
100+
-->
101+
### Setup
17102

18-
> To use this package you must be having a basic setup, Follow here to [get started](https://atsign.dev/docs/get-started/setup-your-env/).
103+
```sh
104+
$ dart pub add at_contact
19105

20-
# Usage
106+
```
107+
### Usage
21108

22109
- Create an instance of `AtContactsImpl`, We make use of `AtClientManager` for `AtClient` to be passed.
23110

@@ -31,7 +118,7 @@ AtClient atClientInstance = AtClientManager.getInstance().atClient;
31118
AtContactsImpl _atContact = AtContactsImpl(atClientInstance, atClientInstance.getCurrentAtSign());
32119
```
33120

34-
### Contacts
121+
#### Contacts
35122

36123
- If the user wants to add a contact, call `add()` function from the `_atContact` instance. Provide the contact details to `add()` function.
37124

@@ -124,7 +211,7 @@ Future<void> _listFavoriteContacts() async {
124211
}
125212
```
126213

127-
### Groups
214+
#### Groups
128215

129216
- So far we have looked into contacts, Now let us know how `AtGroup`s to be used.
130217

@@ -295,8 +382,60 @@ print(atSign + ' is ${isAMember ? '' : 'not'} a member of ' + myGroup.groupName)
295382
// @somerandomatsign is not a member of The @Platform team
296383
```
297384

298-
## Additional content
385+
For more information, please see the API documentation listed on pub.dev.
386+
387+
<!---
388+
If we have any pages for these docs on atsign.dev site, it would be
389+
good to add links.(optional)
390+
-->
391+
### Additional content
299392

300393
- We have developed some realtime Applications using this library called [@mosphere-pro](https://atsign.com/apps/atmosphere-pro/), [@buzz](https://atsign.com/apps/buzz/), [@rrive (Google play store)](https://play.google.com/store/apps/details?id=com.atsign.arrive) / [@rrive (App Store)](https://apps.apple.com/in/app/rrive/id1542050548).
301394

302395
- Flutter implementation of this library can be found in [at_contacts_flutter](https://pub.dev/packages/at_contacts_flutter) package.
396+
<!---
397+
You should include language like below if you would like others to contribute
398+
to your package.
399+
-->
400+
401+
## Open source usage and contributions
402+
This is open source code, so feel free to use it as is, suggest changes or
403+
enhancements or create your own version. See [CONTRIBUTING.md](CONTRIBUTING.md)
404+
for detailed guidance on how to setup tools, tests and make a pull request.
405+
406+
<!---
407+
Have we correctly acknowledged the work of others (and their Trademarks etc.)
408+
where appropriate (per the conditions of their LICENSE?
409+
-->
410+
<!-- ## Acknowledgement/attribution -->
411+
412+
<!---
413+
Who created this?
414+
Do they have complete GitHub profiles?
415+
How can they be contacted?
416+
Who is going to respond to pull requests?
417+
-->
418+
<!-- ## Maintainers -->
419+
420+
<!---
421+
## Checklist
422+
423+
- [ ] Writing and style
424+
Does the writing flow, with proper grammar and correct spelling?
425+
426+
- [ ] SEO
427+
Always keep in mind that developers will often use search to find solutions
428+
to their needs. Make sure and add in terms that will help get this package to
429+
the top of the search results for google, pub.dev and medium.com as a minimum.
430+
431+
- [ ] Links
432+
Are the links to external resources correct?
433+
Are the links to other parts of the project correct
434+
(beware stuff carried over from previous repos where the
435+
project might have lived during earlier development)?
436+
437+
- [ ] LICENSE
438+
Which LICENSE are we using?
439+
Is the LICENSE(.md) file present?
440+
Does it have the correct dates, legal entities etc.?
441+
-->

at_contact/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: at_contact
22
description: A Dart library for managing contact data that developers can use
33
for their applications.
44
documentation: https://atsign.dev/docs/
5-
version: 3.0.5
5+
version: 3.0.5+1
66
repository: https://github.com/atsign-foundation/at_libraries
77
homepage: https://atsign.dev
88
environment:

images/image1.png

119 KB
Loading

images/image2.png

381 KB
Loading

images/image3.png

362 KB
Loading

images/image4.png

548 KB
Loading

images/image5.png

826 KB
Loading

images/image6.png

150 KB
Loading

images/image7.png

450 KB
Loading

0 commit comments

Comments
 (0)