Go to file
Davide Farella 78fff39d60 Update Jenv Java version [14.0.1] -> [openjdk64-15.0.1] 2022-03-25 14:32:10 +00:00
.github/ISSUE_TEMPLATE
.idea Update Copyright [2020] -> [2022] 2022-02-09 16:18:44 +01:00
app Create SwitchUserAndOpenMessageDetailsActivity.kt 2022-03-25 14:32:10 +00:00
buildSrc Updates core to 7.1.5 2022-03-24 16:29:53 +00:00
config Deleted config/detekt/config.yml 2022-01-20 15:34:11 +00:00
docs Add 0010-backticks-for-junit-tests.md ADR 2021-11-04 10:38:53 +00:00
domain Adds buffer to the message loading flow 2022-02-28 13:36:27 +00:00
gopenpgp Updates the gopenpgp version to 2.4.5 2022-03-22 15:26:14 +00:00
gradle/wrapper Setup core snapshot support. 2022-02-16 16:01:33 +00:00
proton-libs@80b38a97e5 Updates core to 7.1.5 2022-03-24 16:29:53 +00:00
scripts/extract_dependencies Clean up InjectLicenses.kts script 2022-03-09 12:55:15 +00:00
sharedTest Adds labels to the collapsed message view 2021-08-25 17:23:09 +02:00
tokenAutoComplete Core - Integrate KeyStore fallback message 2022-02-07 16:18:56 +00:00
.gitignore Add Detekt config to .gitignore 2022-01-20 15:35:45 +00:00
.gitlab-ci.yml Updates the docker image 2022-03-21 10:00:29 +00:00
.gitmodules Setup core snapshot support. 2022-02-16 16:01:33 +00:00
.java-version Update Jenv Java version [14.0.1] -> [openjdk64-15.0.1] 2022-03-25 14:32:10 +00:00
LICENSE
README.md
build.gradle.kts Setup Human Verification v3, bump Core libs to 4.1.0 2021-12-29 09:57:59 +01:00
experimental.properties
gradle.properties Updated Gitlab Runners. 2022-03-03 10:33:06 +01:00
gradlew Setup core snapshot support. 2022-02-16 16:01:33 +00:00
gradlew.bat Setup core snapshot support. 2022-02-16 16:01:33 +00:00
settings.gradle.kts Added Proton Libs Git Submodules Support (Core version 6.0.0). 2022-02-16 16:01:33 +00:00

README.md

ProtonMail for Android

Copyright (c) 2020 Proton Technologies AG

License

The code and data files in this distribution are licensed 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. See https://www.gnu.org/licenses/ for a copy of this license.

See LICENSE file

Setup

The most straightforward way to build and run this application is to:

  • Install Android Studio: https://developer.android.com/studio/install
  • Clone the repository. You have two options:
    • Use the Project from version control in Android Studio, or
    • Use the git clone command and import it into Android Studio
  • Build and run the app directly in Android Studio

Alternatively, if you want to build the app directly from the command line (or using a different IDE, etc.), you will first need to install the command line tools from: https://developer.android.com/studio#cmdline-tools. Then you will need to install the SDK using the sdkmanager tool. After cloning the repository with git clone you will need to edit the local.properties file so that it points to the location of the SDK. Depending on which operating systems you use, the location of the SDK is usually:

  • Windows: C:\Users\<username>\AppData\Local\Android\sdk
  • MacOS: /Users/<username>/Library/Android/Sdk/
  • Linux: /home/<username>/Android/Sdk/

Then, go to the apps root directory in the command line tool and run:

  • ./gradlew assembleBetaDebug
  • adb install ./app/build/outputs/apk/beta/debug/ProtonMail-Android-1.XX.X-beta-debug.apk

Note: In app notifications when building from source

When building from source, in app push notifications for new emails will not work out of the box.

The app uses Google's Firebase Cloud Messaging (FCM) service to deliver push notifications. However, we are not publishing the production version of the configuration files needed to set up this service, because the values specified within are deemed sensitive. Instead, we publish dummy versions of the files (config/google-services/dummy-google-services.json and config/google-services/dummy-google-services-beta.json) which allows you to build the app without push notifications. The dummy files will be copied to the relevant folders once you run the ./gradlew command.

We may offer alternative push notification systems in the future which do not rely on Google services.

Contributions

Contributions are appreciated, but must conform to Proton Guidelines.

Branch naming

Branch names must respect the pattern type/description-of-the-change.

Type must be one of the following:

  • chore for changes not related to the Kotlin source code, for example a change in the build config
  • doc for changes related to source code documentation, or external document, like the README
  • feat for a new feature for the app
  • fix for bug fixes
  • refactor for improving one or more unit of code, without impacting the behaviour of the app
  • test for everything related to test ( add a new test suite, add a new test into an already existing test suite or improve/modify the performance or the behaviour of an already existing test )

description of change must be a concise and meaningful description of what is expected by the change apported; words must be separated by a dash -

The whole name of the branch must be lower case.

Commit message

The template for a commit message is the following

<Title of the commit>

#comment <Description of the changes>
Affected: <List of affected classes or behaviours>

Title is required and must start with a capital letter.

#comment field is optional if the Title can exhaustively explain the changes, otherwise is required. Body of the comment must start with a capital letter.

Affected is optional and must be a comma separated list of the elements affected by the changes, it could be the name of a class or a behaviour like Encryption, Login flow, LoginActivity.kt

Code style and pattern

The code must conform the standards defined in the files config/CodeStyle.xml and config/detekt.xml.

CodeStyle.xml can be imported in the IDE ( Preferences -> Editor -> Code Style -> Import scheme for IntelliJ and Android Studio ).

Detekt reports can be generated with the command ./gradlew detekt. Check Detekt GitHub documentation for know how to download and configure the optional IDE plugin.

Copyright (c) 2020 Proton Technologies AG