Merge branch 'main' into independent
36
.github/workflows/cla.yaml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: "CLA Assistant"
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, closed, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
CLAAssistant:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "CLA Assistant"
|
||||||
|
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
|
||||||
|
# Beta Release
|
||||||
|
uses: contributor-assistant/github-action@v2.2.1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# the below token should have repo scope and must be manually added by you in the repository's secret
|
||||||
|
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
|
with:
|
||||||
|
path-to-signatures: "signatures/version1/cla.json"
|
||||||
|
path-to-document: "https://github.com/ente-io/cla/blob/main/CLA.md" # e.g. a CLA or a DCO document
|
||||||
|
# branch should not be protected
|
||||||
|
branch: "main"
|
||||||
|
allowlist: enteio
|
||||||
|
|
||||||
|
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
|
||||||
|
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
|
||||||
|
remote-repository-name: cla
|
||||||
|
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
|
||||||
|
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
|
||||||
|
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
|
||||||
|
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
|
||||||
|
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
|
||||||
|
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
|
||||||
|
#use-dco-flag: true - If you are using DCO instead of CLA
|
98
CLA.md
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
## Contributor License Agreement
|
||||||
|
|
||||||
|
Thank you for your contribution to ente projects.
|
||||||
|
|
||||||
|
This contributor license agreement documents the rights granted by contributors
|
||||||
|
to Ente Technologies, Inc ("ente"). This license is for your protection as a
|
||||||
|
Contributor as well as the protection of ente, its users, and its licensees; you
|
||||||
|
may still license your own Contributions under other terms.
|
||||||
|
|
||||||
|
In exchange for the ability to participate in the ente community and for other
|
||||||
|
good consideration, the receipt of which is hereby acknowledged, you accept and
|
||||||
|
agree to the following terms and conditions for Your present and future
|
||||||
|
Contributions submitted to ente. Except for the license granted herein to ente
|
||||||
|
and recipients of software distributed by ente, You reserve all right, title,
|
||||||
|
and interest in and to Your Contributions.
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean the copyright owner or legal entity authorized
|
||||||
|
by the copyright owner that is making this Agreement with ente. For legal
|
||||||
|
entities, the entity making a Contribution and all other entities that
|
||||||
|
control, are controlled by, or are under common control with that entity are
|
||||||
|
considered to be a single Contributor. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the direction or
|
||||||
|
management of such entity, whether by contract or otherwise, or (ii)
|
||||||
|
ownership of fifty percent (50%) or more of the outstanding shares, or (iii)
|
||||||
|
beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"Contribution" shall mean any original work of authorship or invention,
|
||||||
|
including any modifications or additions to an existing work, that is
|
||||||
|
intentionally submitted by You to ente for inclusion in, or documentation of,
|
||||||
|
any of the products owned or managed by ente (the "Work"). For the purposes
|
||||||
|
of this definition, "submitted" means any form of electronic, verbal, or
|
||||||
|
written communication sent to ente or its representatives, including but not
|
||||||
|
limited to communication on electronic mailing lists, source code control
|
||||||
|
systems, and issue tracking systems that are managed by, or on behalf of,
|
||||||
|
ente for the purpose of discussing and improving the Work, but excluding
|
||||||
|
communication that is conspicuously marked or otherwise designated in writing
|
||||||
|
by You as "Not a Contribution."
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of this
|
||||||
|
Agreement, You hereby grant to ente and to recipients of software distributed
|
||||||
|
by ente a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
||||||
|
irrevocable copyright license to reproduce, prepare derivative works of,
|
||||||
|
publicly display, publicly perform, and distribute Your Contributions and
|
||||||
|
such derivative works.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of this
|
||||||
|
Agreement, You hereby grant to ente and to recipients of software distributed
|
||||||
|
by ente a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
||||||
|
irrevocable (except as stated in this section) patent license to make, have
|
||||||
|
made, use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable by You that
|
||||||
|
are necessarily infringed by Your Contribution(s) alone or by combination of
|
||||||
|
Your Contribution(s) with the Work to which such Contribution(s) was
|
||||||
|
submitted. If any entity institutes patent litigation against You or any
|
||||||
|
other entity (including a cross-claim or counterclaim in a lawsuit) alleging
|
||||||
|
that your Contribution, or the Work to which you have contributed,
|
||||||
|
constitutes direct or contributory patent infringement, then any patent
|
||||||
|
licenses granted to that entity under this Agreement for that Contribution or
|
||||||
|
Work shall terminate as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. You represent that you are legally entitled to grant the above license. If
|
||||||
|
your employer(s) has rights to intellectual property that you create that
|
||||||
|
includes your Contributions, you represent that you have received permission
|
||||||
|
to make Contributions on behalf of that employer, that your employer has
|
||||||
|
waived such rights for your contributions to ente, or that your employer has
|
||||||
|
executed with ente a separate contributor license agreement substantially
|
||||||
|
similar to this Agreement. If You are a current employee or contractor of
|
||||||
|
ente, then the terms of your existing Employment Agreement or Consulting
|
||||||
|
Services Agreement shall supersede this CLA, and remain in full effect.
|
||||||
|
|
||||||
|
5. You represent that each of Your Contributions is Your original creation (see
|
||||||
|
section 7 for submissions on behalf of others). You represent that Your
|
||||||
|
Contribution submissions include complete details of any third-party license
|
||||||
|
or other restriction (including, but not limited to, related patents and
|
||||||
|
trademarks) of which you are personally aware and which are associated with
|
||||||
|
any part of Your Contributions.
|
||||||
|
|
||||||
|
6. You are not expected to provide support for Your Contributions, except to the
|
||||||
|
extent You desire to provide support. You may provide support for free, for
|
||||||
|
a fee, or not at all. Unless required by applicable law or agreed to in
|
||||||
|
writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT
|
||||||
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including,
|
||||||
|
without limitation, any warranties or conditions of title, non-infringement,
|
||||||
|
merchantability, or fitness for a particular purpose.
|
||||||
|
|
||||||
|
7. Should You wish to submit work that is not Your original creation, You may
|
||||||
|
submit it to ente separately from any Contribution, identifying the complete
|
||||||
|
details of its source and of any license or other restriction (including, but
|
||||||
|
not limited to, related patents, trademarks, and license agreements) of which
|
||||||
|
you are personally aware, and conspicuously marking the work as "Not a
|
||||||
|
Contribution". Third-party materials licensed pursuant to: [license name(s)
|
||||||
|
here]" (substituting the bracketed text with the appropriate license
|
||||||
|
name(s)).
|
||||||
|
|
||||||
|
8. You agree to notify ente of any facts or circumstances of which you become
|
||||||
|
aware that would make these representations inaccurate in any respect.
|
687
LICENSE
|
@ -1,21 +1,674 @@
|
||||||
MIT License
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (c) 2021 Very Good Ventures
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Preamble
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The GNU General Public License is a free, copyleft license for
|
||||||
copies or substantial portions of the Software.
|
software and other kinds of works.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
The licenses for most software and other practical works are designed
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
to take away your freedom to share and change the works. By contrast,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
share and change all versions of a program--to make sure it remains free
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
GNU General Public License for most of our software; it applies also to
|
||||||
SOFTWARE.
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
|
|
42
README.md
|
@ -3,6 +3,10 @@
|
||||||
ente's Authenticator app helps you generate and store 2 step verification (2FA)
|
ente's Authenticator app helps you generate and store 2 step verification (2FA)
|
||||||
tokens on your mobile devices.
|
tokens on your mobile devices.
|
||||||
|
|
||||||
|
[Download now](#-download)
|
||||||
|
|
||||||
|
![App Screenshots](./screenshots/screenshots.png)
|
||||||
|
|
||||||
## ✨ Features
|
## ✨ Features
|
||||||
|
|
||||||
### Secure Backups
|
### Secure Backups
|
||||||
|
@ -43,22 +47,37 @@ file, that adheres to the above format.
|
||||||
|
|
||||||
### Android
|
### Android
|
||||||
|
|
||||||
You can download the latest version from [GitHub
|
This repository's [GitHub
|
||||||
releases](https://github.com/ente-io/auth/releases/latest/download/ente-auth.apk).
|
releases](https://github.com/ente-io/auth/releases/latest/download/ente-auth.apks)
|
||||||
The downloaded APK will keep itself updated.
|
contains APKs, built straight from source. These builds keep themselves updated,
|
||||||
|
without relying on third party stores.
|
||||||
|
|
||||||
|
You can alternatively install the build from PlayStore.
|
||||||
|
|
||||||
|
<a href="https://play.google.com/store/apps/details?id=io.ente.auth"> <img
|
||||||
|
width="197" alt="Get it on Google Play"
|
||||||
|
src="https://ente.io/static/ed265c3abdcd3efa5e29f64b927bcb44/e230a/play-store-badge.webp">
|
||||||
|
</a>
|
||||||
|
|
||||||
### iOS
|
### iOS
|
||||||
|
|
||||||
The app is not live on the AppStore yet. If you would like access, please write
|
<a href="https://apps.apple.com/us/app/ente-authenticator/id6444121398"> <img
|
||||||
to [auth@ente.io](mailto:auth@ente.io), and we will be happy to provide access
|
width="197" alt="Download on AppStore"
|
||||||
via TestFlight.
|
src="https://user-images.githubusercontent.com/1161789/154795157-c4468ff9-97fd-46f3-87fe-dca789d8733a.png">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
### Desktop
|
||||||
|
|
||||||
|
Support for desktop platforms (Linux, Mac and Windows) is a [work in
|
||||||
|
progress](https://github.com/ente-io/auth/tree/desktop).
|
||||||
|
|
||||||
|
Please ⭐ this repo to be notified of updates.
|
||||||
|
|
||||||
|
|
||||||
## 🔩 Architecture
|
## 🔩 Architecture
|
||||||
|
|
||||||
The architecture that powers end-to-end encrypted storage and sync of your
|
The architecture that powers end-to-end encrypted storage and sync of your
|
||||||
tokens has been documented [here](architecture/index.md).
|
tokens has been documented [here](architecture/README.md).
|
||||||
|
|
||||||
|
|
||||||
## 🧑💻 Building from source
|
## 🧑💻 Building from source
|
||||||
|
@ -75,10 +94,13 @@ tokens has been documented [here](architecture/index.md).
|
||||||
If you need help, please reach out to support@ente.io, and a human will get in
|
If you need help, please reach out to support@ente.io, and a human will get in
|
||||||
touch with you.
|
touch with you.
|
||||||
|
|
||||||
On the other hand, if you wish to support us, please
|
If you have feature requests, please create a [GitHub issue](./issues).
|
||||||
|
|
||||||
|
If you wish to support us, please ⭐
|
||||||
[star](https://github.com/ente-io/auth/stargazers) this project.
|
[star](https://github.com/ente-io/auth/stargazers) this project.
|
||||||
|
|
||||||
|
|
||||||
## 💜 Community
|
## 💜 Community
|
||||||
- Follow us on [Twitter](https://twitter.com/enteio)
|
|
||||||
- Join us on [Discord](https://ente.io/discord)
|
- Follow us on [Twitter](https://twitter.com/enteio) / [Mastodon](https://mstdn.social/@ente)
|
||||||
|
- Join us on [Discord](https://ente.io/discord) / [Matrix](https://ente.io/matrix)
|
||||||
|
|
|
@ -8,7 +8,7 @@ specifications of the underlying cryptography.
|
||||||
Your data is end-to-end encrypted with **ente**. Meaning, they are encrypted
|
Your data is end-to-end encrypted with **ente**. Meaning, they are encrypted
|
||||||
with your `keys` before they leave your device.
|
with your `keys` before they leave your device.
|
||||||
|
|
||||||
<img src="e2ee.svg" class="architecture-svg" style="max-width: 600px"
|
<img src="assets/e2ee.svg" class="architecture-svg" style="max-width: 600px"
|
||||||
title="End-to-end encryption in ente" />
|
title="End-to-end encryption in ente" />
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -39,7 +39,7 @@ leaves your device.
|
||||||
During registration, your `masterKey` is encrypted with your`keyEncryptionKey`,
|
During registration, your `masterKey` is encrypted with your`keyEncryptionKey`,
|
||||||
and the resultant `encryptedMasterKey` is then sent to our servers for storage.
|
and the resultant `encryptedMasterKey` is then sent to our servers for storage.
|
||||||
|
|
||||||
<img src="key-derivation.svg" class="architecture-svg" title="Key derivation" />
|
<img src="assets/key-derivation.svg" class="architecture-svg" title="Key derivation" />
|
||||||
|
|
||||||
#### <a id="key-encryption-flows-secondary-device"></a> Secondary Device
|
#### <a id="key-encryption-flows-secondary-device"></a> Secondary Device
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ leave your device unencrypted.
|
||||||
- All of the above mentioned encrypted data is then pushed to the server for
|
- All of the above mentioned encrypted data is then pushed to the server for
|
||||||
storage.
|
storage.
|
||||||
|
|
||||||
<img src="token-encryption.svg" class="architecture-svg" title="Token
|
<img src="assets/token-encryption.svg" class="architecture-svg" title="Token
|
||||||
encryption" />
|
encryption" />
|
||||||
|
|
||||||
#### Download
|
#### Download
|
||||||
|
@ -149,7 +149,7 @@ the server (as discussed in [Key Encryption](#key-encryption), and decrypts it
|
||||||
with the entered `recoveryKey`. If the decryption succeeds, the client will know
|
with the entered `recoveryKey`. If the decryption succeeds, the client will know
|
||||||
that you have entered the correct `recoveryKey`.
|
that you have entered the correct `recoveryKey`.
|
||||||
|
|
||||||
<img src="recovery.svg" class="architecture-svg" title="Recovery" />
|
<img src="assets/recovery.svg" class="architecture-svg" title="Recovery" />
|
||||||
|
|
||||||
Now that you have your `masterKey`, the client will prompt you to set a new
|
Now that you have your `masterKey`, the client will prompt you to set a new
|
||||||
password, using which it will derive a new `keyEncryptionKey`. This is then used
|
password, using which it will derive a new `keyEncryptionKey`. This is then used
|
||||||
|
@ -204,12 +204,12 @@ your `publicKey`. This `encryptedAuthToken` can only be decrypted with your
|
||||||
- This decrypted `authToken` can then from there on be used to authenticate all
|
- This decrypted `authToken` can then from there on be used to authenticate all
|
||||||
API calls against our servers.
|
API calls against our servers.
|
||||||
|
|
||||||
<img src="authentication.svg" class="architecture-svg" title="Authentication" />
|
<img src="assets/authentication.svg" class="architecture-svg" title="Authentication" />
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
Only by verifying access to your email and knowing your password can you obtain
|
Only by verifying access to your email and knowing your password can you obtain
|
||||||
an`authToken` that can be used to authenticate yourself against our servers.
|
an `authToken` that can be used to authenticate yourself against our servers.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 123 KiB |
|
@ -6,7 +6,6 @@
|
||||||
},
|
},
|
||||||
"onBoardingBody": "Secure your 2FA codes",
|
"onBoardingBody": "Secure your 2FA codes",
|
||||||
"onBoardingGetStarted": "Get Started",
|
"onBoardingGetStarted": "Get Started",
|
||||||
|
|
||||||
"setupFirstAccount": "Setup your first account",
|
"setupFirstAccount": "Setup your first account",
|
||||||
"importScanQrCode": "Scan a QR Code",
|
"importScanQrCode": "Scan a QR Code",
|
||||||
"importEnterSetupKey": "Enter a setup key",
|
"importEnterSetupKey": "Enter a setup key",
|
||||||
|
@ -18,7 +17,100 @@
|
||||||
"timeBasedKeyType": "Time based (TOTP)",
|
"timeBasedKeyType": "Time based (TOTP)",
|
||||||
"counterBasedKeyType": "Counter based (HOTP)",
|
"counterBasedKeyType": "Counter based (HOTP)",
|
||||||
"saveAction": "Save",
|
"saveAction": "Save",
|
||||||
|
"nextTotpTitle": "next",
|
||||||
|
"deleteCodeTitle": "Delete code?",
|
||||||
|
"deleteCodeMessage": "Are you sure you want to delete this code? This action is irreversible.",
|
||||||
|
"viewLogsAction": "View logs",
|
||||||
|
"sendLogsDescription": "This will send across logs to help us debug your issue. While we take precautions to ensure that sensitive information is not logged, we encourage you to view these logs before sharing them.",
|
||||||
|
"preparingLogsTitle": "Preparing logs...",
|
||||||
|
"emailLogsTitle": "Email logs",
|
||||||
|
"emailLogsMessage": "Please send the logs to {email}",
|
||||||
|
"@emailLogsMessage": {
|
||||||
|
"placeholders": {
|
||||||
|
"email": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"copyEmailAction": "Copy email",
|
||||||
|
"exportLogsAction": "Export logs",
|
||||||
|
"reportABug": "Report a bug",
|
||||||
|
"crashAndErrorReporting": "Crash & error reporting",
|
||||||
|
"reportBug": "Report bug",
|
||||||
|
"emailUsMessage": "Please email us at {email}",
|
||||||
|
"@emailUsMessage": {
|
||||||
|
"placeholders": {
|
||||||
|
"email": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contactSupport": "Contact support",
|
||||||
|
"verifyPassword": "Verify password",
|
||||||
|
"pleaseWaitTitle": "Please wait...",
|
||||||
|
"generatingEncryptionKeysTitle": "Generating encryption keys...",
|
||||||
|
"recreatePassword": "Recreate password",
|
||||||
|
"recreatePasswordMessage": "The current device is not powerful enough to verify your password, so we need to regenerate it once in a way that works with all devices. \n\nPlease login using your recovery key and regenerate your password (you can use the same one again if you wish).",
|
||||||
|
"useRecoveryKeyAction": "Use recovery key",
|
||||||
|
"incorrectPassword": "Incorrect password",
|
||||||
|
"welcomeBackTitle": "Welcome back!",
|
||||||
|
"madeWithLoveAtPrefix": "made with ❤️ at ",
|
||||||
|
"changeEmail": "change email",
|
||||||
|
"ok": "OK",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"yes": "Yes",
|
||||||
|
"no": "No",
|
||||||
|
"email": "Email",
|
||||||
|
"support": "Support",
|
||||||
|
"settings": "Settings",
|
||||||
|
"copied": "Copied",
|
||||||
|
"tryAgainMessage": "Please try again",
|
||||||
"existingUser": "Existing User",
|
"existingUser": "Existing User",
|
||||||
"newUser" : "New to ente"
|
"newUser" : "New to ente",
|
||||||
}
|
"delete": "Delete",
|
||||||
|
"enterYourPasswordHint": "Enter your password",
|
||||||
|
"forgotPassword": "Forgot password",
|
||||||
|
"oops": "Oops",
|
||||||
|
"somethingWentWrongMessage": "Something went wrong, please try again",
|
||||||
|
"leaveFamily": "Leave family",
|
||||||
|
"leaveFamilyMessage": "Are you sure that you want to leave the family plan?",
|
||||||
|
"inFamilyPlanMessage": "You are on a family plan!",
|
||||||
|
"swipeHint": "Swipe left to edit or remove codes",
|
||||||
|
"scan": "Scan",
|
||||||
|
"scanACode": "Scan a code",
|
||||||
|
"verify": "Verify",
|
||||||
|
"enterCodeHint": "Enter the 6-digit code from\nyour authenticator app",
|
||||||
|
"lostDeviceTitle": "Lost device?",
|
||||||
|
"twoFactorAuthTitle": "Two-factor authentication",
|
||||||
|
"recoverAccount": "Recover account",
|
||||||
|
"enterRecoveryKeyHint": "Enter your recovery key",
|
||||||
|
"recover": "Recover",
|
||||||
|
"contactSupportViaEmailMessage":"Please drop an email to {email} from your registered email address",
|
||||||
|
"@contactSupportViaEmailMessage": {
|
||||||
|
"placeholders": {
|
||||||
|
"email": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"noRecoveryKeyTitle": "No recovery key?",
|
||||||
|
"enterEmailHint": "Enter your email address",
|
||||||
|
"invalidEmailTitle": "Invalid email address",
|
||||||
|
"invalidEmailMessage": "Please enter a valid email address.",
|
||||||
|
"deleteAccount": "Delete account",
|
||||||
|
"deleteAccountQuery": "We'll be sorry to see you go. Are you facing some issue?",
|
||||||
|
"yesSendFeedbackAction": "Yes, send feedback",
|
||||||
|
"noDeleteAccountAction": "No, delete account",
|
||||||
|
"initiateAccountDeleteTitle": "Please authenticate to initiate account deletion",
|
||||||
|
"confirmAccountDeleteTitle": "Are you sure you want to delete your ente account?",
|
||||||
|
"confirmAccountDeleteMessage": "Your uploaded data, across all apps (Photos and Authenticator both), will be scheduled for deletion, and your account will be permanently deleted.",
|
||||||
|
"sendEmail": "Send email",
|
||||||
|
"createNewAccount": "Create new account",
|
||||||
|
"passwordStrengthWeak": "Weak",
|
||||||
|
"passwordStrengthStrong": "Strong",
|
||||||
|
"passwordStrengthModerate": "Moderate",
|
||||||
|
"confirmPassword": "Confirm password",
|
||||||
|
"close": "Close",
|
||||||
|
"oopsSomethingWentWrong": "Oops, Something went wrong."
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ import 'package:ente_auth/core/constants.dart';
|
||||||
import 'package:ente_auth/core/event_bus.dart';
|
import 'package:ente_auth/core/event_bus.dart';
|
||||||
import 'package:ente_auth/core/network.dart';
|
import 'package:ente_auth/core/network.dart';
|
||||||
import 'package:ente_auth/events/user_details_changed_event.dart';
|
import 'package:ente_auth/events/user_details_changed_event.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/delete_account.dart';
|
import 'package:ente_auth/models/delete_account.dart';
|
||||||
import 'package:ente_auth/models/key_attributes.dart';
|
import 'package:ente_auth/models/key_attributes.dart';
|
||||||
import 'package:ente_auth/models/key_gen_result.dart';
|
import 'package:ente_auth/models/key_gen_result.dart';
|
||||||
|
@ -47,7 +48,8 @@ class UserService {
|
||||||
bool isChangeEmail = false,
|
bool isChangeEmail = false,
|
||||||
bool isCreateAccountScreen = false,
|
bool isCreateAccountScreen = false,
|
||||||
}) async {
|
}) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
final response = await _dio.post(
|
final response = await _dio.post(
|
||||||
|
@ -191,7 +193,8 @@ class UserService {
|
||||||
Future<DeleteChallengeResponse> getDeleteChallenge(
|
Future<DeleteChallengeResponse> getDeleteChallenge(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
) async {
|
) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
final response = await _dio.get(
|
final response = await _dio.get(
|
||||||
|
@ -259,7 +262,8 @@ class UserService {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> verifyEmail(BuildContext context, String ott) async {
|
Future<void> verifyEmail(BuildContext context, String ott) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
final response = await _dio.post(
|
final response = await _dio.post(
|
||||||
|
@ -329,7 +333,8 @@ class UserService {
|
||||||
String email,
|
String email,
|
||||||
String ott,
|
String ott,
|
||||||
) async {
|
) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
final response = await _dio.post(
|
final response = await _dio.post(
|
||||||
|
@ -498,7 +503,8 @@ class UserService {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> recoverTwoFactor(BuildContext context, String sessionID) async {
|
Future<void> recoverTwoFactor(BuildContext context, String sessionID) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
final response = await _dio.get(
|
final response = await _dio.get(
|
||||||
|
@ -618,7 +624,8 @@ class UserService {
|
||||||
String encryptedSecret,
|
String encryptedSecret,
|
||||||
String secretDecryptionNonce,
|
String secretDecryptionNonce,
|
||||||
) async {
|
) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
String secret;
|
String secret;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// @dart=2.9
|
// @dart=2.9
|
||||||
|
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
import 'package:ente_auth/utils/dialog_util.dart';
|
import 'package:ente_auth/utils/dialog_util.dart';
|
||||||
import 'package:ente_auth/utils/email_util.dart';
|
import 'package:ente_auth/utils/email_util.dart';
|
||||||
|
@ -17,20 +18,21 @@ class _ChangeEmailDialogState extends State<ChangeEmailDialog> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: const Text("Enter your email address"),
|
title: Text(l10n.enterEmailHint),
|
||||||
content: SingleChildScrollView(
|
content: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
decoration: const InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: 'Email',
|
hintText: l10n.email,
|
||||||
hintStyle: TextStyle(
|
hintStyle: const TextStyle(
|
||||||
color: Colors.white30,
|
color: Colors.white30,
|
||||||
),
|
),
|
||||||
contentPadding: EdgeInsets.all(12),
|
contentPadding: const EdgeInsets.all(12),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -47,9 +49,9 @@ class _ChangeEmailDialogState extends State<ChangeEmailDialog> {
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text(
|
child: Text(
|
||||||
"Cancel",
|
l10n.cancel,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.redAccent,
|
color: Colors.redAccent,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -58,9 +60,9 @@ class _ChangeEmailDialogState extends State<ChangeEmailDialog> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text(
|
child: Text(
|
||||||
"Verify",
|
l10n.verify,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.purple,
|
color: Colors.purple,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -68,8 +70,8 @@ class _ChangeEmailDialogState extends State<ChangeEmailDialog> {
|
||||||
if (!isValidEmail(_email)) {
|
if (!isValidEmail(_email)) {
|
||||||
showErrorDialog(
|
showErrorDialog(
|
||||||
context,
|
context,
|
||||||
"Invalid email address",
|
l10n.invalidEmailTitle,
|
||||||
"Please enter a valid email address.",
|
l10n.invalidEmailMessage,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/delete_account.dart';
|
import 'package:ente_auth/models/delete_account.dart';
|
||||||
import 'package:ente_auth/services/local_authentication_service.dart';
|
import 'package:ente_auth/services/local_authentication_service.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
|
@ -20,10 +21,11 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
title: const Text("Delete account"),
|
title: Text(l10n.deleteAccount),
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back),
|
icon: const Icon(Icons.arrow_back),
|
||||||
color: Theme.of(context).iconTheme.color,
|
color: Theme.of(context).iconTheme.color,
|
||||||
|
@ -47,7 +49,7 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"We'll be sorry to see you go. Are you facing some issue?",
|
l10n.deleteAccountQuery,
|
||||||
style: Theme.of(context).textTheme.subtitle1,
|
style: Theme.of(context).textTheme.subtitle1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -74,7 +76,7 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
GradientButton(
|
GradientButton(
|
||||||
text: "Yes, send feedback",
|
text: l10n.yesSendFeedbackAction,
|
||||||
iconData: Icons.check,
|
iconData: Icons.check,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await sendEmail(
|
await sendEmail(
|
||||||
|
@ -104,9 +106,9 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
),
|
),
|
||||||
label: const Text(
|
label: Text(
|
||||||
"No, delete account",
|
l10n.noDeleteAccountAction,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.redAccent, // same for both themes
|
color: Colors.redAccent, // same for both themes
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
@ -143,21 +145,20 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
DeleteChallengeResponse response,
|
DeleteChallengeResponse response,
|
||||||
) async {
|
) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
final hasAuthenticated =
|
final hasAuthenticated =
|
||||||
await LocalAuthenticationService.instance.requestLocalAuthentication(
|
await LocalAuthenticationService.instance.requestLocalAuthentication(
|
||||||
context,
|
context,
|
||||||
"Please authenticate to initiate account deletion",
|
l10n.initiateAccountDeleteTitle,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (hasAuthenticated) {
|
if (hasAuthenticated) {
|
||||||
final choice = await showChoiceDialog(
|
final choice = await showChoiceDialog(
|
||||||
context,
|
context,
|
||||||
'Are you sure you want to delete your ente account?',
|
l10n.confirmAccountDeleteTitle,
|
||||||
'Your uploaded data, across all apps '
|
l10n.confirmAccountDeleteMessage,
|
||||||
'(Photos and Authenticator both), will be scheduled for deletion,'
|
firstAction: l10n.cancel,
|
||||||
'and your account will be permanently deleted.',
|
secondAction: l10n.delete,
|
||||||
firstAction: 'Cancel',
|
|
||||||
secondAction: 'Delete',
|
|
||||||
firstActionColor: Theme.of(context).colorScheme.onSurface,
|
firstActionColor: Theme.of(context).colorScheme.onSurface,
|
||||||
secondActionColor: Colors.red,
|
secondActionColor: Colors.red,
|
||||||
);
|
);
|
||||||
|
@ -175,10 +176,11 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _requestEmailForDeletion(BuildContext context) async {
|
Future<void> _requestEmailForDeletion(BuildContext context) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
final AlertDialog alert = AlertDialog(
|
final AlertDialog alert = AlertDialog(
|
||||||
title: const Text(
|
title: Text(
|
||||||
"Delete account",
|
l10n.deleteAccount,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -208,9 +210,9 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text(
|
child: Text(
|
||||||
"Send email",
|
l10n.sendEmail,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -225,7 +227,7 @@ class DeleteAccountPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
l10n.ok,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
|
|
|
@ -5,6 +5,7 @@ import 'dart:io';
|
||||||
import 'package:email_validator/email_validator.dart';
|
import 'package:email_validator/email_validator.dart';
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/billing_plan.dart';
|
import 'package:ente_auth/models/billing_plan.dart';
|
||||||
import 'package:ente_auth/services/billing_service.dart';
|
import 'package:ente_auth/services/billing_service.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
|
@ -122,13 +123,14 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getBody() {
|
Widget _getBody() {
|
||||||
var passwordStrengthText = 'Weak';
|
final l10n = context.l10n;
|
||||||
|
var passwordStrengthText = l10n.passwordStrengthWeak;
|
||||||
var passwordStrengthColor = Colors.redAccent;
|
var passwordStrengthColor = Colors.redAccent;
|
||||||
if (_passwordStrength > kStrongPasswordStrengthThreshold) {
|
if (_passwordStrength > kStrongPasswordStrengthThreshold) {
|
||||||
passwordStrengthText = 'Strong';
|
passwordStrengthText = l10n.passwordStrengthStrong;
|
||||||
passwordStrengthColor = Colors.greenAccent;
|
passwordStrengthColor = Colors.greenAccent;
|
||||||
} else if (_passwordStrength > kMildPasswordStrengthThreshold) {
|
} else if (_passwordStrength > kMildPasswordStrengthThreshold) {
|
||||||
passwordStrengthText = 'Moderate';
|
passwordStrengthText = l10n.passwordStrengthModerate;
|
||||||
passwordStrengthColor = Colors.orangeAccent;
|
passwordStrengthColor = Colors.orangeAccent;
|
||||||
}
|
}
|
||||||
return Column(
|
return Column(
|
||||||
|
@ -141,7 +143,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(vertical: 30, horizontal: 20),
|
const EdgeInsets.symmetric(vertical: 30, horizontal: 20),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Create new account',
|
l10n.createNewAccount,
|
||||||
style: Theme.of(context).textTheme.headline4,
|
style: Theme.of(context).textTheme.headline4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -153,7 +155,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
fillColor: _emailIsValid ? _validFieldValueColor : null,
|
fillColor: _emailIsValid ? _validFieldValueColor : null,
|
||||||
filled: true,
|
filled: true,
|
||||||
hintText: 'Email',
|
hintText: l10n.email,
|
||||||
contentPadding: const EdgeInsets.symmetric(
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
horizontal: 16,
|
horizontal: 16,
|
||||||
vertical: 14,
|
vertical: 14,
|
||||||
|
@ -268,7 +270,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
fillColor: _passwordsMatch ? _validFieldValueColor : null,
|
fillColor: _passwordsMatch ? _validFieldValueColor : null,
|
||||||
filled: true,
|
filled: true,
|
||||||
hintText: "Confirm password",
|
hintText: l10n.confirmPassword,
|
||||||
contentPadding: const EdgeInsets.symmetric(
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
horizontal: 16,
|
horizontal: 16,
|
||||||
vertical: 14,
|
vertical: 14,
|
||||||
|
@ -510,13 +512,14 @@ class PricingWidget extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return FutureBuilder<BillingPlans>(
|
return FutureBuilder<BillingPlans>(
|
||||||
future: BillingService.instance.getBillingPlans(),
|
future: BillingService.instance.getBillingPlans(),
|
||||||
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
return _buildPlans(context, snapshot.data);
|
return _buildPlans(context, snapshot.data);
|
||||||
} else if (snapshot.hasError) {
|
} else if (snapshot.hasError) {
|
||||||
return const Text("Oops, Something went wrong.");
|
return Text(l10n.oopsSomethingWentWrong);
|
||||||
}
|
}
|
||||||
return const EnteLoadingWidget();
|
return const EnteLoadingWidget();
|
||||||
},
|
},
|
||||||
|
@ -524,6 +527,7 @@ class PricingWidget extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Container _buildPlans(BuildContext context, BillingPlans plans) {
|
Container _buildPlans(BuildContext context, BillingPlans plans) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final planWidgets = <BillingPlanWidget>[];
|
final planWidgets = <BillingPlanWidget>[];
|
||||||
for (final plan in plans.plans) {
|
for (final plan in plans.plans) {
|
||||||
final productID = Platform.isAndroid ? plan.androidID : plan.iosID;
|
final productID = Platform.isAndroid ? plan.androidID : plan.iosID;
|
||||||
|
@ -564,16 +568,16 @@ class PricingWidget extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
Icon(
|
const Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
size: 12,
|
size: 12,
|
||||||
color: Colors.white38,
|
color: Colors.white38,
|
||||||
),
|
),
|
||||||
Padding(padding: EdgeInsets.all(1)),
|
const Padding(padding: EdgeInsets.all(1)),
|
||||||
Text(
|
Text(
|
||||||
"Close",
|
l10n.close,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white38,
|
color: Colors.white38,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// @dart=2.9
|
// @dart=2.9
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
import 'package:ente_auth/ui/account/recovery_key_page.dart';
|
import 'package:ente_auth/ui/account/recovery_key_page.dart';
|
||||||
import 'package:ente_auth/ui/common/dynamic_fab.dart';
|
import 'package:ente_auth/ui/common/dynamic_fab.dart';
|
||||||
|
@ -400,15 +401,16 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _showRecoveryCodeDialog(String password) async {
|
Future<void> _showRecoveryCodeDialog(String password) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
final dialog =
|
final dialog =
|
||||||
createProgressDialog(context, "Generating encryption keys...");
|
createProgressDialog(context, l10n.generatingEncryptionKeysTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
final result = await Configuration.instance.generateKey(password);
|
final result = await Configuration.instance.generateKey(password);
|
||||||
Configuration.instance.setVolatilePassword(null);
|
Configuration.instance.setVolatilePassword(null);
|
||||||
await dialog.hide();
|
await dialog.hide();
|
||||||
onDone() async {
|
onDone() async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
await UserService.instance.setAttributes(result);
|
await UserService.instance.setAttributes(result);
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
import 'package:ente_auth/core/errors.dart';
|
import 'package:ente_auth/core/errors.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/key_attributes.dart';
|
import 'package:ente_auth/models/key_attributes.dart';
|
||||||
import 'package:ente_auth/ui/account/recovery_page.dart';
|
import 'package:ente_auth/ui/account/recovery_page.dart';
|
||||||
import 'package:ente_auth/ui/common/dialogs.dart';
|
import 'package:ente_auth/ui/common/dialogs.dart';
|
||||||
|
@ -40,6 +41,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
|
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
|
||||||
|
|
||||||
FloatingActionButtonLocation fabLocation() {
|
FloatingActionButtonLocation fabLocation() {
|
||||||
|
@ -66,10 +68,10 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
floatingActionButton: DynamicFAB(
|
floatingActionButton: DynamicFAB(
|
||||||
isKeypadOpen: isKeypadOpen,
|
isKeypadOpen: isKeypadOpen,
|
||||||
isFormValid: _passwordController.text.isNotEmpty,
|
isFormValid: _passwordController.text.isNotEmpty,
|
||||||
buttonText: 'Verify password',
|
buttonText: l10n.verifyPassword,
|
||||||
onPressedFunction: () async {
|
onPressedFunction: () async {
|
||||||
FocusScope.of(context).unfocus();
|
FocusScope.of(context).unfocus();
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
await Configuration.instance.decryptAndSaveSecrets(
|
await Configuration.instance.decryptAndSaveSecrets(
|
||||||
|
@ -81,14 +83,11 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
await dialog.hide();
|
await dialog.hide();
|
||||||
final dialogUserChoice = await showChoiceDialog(
|
final dialogUserChoice = await showChoiceDialog(
|
||||||
context,
|
context,
|
||||||
"Recreate password",
|
l10n.recreatePassword,
|
||||||
"The current device is not powerful enough to verify your "
|
l10n.recreatePasswordMessage,
|
||||||
"password, so we need to regenerate it once in a way that "
|
firstAction: l10n.cancel,
|
||||||
"works with all devices. \n\nPlease login using your "
|
|
||||||
"recovery key and regenerate your password (you can use the same one again if you wish).",
|
|
||||||
firstAction: "Cancel",
|
|
||||||
firstActionColor: Theme.of(context).colorScheme.primary,
|
firstActionColor: Theme.of(context).colorScheme.primary,
|
||||||
secondAction: "Use recovery key",
|
secondAction: l10n.useRecoveryKeyAction,
|
||||||
secondActionColor: Theme.of(context).colorScheme.primary,
|
secondActionColor: Theme.of(context).colorScheme.primary,
|
||||||
);
|
);
|
||||||
if (dialogUserChoice == DialogUserChoice.secondChoice) {
|
if (dialogUserChoice == DialogUserChoice.secondChoice) {
|
||||||
|
@ -107,17 +106,17 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
|
|
||||||
final dialogUserChoice = await showChoiceDialog(
|
final dialogUserChoice = await showChoiceDialog(
|
||||||
context,
|
context,
|
||||||
"Incorrect password",
|
l10n.incorrectPassword,
|
||||||
"Please try again",
|
l10n.tryAgainMessage,
|
||||||
firstAction: "Contact Support",
|
firstAction: l10n.contactSupport,
|
||||||
firstActionColor: Theme.of(context).colorScheme.primary,
|
firstActionColor: Theme.of(context).colorScheme.primary,
|
||||||
secondAction: "Ok",
|
secondAction: l10n.ok,
|
||||||
secondActionColor: Theme.of(context).colorScheme.primary,
|
secondActionColor: Theme.of(context).colorScheme.primary,
|
||||||
);
|
);
|
||||||
if (dialogUserChoice == DialogUserChoice.firstChoice) {
|
if (dialogUserChoice == DialogUserChoice.firstChoice) {
|
||||||
await sendLogs(
|
await sendLogs(
|
||||||
context,
|
context,
|
||||||
"Contact support",
|
l10n.contactSupport,
|
||||||
"support@ente.io",
|
"support@ente.io",
|
||||||
postShare: () {},
|
postShare: () {},
|
||||||
);
|
);
|
||||||
|
@ -141,6 +140,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getBody() {
|
Widget _getBody() {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -151,7 +151,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(vertical: 30, horizontal: 20),
|
const EdgeInsets.symmetric(vertical: 30, horizontal: 20),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Welcome back!',
|
l10n.welcomeBackTitle,
|
||||||
style: Theme.of(context).textTheme.headline4,
|
style: Theme.of(context).textTheme.headline4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -174,7 +174,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
autofillHints: const [AutofillHints.password],
|
autofillHints: const [AutofillHints.password],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: "Enter your password",
|
hintText: l10n.enterYourPasswordHint,
|
||||||
filled: true,
|
filled: true,
|
||||||
contentPadding: const EdgeInsets.all(20),
|
contentPadding: const EdgeInsets.all(20),
|
||||||
border: UnderlineInputBorder(
|
border: UnderlineInputBorder(
|
||||||
|
@ -236,7 +236,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
},
|
},
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Forgot password",
|
l10n.forgotPassword,
|
||||||
style:
|
style:
|
||||||
Theme.of(context).textTheme.subtitle1.copyWith(
|
Theme.of(context).textTheme.subtitle1.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
@ -248,8 +248,10 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final dialog =
|
final dialog = createProgressDialog(
|
||||||
createProgressDialog(context, "Please wait...");
|
context,
|
||||||
|
l10n.pleaseWaitTitle,
|
||||||
|
);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
await Configuration.instance.logout();
|
await Configuration.instance.logout();
|
||||||
await dialog.hide();
|
await dialog.hide();
|
||||||
|
@ -258,7 +260,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
|
||||||
},
|
},
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Change email",
|
l10n.changeEmail,
|
||||||
style:
|
style:
|
||||||
Theme.of(context).textTheme.subtitle1.copyWith(
|
Theme.of(context).textTheme.subtitle1.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/sessions.dart';
|
import 'package:ente_auth/models/sessions.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
import 'package:ente_auth/ui/common/loading_widget.dart';
|
import 'package:ente_auth/ui/common/loading_widget.dart';
|
||||||
|
@ -111,7 +112,8 @@ class _SessionsPageState extends State<SessionsPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _terminateSession(Session session) async {
|
Future<void> _terminateSession(Session session) async {
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
await UserService.instance.terminateSession(session.token);
|
await UserService.instance.terminateSession(session.token);
|
||||||
|
@ -122,8 +124,8 @@ class _SessionsPageState extends State<SessionsPage> {
|
||||||
_logger.severe('failed to terminate', e, s);
|
_logger.severe('failed to terminate', e, s);
|
||||||
showErrorDialog(
|
showErrorDialog(
|
||||||
context,
|
context,
|
||||||
'Oops',
|
l10n.oops,
|
||||||
"Something went wrong, please try again",
|
l10n.somethingWentWrongMessage,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ import 'dart:async';
|
||||||
|
|
||||||
import 'package:clipboard/clipboard.dart';
|
import 'package:clipboard/clipboard.dart';
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/code.dart';
|
import 'package:ente_auth/models/code.dart';
|
||||||
import 'package:ente_auth/onboarding/view/setup_enter_secret_key_page.dart';
|
import 'package:ente_auth/onboarding/view/setup_enter_secret_key_page.dart';
|
||||||
import 'package:ente_auth/store/code_store.dart';
|
import 'package:ente_auth/store/code_store.dart';
|
||||||
|
@ -49,6 +50,7 @@ class _CodeWidgetState extends State<CodeWidget> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.only(left: 16, right: 16, bottom: 8, top: 8),
|
margin: const EdgeInsets.only(left: 16, right: 16, bottom: 8, top: 8),
|
||||||
child: Slidable(
|
child: Slidable(
|
||||||
|
@ -174,7 +176,7 @@ class _CodeWidgetState extends State<CodeWidget> {
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"next",
|
l10n.nextTotpTitle,
|
||||||
style: Theme.of(context).textTheme.caption,
|
style: Theme.of(context).textTheme.caption,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
|
@ -224,20 +226,21 @@ class _CodeWidgetState extends State<CodeWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _onDeletePressed(_) {
|
void _onDeletePressed(_) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final AlertDialog alert = AlertDialog(
|
final AlertDialog alert = AlertDialog(
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
||||||
title: Text(
|
title: Text(
|
||||||
"Delete code?",
|
l10n.deleteCodeTitle,
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
),
|
),
|
||||||
content: const Text(
|
content: Text(
|
||||||
"Are you sure you want to delete this code? This action is irreversible.",
|
l10n.deleteCodeMessage,
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text(
|
child: Text(
|
||||||
"Delete",
|
l10n.delete,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -240,6 +240,7 @@ class _HomePageState extends State<HomePage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getCoachMarkWidget() {
|
Widget _getCoachMarkWidget() {
|
||||||
|
final l10n = context.l10n;
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await PreferenceService.instance.setHasShownCoachMark(true);
|
await PreferenceService.instance.setHasShownCoachMark(true);
|
||||||
|
@ -268,7 +269,7 @@ class _HomePageState extends State<HomePage> {
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"Swipe left to edit or remove codes",
|
l10n.swipeHint,
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -282,7 +283,7 @@ class _HomePageState extends State<HomePage> {
|
||||||
.setHasShownCoachMark(true);
|
.setHasShownCoachMark(true);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
child: const Text("OK"),
|
child: Text(l10n.ok),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// @dart=2.9
|
// @dart=2.9
|
||||||
|
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/user_details.dart';
|
import 'package:ente_auth/models/user_details.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
import 'package:ente_auth/ui/common/dialogs.dart';
|
import 'package:ente_auth/ui/common/dialogs.dart';
|
||||||
|
@ -17,6 +18,7 @@ class ChildSubscriptionWidget extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final String familyAdmin = userDetails.familyData.members
|
final String familyAdmin = userDetails.familyData.members
|
||||||
.firstWhere((element) => element.isAdmin)
|
.firstWhere((element) => element.isAdmin)
|
||||||
.email;
|
.email;
|
||||||
|
@ -27,7 +29,7 @@ class ChildSubscriptionWidget extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"You are on a family plan!",
|
l10n.inFamilyPlanMessage,
|
||||||
style: Theme.of(context).textTheme.bodyText1,
|
style: Theme.of(context).textTheme.bodyText1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -76,9 +78,9 @@ class ChildSubscriptionWidget extends StatelessWidget {
|
||||||
const EdgeInsets.symmetric(vertical: 18, horizontal: 100),
|
const EdgeInsets.symmetric(vertical: 18, horizontal: 100),
|
||||||
backgroundColor: Colors.red[500],
|
backgroundColor: Colors.red[500],
|
||||||
),
|
),
|
||||||
child: const Text(
|
child: Text(
|
||||||
"Leave Family",
|
l10n.leaveFamily,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
color: Colors.white, // same for both themes
|
color: Colors.white, // same for both themes
|
||||||
|
@ -120,19 +122,20 @@ class ChildSubscriptionWidget extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _leaveFamilyPlan(BuildContext context) async {
|
Future<void> _leaveFamilyPlan(BuildContext context) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
final choice = await showChoiceDialog(
|
final choice = await showChoiceDialog(
|
||||||
context,
|
context,
|
||||||
'Leave family',
|
l10n.leaveFamily,
|
||||||
'Are you sure that you want to leave the family plan?',
|
l10n.leaveFamilyMessage,
|
||||||
firstAction: 'No',
|
firstAction: l10n.no,
|
||||||
secondAction: 'Yes',
|
secondAction: l10n.yes,
|
||||||
firstActionColor: Theme.of(context).colorScheme.alternativeColor,
|
firstActionColor: Theme.of(context).colorScheme.alternativeColor,
|
||||||
secondActionColor: Theme.of(context).colorScheme.onSurface,
|
secondActionColor: Theme.of(context).colorScheme.onSurface,
|
||||||
);
|
);
|
||||||
if (choice != DialogUserChoice.secondChoice) {
|
if (choice != DialogUserChoice.secondChoice) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
await UserService.instance.leaveFamilyPlan();
|
await UserService.instance.leaveFamilyPlan();
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/subscription.dart';
|
import 'package:ente_auth/models/subscription.dart';
|
||||||
import 'package:ente_auth/services/billing_service.dart';
|
import 'package:ente_auth/services/billing_service.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
|
@ -49,7 +50,8 @@ class _PaymentWebPageState extends State<PaymentWebPage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
_dialog = createProgressDialog(context, "Please wait...");
|
final l10n = context.l10n;
|
||||||
|
_dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
if (initPaymentUrl == null) {
|
if (initPaymentUrl == null) {
|
||||||
return const EnteLoadingWidget();
|
return const EnteLoadingWidget();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/code.dart';
|
import 'package:ente_auth/models/code.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:qr_code_scanner/qr_code_scanner.dart';
|
import 'package:qr_code_scanner/qr_code_scanner.dart';
|
||||||
|
@ -30,9 +31,10 @@ class ScannerPageState extends State<ScannerPage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text("Scan"),
|
title: Text(l10n.scan),
|
||||||
),
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
@ -47,7 +49,7 @@ class ScannerPageState extends State<ScannerPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: (totp != null) ? Text(totp!) : const Text('Scan a code'),
|
child: (totp != null) ? Text(totp!) : Text(l10n.scanACode),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'dart:ui';
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/models/code.dart';
|
import 'package:ente_auth/models/code.dart';
|
||||||
import 'package:ente_auth/services/authenticator_service.dart';
|
import 'package:ente_auth/services/authenticator_service.dart';
|
||||||
import 'package:ente_auth/services/local_authentication_service.dart';
|
import 'package:ente_auth/services/local_authentication_service.dart';
|
||||||
|
@ -215,11 +216,12 @@ class DataSectionWidget extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _pickImportFile(BuildContext context) async {
|
Future<void> _pickImportFile(BuildContext context) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
FilePickerResult result = await FilePicker.platform.pickFiles();
|
FilePickerResult result = await FilePicker.platform.pickFiles();
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final dialog = createProgressDialog(context, "Please wait...");
|
final dialog = createProgressDialog(context, l10n.pleaseWaitTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
try {
|
try {
|
||||||
File file = File(result.files.single.path);
|
File file = File(result.files.single.path);
|
||||||
|
@ -257,7 +259,7 @@ class DataSectionWidget extends StatelessWidget {
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Okay",
|
l10n.ok,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// @dart=2.9
|
// @dart=2.9
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/ui/settings/common_settings.dart';
|
import 'package:ente_auth/ui/settings/common_settings.dart';
|
||||||
import 'package:ente_auth/ui/settings/settings_section_title.dart';
|
import 'package:ente_auth/ui/settings/settings_section_title.dart';
|
||||||
import 'package:ente_auth/ui/settings/settings_text_item.dart';
|
import 'package:ente_auth/ui/settings/settings_text_item.dart';
|
||||||
|
@ -12,6 +13,8 @@ class DebugSectionWidget extends StatelessWidget {
|
||||||
const DebugSectionWidget({Key key}) : super(key: key);
|
const DebugSectionWidget({Key key}) : super(key: key);
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
// This is a debug only section not shown to end users, so these strings are
|
||||||
|
// not translated.
|
||||||
return ExpandablePanel(
|
return ExpandablePanel(
|
||||||
header: const SettingsSectionTitle("Debug"),
|
header: const SettingsSectionTitle("Debug"),
|
||||||
collapsed: Container(),
|
collapsed: Container(),
|
||||||
|
@ -38,6 +41,7 @@ class DebugSectionWidget extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _showKeyAttributesDialog(BuildContext context) {
|
void _showKeyAttributesDialog(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final keyAttributes = Configuration.instance.getKeyAttributes();
|
final keyAttributes = Configuration.instance.getKeyAttributes();
|
||||||
final AlertDialog alert = AlertDialog(
|
final AlertDialog alert = AlertDialog(
|
||||||
title: const Text("key attributes"),
|
title: const Text("key attributes"),
|
||||||
|
@ -73,7 +77,7 @@ class DebugSectionWidget extends StatelessWidget {
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text("OK"),
|
child: Text(l10n.ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context, rootNavigator: true).pop('dialog');
|
Navigator.of(context, rootNavigator: true).pop('dialog');
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
@ -8,13 +9,14 @@ class MadeWithLoveWidget extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
launchUrl(Uri.parse("https://ente.io"));
|
launchUrl(Uri.parse("https://ente.io"));
|
||||||
},
|
},
|
||||||
child: RichText(
|
child: RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text: "made with ❤️ at ",
|
text: l10n.madeWithLoveAtPrefix,
|
||||||
style: DefaultTextStyle.of(context).style,
|
style: DefaultTextStyle.of(context).style,
|
||||||
children: const <TextSpan>[
|
children: const <TextSpan>[
|
||||||
TextSpan(
|
TextSpan(
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/local_authentication_service.dart';
|
import 'package:ente_auth/services/local_authentication_service.dart';
|
||||||
import 'package:ente_auth/theme/ente_theme.dart';
|
import 'package:ente_auth/theme/ente_theme.dart';
|
||||||
import 'package:ente_auth/ui/account/sessions_page.dart';
|
import 'package:ente_auth/ui/account/sessions_page.dart';
|
||||||
|
@ -45,6 +46,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getSectionOptions(BuildContext context) {
|
Widget _getSectionOptions(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final List<Widget> children = [];
|
final List<Widget> children = [];
|
||||||
children.addAll([
|
children.addAll([
|
||||||
MenuItemWidget(
|
MenuItemWidget(
|
||||||
|
@ -106,7 +108,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
"No",
|
l10n.no,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color:
|
||||||
Theme.of(context).colorScheme.defaultTextColor,
|
Theme.of(context).colorScheme.defaultTextColor,
|
||||||
|
@ -119,7 +121,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Yes",
|
l10n.yes,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color:
|
||||||
Theme.of(context).colorScheme.defaultTextColor,
|
Theme.of(context).colorScheme.defaultTextColor,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import 'package:ente_auth/core/constants.dart';
|
import 'package:ente_auth/core/constants.dart';
|
||||||
import 'package:ente_auth/core/logging/super_logging.dart';
|
import 'package:ente_auth/core/logging/super_logging.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/theme/ente_theme.dart';
|
import 'package:ente_auth/theme/ente_theme.dart';
|
||||||
import 'package:ente_auth/ui/components/captioned_text_widget.dart';
|
import 'package:ente_auth/ui/components/captioned_text_widget.dart';
|
||||||
import 'package:ente_auth/ui/components/expandable_menu_item_widget.dart';
|
import 'package:ente_auth/ui/components/expandable_menu_item_widget.dart';
|
||||||
|
@ -21,20 +22,22 @@ class SupportSectionWidget extends StatefulWidget {
|
||||||
class _SupportSectionWidgetState extends State<SupportSectionWidget> {
|
class _SupportSectionWidgetState extends State<SupportSectionWidget> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return ExpandableMenuItemWidget(
|
return ExpandableMenuItemWidget(
|
||||||
title: "Support",
|
title: l10n.support,
|
||||||
selectionOptionsWidget: _getSectionOptions(context),
|
selectionOptionsWidget: _getSectionOptions(context),
|
||||||
leadingIcon: Icons.help_outline_outlined,
|
leadingIcon: Icons.help_outline_outlined,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getSectionOptions(BuildContext context) {
|
Widget _getSectionOptions(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
sectionOptionSpacing,
|
sectionOptionSpacing,
|
||||||
MenuItemWidget(
|
MenuItemWidget(
|
||||||
captionedTextWidget: const CaptionedTextWidget(
|
captionedTextWidget: CaptionedTextWidget(
|
||||||
title: "Email",
|
title: l10n.email,
|
||||||
),
|
),
|
||||||
pressedColor: getEnteColorScheme(context).fillFaint,
|
pressedColor: getEnteColorScheme(context).fillFaint,
|
||||||
trailingIcon: Icons.chevron_right_outlined,
|
trailingIcon: Icons.chevron_right_outlined,
|
||||||
|
@ -45,14 +48,14 @@ class _SupportSectionWidgetState extends State<SupportSectionWidget> {
|
||||||
),
|
),
|
||||||
sectionOptionSpacing,
|
sectionOptionSpacing,
|
||||||
MenuItemWidget(
|
MenuItemWidget(
|
||||||
captionedTextWidget: const CaptionedTextWidget(
|
captionedTextWidget: CaptionedTextWidget(
|
||||||
title: "Report a bug",
|
title: l10n.reportABug,
|
||||||
),
|
),
|
||||||
pressedColor: getEnteColorScheme(context).fillFaint,
|
pressedColor: getEnteColorScheme(context).fillFaint,
|
||||||
trailingIcon: Icons.chevron_right_outlined,
|
trailingIcon: Icons.chevron_right_outlined,
|
||||||
trailingIconIsMuted: true,
|
trailingIconIsMuted: true,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await sendLogs(context, "Report bug", "auth@ente.io");
|
await sendLogs(context, l10n.reportBug, "auth@ente.io");
|
||||||
},
|
},
|
||||||
onDoubleTap: () async {
|
onDoubleTap: () async {
|
||||||
final zipFilePath = await getZippedLogsFile(context);
|
final zipFilePath = await getZippedLogsFile(context);
|
||||||
|
@ -61,8 +64,8 @@ class _SupportSectionWidgetState extends State<SupportSectionWidget> {
|
||||||
),
|
),
|
||||||
sectionOptionSpacing,
|
sectionOptionSpacing,
|
||||||
MenuItemWidget(
|
MenuItemWidget(
|
||||||
captionedTextWidget: const CaptionedTextWidget(
|
captionedTextWidget: CaptionedTextWidget(
|
||||||
title: "Crash & error reporting",
|
title: l10n.crashAndErrorReporting,
|
||||||
),
|
),
|
||||||
trailingSwitch: ToggleSwitchWidget(
|
trailingSwitch: ToggleSwitchWidget(
|
||||||
value: SuperLogging.shouldReportErrors(),
|
value: SuperLogging.shouldReportErrors(),
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class SettingsTitleBarWidget extends StatelessWidget {
|
class SettingsTitleBarWidget extends StatelessWidget {
|
||||||
|
@ -5,6 +6,7 @@ class SettingsTitleBarWidget extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -19,7 +21,7 @@ class SettingsTitleBarWidget extends StatelessWidget {
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.keyboard_double_arrow_left_outlined),
|
icon: const Icon(Icons.keyboard_double_arrow_left_outlined),
|
||||||
),
|
),
|
||||||
const Text("Settings"),
|
Text(l10n.settings),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// @dart=2.9
|
// @dart=2.9
|
||||||
|
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
import 'package:ente_auth/ui/lifecycle_event_handler.dart';
|
import 'package:ente_auth/ui/lifecycle_event_handler.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -47,10 +48,11 @@ class _TwoFactorAuthenticationPageState
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text(
|
title: Text(
|
||||||
"Two-factor authentication",
|
l10n.twoFactorAuthTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: _getBody(),
|
body: _getBody(),
|
||||||
|
@ -58,6 +60,7 @@ class _TwoFactorAuthenticationPageState
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getBody() {
|
Widget _getBody() {
|
||||||
|
final l10n = context.l10n;
|
||||||
final pinPutDecoration = BoxDecoration(
|
final pinPutDecoration = BoxDecoration(
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
|
@ -73,9 +76,9 @@ class _TwoFactorAuthenticationPageState
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
Text(
|
||||||
"Enter the 6-digit code from\nyour authenticator app",
|
l10n.enterCodeHint,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
height: 1.4,
|
height: 1.4,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
),
|
),
|
||||||
|
@ -121,7 +124,7 @@ class _TwoFactorAuthenticationPageState
|
||||||
_verifyTwoFactorCode(_code);
|
_verifyTwoFactorCode(_code);
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
child: const Text("Verify"),
|
child: Text(l10n.verify),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Padding(padding: EdgeInsets.all(30)),
|
const Padding(padding: EdgeInsets.all(30)),
|
||||||
|
@ -132,10 +135,10 @@ class _TwoFactorAuthenticationPageState
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
child: const Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Lost device?",
|
l10n.lostDeviceTitle,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
),
|
),
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import 'dart:ui';
|
import 'dart:ui';
|
||||||
|
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/user_service.dart';
|
import 'package:ente_auth/services/user_service.dart';
|
||||||
import 'package:ente_auth/utils/dialog_util.dart';
|
import 'package:ente_auth/utils/dialog_util.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -27,11 +28,12 @@ class _TwoFactorRecoveryPageState extends State<TwoFactorRecoveryPage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final l10n = context.l10n;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text(
|
title: Text(
|
||||||
"Recover account",
|
l10n.recoverAccount,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -44,9 +46,9 @@ class _TwoFactorRecoveryPageState extends State<TwoFactorRecoveryPage> {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(60, 0, 60, 0),
|
padding: const EdgeInsets.fromLTRB(60, 0, 60, 0),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
decoration: const InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: "Enter your recovery key",
|
hintText: l10n.enterRecoveryKeyHint,
|
||||||
contentPadding: EdgeInsets.all(20),
|
contentPadding: const EdgeInsets.all(20),
|
||||||
),
|
),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
@ -79,7 +81,7 @@ class _TwoFactorRecoveryPageState extends State<TwoFactorRecoveryPage> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
child: const Text("Recover"),
|
child: Text(l10n.recover),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
|
@ -87,15 +89,15 @@ class _TwoFactorRecoveryPageState extends State<TwoFactorRecoveryPage> {
|
||||||
onTap: () {
|
onTap: () {
|
||||||
showErrorDialog(
|
showErrorDialog(
|
||||||
context,
|
context,
|
||||||
"Contact support",
|
l10n.contactSupport,
|
||||||
"Please drop an email to support@ente.io from your registered email address",
|
l10n.contactSupportViaEmailMessage("support@ente.io"),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(40),
|
padding: const EdgeInsets.all(40),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"No recovery key?",
|
l10n.noRecoveryKeyTitle,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:confetti/confetti.dart';
|
import 'package:confetti/confetti.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/ui/common/loading_widget.dart';
|
import 'package:ente_auth/ui/common/loading_widget.dart';
|
||||||
import 'package:ente_auth/ui/common/progress_dialog.dart';
|
import 'package:ente_auth/ui/common/progress_dialog.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -32,6 +33,7 @@ Future<dynamic> showErrorDialog(
|
||||||
String title,
|
String title,
|
||||||
String content,
|
String content,
|
||||||
) {
|
) {
|
||||||
|
final l10n = context.l10n;
|
||||||
final AlertDialog alert = AlertDialog(
|
final AlertDialog alert = AlertDialog(
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
||||||
title: title.isEmpty
|
title: title.isEmpty
|
||||||
|
@ -44,7 +46,7 @@ Future<dynamic> showErrorDialog(
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
l10n.ok,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
|
|
|
@ -7,6 +7,7 @@ import 'package:email_validator/email_validator.dart';
|
||||||
import 'package:ente_auth/core/configuration.dart';
|
import 'package:ente_auth/core/configuration.dart';
|
||||||
import 'package:ente_auth/core/logging/super_logging.dart';
|
import 'package:ente_auth/core/logging/super_logging.dart';
|
||||||
import 'package:ente_auth/ente_theme_data.dart';
|
import 'package:ente_auth/ente_theme_data.dart';
|
||||||
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/ui/common/dialogs.dart';
|
import 'package:ente_auth/ui/common/dialogs.dart';
|
||||||
import 'package:ente_auth/ui/tools/debug/log_file_viewer.dart';
|
import 'package:ente_auth/ui/tools/debug/log_file_viewer.dart';
|
||||||
// import 'package:ente_auth/ui/tools/debug/log_file_viewer.dart';
|
// import 'package:ente_auth/ui/tools/debug/log_file_viewer.dart';
|
||||||
|
@ -37,6 +38,7 @@ Future<void> sendLogs(
|
||||||
String subject,
|
String subject,
|
||||||
String body,
|
String body,
|
||||||
}) async {
|
}) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
final List<Widget> actions = [
|
final List<Widget> actions = [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Row(
|
child: Row(
|
||||||
|
@ -48,7 +50,7 @@ Future<void> sendLogs(
|
||||||
),
|
),
|
||||||
const Padding(padding: EdgeInsets.all(4)),
|
const Padding(padding: EdgeInsets.all(4)),
|
||||||
Text(
|
Text(
|
||||||
"View logs",
|
l10n.viewLogsAction,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
|
@ -88,11 +90,9 @@ Future<void> sendLogs(
|
||||||
final List<Widget> content = [];
|
final List<Widget> content = [];
|
||||||
content.addAll(
|
content.addAll(
|
||||||
[
|
[
|
||||||
const Text(
|
Text(
|
||||||
"This will send across logs to help us debug your issue. "
|
l10n.sendLogsDescription,
|
||||||
"While we take precautions to ensure that sensitive information is not "
|
style: const TextStyle(
|
||||||
"logged, we encourage you to view these logs before sharing them.",
|
|
||||||
style: TextStyle(
|
|
||||||
height: 1.5,
|
height: 1.5,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
),
|
),
|
||||||
|
@ -148,7 +148,8 @@ Future<void> _sendLogs(
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> getZippedLogsFile(BuildContext context) async {
|
Future<String> getZippedLogsFile(BuildContext context) async {
|
||||||
final dialog = createProgressDialog(context, "Preparing logs...");
|
final l10n = context.l10n;
|
||||||
|
final dialog = createProgressDialog(context, l10n.preparingLogsTitle);
|
||||||
await dialog.show();
|
await dialog.show();
|
||||||
final logsPath = (await getApplicationSupportDirectory()).path;
|
final logsPath = (await getApplicationSupportDirectory()).path;
|
||||||
final logsDirectory = Directory(logsPath + "/logs");
|
final logsDirectory = Directory(logsPath + "/logs");
|
||||||
|
@ -168,12 +169,13 @@ Future<void> shareLogs(
|
||||||
String toEmail,
|
String toEmail,
|
||||||
String zipFilePath,
|
String zipFilePath,
|
||||||
) async {
|
) async {
|
||||||
|
final l10n = context.l10n;
|
||||||
final result = await showChoiceDialog(
|
final result = await showChoiceDialog(
|
||||||
context,
|
context,
|
||||||
"Email logs",
|
l10n.emailLogsTitle,
|
||||||
"Please send the logs to $toEmail",
|
l10n.emailLogsMessage(toEmail),
|
||||||
firstAction: "Copy email",
|
firstAction: l10n.copyEmailAction,
|
||||||
secondAction: "Export logs",
|
secondAction: l10n.exportLogsAction,
|
||||||
);
|
);
|
||||||
if (result != null && result == DialogUserChoice.firstChoice) {
|
if (result != null && result == DialogUserChoice.firstChoice) {
|
||||||
await Clipboard.setData(ClipboardData(text: toEmail));
|
await Clipboard.setData(ClipboardData(text: toEmail));
|
||||||
|
@ -237,21 +239,22 @@ Future<String> _clientInfo() async {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _showNoMailAppsDialog(BuildContext context, String toEmail) {
|
void _showNoMailAppsDialog(BuildContext context, String toEmail) {
|
||||||
|
final l10n = context.l10n;
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: Text('Please email us at $toEmail'),
|
title: Text(l10n.emailUsMessage(toEmail)),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text("Copy email"),
|
child: Text(l10n.copyEmailAction),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await Clipboard.setData(ClipboardData(text: toEmail));
|
await Clipboard.setData(ClipboardData(text: toEmail));
|
||||||
showShortToast(context, 'Copied');
|
showShortToast(context, l10n.copied);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
child: const Text("OK"),
|
child: Text(l10n.ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
|
22
pubspec.lock
|
@ -266,7 +266,7 @@ packages:
|
||||||
name: dbus
|
name: dbus
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.4"
|
version: "0.7.8"
|
||||||
device_info:
|
device_info:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -343,7 +343,7 @@ packages:
|
||||||
name: ffi
|
name: ffi
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.1"
|
version: "2.0.1"
|
||||||
file:
|
file:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -357,7 +357,7 @@ packages:
|
||||||
name: file_picker
|
name: file_picker
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.6.1"
|
version: "5.2.4"
|
||||||
fixnum:
|
fixnum:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -504,9 +504,11 @@ packages:
|
||||||
flutter_sodium:
|
flutter_sodium:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: flutter_sodium
|
path: "."
|
||||||
url: "https://pub.dartlang.org"
|
ref: HEAD
|
||||||
source: hosted
|
resolved-ref: "267435eaf07af60b94406adf14bedf21e08a6b4f"
|
||||||
|
url: "https://github.com/ente-io/flutter_sodium.git"
|
||||||
|
source: git
|
||||||
version: "0.2.0"
|
version: "0.2.0"
|
||||||
flutter_speed_dial:
|
flutter_speed_dial:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
|
@ -748,7 +750,7 @@ packages:
|
||||||
name: package_info_plus
|
name: package_info_plus
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.4.2"
|
version: "1.4.3+1"
|
||||||
package_info_plus_linux:
|
package_info_plus_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -783,7 +785,7 @@ packages:
|
||||||
name: package_info_plus_windows
|
name: package_info_plus_windows
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.5"
|
version: "2.1.0"
|
||||||
password_strength:
|
password_strength:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -860,7 +862,7 @@ packages:
|
||||||
name: path_provider_windows
|
name: path_provider_windows
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.7"
|
version: "2.1.3"
|
||||||
petitparser:
|
petitparser:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1334,7 +1336,7 @@ packages:
|
||||||
name: win32
|
name: win32
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.6.1"
|
version: "3.1.2"
|
||||||
xdg_directories:
|
xdg_directories:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: ente_auth
|
name: ente_auth
|
||||||
description: ente two-factor authenticator
|
description: ente two-factor authenticator
|
||||||
version: 1.0.21+21
|
version: 1.0.22+22
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
@ -23,7 +23,7 @@ dependencies:
|
||||||
event_bus: ^2.0.0
|
event_bus: ^2.0.0
|
||||||
expandable: ^5.0.1
|
expandable: ^5.0.1
|
||||||
expansion_tile_card: ^2.0.0
|
expansion_tile_card: ^2.0.0
|
||||||
file_picker: ^4.6.1
|
file_picker: ^5.2.4
|
||||||
fk_user_agent: ^2.1.0
|
fk_user_agent: ^2.1.0
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
@ -38,7 +38,9 @@ dependencies:
|
||||||
flutter_native_splash: ^2.2.13
|
flutter_native_splash: ^2.2.13
|
||||||
flutter_secure_storage: ^6.0.0
|
flutter_secure_storage: ^6.0.0
|
||||||
flutter_slidable: ^2.0.0
|
flutter_slidable: ^2.0.0
|
||||||
flutter_sodium: ^0.2.0
|
flutter_sodium:
|
||||||
|
git:
|
||||||
|
url: https://github.com/ente-io/flutter_sodium.git
|
||||||
flutter_speed_dial: ^6.2.0
|
flutter_speed_dial: ^6.2.0
|
||||||
flutter_windowmanager: ^0.2.0
|
flutter_windowmanager: ^0.2.0
|
||||||
fluttertoast: ^8.1.1
|
fluttertoast: ^8.1.1
|
||||||
|
|
BIN
screenshots/screenshots.png
Normal file
After Width: | Height: | Size: 363 KiB |