Commit Graph

20 Commits

Author SHA1 Message Date
Jorge Martín cdd985e83f Get code coverage reporting on MRs in GitLab for all Core projects 2021-11-10 09:43:45 +01: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 1d0e31278b Add tooling to report stable dependency update
https://github.com/ben-manes/gradle-versions-plugin plugin allows to quickly generate a report of all the dependencies updates availalbe. Can be used with the configured task trough `gradle dependencyUpdates`.
2021-09-10 15:11:39 +02:00
Vincent Brison d4cb938fa5 Bump kotlin dependencies 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
Neil Marietta 58110656a9 Upgraded Hilt to 2.35.1. 2021-05-12 23:33:42 +02:00
Neil Marietta e5adf7bd80 Replaced ViewStateStore by StateFlow, ViewModelResult and SavedStateHandle. 2021-04-01 17:48:37 +02: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 fe8f018814 Upgraded Android Gradle Plugin to 4.1.1. 2020-11-11 16:57:22 +01:00
Neil Marietta 38602e216b Fixed build (GC overhead limit exceeded).
Increased Gradle Daemon memory.
Upgraded Dokka version to latest.
2020-11-02 15:21:01 +01:00
Davide Farella 22ba81ed62 Update ProtonPublishLibrariesPlugin.kt and ProtonPublishPluginsPlugin.kt with Dokka
CP-994
2020-10-21 18:23:54 +02:00
Davide Farella 4e0d9d3dd5 Update Kotlin, Serialization and Coroutines
* Kotlin [1.3.72] -> [1.4.10]
* Serialization [0.20.0] -> [1.0.0]
* Coroutines [1.3.4] -> [1.4.0-M1]

CP-994
2020-10-21 18:23:54 +02:00
Davide Farella c5ee8ecb66 Cleanup projects' plugins
CP-964
2020-10-21 18:23:53 +02:00
Davide Farella fcd5c552d9 Create ProtonPublishPluginsPlugin.kt
CP-964
2020-10-21 18:23:53 +02:00
Davide Farella 156bda73ef Create ProtonDetektPlugin.kt, ProtonKotlinPlugin.kt and ProtonTestsPlugin.kt
CP-964
2020-10-21 18:23:44 +02:00
Davide Farella acba7fd7ad Enable kotlinx.coroutines.ExperimentalCoroutinesApi
Enabled in order to be able to use APIs from coroutines-test artifact, without explicitly need to suppress the warning every time
2020-09-16 10:35:34 +02:00
Davide Farella 3ede199f12 Setup tests for plain Kotlin modules
'testDebugUnitTest' will run tests only for Android modules, with the newly create 'allTest' task, it will run 'testDebugUnitTest' for Android modules and 'test' on plain Kotlin ones
2020-09-02 08:53:29 +00:00
Algirdas Pundzius 265a5a0205 Initial commit
Co-authored-by: Davide Giuseppe Farella <4face91@protonmail.com>
Co-authored-by: Dino Kadrikj <kadrikj@protonmail.ch>
Co-authored-by: Mateusz Markowicz <poniekad@protonmail.com>
2020-07-01 13:58:49 +03:00