Commit Graph

87 Commits

Author SHA1 Message Date
Vincent Brison de3dbf4565 Bump previous release to retrigger release 2021-11-22 14:12:08 +01:00
Mateusz Armatys bc4ae3163e Version and changelog 2021-11-22 11:11:13 +01:00
Mateusz Armatys b3454add82 FlowUtils: make both functions inline, add docs, change parameter name for `retryOnceWhen` 2021-11-22 11:11:13 +01:00
Mateusz Armatys f3f2efa010 Adjust `PerformCreate[ExternalEmail]User`:
- those use cases can no longer be called multiple times: calling them twice will likely result in "Account already exists" error
- the error recovery (when receiving "Account already exists" error) is in `SignupViewModel` (`catchWhen`)
2021-11-22 11:11:13 +01:00
Mateusz Armatys 0b4a91def0 Add Flow<T>.retryOnceWhen extension method 2021-11-22 11:11:12 +01:00
Vincent Brison b5703f9cf8 Move all gradle plugin to plugins folder 2021-10-27 09:29:15 +00:00
Vincent Brison 1e89d3ed94 Add supported 2fa methods 2021-10-27 08:17:49 +00:00
dhoko 9510ed8cc9
Push to gitlab with a PAT instead of SSH 2021-10-22 16:16:00 +02:00
Neil Marietta ae9280d50b KeyStoreCrypto fallback if Android KeyStore is not properly working. 2021-09-21 16:25:03 +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 eae528716f Bump all libraries version to 1.15.0 2021-09-10 17:44:59 +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 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 e5bbd0894b Download Detekt rules only once per day
Adding the time the Detekt config was last downloaded to avoid
downloading it every time we sync/build and instead download it once
per day.
2021-09-10 15:06:13 +02:00
Benjamin Monjoie 8ced7f4293 Revert to download config on gradle invocations
The intended behavior is to always have an up to date version of the
Detekt configuration so that it reflects in the developers' IDE
(through the IDE plugin). Since there are chances Detekt tasks are
only going to be run by CI, only downloading Detekt's rules before
the Detekt tasks would never update the configuration on the
developers' machines.
2021-09-10 15:06:13 +02:00
Benjamin Monjoie 0ca8155c7a Allow Detekt plugin to be configured
Some project may depend on a specific place where the report is
generated. By removing Algidardas' plugin, this was not possible
anymore so this adds a configuration which should allow to have a
similar effect.

Only download the Detekt configuration before detekt is run to avoid
downloading it constantly
2021-09-10 15:06:13 +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 dc016c58ec Various code improvements
* Add missing new line at end of files
 * Add code the create reports folder if it doesn't exist
 * Revert to using Detekt `1.17.1` (PR comment)
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
Neil Marietta a876c56ac6 Added Crypto encrypt/decrypt File with KeyPacket/SessionKey/HashKey support. 2021-08-26 17:52:42 +02:00
Davide Farella aaafc269c8 Bump Proton-Detekt [0.2.1] -> [0.3] 2021-08-06 09:55:18 +00:00
Davide Farella 286e19ea51 Bump Detekt and rules [0.16.0] -> [0.17.1] 2021-08-06 09:55:18 +00:00
Davide Farella 4e73f8c58f Bump Detekt and rules [0.15.0] -> [0.16.0] 2021-08-06 09:55:18 +00:00
Davide Farella 4b6d0a544c Bump Detekt and rules [0.14.0] -> [0.15.0] 2021-08-06 09:55:18 +00:00
Neil Marietta b8f1843c54 Upgraded Util Kotlin module version with Kotlin 1.4.31. 2021-04-07 17:15:39 +02:00
Neil Marietta e5adf7bd80 Replaced ViewStateStore by StateFlow, ViewModelResult and SavedStateHandle. 2021-04-01 17:48:37 +02:00
Neil Marietta 245e34ea4e Removed Docs folder. 2021-03-22 15:47:57 +01:00
Neil Marietta ca167b642a Updated Maven Publish Release Manager.
Fixed closeAndReleaseRepository Task.
Removed CI publishMaven assemble task.
Decreased CI publishMaven task tag to medium.
Removed releases folder.
Added updateReadme Task.
2021-03-19 14:44:09 +01:00
Neil Marietta 1c8250092f Reordered Maven Release Manager tasks. 2021-03-16 22:38:29 +01:00
Neil Marietta f375e35111 Fixed Maven Release Manager. 2021-03-16 19:53:51 +01:00
Neil Marietta aadff4e1e7 Fixed Maven Publishing, execute closeAndReleaseRepository Task for each Project.
Human Verification modules 0.2.6 are already published.
2021-03-14 18:10:05 +01:00
Neil Marietta 82806f9448 Fixed closeAndReleaseIfNewRelease Gradle task. 2021-03-13 16:42:59 +01:00
Neil Marietta 448ccf049e Migrated Bintray to Maven Central publishing/signing via Sonatype using EasyPublish 0.3.5 (based on gradle-maven-publish-plugin from vanniktech).
Needed CI variables:
- MAVEN_USER: Username for Maven repo publication (e.g. Sonatype username).
- MAVEN_PASSWORD: Password for Maven repo publication (e.g. Sonatype password).
- MAVEN_BASE_URL: Maven base Url (e.g. "https://s01.oss.sonatype.org/service/local/").
- MAVEN_SIGNING_KEY: ASCII Armored Key for Signing publication (truncated first line + last two lines).
- MAVEN_SIGNING_KEY_PASSWORD: Armored Key Password for Signing publication.
2021-03-12 13:51:22 +01:00
Davide Farella 39ba530a30 Detekt fix error if config/detekt folder doesn't exist 2021-03-05 14:10:36 +00:00
Davide Farella 928d3785d1 Disable Dokka for avoid CI crashes 2021-02-17 08:40:56 +00:00
Davide Farella 112a425e9e Bump some Android libraries in order to be published with minSdk 21
* util-shared-preferences
* util-work-manager
* test-android
* test-android-instrumented
2020-12-18 16:42:57 +00:00
dhoko bea865249a
Remove setup git + ssh env inside the script.
We already do it inside the entrypoint when we load the image.
2020-12-17 09:57:52 +01:00
Davide Farella ef72ef8dd9 Add `observe` to SharedPreferences util 2020-12-02 14:42:10 +01:00
Davide Farella 5d6dbbc1fa Rename Shared Preferences utils files 2020-12-02 14:35:30 +01:00
Davide Farella 27be8f2c6a Bump Detekt plugin version [0.1] -> [0.2]
CP-1104
2020-11-25 15:12:15 +00:00
Davide Farella fef47e69b4 Bump Detekt [1.11.2] -> [1.14.2]
CP-1104
2020-11-25 15:12:15 +00:00
Neil Marietta fe864413e3 Reverted to default Kotlin Serialization "encodeDefaults = false" value. 2020-11-19 14:33:51 +01:00
Neil Marietta c655229602 Bump modules versions. 2020-11-18 13:47:32 +01:00
Neil Marietta 8eba195ae0 Fixed Refresh Token missing serialized properties. 2020-11-18 13:47:32 +01:00
Davide Farella 8d483a3bbd Update Releases bot channel and message 2020-11-13 15:15:13 +01:00
Neil Marietta 3d550e34c4 Removed unneeded DataBinding from Android modules.
Bump modules versions.
2020-11-12 11:59:44 +01:00
Neil Marietta 650c9a898d Bump modules versions. 2020-11-11 18:26:30 +01:00