Commit Graph

70 Commits

Author SHA1 Message Date
Vincent Brison b5703f9cf8 Move all gradle plugin to plugins folder 2021-10-27 09:29:15 +00:00
Neil Marietta 351fa5eb7b Added EventManager Domain/Data and Event Listeners.
Added EventManager LogTags.
Added EventManagerConfig and EventManagerConfigProvider.
Added EventWorkManager and EventManagerWorker.

Added UserEventListener.
Added UserAddressEventListener.
Added MailSettingsEventListener.
Added UserSettingsEventListener.
Added ContactEventListener.
Added ContactEmailsEventListener.

Added AppLifecycleObserver and AppLifecycleProvider.
2021-10-25 12:47:04 +02:00
Vincent Brison 84d01a432f BillingViewModel.kt used as composition instead of inheritance in PaymentOptionsViewModel.kt
Allow correct usage of mockk verify and then library update.
2021-10-22 14:10:31 +02:00
Vincent Brison f3fb0d8a66 Remove databinding
Disable databinding on account-manager module
Disable databinding on auth module
Disable databinding on coreexample module
Disable databinding on country module
Disable databinding on human-verification module
Disable databinding on payment module
Disable databinding on plan module
Disable databinding on presentation module
Disable databinding on user-settings module
2021-10-19 11:34:00 +02:00
Vincent Brison 5e2f5ae5d4 Add option to enable viewbinding without databinding 2021-10-19 11:12:35 +02:00
Vincent Brison 0ad3a4efce Add dummy example to create contact 2021-10-12 10:12:15 +02:00
Vincent Brison 3ad1cb5155 Fix build config setup
Null handling for build config value is tricky, so extract this part. Also separate local properties reading and default proeperties reading.
2021-10-11 14:00:18 +02:00
Vincent Brison 1d51f829cf Add contact hilt module 2021-10-05 17:30:15 +02:00
Vincent Brison 38da095dfd Use javax.inject in contact module 2021-10-05 17:30:15 +02:00
Vincent Brison 720a1d7db7 Gradle housekeeping
Remove values provided by default by newer version of Gradle tools. Replace deprecated methods.
2021-09-10 17:44:59 +02:00
Vincent Brison 865f009f0f Use same version of easy gradle across all the project 2021-09-10 17:44:59 +02:00
Vincent Brison 441f17e9d3 Downgrade Mockk
Explantion available here https://jira.protontech.ch/browse/CP-2604.
2021-09-10 17:44:59 +02:00
Vincent Brison 77cf6f0771 Update core libraries dependencies 2021-09-10 15:11:40 +02:00
Vincent Brison ee77152027 Start to group project side dependencies
Use this grouping to bump minor agp version.
Dependencies of core artifacts are still grouped into gradle/plugin/src/main/kotlin/versionsConfig.kt.
2021-09-10 15:11:40 +02:00
Vincent Brison c78f437ee5 Update gradle version and use recommended kotlin version for plugins
Gradle plugins written in Kotlin are recommended to use gradle embedded kotlin runtine. For more info about this check https://github.com/gradle/gradle/issues/16345 and https://github.com/gradle/gradle/issues/17375. Using embeddedKotlinVersion we automatically set the correct kotlin version for our plugins based on the gradle version we are currently using.
2021-09-10 15:11:40 +02:00
Vincent Brison d4cb938fa5 Bump kotlin dependencies 2021-09-10 15:11:39 +02:00
Vincent Brison d41221c0f0 Bump android dependencies 2021-09-10 15:11:39 +02:00
Vincent Brison f6ab717813 Use same version of kotlin and agp accross modules 2021-09-10 15:11:39 +02:00
Benjamin Monjoie 5ac3ca8520 Update library versions and gradle wrapper
Bump all library versions to minor+=1 and path=0 (except for plugins)
as updating to Kotlin 1.5 can have breaking changes (like in the
experimental Duration API which forced us to update Store)
2021-09-10 15:11:39 +02:00
Benjamin Monjoie befca10552 Fix UI tests are not passing anymore
Due to a breaking change in the experimental Duration API in Kotlin
1.5 and a conflict with inline classes and coroutine in the IR
compiler. I had to update several dependencies.

 * Fix tests won't run anymore by updating Kotlin (and dependencies)
    + turbine
 * Update Store4 since there was a breaking change in Kotlin 1.5's
   experimental Duration API on which Store4 relied
 * Fix some deprecated calls (toUppercase/toLowercase, capitalize,
   expectItem, ...)
2021-09-10 15:06:13 +02:00
Benjamin Monjoie ad07590903 Fix detekt plugin for AGP 7+
* Update to AGP 7 and gradle wrapper to 7.1
 * Update hilt to make it work with AGP 7
 * Remove `enableFeaturePreview("GRADLE_METADATA")` which are not needed anymore
 * Remove `javaCompileOptions.annotationProcessorOptions.includeCompileClasspath` which is not supported anymore
 * Add a task to convert SARIF reports into gitlab's JSON format to replace Algirdas' plugin

Algirda's plugin was not working on Java 9 and above because Java 9 now requires modules dependencies as part of project jigsaw.
The libraries must now declare their dependencies and since the plugin was not built against Java 9, this was causing an issue with Gson relying on `java.sql` but not included at runtime.
I couldn't find a way to fix it without either updating Algirda's plugin or making my own Gradle task. I took the latter option as depending on Algirda's code could be an issue if he's not available to fix the issue. Also, the code was fairly easy to duplicate and include into our own codebase.
2021-09-10 15:06:13 +02:00
dkadrikj 5d13b9988f Rename settings module and add unit tests. 2021-07-30 14:24:12 +00:00
Neil Marietta 3461a7c1c8 Added Crypto encryptAndSignFile & decryptAndVerifyFile. 2021-07-30 09:18:34 +00:00
dkadrikj 284c24cc26 Improve NumberUtils.kt, Price. 2021-07-22 15:20:46 +00:00
dkadrikj 366de0885c Add lottie animation for signup. 2021-07-22 15:20:46 +00:00
Neil Marietta d4820e07f9 Added AccountManager Data Db module (backward compatibility). 2021-07-21 16:24:02 +02:00
Neil Marietta ff22efde46 Added Data Room module. 2021-07-21 16:24:02 +02:00
Neil Marietta 63cb162e19 Refactored Core Database. 2021-07-21 16:24:02 +02:00
Neil Marietta 556a8d3983 Added Mail-Settings modules. 2021-07-07 14:22:16 +02:00
dkadrikj cbcd7c117f Add plans data, domain and presentation modules. 2021-06-21 10:33:09 +02:00
Neil Marietta 0e927dacf9 Added Add Account Activity.
Adapted Splash screen.
2021-05-26 20:27:57 +02:00
Neil Marietta 58110656a9 Upgraded Hilt to 2.35.1. 2021-05-12 23:33:42 +02:00
dkadrikj 9b2c03a0f0 Add User module support for new SignUp feature. 2021-05-12 17:57:14 +00:00
Artiom Košelev 72440f96aa Removed jackson dependency. Replaced ActivityTestRule with ActivityScenarioRule 2021-05-06 13:26:34 +00:00
Davide Farella f6b8069eb2 Increase global minSdk [21] -> [23] 2021-05-03 07:25:42 +00:00
Neil Marietta d28ac28525 Added Lifecycle minActiveState in AccountManagerObserver. 2021-04-19 22:56:01 +02:00
Neil Marietta e5adf7bd80 Replaced ViewStateStore by StateFlow, ViewModelResult and SavedStateHandle. 2021-04-01 17:48:37 +02:00
dkadrikj b7c8699746 Rename countries module.
Fix detect findings. Other improvements.

Bump versions.

Improvements.
2021-03-29 13:24:09 +02:00
dkadrikj 225876b18b Add new countries module (with submodules) for easier usage in any other module (or client). 2021-03-29 13:24:00 +02:00
dkadrikj d5cccad3fe Add payments domain submodule.
- Support for Proton payments.

Module versions set.

Clean up and improve domain module.
2021-03-29 13:23:15 +02:00
Adam 4d82d022ae Add repositories for getting Contacts and ContactEmails 2021-03-09 09:02:24 +00:00
Adam 8a5fc74963 Add prototype implementation of SendDirect use case 2021-03-04 14:56:31 +00:00
Neil Marietta 41146cda0f Bump modules and dependencies version for release 1.0.0.
Updated several README.md.
2021-02-11 17:35:03 +01:00
Neil Marietta 92d945806a Integrated User/Address/Key into AccountManager DB. 2021-02-09 12:06:42 +01:00
Neil Marietta d58e0a751e Added User/Address Domain module. 2021-02-09 10:55:47 +01:00
Neil Marietta 12ce7eb03e Added Key Data module. 2021-02-09 10:15:49 +01:00
Neil Marietta 043160fb10 Added Key Domain module. 2021-01-21 12:36:28 +01:00
Neil Marietta c1c5e40366 Added Crypto modules.
Upgraded GOpenPGP to 2.1.3.
2021-01-19 19:15:06 +01:00
Denys Zelenchuk 7a13dbb5ca Decoupled Android core UI tests functionality into a Core library. 2021-01-12 09:45:00 +01:00
Davide Farella f0b945c57b Reduce Android minSdk [23] -> [21] 2020-12-18 16:42:57 +00:00